diff --git a/Changelog.md b/Changelog.md
index 40bec21159e10b7af65750d9b5155261eae6680f..085555aab9c9af5d97a0838eadb6f671ab1b52e4 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -2,8 +2,13 @@
 
 All notable changes to this project will be documented in this file.
 
+## [0.19] - 2023-07-11
+- Added survey functionality under new `/survey` route with a separate frontend from the compendium reports frontend
+- Added authentication support for OIDC provider(s)
+- Added survey question/data mapping & migration for 2022 survey
+
 ## [0.18] - 2023-05-31
-- COMP-201 Funding SOurce UI
+- COMP-201 Funding Source UI
 - adding axis scale 
 - Font configuration fix
 - funding source data 2021
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000000000000000000000000000000000000..f11771f397041aa957d3b2ffe2118bf51e81f97a
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 GÉANT Vereniging
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/MANIFEST.in b/MANIFEST.in
index 704f01679637ecf961380df081045e597c7d74e5..a594bff8c4dbe8cd9c08ad628c195f0365bc8c00 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,5 +1,7 @@
 recursive-include compendium_v2/static *
-include compendium_v2/templates/index.html *
+include compendium_v2/templates/index.html
+include compendium_v2/templates/survey-index.html
 recursive-include compendium_v2/migrations/versions *
-include compendium_v2/migrations/alembic.ini *
+include compendium_v2/migrations/alembic.ini
 recursive-include compendium_v2/background_task/xlsx *
+include compendium_v2/routes/survey_model.json
diff --git a/README.md b/README.md
index dd9a7dce6b1534fbd04577e8af437a232c3e6334..17c92d9a8f676b670c5b017cb4c5eab10062b18d 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ variable `SETTINGS_FILENAME` when running the service.
 
 ## Building the web application
 
-For instructions on building the React frontend see `webapp/README.md`.
+For instructions on building the React frontend see `<name>-webapp/README.md`.
 
 ## Running this module
 
diff --git a/webapp/.babelrc b/compendium-frontend/.babelrc
similarity index 100%
rename from webapp/.babelrc
rename to compendium-frontend/.babelrc
diff --git a/webapp/.eslintignore b/compendium-frontend/.eslintignore
similarity index 100%
rename from webapp/.eslintignore
rename to compendium-frontend/.eslintignore
diff --git a/webapp/.eslintrc.json b/compendium-frontend/.eslintrc.json
similarity index 100%
rename from webapp/.eslintrc.json
rename to compendium-frontend/.eslintrc.json
diff --git a/webapp/README.md b/compendium-frontend/README.md
similarity index 100%
rename from webapp/README.md
rename to compendium-frontend/README.md
diff --git a/webapp/package-lock.json b/compendium-frontend/package-lock.json
similarity index 100%
rename from webapp/package-lock.json
rename to compendium-frontend/package-lock.json
diff --git a/webapp/package.json b/compendium-frontend/package.json
similarity index 100%
rename from webapp/package.json
rename to compendium-frontend/package.json
diff --git a/webapp/src/App.tsx b/compendium-frontend/src/App.tsx
similarity index 100%
rename from webapp/src/App.tsx
rename to compendium-frontend/src/App.tsx
diff --git a/webapp/src/Schema.tsx b/compendium-frontend/src/Schema.tsx
similarity index 100%
rename from webapp/src/Schema.tsx
rename to compendium-frontend/src/Schema.tsx
diff --git a/webapp/src/components/CollapsibleBox.tsx b/compendium-frontend/src/components/CollapsibleBox.tsx
similarity index 100%
rename from webapp/src/components/CollapsibleBox.tsx
rename to compendium-frontend/src/components/CollapsibleBox.tsx
diff --git a/webapp/src/components/ColorBadge.tsx b/compendium-frontend/src/components/ColorBadge.tsx
similarity index 100%
rename from webapp/src/components/ColorBadge.tsx
rename to compendium-frontend/src/components/ColorBadge.tsx
diff --git a/webapp/src/components/ColorPill.tsx b/compendium-frontend/src/components/ColorPill.tsx
similarity index 100%
rename from webapp/src/components/ColorPill.tsx
rename to compendium-frontend/src/components/ColorPill.tsx
diff --git a/webapp/src/components/DataPage.tsx b/compendium-frontend/src/components/DataPage.tsx
similarity index 100%
rename from webapp/src/components/DataPage.tsx
rename to compendium-frontend/src/components/DataPage.tsx
diff --git a/webapp/src/components/OrganizationSidebar.tsx b/compendium-frontend/src/components/OrganizationSidebar.tsx
similarity index 100%
rename from webapp/src/components/OrganizationSidebar.tsx
rename to compendium-frontend/src/components/OrganizationSidebar.tsx
diff --git a/webapp/src/components/PolicySidebar.tsx b/compendium-frontend/src/components/PolicySidebar.tsx
similarity index 100%
rename from webapp/src/components/PolicySidebar.tsx
rename to compendium-frontend/src/components/PolicySidebar.tsx
diff --git a/webapp/src/components/SectionNavigation.tsx b/compendium-frontend/src/components/SectionNavigation.tsx
similarity index 100%
rename from webapp/src/components/SectionNavigation.tsx
rename to compendium-frontend/src/components/SectionNavigation.tsx
diff --git a/webapp/src/components/SideBar.tsx b/compendium-frontend/src/components/SideBar.tsx
similarity index 100%
rename from webapp/src/components/SideBar.tsx
rename to compendium-frontend/src/components/SideBar.tsx
diff --git a/webapp/src/components/WithLegend.tsx b/compendium-frontend/src/components/WithLegend.tsx
similarity index 100%
rename from webapp/src/components/WithLegend.tsx
rename to compendium-frontend/src/components/WithLegend.tsx
diff --git a/webapp/src/components/global/Banner.tsx b/compendium-frontend/src/components/global/Banner.tsx
similarity index 100%
rename from webapp/src/components/global/Banner.tsx
rename to compendium-frontend/src/components/global/Banner.tsx
diff --git a/webapp/src/components/global/ExternalPageNavBar.tsx b/compendium-frontend/src/components/global/ExternalPageNavBar.tsx
similarity index 100%
rename from webapp/src/components/global/ExternalPageNavBar.tsx
rename to compendium-frontend/src/components/global/ExternalPageNavBar.tsx
diff --git a/webapp/src/components/global/GeantFooter.tsx b/compendium-frontend/src/components/global/GeantFooter.tsx
similarity index 100%
rename from webapp/src/components/global/GeantFooter.tsx
rename to compendium-frontend/src/components/global/GeantFooter.tsx
diff --git a/webapp/src/components/global/PageHeader.tsx b/compendium-frontend/src/components/global/PageHeader.tsx
similarity index 100%
rename from webapp/src/components/global/PageHeader.tsx
rename to compendium-frontend/src/components/global/PageHeader.tsx
diff --git a/webapp/src/components/global/SectionLink.tsx b/compendium-frontend/src/components/global/SectionLink.tsx
similarity index 100%
rename from webapp/src/components/global/SectionLink.tsx
rename to compendium-frontend/src/components/global/SectionLink.tsx
diff --git a/webapp/src/components/graphing/BarGraph.tsx b/compendium-frontend/src/components/graphing/BarGraph.tsx
similarity index 100%
rename from webapp/src/components/graphing/BarGraph.tsx
rename to compendium-frontend/src/components/graphing/BarGraph.tsx
diff --git a/webapp/src/components/graphing/Filter.tsx b/compendium-frontend/src/components/graphing/Filter.tsx
similarity index 100%
rename from webapp/src/components/graphing/Filter.tsx
rename to compendium-frontend/src/components/graphing/Filter.tsx
diff --git a/webapp/src/components/graphing/LineGraph.tsx b/compendium-frontend/src/components/graphing/LineGraph.tsx
similarity index 100%
rename from webapp/src/components/graphing/LineGraph.tsx
rename to compendium-frontend/src/components/graphing/LineGraph.tsx
diff --git a/webapp/src/helpers/SidebarProvider.tsx b/compendium-frontend/src/helpers/SidebarProvider.tsx
similarity index 100%
rename from webapp/src/helpers/SidebarProvider.tsx
rename to compendium-frontend/src/helpers/SidebarProvider.tsx
diff --git a/webapp/src/helpers/constants.ts b/compendium-frontend/src/helpers/constants.ts
similarity index 100%
rename from webapp/src/helpers/constants.ts
rename to compendium-frontend/src/helpers/constants.ts
diff --git a/webapp/src/helpers/dataconversion.tsx b/compendium-frontend/src/helpers/dataconversion.tsx
similarity index 100%
rename from webapp/src/helpers/dataconversion.tsx
rename to compendium-frontend/src/helpers/dataconversion.tsx
diff --git a/webapp/src/images/compendium_header.png b/compendium-frontend/src/images/compendium_header.png
similarity index 100%
rename from webapp/src/images/compendium_header.png
rename to compendium-frontend/src/images/compendium_header.png
diff --git a/webapp/src/images/eu_flag.png b/compendium-frontend/src/images/eu_flag.png
similarity index 100%
rename from webapp/src/images/eu_flag.png
rename to compendium-frontend/src/images/eu_flag.png
diff --git a/webapp/src/images/eu_logo.png b/compendium-frontend/src/images/eu_logo.png
similarity index 100%
rename from webapp/src/images/eu_logo.png
rename to compendium-frontend/src/images/eu_logo.png
diff --git a/webapp/src/images/geant_logo_colored.svg b/compendium-frontend/src/images/geant_logo_colored.svg
similarity index 100%
rename from webapp/src/images/geant_logo_colored.svg
rename to compendium-frontend/src/images/geant_logo_colored.svg
diff --git a/webapp/src/images/geant_logo_f2020_new.svg b/compendium-frontend/src/images/geant_logo_f2020_new.svg
similarity index 100%
rename from webapp/src/images/geant_logo_f2020_new.svg
rename to compendium-frontend/src/images/geant_logo_f2020_new.svg
diff --git a/webapp/src/images/home_data_icon.svg b/compendium-frontend/src/images/home_data_icon.svg
similarity index 100%
rename from webapp/src/images/home_data_icon.svg
rename to compendium-frontend/src/images/home_data_icon.svg
diff --git a/webapp/src/images/home_reports_icon.svg b/compendium-frontend/src/images/home_reports_icon.svg
similarity index 100%
rename from webapp/src/images/home_reports_icon.svg
rename to compendium-frontend/src/images/home_reports_icon.svg
diff --git a/webapp/src/index.tsx b/compendium-frontend/src/index.tsx
similarity index 100%
rename from webapp/src/index.tsx
rename to compendium-frontend/src/index.tsx
diff --git a/webapp/src/main.scss b/compendium-frontend/src/main.scss
similarity index 100%
rename from webapp/src/main.scss
rename to compendium-frontend/src/main.scss
diff --git a/webapp/src/pages/Budget.tsx b/compendium-frontend/src/pages/Budget.tsx
similarity index 100%
rename from webapp/src/pages/Budget.tsx
rename to compendium-frontend/src/pages/Budget.tsx
diff --git a/webapp/src/pages/ChargingStructure.tsx b/compendium-frontend/src/pages/ChargingStructure.tsx
similarity index 100%
rename from webapp/src/pages/ChargingStructure.tsx
rename to compendium-frontend/src/pages/ChargingStructure.tsx
diff --git a/webapp/src/pages/CompendiumData.tsx b/compendium-frontend/src/pages/CompendiumData.tsx
similarity index 100%
rename from webapp/src/pages/CompendiumData.tsx
rename to compendium-frontend/src/pages/CompendiumData.tsx
diff --git a/webapp/src/pages/ECProjects.tsx b/compendium-frontend/src/pages/ECProjects.tsx
similarity index 100%
rename from webapp/src/pages/ECProjects.tsx
rename to compendium-frontend/src/pages/ECProjects.tsx
diff --git a/webapp/src/pages/FundingSource.tsx b/compendium-frontend/src/pages/FundingSource.tsx
similarity index 100%
rename from webapp/src/pages/FundingSource.tsx
rename to compendium-frontend/src/pages/FundingSource.tsx
diff --git a/webapp/src/pages/Landing.tsx b/compendium-frontend/src/pages/Landing.tsx
similarity index 100%
rename from webapp/src/pages/Landing.tsx
rename to compendium-frontend/src/pages/Landing.tsx
diff --git a/webapp/src/pages/ParentOrganisation.tsx b/compendium-frontend/src/pages/ParentOrganisation.tsx
similarity index 100%
rename from webapp/src/pages/ParentOrganisation.tsx
rename to compendium-frontend/src/pages/ParentOrganisation.tsx
diff --git a/webapp/src/pages/Policy.tsx b/compendium-frontend/src/pages/Policy.tsx
similarity index 100%
rename from webapp/src/pages/Policy.tsx
rename to compendium-frontend/src/pages/Policy.tsx
diff --git a/webapp/src/pages/StaffGraph.tsx b/compendium-frontend/src/pages/StaffGraph.tsx
similarity index 100%
rename from webapp/src/pages/StaffGraph.tsx
rename to compendium-frontend/src/pages/StaffGraph.tsx
diff --git a/webapp/src/pages/SubOrganisation.tsx b/compendium-frontend/src/pages/SubOrganisation.tsx
similarity index 100%
rename from webapp/src/pages/SubOrganisation.tsx
rename to compendium-frontend/src/pages/SubOrganisation.tsx
diff --git a/webapp/src/plugins/HTMLLegendPlugin.ts b/compendium-frontend/src/plugins/HTMLLegendPlugin.ts
similarity index 100%
rename from webapp/src/plugins/HTMLLegendPlugin.ts
rename to compendium-frontend/src/plugins/HTMLLegendPlugin.ts
diff --git a/webapp/src/scss/abstracts/_variables.scss b/compendium-frontend/src/scss/abstracts/_variables.scss
similarity index 100%
rename from webapp/src/scss/abstracts/_variables.scss
rename to compendium-frontend/src/scss/abstracts/_variables.scss
diff --git a/webapp/src/scss/base/_text.scss b/compendium-frontend/src/scss/base/_text.scss
similarity index 100%
rename from webapp/src/scss/base/_text.scss
rename to compendium-frontend/src/scss/base/_text.scss
diff --git a/webapp/src/scss/fonts.scss b/compendium-frontend/src/scss/fonts.scss
similarity index 100%
rename from webapp/src/scss/fonts.scss
rename to compendium-frontend/src/scss/fonts.scss
diff --git a/webapp/src/scss/layout/SectionNavigation.scss b/compendium-frontend/src/scss/layout/SectionNavigation.scss
similarity index 100%
rename from webapp/src/scss/layout/SectionNavigation.scss
rename to compendium-frontend/src/scss/layout/SectionNavigation.scss
diff --git a/webapp/src/scss/layout/Sidebar.scss b/compendium-frontend/src/scss/layout/Sidebar.scss
similarity index 100%
rename from webapp/src/scss/layout/Sidebar.scss
rename to compendium-frontend/src/scss/layout/Sidebar.scss
diff --git a/webapp/src/scss/layout/_components.scss b/compendium-frontend/src/scss/layout/_components.scss
similarity index 100%
rename from webapp/src/scss/layout/_components.scss
rename to compendium-frontend/src/scss/layout/_components.scss
diff --git a/webapp/src/types/images.d.ts b/compendium-frontend/src/types/images.d.ts
similarity index 100%
rename from webapp/src/types/images.d.ts
rename to compendium-frontend/src/types/images.d.ts
diff --git a/webapp/tsconfig.json b/compendium-frontend/tsconfig.json
similarity index 100%
rename from webapp/tsconfig.json
rename to compendium-frontend/tsconfig.json
diff --git a/webapp/webpack.config.ts b/compendium-frontend/webpack.config.ts
similarity index 100%
rename from webapp/webpack.config.ts
rename to compendium-frontend/webpack.config.ts
diff --git a/compendium_v2/__init__.py b/compendium_v2/__init__.py
index de1b313f5fe6f9d47c02339b240c875f978a306e..f30107f00e00ff8879cdbc9431e9de4c6db20233 100644
--- a/compendium_v2/__init__.py
+++ b/compendium_v2/__init__.py
@@ -4,13 +4,32 @@ automatically invoked app factory
 import logging
 import os
 
+import pkg_resources
+import sentry_sdk
+from sentry_sdk.integrations.flask import FlaskIntegration
+
 from flask import Flask
 from flask_cors import CORS  # for debugging
 # the currently available stubs for flask_migrate are old (they depend on sqlalchemy 1.4 types)
 from flask_migrate import Migrate, upgrade  # type: ignore
+from flask_login import LoginManager  # type: ignore
 
 from compendium_v2 import config, environment
 from compendium_v2.db import db
+from compendium_v2.auth import setup_oauth
+from compendium_v2.auth.session_management import setup_login_manager
+
+
+sentry_dsn = os.getenv('SENTRY_DSN')
+if sentry_dsn:
+    sentry_sdk.init(
+        dsn=sentry_dsn,
+        integrations=[FlaskIntegration()],
+        release=pkg_resources.get_distribution('compendium-v2').version)
+
+environment.setup_logging()
+
+logger = logging.getLogger(__name__)
 
 
 def _create_app(app_config) -> Flask:
@@ -18,14 +37,28 @@ def _create_app(app_config) -> Flask:
     app = Flask(__name__)
     CORS(app)
 
-    app.config['CONFIG_PARAMS'] = app_config
-
     from compendium_v2.routes import default
     app.register_blueprint(default.routes, url_prefix='/')
 
+    from compendium_v2.routes import authentication
+    app.register_blueprint(authentication.routes, url_prefix='/')
+
     from compendium_v2.routes import api
     app.register_blueprint(api.routes, url_prefix='/api')
 
+    if not app_config:
+        # workaround for sphinx causing app to be created, but not loading a config
+        return app
+
+    app.config['CONFIG_PARAMS'] = app_config
+    app.config['SECRET_KEY'] = app_config['SECRET_KEY']
+    app.config['SESSION_COOKIE_SECURE'] = True
+    if 'oidc' not in app_config:
+        app.config['LOGIN_DISABLED'] = True
+        logger.info('No OIDC configuration found, authentication disabled')
+    else:
+        logger.info('OIDC configuration found, authentication will be enabled')
+
     return app
 
 
@@ -60,8 +93,11 @@ def create_app() -> Flask:
     Migrate(app, db, directory=os.path.join(os.path.dirname(__file__), 'migrations'))
 
     logging.info('Flask app initialized')
-
-    environment.setup_logging()
+    login_manager = LoginManager()
+    login_manager.init_app(app)
+    login_manager.login_view = 'authentication.login'
+    setup_login_manager(login_manager)
+    setup_oauth(app, app_config.get('oidc'))
 
     # run migrations on startup
     with app.app_context():
diff --git a/compendium_v2/app.py b/compendium_v2/app.py
index bc91cd745e4346a3b76f7d3927db9194732367a6..76f82b58b2d14b092d3b32706bffa3b6376b03e5 100644
--- a/compendium_v2/app.py
+++ b/compendium_v2/app.py
@@ -2,8 +2,6 @@
 default app creation
 """
 import compendium_v2
-from compendium_v2 import environment
-environment.setup_logging()
 
 app = compendium_v2.create_app()
 
diff --git a/compendium_v2/auth/__init__.py b/compendium_v2/auth/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..ed53fd87d0ebd01f5d182369a2c3a8e75747ccc2
--- /dev/null
+++ b/compendium_v2/auth/__init__.py
@@ -0,0 +1,33 @@
+from flask import Flask
+from authlib.integrations.flask_client import OAuth, FlaskOAuth2App  # type: ignore
+
+oauth = None  # type: OAuth
+
+
+def setup_oauth(app: Flask, oidc_config: dict):
+    global oauth
+
+    if oauth is not None:
+        return
+
+    oauth = OAuth(app)
+
+    if oidc_config is None:
+        return
+
+    oauth.register(
+        name='provider',
+        client_id=oidc_config['client_id'],
+        client_secret=oidc_config['client_secret'],
+        server_metadata_url=oidc_config['server_metadata_url'],
+        client_kwargs={
+            'scope': ' '.join([
+                'openid',
+                'email',
+                'profile'
+            ])},
+    )
+
+
+def get_client() -> FlaskOAuth2App:
+    return oauth.create_client('provider')
diff --git a/compendium_v2/auth/session_management.py b/compendium_v2/auth/session_management.py
new file mode 100644
index 0000000000000000000000000000000000000000..eed857ee9adf0e1160b7387e43d0abe96ccafd6b
--- /dev/null
+++ b/compendium_v2/auth/session_management.py
@@ -0,0 +1,92 @@
+from functools import wraps
+from sqlalchemy import select
+from flask import jsonify
+from datetime import datetime
+from flask_login import LoginManager, current_user  # type: ignore
+from compendium_v2.db import session_scope
+from compendium_v2.db.auth_model import User, ROLES
+
+
+def admin_required(func):
+    """
+    Decorator function used to require admin access to a view.
+
+    :param func: The view function to decorate.
+    :return: The decorated view function.
+    """
+
+    def wrapper(*args, **kwargs):
+        if not current_user.is_authenticated:
+            return jsonify(success=False,
+                           data={'login_required': True},
+                           message='Authorize to access this page.'), 401
+        role = current_user.roles
+        if role != ROLES.admin:
+            return jsonify(success=False,
+                           data={'admin_required': True},
+                           message='Admin privileges required to access this page.'), 401
+
+        return func(*args, **kwargs)
+
+    return wraps(func)(wrapper)
+
+
+def create_user(email: str, fullname: str, oidc_sub: str):
+    """
+    Function used to create a new user in the database.
+
+    :param email: The email of the user
+    :param fullname: The full name of the user
+    :param oidc_sub: The OIDC subject identifier (ID) of the user
+    :return: The user object
+    """
+
+    with session_scope() as session:
+        user = User(email=email, fullname=fullname, oidc_sub=oidc_sub)
+        session.add(user)
+        return user
+
+
+def fetch_user(profile: dict):
+    """
+    Function used to resolve an OIDC profile to a user in the database.
+
+    :param profile: OIDC profile information
+    :return: User object if the user exists, None otherwise.
+    """
+
+    with session_scope() as session:
+        sub_id = profile['sub']
+        user = session.scalar(select(User).where(User.oidc_sub == sub_id))
+        if user is None:
+            return None
+        user.last_login = datetime.utcnow()
+        return user
+
+
+def user_loader(user_id: str):
+    """
+    Function used to retrieve the internal user model for the user attempting login.
+
+    :param user_id: The ID of the user attempting login.
+    :return: User object if the user exists, None otherwise.
+    """
+
+    with session_scope() as session:
+        user = session.scalar(select(User).where(User.id == user_id))
+        if user is None:
+            return None
+        user.last_login = datetime.utcnow()
+        return user
+
+
+def unauth_handler():
+    return jsonify(success=False,
+                   data={'login_required': True},
+                   message='Authorize to access this page.'), 401
+
+
+def setup_login_manager(login_manager: LoginManager):
+
+    login_manager.user_loader(user_loader)
+    login_manager.unauthorized_handler(unauth_handler)
diff --git a/compendium_v2/config.py b/compendium_v2/config.py
index 5cf1a69b3527529672a25ed6af7130fd4a14cb0e..490f399a55af8bff0a2d0b82e45ef6ae2fbbd6fa 100644
--- a/compendium_v2/config.py
+++ b/compendium_v2/config.py
@@ -1,15 +1,25 @@
 import json
 import jsonschema
 
-
 CONFIG_SCHEMA = {
     '$schema': 'http://json-schema.org/draft-07/schema#',
     'type': 'object',
     'properties': {
         'SQLALCHEMY_DATABASE_URI': {'type': 'string', 'format': 'database-uri'},
-        'SURVEY_DATABASE_URI': {'type': 'string', 'format': 'database-uri'}
+        'SURVEY_DATABASE_URI': {'type': 'string', 'format': 'database-uri'},
+        'oidc': {
+            'type': 'object',
+            'properties': {
+                'client_id': {'type': 'string'},
+                'client_secret': {'type': 'string'},
+                'server_metadata_url': {'type': 'string', 'format': 'uri', 'pattern': '^https?://'},
+            },
+            'required': ['client_id', 'client_secret', 'server_metadata_url'],
+            'additionalProperties': False
+        },
+        'SECRET_KEY': {'type': 'string'},
     },
-    'required': ['SQLALCHEMY_DATABASE_URI', 'SURVEY_DATABASE_URI'],
+    'required': ['SQLALCHEMY_DATABASE_URI', 'SURVEY_DATABASE_URI', 'SECRET_KEY'],
     'additionalProperties': False
 }
 
diff --git a/compendium_v2/conversion/__init__.py b/compendium_v2/conversion/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/compendium_v2/conversion/conversion.py b/compendium_v2/conversion/conversion.py
new file mode 100644
index 0000000000000000000000000000000000000000..ed8fa9f36f45a426a679a39f09dd1d43378d7b22
--- /dev/null
+++ b/compendium_v2/conversion/conversion.py
@@ -0,0 +1,152 @@
+"""
+conversion
+=========================
+
+This module loads the survey data from 2022 from the survey database
+and stores the data in the json structure of the new survey, so that
+it can be used to prefill the 2023 survey.
+
+"""
+import logging
+import click
+import json
+
+from sqlalchemy import delete, text, select
+
+import compendium_v2
+from compendium_v2.environment import setup_logging
+from compendium_v2.db import db
+from compendium_v2.config import load
+from compendium_v2.survey_db import model as survey_model
+from compendium_v2.db.model import NREN
+from compendium_v2.db.survey_model import Survey, SurveyResponse
+
+from compendium_v2.conversion import mapping
+
+setup_logging()
+
+logger = logging.getLogger('conversion')
+
+
+def query_nren(nren_id: int):
+    query = mapping.ANSWERS_2022_QUERY.format(nren_id)
+    answers = {}
+    for row in db.session.execute(text(query), bind_arguments={'bind': db.engines[survey_model.SURVEY_DB_BIND]}):
+        answers[row[0]] = row[1]
+    return answers
+
+
+def convert_answers(answers):
+    data = {}
+
+    for id, question_name in mapping.ID_TO_NAME.items():
+        if id not in answers:
+            continue
+
+        answer = answers[id]
+        if len(answer) > 1 and answer[0] == '"' and answer[-1] == '"':
+            answer = answer[1:-1]
+            if id in mapping.VALUE_TO_CODE_MAPPING:
+                answer = mapping.VALUE_TO_CODE_MAPPING[id][answer]
+        if len(answer) > 1 and answer[0] == '[' and answer[-1] == ']':
+            answer = json.loads(answer)
+            if id in mapping.VALUE_TO_CODE_MAPPING:
+                mapped_answer = []
+                for entry in answer:
+                    mapped_answer.append(mapping.VALUE_TO_CODE_MAPPING[id][entry])
+                answer = mapped_answer
+
+        # code to convert my description in the mapping to a json structure
+        question_names = question_name.split(":")
+        subdict = data
+        for name in question_names[0:-1]:
+            if name[-1] == "]":
+                index = name[-2]
+                if index == "[":
+                    subdict = subdict.setdefault(name[:-2], [])
+                    break  # special case where json list is mapped to a list of dicts (part 1)
+                sublist = subdict.setdefault(name[:-3], [])
+                index = int(index)
+                while len(sublist) <= index:
+                    sublist.append({})
+                subdict = sublist[index]
+            else:
+                subdict = subdict.setdefault(name, {})
+
+        if type(subdict) == list:  # special case where json list is mapped to a list of dicts (part 2)
+            for answer_entry in answer:
+                subdict.append({question_names[-1]: answer_entry})
+        elif question_names[-1] == "available":  # special case because we changed the policies questions a bit
+            if answer == "Yes":
+                subdict[question_names[-1]] = ["yes"]
+        else:
+            subdict[question_names[-1]] = answer
+
+    for id, question_name in mapping.ID_TO_NAME_SERVICES.items():
+        if id not in answers:
+            continue
+
+        answer = answers[id]
+        answer = json.loads(answer)
+        for user_type in answer:
+            user_type_code = mapping.SERVICE_USER_TYPE_TO_CODE[user_type]
+            formatted_question_name = question_name.format(user_type_code)
+
+            question_names = formatted_question_name.split(":")
+            subdict = data
+            for name in question_names[0:-2]:
+                subdict = subdict.setdefault(name, {})
+
+            sublist = subdict.setdefault(question_names[-2], [])
+            sublist.append(question_names[-1])
+
+    return {"data": data}
+
+
+def _cli(app):
+    with app.app_context():
+
+        nren_surveys = {}
+
+        for nren in db.session.scalars(select(NREN)):
+            survey_db_nren_id = mapping.NREN_IDS[nren.name]
+            nren_surveys[nren] = query_nren(survey_db_nren_id)
+
+        db.session.execute(delete(SurveyResponse).where(
+            SurveyResponse.survey_year == 2022
+        ))
+
+        db.session.execute(delete(Survey).where(
+            Survey.year == 2022
+        ))
+
+        survey = Survey(year=2022, survey={})
+        db.session.add(survey)
+
+        for nren, answers in nren_surveys.items():
+            survey_dict = convert_answers(answers)
+            response = SurveyResponse(
+                nren=nren,
+                nren_id=nren.id,
+                survey_year=2022,
+                survey=survey,
+                answers=survey_dict
+            )
+            db.session.add(response)
+
+        db.session.commit()
+
+
+@click.command()
+@click.option('--config', type=click.STRING, default='config.json')
+def cli(config):
+    app_config = load(open(config, 'r'))
+
+    app_config['SQLALCHEMY_BINDS'] = {survey_model.SURVEY_DB_BIND: app_config['SURVEY_DATABASE_URI']}
+
+    app = compendium_v2._create_app_with_db(app_config)
+    _cli(app)
+
+
+if __name__ == "__main__":
+    cli()
diff --git a/compendium_v2/conversion/mapping.py b/compendium_v2/conversion/mapping.py
new file mode 100644
index 0000000000000000000000000000000000000000..3943c3e34b3ea3da33acd1190433e7ba07a2ff69
--- /dev/null
+++ b/compendium_v2/conversion/mapping.py
@@ -0,0 +1,583 @@
+ANSWERS_2022_QUERY = """
+SELECT question_id, value
+FROM answers a
+WHERE nren_id = {}
+      AND value NOT IN ('""', '[]', '"NA"', '"N/A"', '[""]', '["-"]', '["/"]')
+      AND NOT EXISTS (
+        SELECT 1 FROM answers a2 WHERE a.question_id = a2.question_id AND a.nren_id = a2.nren_id AND a2.id > a.id
+      )
+      AND question_id IN (16402,16405,16406,16407,16408,16409,16410,16413,16414,16416,16417,16418,16419,16420,16422,
+                          16426,16429,16430,16432,16433,16434,16435,16438,16439,16446,16448,16449,16450,16451,16452,
+                          16453,16455,16456,16457,16458,16459,16460,16461,16462,16463,16464,16465,16468,16469,16470,
+                          16471,16472,16473,16474,16475,16476,16477,16478,16479,16480,16481,16482,16483,16484,16485,
+                          16486,16488,16489,16490,16491,16492,16493,16494,16495,16496,16497,16499,16500,16501,16502,
+                          16503,16504,16760,16761,16762,16763,16507,16509,16510,16511,16512,16513,16514,16515,16516,
+                          16517,16518,16519,16520,16521,16522,16523,16524,16525,16526,16527,16528,16529,16530,16531,
+                          16532,16533,16534,16535,16536,16537,16538,16539,16540,16541,16542,16543,16544,16545,16546,
+                          16547,16548,16550,16551,16552,16553,16554,16555,16556,16557,16558,16559,16560,16561,16562,
+                          16563,16564,16565,16566,16567,16568,16569,16570,16571,16572,16573,16574,16575,16576,16577,
+                          16578,16579,16581,16582,16583,16584,16585,16586,16587,16588,16589,16590,16592,16593,16594,
+                          16595,16596,16597,16598,16599,16600,16601,16602,16603,16604,16605,16606,16607,16608,16609,
+                          16610,16611,16613,16614,16615,16616,16617,16618,16619,16620,16621,16622,16623,16624,16625,
+                          16626,16627,16628,16629,16630,16631,16632,16634,16635,16636,16637,16638,16639,16640,16641,
+                          16642,16643,16646,16647,16648,16649,16650,16652,16653,16654,16656,16658,16659,16662,16663,
+                          16664,16665,16666,16667,16668,16669,16670,16672,16673,16674,16675,16676,16677,16678,16679,
+                          16680,16681,16682,16683,16684,16685,16687,16688,16689,16691,16692,16694,16695,16696,16697,
+                          16698,16699,16700,16701,16702,16703,16704,16705,16706,16707,16708,16709,16710,16711,16712,
+                          16713,16714,16715,16716,16717,16718,16719,16720,16721,16722,16723,16724,16725,16726,16727,
+                          16728,16729,16730,16731,16732,16733,16734,16735,16736,16737,16738,16739,16740,16741,16742,
+                          16743,16744,16746,16747,16748,16749,16750,16752,16753,16754,16755,16756,16757,16758);
+"""
+
+NREN_IDS = {
+    "ANAS": 49,
+    "GRNET": 17,
+    "Restena": 28,
+    "University of Malta": 29,
+    "DeiC": 9,
+    "CSC": 12,
+    "Sikt": 33,
+    "ACOnet": 4,
+    "AMRES": 48,
+    "ARNES": 39,
+    "ASNET-AM": 200,
+    "BASNET": 54,
+    "Belnet": 5,
+    "BREN": 58,
+    "CARNET": 6,
+    "CESNET": 8,
+    "CYNET": 7,
+    "DFN": 16,
+    "EENet": 11,
+    "FCCN": 35,
+    "GARR": 23,
+    "GRENA": 15,
+    "HEAnet": 21,
+    "IUCC": 22,
+    "Jisc": 46,
+    "KIFU": 18,
+    "LAT": 51,
+    "LITNET": 27,
+    "MARnet": 14,
+    "MREN": 100,
+    "PIONIER": 34,
+    "RASH": 1,
+    "RedIRIS": 40,
+    "RENAM": 30,
+    "RENATER": 13,
+    "RHnet": 19,
+    "RoEduNet": 52,
+    "SANET": 38,
+    "SUNET": 41,
+    "SURF": 32,
+    "SWITCH": 42,
+    "ULAKBIM": 44,
+    "URAN": 45,
+}
+
+# query to get the data required to make the following mapping:
+#
+# select a.value, q.id, q.title, q.cell_column, q.cell_row, q.identifier, q.choices,
+#        q2.identifier, q2.column_headers, q2.row_headers
+# from answers a join questions q on a.question_id = q.id
+# left join questions q2 on q.parent_id = q2.id
+# where a.value <> '""' and q.section_id > 225
+# AND NOT EXISTS (
+#     SELECT 1 FROM answers a2 WHERE a.question_id = a2.question_id AND a.nren_id = a2.nren_id AND a2.id > a.id
+# )
+# order by q.id, a.id;
+
+ID_TO_NAME_SERVICES = {
+    16488: "service_matrix:{}:service_types:identity",
+    16489: "service_matrix:{}:service_types:network_services",
+    16490: "service_matrix:{}:service_types:collaboration",
+    16491: "service_matrix:{}:service_types:security",
+    16492: "service_matrix:{}:service_types:isp_support",
+    16493: "service_matrix:{}:service_types:storage_and_hosting",
+    16494: "service_matrix:{}:service_types:multimedia",
+    16495: "service_matrix:{}:service_types:professional_services",
+}
+
+SERVICE_USER_TYPE_TO_CODE = {
+    "Universities": "universities",
+    "Further education": "further_education",
+    "Research institutes": "institutes",
+    "Primary Schools": "primary_schools",
+    "Government": "government",
+    "For profit organisations": "for_profit_orgs",
+    "International Research Organisations": "iros",
+    "Cultural Institutions": "cultural",
+    "(Non-research) hospitals": "hospitals",
+    "Secondary Schools": "secondary_schools"
+}
+
+ID_TO_NAME = {
+    16402: "budget",
+    16405: "income_sources:client_institutions",
+    16406: "income_sources:european_funding",
+    16407: "income_sources:commercial",
+    16408: "income_sources:other",
+    16409: "income_sources:gov_public_bodies",
+    16410: "charging_mechanism",
+    16413: "staff_employment_type:subcontracted_fte",
+    16414: "staff_employment_type:permanent_fte",
+    16416: "staff_roles:technical_fte",
+    16417: "staff_roles:nontechnical_fte",
+    16418: "parent_organization",  # "Yes" "No"
+    16419: "parent_organization_name",
+    16420: "suborganizations",  # "Yes" "No"
+    16422: "suborganization_details[0]:suborganization_name",
+    16426: "suborganization_details[0]:suborganization_role-Comment",
+    16429: "suborganization_details[1]:suborganization_name",
+    16430: "suborganization_details[2]:suborganization_name",
+    16432: "suborganization_details[3]:suborganization_name",
+    16433: "suborganization_details[4]:suborganization_name",
+    16434: "suborganization_details[1]:suborganization_role-Comment",
+    16435: "suborganization_details[2]:suborganization_role-Comment",
+    16438: "suborganization_details[3]:suborganization_role-Comment",
+    16439: "suborganization_details[4]:suborganization_role-Comment",
+    16446: "suborganization_details[2]:suborganization_role",
+    16448: "suborganization_details[1]:suborganization_role",
+    16449: "suborganization_details[0]:suborganization_role",
+    16450: "suborganization_details[4]:suborganization_role",
+    16451: "suborganization_details[3]:suborganization_role",
+    16452: "ec_projects",  # "Yes" "No"
+    16453: "ec_project_names[]:ec_project_name",  # json list with double quotes
+    16455: "full_name_english",
+    16456: "full_name_national_languages",
+    16457: "abbreviation_english",
+    16458: "abbreviation_national_languages",
+    16459: "street_name_and_number",
+    16460: "city",
+    16461: "postal_code",
+    16462: "country",  # NB some country names are a bit different
+    16463: "phone_number",
+    16464: "email_address",
+    16465: "website",
+    # 16466: "organization_comments",
+
+    16468: "corporate_strategy",  # "Yes" "No"
+    16469: "corporate_strategy_url",
+    16470: "policies:environmental_policy:available",  # "Yes" "No"
+    16471: "policies:environmental_policy:url",
+    16472: "policies:equal_opportunity_policy:available",  # "Yes" "No"
+    16473: "policies:equal_opportunity_policy:url",
+    16474: "policies:connectivity_policy:available",  # "Yes" "No"
+    16475: "policies:connectivity_policy:url",
+    16476: "policies:acceptable_use_policy:available",  # "Yes" "No"
+    16477: "policies:acceptable_use_policy:url",
+    16478: "policies:privacy_notice:available",  # "Yes" "No"
+    16479: "policies:privacy_notice:url",
+    16480: "policies:data_protection_contact:available",  # "Yes" "No"
+    16481: "policies:data_protection_contact:url",
+    16482: "central_software_procurement",  # "Yes" "No"
+    16483: "central_procurement_amount",
+    16484: "formal_service_management_framework",  # "Yes" "No"
+    16485: "service_level_targets",  # "Yes" "No"
+    16486: "service_portfolio_changes",  # "Yes" "No"
+    16496: "service_portfolio_eosc_portal",  # "Yes" "No"
+    16497: "services_on_eosc_portal_list[]:service_name",  # json list with double quotes
+    16499: "audits",  # "Yes" "No"
+    16500: "audit_specifics",
+    16501: "business_continuity_plans",  # "Yes" "No"
+    16502: "business_continuity_plans_specifics",
+    16503: "security_controls",  # json list with double quotes
+    16504: "security_controls-Comment",
+    # 16505: "policy_comments",
+    16760: "policies:gender_equality_policy:available",  # "Yes" "No"
+    16761: "policies:gender_equality_policy:url",
+    16762: "crisis_management_procedure",  # "Yes" "No"
+    16763: "crisis_exercises",  # json list with double quotes
+
+    16507: "connected_sites_lists[]:connected_sites_url",  # json list with double quotes
+    16509: "connectivity_proportions:cultural:nr_connected",
+    16510: "connectivity_proportions:universities:nr_connected",
+    16511: "connectivity_proportions:secondary_schools:nr_connected",
+    16512: "connectivity_proportions:hospitals:nr_connected",
+    16513: "connectivity_proportions:primary_schools:nr_connected",
+    16514: "connectivity_proportions:for_profit_orgs:nr_connected",
+    16515: "connectivity_proportions:further_education:nr_connected",
+    16516: "connectivity_proportions:government:nr_connected",
+    16517: "connectivity_proportions:institutes:nr_connected",
+    16518: "connectivity_proportions:universities:market_share_percentage",
+    16519: "connectivity_proportions:iros:nr_connected",
+    16520: "connectivity_proportions:further_education:market_share_percentage",
+    16521: "connectivity_proportions:secondary_schools:market_share_percentage",
+    16522: "connectivity_proportions:primary_schools:market_share_percentage",
+    16523: "connectivity_proportions:cultural:market_share_percentage",
+    16524: "connectivity_proportions:institutes:market_share_percentage",
+    16525: "connectivity_proportions:iros:market_share_percentage",
+    16526: "connectivity_proportions:hospitals:market_share_percentage",
+    16527: "connectivity_proportions:government:market_share_percentage",
+    16528: "connectivity_proportions:for_profit_orgs:market_share_percentage",
+    16529: "connectivity_proportions:universities:nr_of_users",
+    16530: "connectivity_proportions:institutes:nr_of_users",
+    16531: "connectivity_proportions:further_education:nr_of_users",
+    16532: "connectivity_proportions:secondary_schools:nr_of_users",
+    16533: "connectivity_proportions:cultural:nr_of_users",
+    16534: "connectivity_proportions:primary_schools:nr_of_users",
+    16535: "connectivity_proportions:hospitals:nr_of_users",
+    16536: "connectivity_proportions:government:nr_of_users",
+    16537: "connectivity_proportions:for_profit_orgs:nr_of_users",
+    16538: "connectivity_proportions:iros:nr_of_users",
+    16539: "connectivity_proportions:further_education:covered",
+    16540: "connectivity_proportions:secondary_schools:covered",
+    16541: "connectivity_proportions:for_profit_orgs:covered",
+    16542: "connectivity_proportions:primary_schools:covered",
+    16543: "connectivity_proportions:institutes:covered",
+    16544: "connectivity_proportions:government:covered",
+    16545: "connectivity_proportions:iros:covered",
+    16546: "connectivity_proportions:cultural:covered",
+    16547: "connectivity_proportions:universities:covered",
+    16548: "connectivity_proportions:hospitals:covered",
+    16550: "connectivity_level:for_profit_orgs:typical_speed",
+    16551: "connectivity_level:further_education:highest_speed_connection_percentage",
+    16552: "connectivity_level:institutes:highest_speed",
+    16553: "connectivity_level:further_education:highest_speed",
+    16554: "connectivity_level:secondary_schools:highest_speed_connection_percentage",
+    16555: "connectivity_level:secondary_schools:typical_speed",
+    16556: "connectivity_level:primary_schools:highest_speed_connection_percentage",
+    16557: "connectivity_level:secondary_schools:highest_speed",
+    16558: "connectivity_level:primary_schools:highest_speed",
+    16559: "connectivity_level:universities:typical_speed",
+    16560: "connectivity_level:further_education:typical_speed",
+    16561: "connectivity_level:cultural:typical_speed",
+    16562: "connectivity_level:cultural:highest_speed_connection_percentage",
+    16563: "connectivity_level:primary_schools:typical_speed",
+    16564: "connectivity_level:institutes:highest_speed_connection_percentage",
+    16565: "connectivity_level:institutes:typical_speed",
+    16566: "connectivity_level:cultural:highest_speed",
+    16567: "connectivity_level:hospitals:typical_speed",
+    16568: "connectivity_level:hospitals:highest_speed",
+    16569: "connectivity_level:iros:typical_speed",
+    16570: "connectivity_level:hospitals:highest_speed_connection_percentage",
+    16571: "connectivity_level:for_profit_orgs:highest_speed",
+    16572: "connectivity_level:government:typical_speed",
+    16573: "connectivity_level:iros:highest_speed",
+    16574: "connectivity_level:government:highest_speed",
+    16575: "connectivity_level:for_profit_orgs:highest_speed_connection_percentage",
+    16576: "connectivity_level:government:highest_speed_connection_percentage",
+    16577: "connectivity_level:iros:highest_speed_connection_percentage",
+    16578: "connectivity_level:universities:highest_speed",
+    16579: "connectivity_level:universities:highest_speed_connection_percentage",
+    16581: "traffic_carriers:government:carry_mechanism",
+    16582: "traffic_carriers:universities:carry_mechanism",
+    16583: "traffic_carriers:secondary_schools:carry_mechanism",
+    16584: "traffic_carriers:institutes:carry_mechanism",
+    16585: "traffic_carriers:cultural:carry_mechanism",
+    16586: "traffic_carriers:hospitals:carry_mechanism",
+    16587: "traffic_carriers:iros:carry_mechanism",
+    16588: "traffic_carriers:for_profit_orgs:carry_mechanism",
+    16589: "traffic_carriers:primary_schools:carry_mechanism",
+    16590: "traffic_carriers:further_education:carry_mechanism",
+    16592: "traffic_load:government:average_from_institutions_to_network",
+    16593: "traffic_load:iros:average_from_institutions_to_network",
+    16594: "traffic_load:for_profit_orgs:average_from_institutions_to_network",
+    16595: "traffic_load:universities:average_from_institutions_to_network",
+    16596: "traffic_load:further_education:average_from_institutions_to_network",
+    16597: "traffic_load:secondary_schools:average_from_institutions_to_network",
+    16598: "traffic_load:primary_schools:average_from_institutions_to_network",
+    16599: "traffic_load:institutes:average_from_institutions_to_network",
+    16600: "traffic_load:cultural:average_from_institutions_to_network",
+    16601: "traffic_load:hospitals:average_from_institutions_to_network",
+    16602: "traffic_load:universities:average_to_institutions_from_network",
+    16603: "traffic_load:further_education:average_to_institutions_from_network",
+    16604: "traffic_load:secondary_schools:average_to_institutions_from_network",
+    16605: "traffic_load:primary_schools:average_to_institutions_from_network",
+    16606: "traffic_load:institutes:average_to_institutions_from_network",
+    16607: "traffic_load:cultural:average_to_institutions_from_network",
+    16608: "traffic_load:hospitals:average_to_institutions_from_network",
+    16609: "traffic_load:government:average_to_institutions_from_network",
+    16610: "traffic_load:iros:average_to_institutions_from_network",
+    16611: "traffic_load:for_profit_orgs:average_to_institutions_from_network",
+    16613: "traffic_load:secondary_schools:peak_to_institutions_from_network",
+    16614: "traffic_load:institutes:peak_to_institutions_from_network",
+    16615: "traffic_load:universities:peak_from_institutions_to_network",
+    16616: "traffic_load:for_profit_orgs:peak_from_institutions_to_network",
+    16617: "traffic_load:further_education:peak_from_institutions_to_network",
+    16618: "traffic_load:hospitals:peak_to_institutions_from_network",
+    16619: "traffic_load:secondary_schools:peak_from_institutions_to_network",
+    16620: "traffic_load:universities:peak_to_institutions_from_network",
+    16621: "traffic_load:primary_schools:peak_from_institutions_to_network",
+    16622: "traffic_load:primary_schools:peak_to_institutions_from_network",
+    16623: "traffic_load:institutes:peak_from_institutions_to_network",
+    16624: "traffic_load:cultural:peak_from_institutions_to_network",
+    16625: "traffic_load:hospitals:peak_from_institutions_to_network",
+    16626: "traffic_load:further_education:peak_to_institutions_from_network",
+    16627: "traffic_load:government:peak_from_institutions_to_network",
+    16628: "traffic_load:government:peak_to_institutions_from_network",
+    16629: "traffic_load:iros:peak_from_institutions_to_network",
+    16630: "traffic_load:for_profit_orgs:peak_to_institutions_from_network",
+    16631: "traffic_load:cultural:peak_to_institutions_from_network",
+    16632: "traffic_load:iros:peak_to_institutions_from_network",
+    16634: "traffic_growth:iros:growth_rate",
+    16635: "traffic_growth:for_profit_orgs:growth_rate",
+    16636: "traffic_growth:institutes:growth_rate",
+    16637: "traffic_growth:primary_schools:growth_rate",
+    16638: "traffic_growth:further_education:growth_rate",
+    16639: "traffic_growth:universities:growth_rate",
+    16640: "traffic_growth:hospitals:growth_rate",
+    16641: "traffic_growth:secondary_schools:growth_rate",
+    16642: "traffic_growth:government:growth_rate",
+    16643: "traffic_growth:cultural:growth_rate",
+    16646: "commercial_organizations:commercial_service_provider:connection",
+    16647: "commercial_organizations:commercial_collaboration:connection",
+    16648: "commercial_organizations:commercial_r_e:connection",
+    16649: "commercial_organizations:commercial_general:connection",
+    16650: "commercial_organizations:university_spin_off:connection",
+    16652: "commercial_charging_levels:collaboration:charging_level",
+    16653: "commercial_charging_levels:services:charging_level",
+    16654: "commercial_charging_levels:peering:charging_level",
+    16656: "remote_campuses",  # "Yes" "No"
+    16658: "remote_campuses_specifics[0]:connected",  # NB free text, doesnt map properly
+    16659: "remote_campuses_specifics[0]:country",  # NB free text, doesnt map properly
+    # 16660: "connected_users_comments",
+
+    16662: "dark_fibre_lease",  # "Yes" "No"
+    16663: "dark_fibre_lease_kilometers_inside_country",
+    16664: "dark_fibre_lease_kilometers_outside_country",
+    16665: "dark_fibre_lease_duration",
+    16666: "dark_fibre_nren",  # "Yes" "No"
+    16667: "dark_fibre_nren_kilometers_inside_country",
+    16668: "fibre_light",
+    16669: "fibre_light-Comment",
+    16670: "network_map_urls[]:network_map_url",  # json list with double quotes
+    16672: "monitoring_tools",  # json list with double quotes
+    16673: "monitoring_tools-Comment",
+    16674: "netflow_vendors",
+    16675: "passive_monitoring",  # "Yes" "No"
+    16676: "passive_monitoring_tech",
+    16677: "traffic_statistics",  # "Yes" "No"
+    16678: "traffic_statistics_urls[0]:traffic_statistics_url",
+    16679: "siem_soc_vendor",  # json list with double quotes
+    16680: "siem_soc_vendor-Comment",
+    16681: "certificate_service",  # json list with double quotes
+    16682: "certificate_service-Comment",
+    16683: "network_weather",  # "Yes" "No"
+    16684: "network_weather_url",
+    16685: "pert_team",  # "Yes" "No" "Planned"
+    16687: "alienwave_services",  # "Yes" "No" "Planned"
+    16688: "alienwave_services_number",
+    16689: "alienwave_internal",  # "Yes" "No"
+    16691: "max_capacity",
+    16692: "typical_capacity",
+    16694: "external_connections[5]:capacity",
+    16695: "external_connections[7]:capacity",
+    16696: "external_connections[6]:capacity",
+    16697: "external_connections[7]:from_organization",
+    16698: "external_connections[1]:to_organization",
+    16699: "external_connections[8]:to_organization",
+    16700: "external_connections[9]:to_organization",
+    16701: "external_connections[1]:from_organization",
+    16702: "external_connections[8]:capacity",
+    16703: "external_connections[5]:to_organization",
+    16704: "external_connections[0]:link_name",
+    16705: "external_connections[1]:link_name",
+    16706: "external_connections[9]:capacity",
+    16707: "external_connections[2]:link_name",
+    16708: "external_connections[0]:from_organization",
+    16709: "external_connections[4]:link_name",
+    16710: "external_connections[3]:link_name",
+    16711: "external_connections[9]:link_name",
+    16712: "external_connections[7]:link_name",
+    16713: "external_connections[8]:link_name",
+    16714: "external_connections[6]:link_name",
+    16715: "external_connections[5]:link_name",
+    16716: "external_connections[4]:from_organization",
+    16717: "external_connections[5]:from_organization",
+    16718: "external_connections[6]:from_organization",
+    16719: "external_connections[2]:to_organization",
+    16720: "external_connections[3]:to_organization",
+    16721: "external_connections[4]:to_organization",
+    16722: "external_connections[6]:to_organization",
+    16723: "external_connections[7]:to_organization",
+    16724: "external_connections[2]:interconnection_method",
+    16725: "external_connections[3]:interconnection_method",
+    16726: "external_connections[4]:interconnection_method",
+    16727: "external_connections[5]:interconnection_method",
+    16728: "external_connections[8]:from_organization",
+    16729: "external_connections[9]:from_organization",
+    16730: "external_connections[0]:to_organization",
+    16731: "external_connections[0]:capacity",
+    16732: "external_connections[1]:capacity",
+    16733: "external_connections[2]:capacity",
+    16734: "external_connections[3]:capacity",
+    16735: "external_connections[4]:capacity",
+    16736: "external_connections[3]:from_organization",
+    16737: "external_connections[2]:from_organization",
+    16738: "external_connections[1]:interconnection_method",
+    16739: "external_connections[7]:interconnection_method",
+    16740: "external_connections[8]:interconnection_method",
+    16741: "external_connections[0]:interconnection_method",
+    16742: "external_connections[9]:interconnection_method",
+    16743: "external_connections[6]:interconnection_method",
+    16744: "non_r_and_e_peers",
+    16746: "traffic_estimate:from_customers",
+    16747: "traffic_estimate:to_customers",
+    16748: "traffic_estimate:from_external",
+    16749: "traffic_estimate:to_external",
+    16750: "commodity_vs_r_e:r_e",  # note that this is free text, so it doesnt map properly
+    16752: "operational_process_automation",  # "Yes" "No" "Planned"
+    16753: "operational_process_automation_tools",
+    16754: "nfv",  # "Yes" "No" "Planned"
+    16755: "nfv_types",  # json list with double quotes
+    16756: "nfv_types-Comment",
+    16757: "network_automation",  # "Yes" "No" "Planned"
+    16758: "network_automation_tasks"  # json list with double quotes
+    # 16759: "network_comments"
+}
+
+SUBORGANIZATION_ROLES = {
+    "Other": "other",
+    "HPC centre": "hpc",
+    "IDC federation": "idc"
+}
+
+CARRIERS = {
+    "NREN provides the local loops": "nren_local_loops",
+    "MAN": "man",
+    "Traffic carried to the backbone by commercial providers": "commercial_provider_backbone",
+    "Traffic carried to the backbone by regional NREN": "regional_nren_backbone",
+    "Other": "other"
+}
+
+CONNECTION = {
+    "Yes - including transit to other networks": "yes_incl_other",
+    "Yes - national NREN access only": "yes_national_nren",
+    "Yes - only if sponsored by a connected institution": "yes_if_sponsored",
+    "No - not eligible for policy reasons": "no_policy",
+    "No - but we offer a direct or IX peering": "no_but_direct_peering",
+    "No - financial restrictions (NREN is unable to charge/recover costs)": "no_financial",
+    "No - other reason / unsure": "no_other"
+}
+
+CHARGING_LEVELS = {
+    "Charges typically higher than for R+E users": "higher_than_r_e_charges",
+    "Same charging model as for R+E users": "same_as_r_e_charges",
+    "Charges typically lower than for R+E users": "lower_than_r_e_charges",
+    "No charges applied if requested by R+E users": "no_charges_if_r_e_requested"
+}
+
+INTERCONNECTION = {
+    "Internet exchange points": "internet_exchange",
+    "Peering at IXP": "internet_exchange",
+    "Open Exchange points": "open_exchange",
+    "Open Exchange points ": "open_exchange",
+    "Directly connected R&E peers": "direct",
+    "Direct peering": "direct",
+    "GEANT": "geant",
+    "Other": "other",
+    "CBF": "other"
+}
+
+VALUE_TO_CODE_MAPPING = {
+    16410: {
+        "Other": "other",
+        "We use a combination of flat fee and usage-based fee": "combination",
+        "We charge a usage-based fee": "usage_based_fee",
+        "We charge a flat fee, based on bandwidth": "flat_fee",
+        "We do not charge them directly": "no_charge"
+    },
+    16446: SUBORGANIZATION_ROLES,
+    16448: SUBORGANIZATION_ROLES,
+    16449: SUBORGANIZATION_ROLES,
+    16450: SUBORGANIZATION_ROLES,
+    16451: SUBORGANIZATION_ROLES,
+    16503: {
+        "Anti Virus": "anti_virus",
+        "Anti-Spam": "anti_spam",
+        "Firewall": "firewall",
+        "DDoS mitigation": "ddos_mitigation",
+        "Network monitoring": "monitoring",
+        "IPS/IDS": "ips_ids",
+        "ACL": "acl",
+        "Network segmentation": "segmentation",
+        "Integrity checking": "integrity_checking",
+        "Other": "other"
+    },
+    16763: {
+        "We participate in GEANT Crisis workshops such as CLAW": "geant_workshops",
+        "No, we have not done any crisis exercises or trainings": "none",
+        "We participated in National crisis exercises ": "national_excercises",
+        "We had a real crisis": "real_crisis",
+        "We run our own simulation exercises": "simulation_excercises",
+        "We run our own tabletop exercises": "tabletop_exercises",
+        "We have done/participated in other exercises or trainings": "other_excercises"
+    },
+    16581: CARRIERS,
+    16582: CARRIERS,
+    16583: CARRIERS,
+    16584: CARRIERS,
+    16585: CARRIERS,
+    16586: CARRIERS,
+    16587: CARRIERS,
+    16588: CARRIERS,
+    16589: CARRIERS,
+    16590: CARRIERS,
+    16646: CONNECTION,
+    16647: CONNECTION,
+    16648: CONNECTION,
+    16649: CONNECTION,
+    16650: CONNECTION,
+    16652: CHARGING_LEVELS,
+    16653: CHARGING_LEVELS,
+    16654: CHARGING_LEVELS,
+    16668: {
+        "NREN owns and operates equipment": "nren_owns_and_operates",
+        "NREN owns equipment and operation is outsourced": "nren_owns_outsourced_operation",
+        "Ownership and management are out-sourced (turn-key model)": "outsourced_ownership_and_operation",
+        "Other": "other"
+    },
+    16672: {
+        "Looking Glass": "looking_glass",
+        "Network or services Status Dashboard": "status_dashboard",
+        "Historical traffic volume information": "historical_traffic_volumes",
+        "Netflow analysis tool": "netflow_analysis",
+        "Other": "other"
+    },
+    16676: {
+        "SPAN ports": "span_ports",
+        "Passive optical TAPS": "taps",
+        "Both": "both"
+    },
+    16679: {
+        "LogRythm": "LogRythm",
+        "Securonix": "Securonix",
+        "Splunk": "Splunk",
+        "Other": "other"
+    },
+    16681: {
+        "Sectigo (outside of TCS)": "Sectigo",
+        "GlobalSign": "GlobalSign",
+        "TCS": "TCS",
+        "GeoDaddy": "GeoDaddy",
+        "GeoTrust": "GeoTrust",
+        "Digicert": "Digicert",
+        "Other": "other"
+    },
+    16724: INTERCONNECTION,
+    16725: INTERCONNECTION,
+    16726: INTERCONNECTION,
+    16727: INTERCONNECTION,
+    16738: INTERCONNECTION,
+    16739: INTERCONNECTION,
+    16740: INTERCONNECTION,
+    16741: INTERCONNECTION,
+    16742: INTERCONNECTION,
+    16743: INTERCONNECTION,
+    16755: {
+        "Routers/switches": "routers",
+        "Firewalls": "firewalls",
+        "Load balancers": "load_balancers",
+        "VPN Concentrator Services": "vpn_concentrators",
+        "Other": "other"
+    },
+    16758: {
+        "Device Provisioning": "provisioning",
+        "Data Collection": "data_collection",
+        "Configuration Management": "config_management",
+        "Compliance": "compliance",
+        "Reporting": "reporting",
+        "Troubleshooting": "troubleshooting"
+    }
+}
diff --git a/compendium_v2/db/__init__.py b/compendium_v2/db/__init__.py
index 13719e0a80d28d997ecf3f22b687c8cc1049a118..190463b3181d32291fcd52569a7ff7fb885751c4 100644
--- a/compendium_v2/db/__init__.py
+++ b/compendium_v2/db/__init__.py
@@ -1,4 +1,5 @@
 import logging
+from contextlib import contextmanager
 
 from flask_sqlalchemy import SQLAlchemy
 from sqlalchemy import MetaData
@@ -15,3 +16,15 @@ metadata_obj = MetaData(naming_convention={
 })
 
 db = SQLAlchemy(metadata=metadata_obj)
+
+
+@contextmanager
+def session_scope():
+    """Provide a transactional scope around a series of operations."""
+    session = db.session
+    try:
+        yield session
+        session.commit()
+    except:  # noqa: E722
+        session.rollback()
+        raise
diff --git a/compendium_v2/db/auth_model.py b/compendium_v2/db/auth_model.py
new file mode 100644
index 0000000000000000000000000000000000000000..3e3fa3781707b8cfdb4326f952353dd176576973
--- /dev/null
+++ b/compendium_v2/db/auth_model.py
@@ -0,0 +1,72 @@
+# annotations import is required for sqlalchemy annotations to work properly
+from __future__ import annotations
+import logging
+
+from datetime import datetime
+from enum import Enum
+from uuid import UUID, uuid4
+
+from typing_extensions import Annotated
+
+from sqlalchemy import Table, Column
+from sqlalchemy.orm import Mapped, mapped_column, relationship
+from sqlalchemy.schema import ForeignKey
+from flask_login import UserMixin  # type: ignore
+
+from compendium_v2.db import db
+from compendium_v2.db.model import NREN
+
+logger = logging.getLogger(__name__)
+
+
+class ROLES(Enum):
+    admin = "admin"
+    user = "user"
+
+
+uuid_pk = Annotated[UUID, mapped_column(primary_key=True, default=lambda _: str(uuid4()))]
+int_pk_fkNREN = Annotated[int, mapped_column(ForeignKey("nren.id"), primary_key=True)]
+
+# TODO: active should be default False and require admin approval
+# (ROLES.admin) when there is a way to handle this in a GUI
+active = Annotated[bool, mapped_column(db.Boolean, default=True)]
+roles = Annotated[ROLES, mapped_column(db.Enum(ROLES), default=ROLES.user)]
+
+# annotations for many-to-many relationships
+user_id = Annotated[UUID, mapped_column(ForeignKey("user.id"), primary_key=True)]
+nren_id = Annotated[int, mapped_column(ForeignKey("nren.id"), primary_key=True)]
+
+_datetime = Annotated[datetime, mapped_column(db.DateTime, default=datetime.utcnow)]
+
+
+UserNrenMember = Table(
+    "user_nren_member",
+    db.Model.metadata,
+    Column("user_id", ForeignKey("user.id")),
+    Column("nren_id", ForeignKey("nren.id")),
+)
+
+
+# Unfortunately flask-sqlalchemy doesnt fully support DeclarativeBase yet.
+# See https://github.com/pallets-eco/flask-sqlalchemy/issues/1140
+# mypy: disable-error-code="name-defined"
+class User(UserMixin, db.Model):
+    __tablename__ = 'user'
+    id: Mapped[uuid_pk]
+    active: Mapped[active]
+    roles: Mapped[roles]
+    email: Mapped[str]
+    fullname: Mapped[str]
+    oidc_sub: Mapped[str]  # ID from OIDC provider
+
+    created_at: Mapped[_datetime]
+    last_login: Mapped[_datetime]
+
+    nrens: Mapped[NREN] = relationship(secondary=UserNrenMember, lazy='joined')
+
+    def __repr__(self):
+        return '<User %r>' % self.email
+
+    @property
+    def is_active(self):
+        return self.active
diff --git a/compendium_v2/db/model.py b/compendium_v2/db/model.py
index a7c35265673b8d30225760b7e64f5802b6a99ab9..e3e637aea0edbda98ad577fe4e2d24cbfe47d19e 100644
--- a/compendium_v2/db/model.py
+++ b/compendium_v2/db/model.py
@@ -1,3 +1,6 @@
+# annotations import is required for sqlalchemy annotations to work properly
+from __future__ import annotations
+
 import logging
 from decimal import Decimal
 from enum import Enum
diff --git a/compendium_v2/db/survey_model.py b/compendium_v2/db/survey_model.py
new file mode 100644
index 0000000000000000000000000000000000000000..efaaf2aef961f823ba5c9c1182574207cd132415
--- /dev/null
+++ b/compendium_v2/db/survey_model.py
@@ -0,0 +1,45 @@
+# annotations import is required for sqlalchemy annotations to work properly
+from __future__ import annotations
+
+import logging
+
+from typing import Dict, Any
+from typing_extensions import Annotated
+
+from sqlalchemy.orm import Mapped, mapped_column, relationship
+from sqlalchemy.schema import ForeignKey
+from sqlalchemy.types import JSON
+
+
+from compendium_v2.db import db
+from compendium_v2.db.model import NREN
+
+
+logger = logging.getLogger(__name__)
+
+
+int_pk = Annotated[int, mapped_column(primary_key=True)]
+int_pk_fkNREN = Annotated[int, mapped_column(ForeignKey("nren.id"), primary_key=True)]
+int_pk_fkSurvey = Annotated[int, mapped_column(ForeignKey("survey.year"), primary_key=True)]
+json = Annotated[Dict[str, Any], mapped_column(JSON)]
+
+
+# Unfortunately flask-sqlalchemy doesnt fully support DeclarativeBase yet.
+# See https://github.com/pallets-eco/flask-sqlalchemy/issues/1140
+# mypy: disable-error-code="name-defined"
+
+class Survey(db.Model):
+    __tablename__ = 'survey'
+    year: Mapped[int_pk]
+    survey: Mapped[json]
+    # status column?
+
+
+class SurveyResponse(db.Model):
+    __tablename__ = 'survey_response'
+    nren_id: Mapped[int_pk_fkNREN]
+    nren: Mapped[NREN] = relationship(lazy='joined')
+    survey_year: Mapped[int_pk_fkSurvey]
+    survey: Mapped[Survey] = relationship(lazy='joined')
+    answers: Mapped[json]
+    # completed column?? I think we need that..
diff --git a/compendium_v2/environment.py b/compendium_v2/environment.py
index 1007880149d538a2106a73a14ab818f8e81e0fe0..fb8e8b7cdc575faba73a0685ba5950b3618cf415 100644
--- a/compendium_v2/environment.py
+++ b/compendium_v2/environment.py
@@ -1,10 +1,6 @@
 import json
 import logging.config
 import os
-import pkg_resources
-import sentry_sdk
-from sentry_sdk.integrations.flask import FlaskIntegration
-
 
 LOGGING_DEFAULT_CONFIG = {
     'version': 1,
@@ -21,7 +17,7 @@ LOGGING_DEFAULT_CONFIG = {
             'level': 'DEBUG',
             'formatter': 'simple',
             'stream': 'ext://sys.stdout'
-        }
+        },
 
     },
 
@@ -53,11 +49,4 @@ def setup_logging():
         with open(filename) as f:
             logging_config = json.loads(f.read())
 
-    sentry_dsn = os.getenv('SENTRY_DSN')
-    if sentry_dsn:
-        sentry_sdk.init(
-            dsn=sentry_dsn,
-            integrations=[FlaskIntegration()],
-            release=pkg_resources.get_distribution('compendium-v2').version)
-
     logging.config.dictConfig(logging_config)
diff --git a/compendium_v2/migrations/versions/030134b436a9_add_user_model.py b/compendium_v2/migrations/versions/030134b436a9_add_user_model.py
new file mode 100644
index 0000000000000000000000000000000000000000..14728902c05263bdb1832400a95b033ffa8f448b
--- /dev/null
+++ b/compendium_v2/migrations/versions/030134b436a9_add_user_model.py
@@ -0,0 +1,43 @@
+"""add user model
+
+Revision ID: 030134b436a9
+Revises: 366171c7ba9e
+Create Date: 2023-06-22 14:39:18.161089
+
+"""
+from alembic import op
+import sqlalchemy as sa
+
+
+# revision identifiers, used by Alembic.
+revision = '030134b436a9'
+down_revision = '366171c7ba9e'
+branch_labels = None
+depends_on = None
+
+
+def upgrade():
+    op.create_table(
+        'user',
+        sa.Column('id', sa.Uuid(), nullable=False),
+        sa.Column('active', sa.Boolean(), nullable=False),
+        sa.Column('roles', sa.Enum('admin', 'user', name='roles'), nullable=False),
+        sa.Column('email', sa.String(), nullable=False),
+        sa.Column('fullname', sa.String(), nullable=False),
+        sa.Column('oidc_sub', sa.String(), nullable=False),
+        sa.Column('created_at', sa.DateTime(), nullable=False),
+        sa.Column('last_login', sa.DateTime(), nullable=False),
+        sa.PrimaryKeyConstraint('id', name=op.f('pk_user'))
+    )
+    op.create_table(
+        'user_nren_member',
+        sa.Column('user_id', sa.Uuid(), nullable=True),
+        sa.Column('nren_id', sa.Integer(), nullable=True),
+        sa.ForeignKeyConstraint(['nren_id'], ['nren.id'], name=op.f('fk_user_nren_member_nren_id_nren')),
+        sa.ForeignKeyConstraint(['user_id'], ['user.id'], name=op.f('fk_user_nren_member_user_id_user'))
+    )
+
+
+def downgrade():
+    op.drop_table('user_nren_member')
+    op.drop_table('user')
diff --git a/compendium_v2/migrations/versions/366171c7ba9e_add_survey_and_response_tables.py b/compendium_v2/migrations/versions/366171c7ba9e_add_survey_and_response_tables.py
new file mode 100644
index 0000000000000000000000000000000000000000..24247ad8d77cccc69940b4c9b5931eae20942828
--- /dev/null
+++ b/compendium_v2/migrations/versions/366171c7ba9e_add_survey_and_response_tables.py
@@ -0,0 +1,43 @@
+"""Add survey and response tables
+
+Revision ID: 366171c7ba9e
+Revises: 42a826af0431
+Create Date: 2023-06-15 11:33:28.549679
+
+"""
+from alembic import op
+import sqlalchemy as sa
+
+
+# revision identifiers, used by Alembic.
+revision = '366171c7ba9e'
+down_revision = '42a826af0431'
+branch_labels = None
+depends_on = None
+
+
+def upgrade():
+    # ### commands auto generated by Alembic - please adjust! ###
+    op.create_table(
+        'survey',
+        sa.Column('year', sa.Integer(), nullable=False),
+        sa.Column('survey', sa.JSON(), nullable=False),
+        sa.PrimaryKeyConstraint('year', name=op.f('pk_survey'))
+    )
+    op.create_table(
+        'survey_response',
+        sa.Column('nren_id', sa.Integer(), nullable=False),
+        sa.Column('survey_year', sa.Integer(), nullable=False),
+        sa.Column('answers', sa.JSON(), nullable=False),
+        sa.ForeignKeyConstraint(['nren_id'], ['nren.id'], name=op.f('fk_survey_response_nren_id_nren')),
+        sa.ForeignKeyConstraint(['survey_year'], ['survey.year'], name=op.f('fk_survey_response_survey_year_survey')),
+        sa.PrimaryKeyConstraint('nren_id', 'survey_year', name=op.f('pk_survey_response'))
+    )
+    # ### end Alembic commands ###
+
+
+def downgrade():
+    # ### commands auto generated by Alembic - please adjust! ###
+    op.drop_table('survey_response')
+    op.drop_table('survey')
+    # ### end Alembic commands ###
diff --git a/compendium_v2/publishers/survey_publisher_v1.py b/compendium_v2/publishers/survey_publisher_v1.py
index 147c9f7f45a9afabcda82779a1a7f5d2abe3d28b..0731fe5b1a2752b060d4242aee6c54f16b9c3a65 100644
--- a/compendium_v2/publishers/survey_publisher_v1.py
+++ b/compendium_v2/publishers/survey_publisher_v1.py
@@ -7,6 +7,7 @@ Missing info is filled in from the survey db for some questions.
 Registered as click cli command when installing compendium-v2.
 
 """
+from __future__ import annotations
 import logging
 import math
 import click
diff --git a/compendium_v2/routes/api.py b/compendium_v2/routes/api.py
index a1095c2449291ef3d279de27757cba8dc6ae6492..76ed727e5aa9a3162e9a51cc2ee4dd196dde345b 100644
--- a/compendium_v2/routes/api.py
+++ b/compendium_v2/routes/api.py
@@ -10,6 +10,8 @@ from compendium_v2.routes.staff import routes as staff_routes
 from compendium_v2.routes.organization import routes as org_routes
 from compendium_v2.routes.ec_projects import routes as ec_routes
 from compendium_v2.routes.policy import routes as policy
+from compendium_v2.routes.survey import routes as survey
+from compendium_v2.routes.user import routes as user_routes
 
 routes = Blueprint('compendium-v2-api', __name__)
 routes.register_blueprint(budget_routes, url_prefix='/budget')
@@ -19,6 +21,9 @@ routes.register_blueprint(staff_routes, url_prefix='/staff')
 routes.register_blueprint(org_routes, url_prefix='/organization')
 routes.register_blueprint(ec_routes, url_prefix='/ec-project')
 routes.register_blueprint(policy, url_prefix='/policy')
+routes.register_blueprint(survey, url_prefix='/survey')
+routes.register_blueprint(user_routes, url_prefix='/user')
+
 
 logger = logging.getLogger(__name__)
 
diff --git a/compendium_v2/routes/authentication.py b/compendium_v2/routes/authentication.py
new file mode 100644
index 0000000000000000000000000000000000000000..1c50f619c5af2f73436d8a7d3f33829b04831231
--- /dev/null
+++ b/compendium_v2/routes/authentication.py
@@ -0,0 +1,45 @@
+
+from flask_login import login_required, login_user, logout_user  # type: ignore
+from flask import Blueprint, url_for, redirect
+from compendium_v2.auth import get_client
+from compendium_v2.auth.session_management import fetch_user, create_user
+
+routes = Blueprint('authentication', __name__)
+
+
+@routes.route('/login')
+def login():
+    client = get_client()
+
+    # _external uses headers to determine the full URL when behind a reverse proxy
+    redirect_uri = url_for('authentication.authorize', _external=True)
+    return client.authorize_redirect(redirect_uri)
+
+
+@routes.route('/authorize')
+def authorize():
+    client = get_client()
+    token = client.authorize_access_token()
+
+    profile = client.userinfo(token=token)
+
+    if 'email' not in profile or not profile['email']:
+        return '<h3>Authentication failed: Invalid user response from provider</h3>', 400
+
+    user = fetch_user(profile)
+    if user is None:
+        # create a new user
+        user = create_user(profile['email'], profile['name'], profile['sub'])
+    login_user(user)
+
+    # redirect to /survey since we only require login for this part of the app
+    return redirect(url_for('compendium-v2-default.survey_index'))
+
+
+@routes.route("/logout")
+@login_required
+def logout():
+    # The user will be logged out of the application, but not the IDP.
+    # If they visit again before their oauth token expires, they are immediately logged in.
+    logout_user()
+    return redirect('/')
diff --git a/compendium_v2/routes/default.py b/compendium_v2/routes/default.py
index 9d2ed2f9bef6e6e8d742a7d8ad02d41d99f90f5d..3592acca274052c9480a34413b27aa4af87b073f 100644
--- a/compendium_v2/routes/default.py
+++ b/compendium_v2/routes/default.py
@@ -1,6 +1,5 @@
 import pkg_resources
 from flask import Blueprint, jsonify, render_template, Response
-
 from compendium_v2.routes import common
 
 routes = Blueprint('compendium-v2-default', __name__)
@@ -44,6 +43,21 @@ def index(path):
     return render_template('index.html')
 
 
+@routes.route('/survey', defaults={'path': ''}, methods=['GET'])
+@routes.route('/survey/', defaults={'path': ''}, methods=['GET'])
+@routes.route('/survey/<path:path>', methods=['GET'])
+def survey_index(path):
+    is_api = path.startswith('api')
+
+    if is_api:
+        # return 404 for API requests that don't match a route
+        return Response(status=404, mimetype='application/json', response='{"error": "Not Found"}')
+
+    # fallback to serving the SPA through index.html for all other requests
+    # https://flask.palletsprojects.com/en/2.0.x/patterns/singlepageapplications/
+    return render_template('survey-index.html')
+
+
 @routes.route('/version', methods=['GET', 'POST'])
 @common.require_accepts_json
 def version():
diff --git a/compendium_v2/routes/survey.py b/compendium_v2/routes/survey.py
new file mode 100644
index 0000000000000000000000000000000000000000..4b29b45dc44f1af0307b09d56257d13dc5a3d497
--- /dev/null
+++ b/compendium_v2/routes/survey.py
@@ -0,0 +1,122 @@
+import json
+import logging
+from enum import Enum
+from pathlib import Path
+from typing import Any, Optional
+
+from flask import Blueprint, jsonify, request
+from sqlalchemy import select
+
+from compendium_v2.db import db
+from compendium_v2.db.model import NREN
+from compendium_v2.db.survey_model import Survey, SurveyResponse
+from compendium_v2.routes import common
+
+
+routes = Blueprint('survey', __name__)
+logger = logging.getLogger(__name__)
+
+
+# TODO (partial) schemas
+
+class VerificationStatus(str, Enum):
+    New = "new"                   # a question that was not answered last year
+    Answered = "answered"         # a question that was not answered last year but has an answer now
+    Unverified = "unverified"     # a question that has its answered copied from last year
+    Verified = "verified"         # a question for which last years answer was verified
+    Edited = "edited"             # a question for which last years answer was edited
+
+
+@routes.route('/nrens', methods=['GET'])
+@common.require_accepts_json
+def get_nrens() -> Any:
+    entries = [
+        {"id": entry.id, "name": entry.name}
+        for entry in db.session.scalars(select(NREN).order_by(NREN.name))
+    ]
+    return jsonify(entries)
+
+
+@routes.route('/open/<string:nren_name>', methods=['GET'])
+@common.require_accepts_json
+def open_survey(nren_name) -> Any:
+
+    # just a hardcoded year for development for now
+    nren = db.session.execute(select(NREN).filter(NREN.name == nren_name)).scalar_one()
+    year = 1989
+    last_year = 2022
+
+    survey = db.session.scalar(select(Survey).where(Survey.year == year))
+    if survey is None or survey.survey == {}:
+        # TODO remove this at some point, its just convenient for now while we are changing the survey model a lot
+        # or is it really?? we can also keep the surveys on disk, which makes it really easy to diff, etc
+        p = Path(__file__).with_name('survey_model.json')
+        with p.open('r') as f:
+            survey = json.load(f)
+
+    # TODO add some magic strings in the json (like the year, url validation regex, maybe countries list)
+    # and interpolate them here
+
+    data: Optional[dict] = None
+    page = 0
+    verification_status = {}
+
+    response = db.session.scalar(
+        select(SurveyResponse).where(SurveyResponse.survey_year == year).where(SurveyResponse.nren_id == nren.id)
+    )
+    previous_response = db.session.scalar(
+        select(SurveyResponse).where(SurveyResponse.survey_year == last_year).where(SurveyResponse.nren_id == nren.id)
+    )
+
+    if response:
+        data = response.answers["data"]
+        page = response.answers["page"]
+        verification_status = response.answers["verification_status"]
+    elif previous_response:
+        # TODO add a 'migration' hook here for updating data per year
+        previous_response_data: dict = previous_response.answers["data"]
+        data = previous_response_data
+        verification_status = {question_name: VerificationStatus.Unverified for question_name in data.keys()}
+
+    open_survey: dict = {
+        "model": survey,
+        "data": data,
+        "page": page,
+        "verification_status": verification_status
+    }
+
+    return jsonify(open_survey)
+
+
+@routes.route('/save/<string:nren_name>', methods=['POST'])
+@common.require_accepts_json
+def save_survey(nren_name) -> Any:
+
+    # just a hardcoded year for development for now
+    nren = db.session.execute(select(NREN).filter(NREN.name == nren_name)).scalar_one()
+    year = 1989
+    survey = db.session.scalar(select(Survey).where(Survey.year == year))
+    if survey is None:
+        survey = Survey(year=year, survey={})
+        db.session.add(survey)
+
+    response = db.session.scalar(
+        select(SurveyResponse).where(SurveyResponse.survey_year == year).where(SurveyResponse.nren_id == nren.id)
+    )
+    if response is None:
+        response = SurveyResponse(survey_year=year, nren_id=nren.id)
+        db.session.add(response)
+
+    save_survey = request.json
+    if not save_survey:
+        raise Exception("Invalid format")
+
+    response.answers = {
+        "data": save_survey["data"],
+        "page": save_survey["page"],
+        "verification_status": save_survey["verification_status"]
+    }
+
+    db.session.commit()
+
+    return {'success': True}
diff --git a/compendium_v2/routes/survey_model.json b/compendium_v2/routes/survey_model.json
new file mode 100644
index 0000000000000000000000000000000000000000..fe7c7fdf569495b92af7ccd81c0139188df3374c
--- /dev/null
+++ b/compendium_v2/routes/survey_model.json
@@ -0,0 +1,2775 @@
+{
+ "checkErrorsMode": "onValueChanged",
+ "title": "Compendium",
+ "logoPosition": "right",
+ "pages": [
+  {
+   "name": "organization",
+   "elements": [
+    {
+     "type": "panel",
+     "name": "panel1",
+     "elements": [
+      {
+       "type": "text",
+       "name": "budget",
+       "title": "What is your NRENs budget for 2022 or 2022/2023 in million euro?",
+       "description": "If your budget is not per calendar year, please provide figures for the budget that covers the largest part of 2022 including GEANT subsidy.",
+       "validators": [
+        {
+         "type": "numeric",
+         "minValue": 0
+        }
+       ]
+      },
+      {
+       "type": "multipletext",
+       "name": "income_sources",
+       "title": "Estimate (in % of income) the sources of your NREN-related income for 2022 or 2022/2023.",
+       "description": "European Funding should include GÉANT funding.",
+       "validators": [
+        {
+         "type": "expression",
+         "text": "The percentages should add up to 100",
+         "expression": "({income_sources.client_institutions} + {income_sources.gov_public_bodies} + {income_sources.european_funding} + {income_sources.commercial} + {income_sources.other} = 100) or ({income_sources} empty)"
+        }
+       ],
+       "items": [
+        {
+         "name": "client_institutions",
+         "title": "Client institutions (universities/schools/research institutes/commercial/other)",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0,
+           "maxValue": 100
+          }
+         ]
+        },
+        {
+         "name": "gov_public_bodies",
+         "title": "Government/public bodies",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0,
+           "maxValue": 100
+          }
+         ]
+        },
+        {
+         "name": "european_funding",
+         "title": "European funding",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0,
+           "maxValue": 100
+          }
+         ]
+        },
+        {
+         "name": "commercial",
+         "title": "Commercial services (e.g. domain reg, security)",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0,
+           "maxValue": 100
+          }
+         ]
+        },
+        {
+         "name": "other",
+         "title": "Other",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0,
+           "maxValue": 100
+          }
+         ]
+        }
+       ]
+      },
+      {
+       "type": "dropdown",
+       "name": "charging_mechanism",
+       "title": "How do you charge your client institutions?",
+       "choices": [
+        {
+         "value": "no_charge",
+         "text": "We do not charge them directly"
+        },
+        {
+         "value": "flat_fee",
+         "text": "We charge a flat fee, based on bandwidth"
+        },
+        {
+         "value": "usage_based_fee",
+         "text": "We charge a usage-based fee"
+        },
+        {
+         "value": "combination",
+         "text": "We use a combination of flat fee and usage-based fee"
+        },
+        {
+         "value": "other",
+         "text": "Other"
+        }
+       ]
+      }
+     ],
+     "title": "Budget, Income and Billing"
+    },
+    {
+     "type": "panel",
+     "name": "staff",
+     "elements": [
+      {
+       "type": "multipletext",
+       "name": "staff_employment_type",
+       "title": "What is the number of staff engaged in the NREN activities? ",
+       "description": "Please distinguish permanent\f and subcontracted using the boxes below. Please put answer in Full Time Equivalent (FTE's).",
+       "items": [
+        {
+         "name": "permanent_fte",
+         "title": "Permanent staff",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          }
+         ]
+        },
+        {
+         "name": "subcontracted_fte",
+         "title": "Subcontracted staff",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          }
+         ]
+        }
+       ]
+      },
+      {
+       "type": "multipletext",
+       "name": "staff_roles",
+       "title": "5. Which of the following functional areas does your NREN have and how much FTE is dedicated to each? ",
+       "items": [
+        {
+         "name": "technical_fte",
+         "title": "Technical roles",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          }
+         ]
+        },
+        {
+         "name": "nontechnical_fte",
+         "title": "Non-technical roles",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          }
+         ]
+        }
+       ]
+      },
+      {
+       "type": "radiogroup",
+       "name": "parent_organization",
+       "title": "Is your NREN part of a larger organisation (e.g. ministry, university)?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "text",
+       "name": "parent_organization_name",
+       "visibleIf": "{parent_organization} = 'Yes'",
+       "indent": 1,
+       "title": "What is the name of this larger organisation?"
+      },
+      {
+       "type": "radiogroup",
+       "name": "suborganizations",
+       "title": "Does your NREN have sub-organisations?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "matrixdynamic",
+       "name": "suborganization_details",
+       "visibleIf": "{suborganizations} = 'Yes'",
+       "indent": 1,
+       "title": "Please fill in the details:",
+       "columns": [
+        {
+         "name": "suborganization_name",
+         "title": "Name of your sub-organisation?",
+         "cellType": "text",
+         "isRequired": true
+        },
+        {
+         "name": "suborganization_role",
+         "title": "Role of your sub-organisation?",
+         "cellType": "dropdown",
+         "choices": [
+          {
+           "value": "idc",
+           "text": "IDC federation"
+          },
+          {
+           "value": "hpc",
+           "text": "HPC centre"
+          }
+         ],
+         "showOtherItem": true
+        }
+       ],
+       "rowCount": 1,
+       "maxRowCount": 30
+      },
+      {
+       "type": "radiogroup",
+       "name": "ec_projects",
+       "title": "Other than GÉANT, is your NREN involved in other EC projects?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "matrixdynamic",
+       "name": "ec_project_names",
+       "visibleIf": "{ec_projects} = 'Yes'",
+       "indent": 1,
+       "title": "Please list the name of the projects\n",
+       "description": "Use one line per project.",
+       "columns": [
+        {
+         "name": "ec_project_name",
+         "title": "Project name",
+         "cellType": "text"
+        }
+       ],
+       "rowCount": 1
+      }
+     ],
+     "title": "Staff and Projects"
+    },
+    {
+     "type": "panel",
+     "name": "basic_information",
+     "elements": [
+      {
+       "type": "text",
+       "name": "full_name_english",
+       "title": "Full name of the organisation (in English):"
+      },
+      {
+       "type": "text",
+       "name": "full_name_national_languages",
+       "title": "Full name of the organisation in the national language(s):",
+       "description": "Please use the Latin alphabet."
+      },
+      {
+       "type": "text",
+       "name": "abbreviation_english",
+       "title": "Abbreviation in English (if applicable):",
+       "description": "Please always provide this information."
+      },
+      {
+       "type": "text",
+       "name": "abbreviation_national_languages",
+       "title": "Abbreviation in the national language(s) (if applicable):",
+       "description": "Please always provide this information. Please use the Latin alphabet."
+      },
+      {
+       "type": "text",
+       "name": "street_name_and_number",
+       "title": "Number and street name:"
+      },
+      {
+       "type": "text",
+       "name": "city",
+       "title": "Postal town (county):"
+      },
+      {
+       "type": "text",
+       "name": "postal_code",
+       "title": "Postal Code:"
+      },
+      {
+       "type": "dropdown",
+       "name": "country",
+       "title": "Country:",
+       "choices": ["Afghanistan","Albania","Algeria","Angola","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia And Herzegowina","Botswana","Brazil","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Chad","Chile","China","Colombia","Congo","Congo, The Democratic Republic Of The","Costa Rica","Cote D'ivoire","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Dominican Republic","Ecuador","Egypt","El Salvador","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guyana","Haiti","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran (islamic Republic Of)","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Korea, Republic Of","Kuwait","Kyrgyzstan","Lao People's Democratic Republic","Latvia","Lebanon","Lesotho","Liberia","Libyan Arab Jamahiriya","Lithuania","Luxembourg","Macedonia, North","Madagascar","Malawi","Malaysia","Mali","Malta","Mauritania","Mauritius","Mexico","Micronesia, Federated States Of","Moldova, Republic Of","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","Norway","Oman","Pakistan","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Puerto Rico","Qatar","Romania","Russian Federation","Rwanda","Samoa","Saudi Arabia","Senegal","Serbia","Serbia","Singapore","Slovakia (Slovak Republic)","Slovenia","Somalia","South Africa","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syrian Arab Republic","Taiwan","Tajikistan","Tanzania, United Republic Of","Thailand","Togo","Trinidad And Tobago","Tunisia","Turkey","Turkmenistan","Uganda","Ukraine","United Arab Emirates","United Kingdom","United Kingdom","United States","Uruguay","Uzbekistan","Venezuela","Vietnam","Virgin Islands (british)","Yemen","Zambia","Zimbabwe"]
+      },
+      {
+       "type": "text",
+       "name": "phone_number",
+       "title": "Phone number:",
+       "inputType": "tel"
+      },
+      {
+       "type": "text",
+       "name": "email_address",
+       "title": "General email address:",
+       "inputType": "email",
+       "validators": [
+        {
+         "type": "email"
+        }
+       ]
+      },
+      {
+       "type": "text",
+       "name": "website",
+       "title": "Website:",
+       "inputType": "url",
+       "validators": [
+        {
+         "type": "regex",
+         "text": "Please provide a single valid url",
+         "regex": "^(https?:\\/\\/)?([\\da-zA-Z\\.-]+\\.[a-zA-Z\\.]{2,6}|[\\d\\.]+)([\\/:?=&#%]{1}[\\d_a-zA-Z\\.-]+)*[\\/\\?]?$"
+        }
+       ]
+      }
+     ],
+     "title": "Basic Information"
+    },
+    {
+     "type": "comment",
+     "name": "organization_comments",
+     "title": "Comments regarding this section:"
+    }
+   ],
+   "title": "Organisation"
+  },
+  {
+   "name": "policies",
+   "elements": [
+    {
+     "type": "panel",
+     "name": "policy",
+     "elements": [
+      {
+       "type": "radiogroup",
+       "name": "corporate_strategy",
+       "title": "Have you made any updates to your corporate strategy over the last year?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "text",
+       "name": "corporate_strategy_url",
+       "title": "Please provide the URL for your latest corporate strategic plan?",
+       "inputType": "url",
+       "validators": [
+        {
+         "type": "regex",
+         "text": "Please provide a single valid url",
+         "regex": "^(https?:\\/\\/)?([\\da-zA-Z\\.-]+\\.[a-zA-Z\\.]{2,6}|[\\d\\.]+)([\\/:?=&#%]{1}[\\d_a-zA-Z\\.-]+)*[\\/\\?]?$"
+        }
+       ]
+      },
+      {
+       "type": "matrixdropdown",
+       "name": "policies",
+       "title": "Does your NREN have the following policies?",
+       "hideCheckboxLabels": true,
+       "columns": [
+        {
+         "name": "available",
+         "title": "Policy available",
+         "cellType": "checkbox",
+         "choices": [
+          {
+           "value": "yes",
+           "text": "Yes"
+          }
+         ]
+        },
+        {
+         "name": "url",
+         "title": "Please provide the URL",
+         "cellType": "text",
+         "visibleIf": "{row.available} = ['yes']",
+         "inputType": "url",
+         "validators": [
+          {
+           "type": "regex",
+           "text": "Please provide a single valid url",
+           "regex": "^(https?:\\/\\/)?([\\da-zA-Z\\.-]+\\.[a-zA-Z\\.]{2,6}|[\\d\\.]+)([\\/:?=&#%]{1}[\\d_a-zA-Z\\.-]+)*[\\/\\?]?$"
+          }
+         ]
+        }
+       ],
+       "cellType": "checkbox",
+       "rows": [
+        {
+         "text":"Environmental Policy",
+         "value":"environmental_policy"
+        },
+        {
+         "text":"Equality Opportunity Policy",
+         "value":"equal_opportunity_policy"
+        },
+        {
+         "text":"Gender Equality Policy",
+         "value":"gender_equality_policy"
+        },
+        {
+         "text":"Connectivity Policy",
+         "value":"connectivity_policy"
+        },
+        {
+         "text":"Acceptable Use Policy (AUP)",
+         "value":"acceptable_use_policy"
+        },
+        {
+         "text":"Organisational privacy notice",
+         "value":"privacy_notice"
+        },
+        {
+         "text":"Dedicated contact for data protection, privacy or GDPR queries",
+         "value":"data_protection_contact"
+        }
+       ],
+       "rowTitleWidth": "20%"
+      },
+      {
+       "type": "radiogroup",
+       "name": "central_software_procurement",
+       "title": "Do you centrally procure software for your customers?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "text",
+       "name": "central_procurement_amount",
+       "visibleIf": "{central_software_procurement} = 'yes'",
+       "indent": 1,
+       "title": "What is the total amount (in Euro) that you procured in 2022 or 2022/2023 on behalf of your customers?",
+       "validators": [
+        {
+         "type": "numeric",
+         "minValue": 0
+        },
+        {
+         "type": "regex",
+         "text": "Please round to a whole number",
+         "regex": "^[0-9]*$"
+        }
+       ]
+      },
+      {
+       "type": "radiogroup",
+       "name": "formal_service_management_framework",
+       "title": "Does your NREN operate a formal service management framework for all of your services?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "radiogroup",
+       "name": "service_level_targets",
+       "title": "Are Service Level Targets available for your NREN services?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "radiogroup",
+       "name": "service_portfolio_changes",
+       "title": "Has your NREN made any changes to its service portfolio for its users?",
+       "description": "Please note any changes here and amend the Service Matrix at the last page of this survey",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "matrixdropdown",
+       "name": "service_matrix",
+       "title": "Which service types are available for which user types?",
+       "columns": [
+        {
+         "name": "service_types",
+         "title": "Service types",
+         "cellType": "checkbox",
+         "showInMultipleColumns": true,
+         "choices": [
+          {
+           "value": "network_services",
+           "text": "Network services"
+          },
+          {
+           "value": "isp_support",
+           "text": "ISP support"
+          },
+          {
+           "value": "security",
+           "text": "Security"
+          },
+          {
+           "value": "identity",
+           "text": "Identity/T&I"
+          },
+          {
+           "value": "collaboration",
+           "text": "Collaboration"
+          },
+          {
+           "value": "multimedia",
+           "text": "Multimedia"
+          },
+          {
+           "value": "storage_and_hosting",
+           "text": "Storage and Hosting"
+          },
+          {
+           "value": "professional_services",
+           "text": "Professional services"
+          }
+         ]
+        }
+       ],
+       "rows": [
+        {
+         "value": "universities",
+         "text": "Universities & Other (ISCED 6-8)"
+        },
+        {
+         "value": "further_education",
+         "text": "Further education (ISCED 4-5)"
+        },
+        {
+         "value": "secondary_schools",
+         "text": "Secondary schools (ISCED 2-3)"
+        },
+        {
+         "value": "primary_schools",
+         "text": "Primary schools (ISCED 1)"
+        },
+        {
+         "value": "institutes",
+         "text": "Research Institutes"
+        },
+        {
+         "value": "cultural",
+         "text": "Libraries, Museums, Archives, Cultural institutions"
+        },
+        {
+         "value": "hospitals",
+         "text": "Non-university public Hospitals"
+        },
+        {
+         "value": "government",
+         "text": "Government departments (national, regional, local)"
+        },
+        {
+         "value": "iros",
+         "text": "International (virtual) research organisations"
+        },
+        {
+         "value": "for_profit_orgs",
+         "text": "For-profit organisations"
+        }
+       ]
+      },
+      {
+       "type": "radiogroup",
+       "name": "service_portfolio_eosc_portal",
+       "title": "Are any of the services in your service portfolio listed on the EOSC portal?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "matrixdynamic",
+       "name": "services_on_eosc_portal_list",
+       "visibleIf": "{service_portfolio_eosc_portal} = 'Yes'",
+       "indent": 1,
+       "title": "Can you list them?",
+       "columns": [
+        {
+         "name": "service_name",
+         "title": "Service name",
+         "cellType": "text"
+        }
+       ],
+       "rowCount": 1,
+       "maxRowCount": 50
+      }
+     ],
+     "title": "Policy & Portfolio"
+    },
+    {
+     "type": "panel",
+     "name": "standards",
+     "elements": [
+      {
+       "type": "radiogroup",
+       "name": "audits",
+       "title": "Do you have external or internal audits of your information security management systems e.g. risk management and policies?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "text",
+       "name": "audit_specifics",
+       "visibleIf": "{audits} = 'yes'",
+       "indent": 1,
+       "title": "Please specify ( for example a certified security auditor on ISO 27001 is performing the audits):"
+      },
+      {
+       "type": "radiogroup",
+       "name": "business_continuity_plans",
+       "title": "Do you have Business Continuity plans in place to ensure business continuation and operations?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "text",
+       "name": "business_continuity_plans_specifics",
+       "visibleIf": "{business_continuity_plans} = 'yes'",
+       "indent": 1,
+       "title": "Please specify if you comply with any international standard and if you test the continuity plans regularly."
+      },
+      {
+       "type": "radiogroup",
+       "name": "crisis_management_procedure",
+       "title": "Does your NREN have a formal crisis management procedure?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "checkbox",
+       "name": "crisis_exercises",
+       "title": "Does your NREN run or participate in crisis exercises to test procedures and train employees?",
+       "description": "Multiple answers possible, in the last 12 months",
+       "choices": [
+        {
+         "value": "geant_workshops",
+         "text": "We participate in GEANT Crisis workshops such as CLAW"
+        },
+        {
+         "value": "national_excercises",
+         "text": "We participated in National crisis exercises "
+        },
+        {
+         "value": "tabletop_exercises",
+         "text": "We run our own tabletop exercises"
+        },
+        {
+         "value": "simulation_excercises",
+         "text": "We run our own simulation exercises"
+        },
+        {
+         "value": "other_excercises",
+         "text": " We have done/participated in other exercises or trainings"
+        },
+        {
+         "value": "real_crisis",
+         "text": "We had a real crisis"
+        },
+        {
+         "value": "none",
+         "text": "No, we have not done any crisis exercises or trainings"
+        }
+       ]
+      },
+      {
+       "type": "checkbox",
+       "name": "security_controls",
+       "title": "Do you utilise security controls such as anti-virus, integrity checkers and systemic firewalls to protect your assets?",
+       "choices": [
+        {
+         "value": "anti_virus",
+         "text": "Anti Virus"
+        },
+        {
+         "value": "anti_spam",
+         "text": "Anti-Spam"
+        },
+        {
+         "value": "firewall",
+         "text": "Firewall"
+        },
+        {
+         "value": "ddos_mitigation",
+         "text": "DDoS mitigation"
+        },
+        {
+         "value": "monitoring",
+         "text": "Network monitoring"
+        },
+        {
+         "value": "ips_ids",
+         "text": "IPS/IDS"
+        },
+        {
+         "value": "acl",
+         "text": "ACL"
+        },
+        {
+         "value": "segmentation",
+         "text": "Network segmentation"
+        },
+        {
+         "value": "integrity_checking",
+         "text": "Integrity checking"
+        }
+       ],
+       "showOtherItem": true
+      }
+     ],
+     "title": "Standards"
+    },
+    {
+     "type": "comment",
+     "name": "policy_comments",
+     "title": "Comments regarding this section:"
+    }
+   ],
+   "title": "Standards & Policies"
+  },
+  {
+   "name": "connected_users",
+   "elements": [
+    {
+     "type": "panel",
+     "name": "panel2",
+     "elements": [
+      {
+       "type": "matrixdynamic",
+       "name": "connected_sites_lists",
+       "title": "Please provide the URLs that lists the sites that are connected to the NREN, if available:",
+       "columns": [
+        {
+         "name": "connected_sites_url",
+         "title": "Url:",
+         "cellType": "text",
+         "inputType": "url",
+         "validators": [
+          {
+           "type": "regex",
+           "text": "Please provide a single valid url",
+           "regex": "^(https?:\\/\\/)?([\\da-zA-Z\\.-]+\\.[a-zA-Z\\.]{2,6}|[\\d\\.]+)([\\/:?=&#%]{1}[\\d_a-zA-Z\\.-]+)*[\\/\\?]?$"
+          }
+         ]
+        }
+       ],
+       "rowCount": 1,
+       "maxRowCount": 50
+      },
+      {
+       "type": "matrixdropdown",
+       "name": "connectivity_proportions",
+       "title": "Please give an estimate of the proportion of the institutions in each category for which your NREN provides IP connectivity: ",
+       "description": "or the questions in this section, please use the ISCED 2011 classification system (the UNESCO scheme for International Standard Classification of Education) as follows: * Level 8 - Doctorate or equivalent level * Level 7 - Masters or equivalent level * Level 6 - Bachelors or equivalent level * Level 5 - Short-cycle tertiary education * Level 4 - Post-secondary non-tertiary education. This can include, for example, short vocational training programmes * Levels 2 and 3: Secondary education * Level 1: Primary or basic education * Level 0: Pre-primary education",
+       "columns": [
+        {
+         "name": "covered",
+         "title": "Does your remit cover connectivity to this institution type:",
+         "cellType": "dropdown",
+         "choices": [
+          {
+           "value": "yes_incl_other",
+           "text": "Yes - including transit to other networks"
+          },
+          {
+           "value": "yes_national_nren",
+           "text": "Yes - national NREN access"
+          },
+          {
+           "value": "sometimes",
+           "text": "In some circumstances"
+          },
+          {
+           "value": "no_policy",
+           "text": "No - not eligible for policy reasons"
+          },
+          {
+           "value": "no_financial",
+           "text": "No - financial restrictions (NREN is unable to charge/cover costs)"
+          },
+          {
+           "value": "no_other",
+           "text": "No - other reason"
+          },
+          {
+           "value": "unsure",
+           "text": "Unsure/unclear"
+          }
+         ]
+        },
+        {
+         "name": "nr_connected",
+         "title": "Number of institutions connected in this category (actual number):",
+         "cellType": "text",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          },
+          {
+           "type": "regex",
+           "text": "Please use a whole number",
+           "regex": "^[0-9]*$"
+          }
+         ]
+        },
+        {
+         "name": "market_share_percentage",
+         "title": "% market share of institutions connected in this category:",
+         "cellType": "text",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0,
+           "maxValue": 100
+          }
+         ]
+        },
+        {
+         "name": "nr_of_users",
+         "title": "Number of users served in this category (actual number):",
+         "cellType": "text",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          },
+          {
+           "type": "regex",
+           "text": "Please use a whole number",
+           "regex": "^[0-9]*$"
+          }
+         ]
+        }
+       ],
+       "rows": [
+        {
+         "value": "universities",
+         "text": "Universities & Other (ISCED 6-8)"
+        },
+        {
+         "value": "further_education",
+         "text": "Further education (ISCED 4-5)"
+        },
+        {
+         "value": "secondary_schools",
+         "text": "Secondary schools (ISCED 2-3)"
+        },
+        {
+         "value": "primary_schools",
+         "text": "Primary schools (ISCED 1)"
+        },
+        {
+         "value": "institutes",
+         "text": "Research Institutes"
+        },
+        {
+         "value": "cultural",
+         "text": "Libraries, Museums, Archives, Cultural institutions"
+        },
+        {
+         "value": "hospitals",
+         "text": "Non-university public Hospitals"
+        },
+        {
+         "value": "government",
+         "text": "Government departments (national, regional, local)"
+        },
+        {
+         "value": "iros",
+         "text": "International (virtual) research organisations"
+        },
+        {
+         "value": "for_profit_orgs",
+         "text": "For-profit organisations"
+        }
+       ]
+      },
+      {
+       "type": "matrixdropdown",
+       "name": "connectivity_level",
+       "title": "Level of IP connectivity by Institution type:",
+       "description": "This table explores the average level of connectivity for each type of institution to the NREN. Please enter the typical and the highest capacity at which institutions in this category are connected ( in Mbit/s). As a minimum, please provide this information for Universities and Research institutes.",
+       "columns": [
+        {
+         "name": "typical_speed",
+         "title": "Typical link speed (Mbit/s):",
+         "cellType": "text",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          },
+          {
+           "type": "regex",
+           "text": "Please use a whole number",
+           "regex": "^[0-9]*$"
+          }
+         ]
+        },
+        {
+         "name": "highest_speed",
+         "title": "Highest speed link (Mbit/s):",
+         "cellType": "text",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          },
+          {
+           "type": "regex",
+           "text": "Please use a whole number",
+           "regex": "^[0-9]*$"
+          }
+         ]
+        },
+        {
+         "name": "highest_speed_connection_percentage",
+         "title": "Proportionally how many institutions in this category are connected at the highest capacity? (%):",
+         "cellType": "text",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0,
+           "maxValue": 100
+          }
+         ]
+        }
+       ],
+       "rows": [
+        {
+         "value": "universities",
+         "text": "Universities & Other (ISCED 6-8)"
+        },
+        {
+         "value": "further_education",
+         "text": "Further education (ISCED 4-5)"
+        },
+        {
+         "value": "secondary_schools",
+         "text": "Secondary schools (ISCED 2-3)"
+        },
+        {
+         "value": "primary_schools",
+         "text": "Primary schools (ISCED 1)"
+        },
+        {
+         "value": "institutes",
+         "text": "Research Institutes"
+        },
+        {
+         "value": "cultural",
+         "text": "Libraries, Museums, Archives, Cultural institutions"
+        },
+        {
+         "value": "hospitals",
+         "text": "Non-university public Hospitals"
+        },
+        {
+         "value": "government",
+         "text": "Government departments (national, regional, local)"
+        },
+        {
+         "value": "iros",
+         "text": "International (virtual) research organisations"
+        },
+        {
+         "value": "for_profit_orgs",
+         "text": "For-profit organisations"
+        }
+       ]
+      },
+      {
+       "type": "matrixdropdown",
+       "name": "traffic_carriers",
+       "title": "How is the traffic carried?",
+       "columns": [
+        {
+         "name": "carry_mechanism",
+         "title": "Carry mechanism",
+         "cellType": "dropdown",
+         "choices": [
+          {
+           "value": "nren_local_loops",
+           "text": "NREN provides the local loops"
+          },
+          {
+           "value": "regional_nren_backbone",
+           "text": "Traffic carried to the backbone by regional NREN"
+          },
+          {
+           "value": "commercial_provider_backbone",
+           "text": "Traffic carried to the backbone by commercial providers"
+          },
+          {
+           "value": "man",
+           "text": "MAN"
+          },
+          {
+           "value": "other",
+           "text": "Other"
+          }
+         ]
+        }
+       ],
+       "rows": [
+        {
+         "value": "universities",
+         "text": "Universities & Other (ISCED 6-8)"
+        },
+        {
+         "value": "further_education",
+         "text": "Further education (ISCED 4-5)"
+        },
+        {
+         "value": "secondary_schools",
+         "text": "Secondary schools (ISCED 2-3)"
+        },
+        {
+         "value": "primary_schools",
+         "text": "Primary schools (ISCED 1)"
+        },
+        {
+         "value": "institutes",
+         "text": "Research Institutes"
+        },
+        {
+         "value": "cultural",
+         "text": "Libraries, Museums, Archives, Cultural institutions"
+        },
+        {
+         "value": "hospitals",
+         "text": "Non-university public Hospitals"
+        },
+        {
+         "value": "government",
+         "text": "Government departments (national, regional, local)"
+        },
+        {
+         "value": "iros",
+         "text": "International (virtual) research organisations"
+        },
+        {
+         "value": "for_profit_orgs",
+         "text": "For-profit organisations"
+        }
+       ]
+      },
+      {
+       "type": "matrixdropdown",
+       "name": "traffic_load",
+       "title": "What are the traffic loads in Mbit/s?",
+       "columns": [
+        {
+         "name": "average_from_institutions_to_network",
+         "title": "Average load from institutions to the network",
+         "cellType": "text",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          },
+          {
+           "type": "regex",
+           "text": "Please round to a whole number",
+           "regex": "^[0-9]*$"
+          }
+         ]
+        },
+        {
+         "name": "average_to_institutions_from_network",
+         "title": "Average load to institutions from the network",
+         "cellType": "text",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          },
+          {
+           "type": "regex",
+           "text": "Please round to a whole number",
+           "regex": "^[0-9]*$"
+          }
+         ]
+        },
+        {
+         "name": "peak_from_institutions_to_network",
+         "title": "Peak load from institutions to the network",
+         "cellType": "text",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          },
+          {
+           "type": "regex",
+           "text": "Please round to a whole number",
+           "regex": "^[0-9]*$"
+          }
+         ]
+        },
+        {
+         "name": "peak_to_institutions_from_network",
+         "title": "Peak load to institutions from the network",
+         "cellType": "text",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          },
+          {
+           "type": "regex",
+           "text": "Please round to a whole number",
+           "regex": "^[0-9]*$"
+          }
+         ]
+        }
+       ],
+       "rows": [
+        {
+         "value": "universities",
+         "text": "Universities & Other (ISCED 6-8)"
+        },
+        {
+         "value": "further_education",
+         "text": "Further education (ISCED 4-5)"
+        },
+        {
+         "value": "secondary_schools",
+         "text": "Secondary schools (ISCED 2-3)"
+        },
+        {
+         "value": "primary_schools",
+         "text": "Primary schools (ISCED 1)"
+        },
+        {
+         "value": "institutes",
+         "text": "Research Institutes"
+        },
+        {
+         "value": "cultural",
+         "text": "Libraries, Museums, Archives, Cultural institutions"
+        },
+        {
+         "value": "hospitals",
+         "text": "Non-university public Hospitals"
+        },
+        {
+         "value": "government",
+         "text": "Government departments (national, regional, local)"
+        },
+        {
+         "value": "iros",
+         "text": "International (virtual) research organisations"
+        },
+        {
+         "value": "for_profit_orgs",
+         "text": "For-profit organisations"
+        }
+       ]
+      },
+      {
+       "type": "matrixdropdown",
+       "name": "traffic_growth",
+       "title": "What do you expect the traffic growth to be in the next 3 years?",
+       "columns": [
+        {
+         "name": "growth_rate",
+         "title": "% growth rate",
+         "cellType": "text",
+         "validators": [
+          {
+           "type": "numeric"
+          }
+         ]
+        }
+       ],
+       "rows": [
+        {
+         "value": "universities",
+         "text": "Universities & Other (ISCED 6-8)"
+        },
+        {
+         "value": "further_education",
+         "text": "Further education (ISCED 4-5)"
+        },
+        {
+         "value": "secondary_schools",
+         "text": "Secondary schools (ISCED 2-3)"
+        },
+        {
+         "value": "primary_schools",
+         "text": "Primary schools (ISCED 1)"
+        },
+        {
+         "value": "institutes",
+         "text": "Research Institutes"
+        },
+        {
+         "value": "cultural",
+         "text": "Libraries, Museums, Archives, Cultural institutions"
+        },
+        {
+         "value": "hospitals",
+         "text": "Non-university public Hospitals"
+        },
+        {
+         "value": "government",
+         "text": "Government departments (national, regional, local)"
+        },
+        {
+         "value": "iros",
+         "text": "International (virtual) research organisations"
+        },
+        {
+         "value": "for_profit_orgs",
+         "text": "For-profit organisations"
+        }
+       ]
+      }
+     ],
+     "title": "CONNECTED USERS"
+    },
+    {
+     "type": "panel",
+     "name": "connected_users_commercial",
+     "elements": [
+      {
+       "type": "matrixdropdown",
+       "name": "commercial_organizations",
+       "title": "What types of commercial organisations do you connect?",
+       "columns": [
+        {
+         "name": "connection",
+         "title": "Connection",
+         "cellType": "dropdown",
+         "choices": [
+          {
+           "value": "yes_incl_other",
+           "text": "Yes - Including transit to other networks"
+          },
+          {
+           "value": "yes_national_nren",
+           "text": "Yes - National NREN access only"
+          },
+          {
+           "value": "yes_if_sponsored",
+           "text": "Yes - only if sponsored by a connected institution"
+          },
+          {
+           "value": "no_but_direct_peering",
+           "text": "No - but we offer a direct or IX peering"
+          },
+          {
+           "value": "no_policy",
+           "text": "No - not eligible for policy reasons"
+          },
+          {
+           "value": "no_financial",
+           "text": "No - financial restrictions (NREN is unable to charge/recover costs)"
+          },
+          {
+           "value": "no_other",
+           "text": "No - other reason / unsure"
+          }
+         ]
+        }
+       ],
+       "rows": [
+        {
+         "value": "commercial_r_e",
+         "text": "Commercial R&E traffic only"
+        },
+        {
+         "value": "commercial_general",
+         "text": "Commercial general"
+        },
+        {
+         "value": "commercial_collaboration",
+         "text": "Commercial for collaboration only (project/time limited)"
+        },
+        {
+         "value": "commercial_service_provider",
+         "text": "Commercial Service Provider"
+        },
+        {
+         "value": "university_spin_off",
+         "text": "University Spin Off/Incubator"
+        }
+       ]
+      },
+      {
+       "type": "matrixdropdown",
+       "name": "commercial_charging_levels",
+       "title": "What are the typical charging levels for the following types of commercial connections? Please tick all that apply:",
+       "columns": [
+        {
+         "name": "charging_level",
+         "title": "Charging level",
+         "cellType": "dropdown",
+         "choices": [
+          {
+           "value": "higher_than_r_e_charges",
+           "text": "Charges typically higher than for R+E users"
+          },
+          {
+           "value": "same_as_r_e_charges",
+           "text": "Same charging model as for R+E users"
+          },
+          {
+           "value": "no_charges_if_r_e_requested",
+           "text": "No charges applied if requested by R+E users"
+          },
+          {
+           "value": "lower_than_r_e_charges",
+           "text": "Charges typically lower than for R+E users"
+          }
+         ]
+        }
+       ],
+       "rows": [
+        {
+         "value": "collaboration",
+         "text": "Connection to your network for collaboration with R+E users"
+        },
+        {
+         "value": "services",
+         "text": "Connection to your network for supplying services for R+E"
+        },
+        {
+         "value": "peering",
+         "text": "Direct peering (e.g. direct peering or cloud peering)"
+        }
+       ]
+      },
+      {
+       "type": "radiogroup",
+       "name": "remote_campuses",
+       "title": "Do you provide connectivity to any remote campuses in other countries?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "matrixdynamic",
+       "name": "remote_campuses_specifics",
+       "visibleIf": "{remote_campuses} = 'Yes'",
+       "indent": 1,
+       "title": "Please specify:",
+       "columns": [
+        {
+         "name": "country",
+         "title": "Which Country",
+         "cellType": "text",
+         "isRequired": true
+        },
+        {
+         "name": "connected",
+         "title": "Whether connected to R&E network",
+         "cellType": "radiogroup",
+         "choices": [
+          "Yes",
+          "No"
+         ]
+        }
+       ],
+       "rowCount": 0,
+       "maxRowCount": 50
+      },
+      {
+       "type": "comment",
+       "name": "connected_users_comments",
+       "title": "Comments regarding this section:"
+      }
+     ],
+     "title": "CONNECTED USERS - COMMERCIAL"
+    }
+   ],
+   "title": "Connected Users"
+  },
+  {
+   "name": "network",
+   "elements": [
+    {
+     "type": "panel",
+     "name": "connectivity",
+     "elements": [
+      {
+       "type": "radiogroup",
+       "name": "dark_fibre_lease",
+       "title": "Does your NREN have an IRU or lease of dark fibre?",
+       "description": "An Indefeasible Right of Use (IRU) is essentially a long-term lease of a portion of the capacity of a cable. Please do not include fibre that you have installed and own yourself. This is covered in a later question.",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "text",
+       "name": "dark_fibre_lease_kilometers_inside_country",
+       "visibleIf": "{dark_fibre_lease} = 'Yes'",
+       "indent": 1,
+       "title": "Please state the number of kilometres of such fibre in your country:",
+       "description": "Please include only the fibre inside your country for this answer. The distance is the number of km’s of your fibre pairs or if you are using bidirectional traffic on a single fibre please treat this as a fibre pair.",
+       "validators": [
+        {
+         "type": "numeric",
+         "minValue": 0
+        },
+        {
+         "type": "regex",
+         "text": "Please round to a whole number",
+         "regex": "^[0-9]*$"
+        }
+       ]
+      },
+      {
+       "type": "text",
+       "name": "dark_fibre_lease_kilometers_outside_country",
+       "visibleIf": "{dark_fibre_lease} = 'Yes'",
+       "indent": 1,
+       "title": "Please state the number of km of such fiber that is outside your country:",
+       "validators": [
+        {
+         "type": "numeric",
+         "minValue": 0
+        },
+        {
+         "type": "regex",
+         "text": "Please round to a whole number",
+         "regex": "^[0-9]*$"
+        }
+       ]
+      },
+      {
+       "type": "text",
+       "name": "dark_fibre_lease_duration",
+       "visibleIf": "{dark_fibre_lease} = 'Yes'",
+       "indent": 1,
+       "title": "What is the average duration, in years, of your IRU?",
+       "validators": [
+        {
+         "type": "numeric",
+         "minValue": 0
+        }
+       ]
+      },
+      {
+       "type": "radiogroup",
+       "name": "dark_fibre_nren",
+       "title": "Has your NREN physically laid any dark fibre cables in your network?",
+       "description": "Please include only cables that you laid yourself. If this cable was installed and is owned by a third party, this is included in a previous question.",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "text",
+       "name": "dark_fibre_nren_kilometers_inside_country",
+       "visibleIf": "{dark_fibre_nren} = 'Yes'",
+       "indent": 1,
+       "title": "Please state the number of km of such fibre in your network:",
+       "description": "Please include only the fibre inside your country for this answer. The distance is the number of km’s of your fibre pairs, or If you are using bi-directional traffic on a single fibre please treat this as a fibre pair.",
+       "validators": [
+        {
+         "type": "numeric",
+         "minValue": 0
+        },
+        {
+         "type": "regex",
+         "text": "Please round to a whole number",
+         "regex": "^[0-9]*$"
+        }
+       ]
+      },
+      {
+       "type": "radiogroup",
+       "name": "fibre_light",
+       "title": "How do you light your fibre network:",
+       "choices": [
+        {
+         "value": "nren_owns_and_operates",
+         "text": "NREN owns and operates equipment"
+        },
+        {
+         "value": "nren_owns_outsourced_operation",
+         "text": "NREN owns equipment and operation is outsourced"
+        },
+        {
+         "value": "outsourced_ownership_and_operation",
+         "text": "Ownership and management are out-sourced (turn-key model)"
+        }
+       ],
+       "showOtherItem": true,
+       "showClearButton": true
+      },
+      {
+       "type": "matrixdynamic",
+       "name": "network_map_urls",
+       "title": "Please provide a network map for layers 1, 2 and 3 of your network:",
+       "columns": [
+        {
+         "name": "network_map_url",
+         "title": "Url:",
+         "cellType": "text",
+         "inputType": "url",
+         "validators": [
+          {
+           "type": "regex",
+           "text": "Please provide a single valid url",
+           "regex": "^(https?:\\/\\/)?([\\da-zA-Z\\.-]+\\.[a-zA-Z\\.]{2,6}|[\\d\\.]+)([\\/:?=&#%]{1}[\\d_a-zA-Z\\.-]+)*[\\/\\?]?$"
+            }
+         ]
+        }
+       ],
+       "rowCount": 1,
+       "maxRowCount": 50
+      }
+     ],
+     "title": "Connectivity"
+    },
+    {
+     "type": "panel",
+     "name": "performance",
+     "elements": [
+      {
+       "type": "checkbox",
+       "name": "monitoring_tools",
+       "title": "Which tools do you offer your client institutions for monitoring or troubleshooting the network?",
+       "choices": [
+        {
+         "value": "looking_glass",
+         "text": "Looking Glass"
+        },
+        {
+         "value": "status_dashboard",
+         "text": "Network or Services Status Dashboard"
+        },
+        {
+         "value": "historical_traffic_volumes",
+         "text": "Historical traffic volume information"
+        },
+        {
+         "value": "netflow_analysis",
+         "text": "Netflow analysis tool"
+        }
+       ],
+       "showOtherItem": true
+      },
+      {
+       "type": "text",
+       "name": "netflow_vendors",
+       "title": "If you process NetFlow, please, indicate the system name and vendor:"
+      },
+      {
+       "type": "radiogroup",
+       "name": "passive_monitoring",
+       "title": "Do you passively monitor international traffic?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "radiogroup",
+       "name": "passive_monitoring_tech",
+       "visibleIf": "{passive_monitoring} = 'Yes'",
+       "indent": 1,
+       "title": "Do you use:",
+       "choices": [
+        {
+         "value": "span_ports",
+         "text": "SPAN ports"
+        },
+        {
+         "value": "taps",
+         "text": "Passive optical TAPS"
+        },
+        {
+         "value": "both",
+         "text": "Both"
+        }
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "radiogroup",
+       "name": "traffic_statistics",
+       "title": "Do you have traffic statistics on your website?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "matrixdynamic",
+       "name": "traffic_statistics_urls",
+       "visibleIf": "{traffic_statistics} = 'Yes'",
+       "indent": 1,
+       "title": "Please give the URL(s):",
+       "columns": [
+        {
+         "name": "traffic_statistics_url",
+         "title": "Url:",
+         "cellType": "text",
+         "inputType": "url",
+         "validators": [
+          {
+           "type": "regex",
+           "text": "Please provide a single valid url",
+           "regex": "^(https?:\\/\\/)?([\\da-zA-Z\\.-]+\\.[a-zA-Z\\.]{2,6}|[\\d\\.]+)([\\/:?=&#%]{1}[\\d_a-zA-Z\\.-]+)*[\\/\\?]?$"
+            }
+         ]
+        }
+       ],
+       "rowCount": 1,
+       "maxRowCount": 50
+      },
+      {
+       "type": "checkbox",
+       "name": "siem_soc_vendor",
+       "title": "If you use a SIEM/SOC system, please indicate the name of the vendor you use here:",
+       "choices": [
+        "Splunk",
+        "IBM Qradar",
+        "Exabeam",
+        "LogRythm",
+        "Securonix"
+       ],
+       "showOtherItem": true
+      },
+      {
+       "type": "checkbox",
+       "name": "certificate_service",
+       "title": "Which certificate service do you use?",
+       "choices": [
+        "TCS",
+        "Digicert",
+        {
+         "value": "Sectigo",
+         "text": "Sectigo (outside of TCS)"
+        },
+        "GlobalSign",
+        "GeoDaddy",
+        "GeoTrust",
+        "Entrust Datacard"
+       ],
+       "showOtherItem": true
+      },
+      {
+       "type": "radiogroup",
+       "name": "network_weather",
+       "title": "Do you have an online weather map of your network?",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "text",
+       "name": "network_weather_url",
+       "visibleIf": "{network_weather} = 'Yes'",
+       "indent": 1,
+       "title": "Please give the URL:",
+       "inputType": "url",
+       "validators": [
+        {
+         "type": "regex",
+         "text": "Please provide a single valid url",
+         "regex": "^(https?:\\/\\/)?([\\da-zA-Z\\.-]+\\.[a-zA-Z\\.]{2,6}|[\\d\\.]+)([\\/:?=&#%]{1}[\\d_a-zA-Z\\.-]+)*[\\/\\?]?$"
+        }
+       ]
+      },
+      {
+       "type": "radiogroup",
+       "name": "pert_team",
+       "title": "Do you run a PERT team?",
+       "choices": [
+        "Yes",
+        "No",
+        "Planned"
+       ],
+       "showClearButton": true
+      }
+     ],
+     "title": "PERFORMANCE MONITORING AND MANAGEMENT"
+    },
+    {
+     "type": "panel",
+     "name": "alienwave",
+     "elements": [
+      {
+       "type": "radiogroup",
+       "name": "alienwave_services",
+       "title": "Does your NREN make use of alien wavelength/lightpath (AW) services provided by third parties?",
+       "description": "This does not include alien waves (AW) used internally inside your network e.g. coloured optics on routers as they are covered in a later question.",
+       "choices": [
+        "Yes",
+        "No",
+        "Planned"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "text",
+       "name": "alienwave_services_number",
+       "visibleIf": "{alienwave_services} = 'yes'",
+       "indent": 1,
+       "title": "Please state the number of individual AW services:",
+       "validators": [
+        {
+         "type": "numeric",
+         "minValue": 0
+        },
+        {
+         "type": "regex",
+         "text": "Please round to a whole number",
+         "regex": "^[0-9]*$"
+        }
+       ]
+      },
+      {
+       "type": "radiogroup",
+       "name": "alienwave_internal",
+       "title": "Are you using alien waves internally in your network?",
+       "description": "This includes for example alien waves used between two equipment vendors e.g. coloured optics on routers carried over DWDM equipment.",
+       "choices": [
+        "Yes",
+        "No"
+       ],
+       "showClearButton": true
+      }
+     ],
+     "title": "Alienwave",
+     "description": "Pure optical connectivity services provided by the NREN without a known framing, such as foreign, alien wavelength."
+    },
+    {
+     "type": "panel",
+     "name": "capacity",
+     "elements": [
+      {
+       "type": "text",
+       "name": "max_capacity",
+       "title": "What is the capacity (in Gbit/s) of the largest link in your network used for internet traffic (either shared or dedicated)?",
+       "description": "Please provide the sum of aggregated links, but don't include backup capacity.",
+       "validators": [
+        {
+         "type": "numeric",
+         "minValue": 0
+        }
+       ]
+      },
+      {
+       "type": "text",
+       "name": "typical_capacity",
+       "title": "What is the current typical core usable backbone IP capacity of your network in Gbit/s?",
+       "description": "Note this refers to circuit capacity not traffic e.g. 2 x 10GE LAG aggregated links.",
+       "validators": [
+        {
+         "type": "numeric",
+         "minValue": 0
+        }
+       ]
+      },
+      {
+       "type": "matrixdynamic",
+       "name": "external_connections",
+       "title": "Please provide a list of the operational external IP connections (usable links excluding backup links): ",
+       "description": "This should include links to your regional backbone (GÉANT, APAN, RedCLARA etc, to other research locations, to the commercial Internet, peerings to Internet exchanges, cross-border dark fibre links and any other links you may have. Note that we are interested in the capacity for production purposes, not in any additional links that may be there for the purpose of giving resilience. Some of your capacity to your regional backbone may be used for transiting to intercontinental services; please include these too. Cross-border fibre links means those links that have been commissioned or established by the NREN from a point on the network that is near the border to another point near the border on the network of a neighbouring NREN, for example.",
+       "columns": [
+        {
+         "name": "link_name",
+         "title": "Link name",
+         "cellType": "text"
+        },
+        {
+         "name": "capacity",
+         "title": "Capacity (Gbit/s):",
+         "cellType": "text",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          }
+         ]
+        },
+        {
+         "name": "from_organization",
+         "title": "The link is from (organisation):",
+         "cellType": "text"
+        },
+        {
+         "name": "to_organization",
+         "title": "To (organisation):",
+         "cellType": "text"
+        },
+        {
+         "name": "interconnection_method",
+         "title": "Interconnection method:",
+         "cellType": "dropdown",
+         "choices": [
+          {
+           "value": "internet_exchange",
+           "text": "Internet exchange points"
+          },
+          {
+           "value": "open_exchange",
+           "text": "Open Exchange points"
+          },
+          {
+           "value": "direct",
+           "text": "Directly connected R&E peers"
+          },
+          {
+           "value": "geant",
+           "text": "GEANT"
+          },
+          {
+           "value": "other",
+           "text": "Other"
+          }
+         ]
+        }
+       ],
+       "rowCount": 1,
+       "maxRowCount": 50
+      },
+      {
+       "type": "text",
+       "name": "non_r_and_e_peers",
+       "title": "Please state how many non-R&E networks you are peering with:",
+       "description": "This should include all direct IP-peerings to commercial networks e.g. Google.",
+       "validators": [
+        {
+         "type": "numeric",
+         "minValue": 0
+        },
+        {
+         "type": "regex",
+         "text": "Please round to a whole number",
+         "regex": "^[0-9]*$"
+        }
+       ]
+      },
+      {
+       "type": "multipletext",
+       "name": "traffic_estimate",
+       "title": "Please supply an estimate of the total amount of traffic in Terabyte from January to December (2022) for the following: ",
+       "items": [
+        {
+         "name": "from_customers",
+         "title": "Traffic from NREN customers (sources that are part of the remit of the NREN’s domain)",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          }
+         ]
+        },
+        {
+         "name": "to_customers",
+         "title": "Traffic to NREN customers (sources that are part of the remit of the NREN’s domain)",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          }
+         ]
+        },
+        {
+         "name": "from_external",
+         "title": "Traffic from external networks (sources that are outside the NREN’s domain, such as, GÉANT, General/Commercial Internet, Internet exchanges, peerings, other NRENs etc)",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          }
+         ]
+        },
+        {
+         "name": "to_external",
+         "title": "Traffic to external networks (sources that are outside the NREN’s domain, such as, GÉANT, General/Commercial Internet, Internet exchanges, peerings, other NRENs etc)",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0
+          }
+         ]
+        }
+       ]
+      },
+      {
+       "type": "multipletext",
+       "name": "commodity_vs_r_e",
+       "title": "What is the ratio of commodity vs R+E traffic in your network?",
+       "validators": [
+        {
+         "type": "expression",
+         "text": "The percentages should add up to 100",
+         "expression": "({commodity_vs_r_e.r_e} + {commodity_vs_r_e.commodity} = 100) or ({commodity_vs_r_e} empty)"
+        }
+       ],
+       "items": [
+        {
+         "name": "r_e",
+         "title": "R+E percentage",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0,
+           "maxValue": 100
+          }
+         ]
+        },
+        {
+         "name": "commodity",
+         "title": "Commodity percentage",
+         "validators": [
+          {
+           "type": "numeric",
+           "minValue": 0,
+           "maxValue": 100
+          }
+         ]
+        }
+       ]
+      }
+     ],
+     "title": "CAPACITY"
+    },
+    {
+     "type": "panel",
+     "name": "sdn",
+     "elements": [
+      {
+       "type": "radiogroup",
+       "name": "operational_process_automation",
+       "title": "Are you automating your operational processes?",
+       "choices": [
+        "Yes",
+        "No",
+        "Planned"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "text",
+       "name": "operational_process_automation_tools",
+       "visibleIf": "{operational_process_automation} = 'yes'",
+       "indent": 1,
+       "title": "Please specify which processes and the name/s of the automation software and tools you use for it:"
+      },
+      {
+       "type": "radiogroup",
+       "name": "nfv",
+       "title": "Do you use any kind of NFV?",
+       "choices": [
+        "Yes",
+        "No",
+        "Planned"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "checkbox",
+       "name": "nfv_types",
+       "visibleIf": "{nfv} = 'yes' or {nfv} = 'planned'",
+       "indent": 1,
+       "title": "What kind of NFV do/will you use:",
+       "choices": [
+        {
+         "value": "routers",
+         "text": "Routers/switches"
+        },
+        {
+         "value": "firewalls",
+         "text": "Firewalls"
+        },
+        {
+         "value": "load_balancers",
+         "text": "Load balancers"
+        },
+        {
+         "value": "vpn_concentrators",
+         "text": "VPN Concentrator Services"
+        }
+       ],
+       "showOtherItem": true
+      },
+      {
+       "type": "radiogroup",
+       "name": "network_automation",
+       "title": "Do you use automation on your network?",
+       "choices": [
+        "Yes",
+        "No",
+        "Planned"
+       ],
+       "showClearButton": true
+      },
+      {
+       "type": "checkbox",
+       "name": "network_automation_tasks",
+       "visibleIf": "{network_automation} = 'yes' or {network_automation} = 'planned'",
+       "indent": 1,
+       "title": "What kind of task do you use it for?",
+       "choices": [
+        {
+         "value": "provisioning",
+         "text": "Device Provisioning"
+        },
+        {
+         "value": "data_collection",
+         "text": "Data Collection"
+        },
+        {
+         "value": "config_management",
+         "text": "Configuration Management"
+        },
+        {
+         "value": "compliance",
+         "text": "Compliance"
+        },
+        {
+         "value": "reporting",
+         "text": "Reporting"
+        },
+        {
+         "value": "troubleshooting",
+         "text": "Troubleshooting"
+        }
+       ]
+      }
+     ],
+     "title": "SOFTWARE-DEFINED NETWORKING (SDN) AND NETWORK FUNCTION VIRTUALISATION (NFV)"
+    },
+    {
+     "type": "comment",
+     "name": "network_comments",
+     "title": "Comments regarding this section:"
+    }
+   ],
+   "title": "Network"
+  },
+  {
+   "name": "services",
+   "elements": [
+    {
+     "type": "matrixdropdown",
+     "name": "services_collaboration",
+     "state": "collapsed",
+     "title": "Collaboration services",
+     "hideCheckboxLabels": true,
+     "columns": [
+      {
+       "name": "offered",
+       "title": "Service offered",
+       "cellType": "checkbox",
+       "choices": [
+        {
+         "value": "yes",
+         "text": "Yes"
+        }
+       ]
+      },
+      {
+       "name": "name",
+       "title": "Service name",
+       "cellType": "text",
+       "visibleIf": "{row.offered} = ['yes']"
+      },
+      {
+       "name": "description",
+       "title": "Official description",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2
+      },
+      {
+       "name": "additional_information",
+       "title": "Additional information",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2,
+       "placeholder": "(e.g. software used, third party service, links, etc.)"
+      }
+     ],
+     "cellType": "checkbox",
+     "rows": [
+      {
+       "text":"E-portfolio service",
+       "value":"e-portfolio",
+       "customDescription":"Functions to create user professional and career portfolios"
+      },
+      {
+       "text":"Identifier Registry",
+       "value":"identifier-reg",
+       "customDescription":"Registering of unique and automatically-processable identifiers in the form of text or numeric strings"
+      },
+      {
+       "text":"Journal access",
+       "value":"journal-library-access",
+       "customDescription":"Access to academic journals"
+      },
+      {
+       "text":"Mailing lists",
+       "value":"mailing-lists",
+       "customDescription":"Service for operation of electronic discussion lists"
+      },
+      {
+       "text":"Project collaboration",
+       "value":"project-collaboration-toolkit",
+       "customDescription":"Packaged services or virtual project groups e.g. mailing lists, storage, web meetings, wiki."
+      },
+      {
+       "text":"Scheduling tool",
+       "value":"scheduling-tool",
+       "customDescription":"Provision of tools to users for scheduling appointments or classes"
+      },
+      {
+       "text":"Survey/polling tool",
+       "value":"survey-tool",
+       "customDescription":"Provision of applications for creating surveys or polls"
+      },
+      {
+       "text":"VLE",
+       "value":"virtual-learning-environment",
+       "customDescription":"Online e-learning education system that provides virtual access to resources used in teaching"
+      },
+      {
+       "text":"VoIP",
+       "value":"voip",
+       "customDescription":"Service to deliver voice communications and multimedia sessions over Internet Protocal (IP) networks"
+      },
+      {
+       "text":"Web hosting",
+       "value":"web-email-hosting",
+       "customDescription":"Service to provide space on central web servers for users to publish their website"
+      }
+     ],
+     "rowTitleWidth": "20%"
+    },
+    {
+     "type": "matrixdropdown",
+     "name": "services_identity",
+     "state": "collapsed",
+     "title": "Identity services",
+     "hideCheckboxLabels": true,
+     "columns": [
+      {
+       "name": "offered",
+       "title": "Service offered",
+       "cellType": "checkbox",
+       "choices": [
+        {
+         "value": "yes",
+         "text": "Yes"
+        }
+       ]
+      },
+      {
+       "name": "name",
+       "title": "Service name",
+       "cellType": "text",
+       "visibleIf": "{row.offered} = ['yes']"
+      },
+      {
+       "name": "description",
+       "title": "Official description",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2
+      },
+      {
+       "name": "additional_information",
+       "title": "Additional information",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2,
+       "placeholder": "(e.g. software used, third party service, links, etc.)"
+      }
+     ],
+     "cellType": "checkbox",
+     "rows": [
+      {
+       "text":"Hosted campus AAI",
+       "value":"aai",
+       "customDescription":"Hosting of an Identity Provider service on behalf of connected Institutions to authenticate users"
+      },
+      {
+       "text":"Eduroam",
+       "value":"eduroam-wifi",
+       "customDescription":"Inter-WLAN service to facilitate easy and secure Internet access for roaming educationals users"
+      },
+      {
+       "text":"Interfederation",
+       "value":"interfederation",
+       "customDescription":"Participation in an interfederation (i.e. eduGAIN, KALMAR)"
+      }
+     ],
+     "rowTitleWidth": "20%"
+    },
+    {
+     "type": "matrixdropdown",
+     "name": "services_isp",
+     "state": "collapsed",
+     "title": "ISP services",
+     "hideCheckboxLabels": true,
+     "columns": [
+      {
+       "name": "offered",
+       "title": "Service offered",
+       "cellType": "checkbox",
+       "choices": [
+        {
+         "value": "yes",
+         "text": "Yes"
+        }
+       ]
+      },
+      {
+       "name": "name",
+       "title": "Service name",
+       "cellType": "text",
+       "visibleIf": "{row.offered} = ['yes']"
+      },
+      {
+       "name": "description",
+       "title": "Official description",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2
+      },
+      {
+       "name": "additional_information",
+       "title": "Additional information",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2,
+       "placeholder": "(e.g. software used, third party service, links, etc.)"
+      }
+     ],
+     "cellType": "checkbox",
+     "rows": [
+      {
+       "text":"Domain name registration",
+       "value":"domain-registration",
+       "customDescription":"Adminstration/registration of top and second level domain names"
+      },
+      {
+       "text":"IP address allocation",
+       "value":"ip-address-allocation",
+       "customDescription":"Allocating addresses for users according to the RIPE policies"
+      },
+      {
+       "text":"National IX operation",
+       "value":"ix-operation",
+       "customDescription":"Operating an IX with national importance"
+      },
+      {
+       "text":"Nameserver services",
+       "value":"nameserver",
+       "customDescription":"Operation of nameservers and maintenance of DNS information on behalf of users"
+      },
+      {
+       "text":"NTP service",
+       "value":"timeserver-ntp",
+       "customDescription":"Allows the synchronization of computer clocks over the internet"
+      }
+     ],
+     "rowTitleWidth": "20%"
+    },
+    {
+     "type": "matrixdropdown",
+     "name": "services_multimedia",
+     "state": "collapsed",
+     "title": "Multimedia services",
+     "hideCheckboxLabels": true,
+     "columns": [
+      {
+       "name": "offered",
+       "title": "Service offered",
+       "cellType": "checkbox",
+       "choices": [
+        {
+         "value": "yes",
+         "text": "Yes"
+        }
+       ]
+      },
+      {
+       "name": "name",
+       "title": "Service name",
+       "cellType": "text",
+       "visibleIf": "{row.offered} = ['yes']"
+      },
+      {
+       "name": "description",
+       "title": "Official description",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2
+      },
+      {
+       "name": "additional_information",
+       "title": "Additional information",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2,
+       "placeholder": "(e.g. software used, third party service, links, etc.)"
+      }
+     ],
+     "cellType": "checkbox",
+     "rows": [
+      {
+       "text":"TV/radio streaming",
+       "value":"internet-radio-tv",
+       "customDescription":"Internet and radio streaming services"
+      },
+      {
+       "text":"Event recording/streaming",
+       "value":"videoconferencing",
+       "customDescription":"Provision of equipment and/or software to support event streaming/recording"
+      },
+      {
+       "text":"Provision of content portal",
+       "value":"video-portal",
+       "customDescription":"Multi-media content portal"
+      },
+      {
+       "text":"Web/desktop conferencing",
+       "value":"web-conferencing",
+       "customDescription":"Video conferencing service to desktops and hand-held devices using software"
+      }
+     ],
+     "rowTitleWidth": "20%"
+    },
+    {
+     "type": "matrixdropdown",
+     "name": "services_network",
+     "state": "collapsed",
+     "title": "Network services",
+     "hideCheckboxLabels": true,
+     "columns": [
+      {
+       "name": "offered",
+       "title": "Service offered",
+       "cellType": "checkbox",
+       "choices": [
+        {
+         "value": "yes",
+         "text": "Yes"
+        }
+       ]
+      },
+      {
+       "name": "name",
+       "title": "Service name",
+       "cellType": "text",
+       "visibleIf": "{row.offered} = ['yes']"
+      },
+      {
+       "name": "description",
+       "title": "Official description",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2
+      },
+      {
+       "name": "additional_information",
+       "title": "Additional information",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2,
+       "placeholder": "(e.g. software used, third party service, links, etc.)"
+      }
+     ],
+     "cellType": "checkbox",
+     "rows": [
+      {
+       "text":"IP Connectivity",
+       "value":"connectivity",
+       "customDescription":"Basic IP connectivity services inc R&E and commodity internet"
+      },
+      {
+       "text":"Remote access VPN server",
+       "value":"home-vpn",
+       "customDescription":"Remote access and site-to-site VPN"
+      },
+      {
+       "text":"IPv6",
+       "value":"ipv6",
+       "customDescription":"The new version of the internet protocol (IP) that will eventually replace IPv4"
+      },
+      {
+       "text":"Optical wavelength",
+       "value":"lambda",
+       "customDescription":"Layer 1 optical channel for provision of dedicated capacity to demanding users"
+      },
+      {
+       "text":"Managed router service",
+       "value":"managed-router",
+       "customDescription":"Remote router support for institutions"
+      },
+      {
+       "text":"Multicast",
+       "value":"multicast",
+       "customDescription":"Extension to the IP protocol which allows individual packets to be sent to multiple hosts on the internet"
+      },
+      {
+       "text":"Netflow tool",
+       "value":"netflow",
+       "customDescription":"Network protocol of collecting IP traffic and monitoring network traffic"
+      },
+      {
+       "text":"Network troubleshooting",
+       "value":"user-monitoring",
+       "customDescription":"Enables users at connected institutions to monitor Internet services in real time"
+      },
+      {
+       "text":"Network monitoring",
+       "value":"network-monitoring",
+       "customDescription":"Network Information System that shows the current and past performance of the network"
+      },
+      {
+       "text":"Open Lightpath Exchange",
+       "value":"open-lightpath-exchange",
+       "customDescription":"Provision of an Open Lightpath exchange for users to connect to other users"
+      },
+      {
+       "text":"PERT",
+       "value":"pert",
+       "customDescription":"Team supporting resolution of end-to-end performance problems for networked applications"
+      },
+      {
+       "text":"Virtual circuit/VPN",
+       "value":"point-to-point-circuit-vpn",
+       "customDescription":"Virtual point to point circuits or VPNs delivered as a service to users "
+      },
+      {
+       "text":"Quality of Service",
+       "value":"quality-of-service",
+       "customDescription":"Preferential service to specific applications or classes of applications"
+      }
+     ],
+     "rowTitleWidth": "20%"
+    },
+    {
+     "type": "matrixdropdown",
+     "name": "services_professional",
+     "state": "collapsed",
+     "title": "Professional services",
+     "hideCheckboxLabels": true,
+     "columns": [
+      {
+       "name": "offered",
+       "title": "Service offered",
+       "cellType": "checkbox",
+       "choices": [
+        {
+         "value": "yes",
+         "text": "Yes"
+        }
+       ]
+      },
+      {
+       "name": "name",
+       "title": "Service name",
+       "cellType": "text",
+       "visibleIf": "{row.offered} = ['yes']"
+      },
+      {
+       "name": "description",
+       "title": "Official description",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2
+      },
+      {
+       "name": "additional_information",
+       "title": "Additional information",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2,
+       "placeholder": "(e.g. software used, third party service, links, etc.)"
+      }
+     ],
+     "cellType": "checkbox",
+     "rows": [
+      {
+       "text":"Consultancy/training",
+       "value":"consultancy",
+       "customDescription":"Training and consultancy services provided by the NREN"
+      },
+      {
+       "text":"Dissemination",
+       "value":"dissemination",
+       "customDescription":"Dissemination of information to users e.g newsletters and magazines"
+      },
+      {
+       "text":"Procurement/brokerage",
+       "value":"procurement",
+       "customDescription":"Procurement services and framework agreements"
+      },
+      {
+       "text":"Software licenses",
+       "value":"software-licenses",
+       "customDescription":"Provision of software for organisational or institutional purchase"
+      },
+      {
+       "text":"User conferences",
+       "value":"user-conference",
+       "customDescription":"Hosting of regular user conferences"
+      },
+      {
+       "text":"User portals",
+       "value":"user-portal",
+       "customDescription":"User portals for service management and monitoring"
+      }
+     ],
+     "rowTitleWidth": "20%"
+    },
+    {
+     "type": "matrixdropdown",
+     "name": "services_security",
+     "state": "collapsed",
+     "title": "Security services",
+     "hideCheckboxLabels": true,
+     "columns": [
+      {
+       "name": "offered",
+       "title": "Service offered",
+       "cellType": "checkbox",
+       "choices": [
+        {
+         "value": "yes",
+         "text": "Yes"
+        }
+       ]
+      },
+      {
+       "name": "name",
+       "title": "Service name",
+       "cellType": "text",
+       "visibleIf": "{row.offered} = ['yes']"
+      },
+      {
+       "name": "description",
+       "title": "Official description",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2
+      },
+      {
+       "name": "additional_information",
+       "title": "Additional information",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2,
+       "placeholder": "(e.g. software used, third party service, links, etc.)"
+      }
+     ],
+     "cellType": "checkbox",
+     "rows": [
+      {
+       "text":"Anti-spam solution",
+       "value":"anti-spam",
+       "customDescription":"Anti-Spam solutions for detecting and eliminating viruses and spam mails"
+      },
+      {
+       "text":"CERT/CSIRT",
+       "value":"csirt",
+       "customDescription":"A single point of contact for users to deal with computer security incidents and prevention"
+      },
+      {
+       "text":"DDoS mitigation",
+       "value":"ddos-prevention",
+       "customDescription":"Tools and techniques for mitigating Distributed Denial of Service attacks"
+      },
+      {
+       "text":"Firewall-on-demand",
+       "value":"firewall-on-demand",
+       "customDescription":"Provision of a dynamic firewall services to mitigate against DDoS attacks"
+      },
+      {
+       "text":"Intrusion detection",
+       "value":"intrusion",
+       "customDescription":"System for detecting and preventing Intrusions (IDS/IPS)"
+      },
+      {
+       "text":"PGP key server",
+       "value":"pgp-key",
+       "customDescription":"Operation of PGP key server"
+      },
+      {
+       "text":"Security auditing",
+       "value":"security-audit",
+       "customDescription":"Carrying out vulnerability assessments and security reviews of user systems and resources on their behalf"
+      },
+      {
+       "text":"Vulnerability scanning",
+       "value":"vulnerability-testing",
+       "customDescription":"Vulnerability service that allows users to scan their own IP networks fo security holes"
+      },
+      {
+       "text":"Web filtering",
+       "value":"web-filtering",
+       "customDescription":"Centralised web content filtering service for protection against access to inappropriate content"
+      }
+     ],
+     "rowTitleWidth": "20%"
+    },
+    {
+     "type": "matrixdropdown",
+     "name": "services_hosting",
+     "state": "collapsed",
+     "title": "Storage & hosting services",
+     "hideCheckboxLabels": true,
+     "columns": [
+      {
+       "name": "offered",
+       "title": "Service offered",
+       "cellType": "checkbox",
+       "choices": [
+        {
+         "value": "yes",
+         "text": "Yes"
+        }
+       ]
+      },
+      {
+       "name": "name",
+       "title": "Service name",
+       "cellType": "text",
+       "visibleIf": "{row.offered} = ['yes']"
+      },
+      {
+       "name": "description",
+       "title": "Official description",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2
+      },
+      {
+       "name": "additional_information",
+       "title": "Additional information",
+       "cellType": "comment",
+       "visibleIf": "{row.offered} = ['yes']",
+       "rows": 2,
+       "placeholder": "(e.g. software used, third party service, links, etc.)"
+      }
+     ],
+     "cellType": "checkbox",
+     "rows": [
+      {
+       "text":"Cloud storage (end user)",
+       "value":"cloud-service-end-user",
+       "customDescription":"Browser-based virtual storage service for individuals"
+      },
+      {
+       "text":"Content delivery hosting",
+       "value":"content-delivery-hosting",
+       "customDescription":"Hosting of contenct delivery servers, e.g. Akamai"
+      },
+      {
+       "text":"Disaster recovery",
+       "value":"disaster-recovery",
+       "customDescription":"Off site backup services"
+      },
+      {
+       "text":"DNS hosting",
+       "value":"dns-server",
+       "customDescription":"Hosting of primary and secondary DNS servers"
+      },
+      {
+       "text":"Email server hosting",
+       "value":"email-services",
+       "customDescription":"NREN hosted email servers."
+      },
+      {
+       "text":"Filesender",
+       "value":"filesender",
+       "customDescription":"Web-based application that allows authenticated userds to securely and easily send arbitrarily large files"
+      },
+      {
+       "text":"SaaS",
+       "value":"saas",
+       "customDescription":"Software as a service e.g. Google Apps for Education"
+      },
+      {
+       "text":"Housing/co-location",
+       "value":"storage-co-location",
+       "customDescription":"Hosting of user equipment in a managed data centre"
+      },
+      {
+       "text":"Virtual machines/IaaS",
+       "value":"virtual-machines-iaas",
+       "customDescription":"Access to virtual computing resources"
+      }
+     ],
+     "rowTitleWidth": "20%"
+    },
+    {
+     "type": "comment",
+     "name": "service_comments",
+     "title": "Comments regarding this section:"
+    }
+   ],
+   "title": "Services"
+  }
+ ],
+ "sendResultOnPageNext": true,
+ "showQuestionNumbers": "onPage",
+ "showTOC": true
+}
\ No newline at end of file
diff --git a/compendium_v2/routes/user.py b/compendium_v2/routes/user.py
new file mode 100644
index 0000000000000000000000000000000000000000..89643d1464ecd230df0e1a82f97babb0fb4e17c9
--- /dev/null
+++ b/compendium_v2/routes/user.py
@@ -0,0 +1,57 @@
+import logging
+from typing import Any, Union
+
+from flask import Blueprint, jsonify
+from flask_login import current_user, AnonymousUserMixin  # type: ignore
+
+from compendium_v2.db.auth_model import User
+from compendium_v2.routes import common
+
+
+routes = Blueprint('user', __name__)
+logger = logging.getLogger(__name__)
+
+USER_RESPONSE_SCHEMA = {
+    '$schema': 'http://json-schema.org/draft-07/schema#',
+
+    'definitions': {
+        'user': {
+            'type': 'object',
+            'properties': {
+                'name': {'type': 'string'},
+                'email': {'type': ['string', 'null']},
+            },
+            'required': ['name'],
+            'additionalProperties': False
+        }
+    },
+
+    'type': 'array',
+    'items': {'$ref': '#/definitions/charging'}
+}
+
+
+@routes.route('/', methods=['GET'])
+@common.require_accepts_json
+def charging_structure_view() -> Any:
+    """
+    handler for /api/user/ requests
+
+    response will be formatted as:
+
+    .. asjson::
+        compendium_v2.routes.user.USER_RESPONSE_SCHEMA
+
+    :return:
+    """
+
+    def _extract_data(entry: Union[User, AnonymousUserMixin]):
+        if isinstance(entry, AnonymousUserMixin):
+            return {
+                'name': 'Anonymous User',
+            }
+        return {
+            'name': entry.fullname,
+        }
+
+    return jsonify(_extract_data(current_user))
diff --git a/compendium_v2/static/survey-bundle.js b/compendium_v2/static/survey-bundle.js
new file mode 100644
index 0000000000000000000000000000000000000000..0fd321466fa33705cd9514b30d8fe06cf37f736a
--- /dev/null
+++ b/compendium_v2/static/survey-bundle.js
@@ -0,0 +1,2 @@
+/*! For license information please see survey-bundle.js.LICENSE.txt */
+(()=>{var e={911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(81),o=n.n(r),i=n(645),s=n.n(i)()(o());s.push([e.id,".hidden-checkbox-labels .sv-checkbox .sv-item__control-label{visibility:hidden}#sv-nav-complete{width:0px;height:0px;overflow:hidden;visibility:hidden}.verification{display:inline-block;margin-left:20px}.verification-required{color:red;border-style:solid;border-width:1px}.sv-action-bar-item.verification.verification-ok:hover{cursor:auto;background-color:rgba(0,0,0,0)}.survey-progress{display:flex}",""]);const a=s},626:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(81),o=n.n(r),i=n(645),s=n.n(i),a=n(667),l=n.n(a),u=new URL(n(704),n.b),c=new URL(n(344),n.b),p=new URL(n(163),n.b),d=new URL(n(860),n.b),h=new URL(n(154),n.b),f=new URL(n(937),n.b),g=new URL(n(484),n.b),m=s()(o()),y=l()(u),v=l()(c),b=l()(p),C=l()(d),w=l()(h),x=l()(f),P=l()(g);m.push([e.id,`/*!\n * surveyjs - Survey JavaScript library v1.9.90\n * Copyright (c) 2015-2023 Devsoft Baltic OÜ  - http://surveyjs.io/\n * License: MIT (http://www.opensource.org/licenses/mit-license.php)\n */\n@font-face{font-family:"Raleway";font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Raleway";font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ITw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Raleway";font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqhPAMif.woff2) format("woff2");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Raleway";font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPAA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Raleway";font-style:normal;font-weight:400;src:local("Raleway"),local("Raleway-Regular"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptug8zYS_SKggPNyC0ISQ.woff) format("woff")}@font-face{font-family:"Raleway";font-style:normal;font-weight:700;src:local("Raleway Bold"),local("Raleway-Bold"),url(https://fonts.gstatic.com/s/raleway/v14/1Ptrg8zYS_SKggPNwJYtWqZPBg.woff) format("woff")}.sv-dragdrop-movedown{transform:translate(0, 0);animation:svdragdropmovedown .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmovedown{0%{transform:translate(0, -50px)}100%{transform:translate(0, 0)}}.sv-dragdrop-moveup{transform:translate(0, 0);animation:svdragdropmoveup .1s;animation-timing-function:ease-in-out}@keyframes svdragdropmoveup{0%{transform:translate(0, 50px)}100%{transform:translate(0, 0)}}sv-popup{display:block;position:absolute;z-index:-1}.sv-popup{position:fixed;left:0;top:0;width:100vw;outline:none;z-index:2000;height:100vh}.sv-dropdown-popup{height:0}.sv-popup__container{box-shadow:0px 2px 6px rgba(0,0,0,.1);position:absolute;padding:0}.sv-popup__shadow{width:100%;height:100%;border-radius:calc(2 * var(--sjs-corner-radius, 4px))}.sv-popup__body-content{background-color:var(--background, #fff);border-radius:calc(1 * var(--sjs-corner-radius, 4px));width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;max-height:90vh;max-width:100vw}.sv-popup.sv-popup--modal{display:flex;align-items:center;justify-content:center;background-color:var(--background-semitransparent, rgba(144, 144, 144, 0.5));padding:calc(11 * var(--base-unit, 8px)) calc(15 * var(--base-unit, 8px));box-sizing:border-box}.sv-popup.sv-popup--modal .sv-popup__container{position:static}.sv-popup.sv-popup--modal .sv-popup__body-content{padding:calc(4 * var(--base-unit, 8px));height:auto}.sv-popup--overlay.sv-popup--overlay{width:100%;height:var(--sv-popup-overlay-height, 100vh)}.sv-popup--overlay.sv-popup--overlay .sv-popup__container{background:var(--background-semitransparent, rgba(144, 144, 144, 0.5));max-width:100vw;max-height:calc(var(--sv-popup-overlay-height, 100vh) - 1 * var(--base-unit, 8px));height:calc(var(--sv-popup-overlay-height, 100vh) - 1 * var(--base-unit, 8px));width:100%;padding-top:calc(2 * var(--base-unit, 8px));border:unset}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-content{max-height:var(--sv-popup-overlay-height, 100vh);max-width:100vw;border-radius:calc(4 * var(--sjs-corner-radius, 4px)) calc(4 * var(--sjs-corner-radius, 4px)) 0px 0px;background:var(--background, #fff);box-shadow:0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0,0,0,.1);padding:calc(3 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px));height:calc(100% - (1 * var(--base-unit, 8px)))}.sv-popup--overlay.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 10*var(--base-unit, 8px))}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer{margin-top:calc(2 * var(--base-unit, 8px))}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer .sv-action-bar{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer .sv-action{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__button{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-popup--modal .sv-popup__scrolling-content{padding:2px;margin:-2px}.sv-popup__scrolling-content{height:100%;overflow:auto;display:flex;flex-direction:column}.sv-popup__scrolling-content::-webkit-scrollbar,.sv-popup__scrolling-content *::-webkit-scrollbar{height:6px;width:6px;background-color:var(--background-dim, #f3f3f3)}.sv-popup__scrolling-content::-webkit-scrollbar-thumb,.sv-popup__scrolling-content *::-webkit-scrollbar-thumb{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)))}.sv-popup__content{min-width:100%;height:100%;display:flex;flex-direction:column;min-height:0}.sv-popup--show-pointer.sv-popup--top .sv-popup__pointer{transform:translate(calc(-1 * var(--base-unit, 8px))) rotate(180deg)}.sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer{transform:translate(calc(-1 * var(--base-unit, 8px)), calc(-1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right{transform:translate(calc(1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right .sv-popup__pointer{transform:translate(-12px, -4px) rotate(-90deg)}.sv-popup--show-pointer.sv-popup--left{transform:translate(calc(-1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--left .sv-popup__pointer{transform:translate(-4px, -4px) rotate(90deg)}.sv-popup__pointer{display:block;position:absolute}.sv-popup__pointer:after{content:" ";display:block;width:0;height:0;border-left:calc(1 * var(--base-unit, 8px)) solid rgba(0,0,0,0);border-right:calc(1 * var(--base-unit, 8px)) solid rgba(0,0,0,0);border-bottom:calc(1 * var(--base-unit, 8px)) solid var(--background, #fff);align-self:center}.sv-popup__body-header{font-family:Open Sans;font-size:calc(1.5 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(4 * var(--base-unit, 8px));font-style:normal;font-weight:700;margin-bottom:calc(2 * var(--base-unit, 8px));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex;margin-top:calc(4 * var(--base-unit, 8px))}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5 * var(--base-unit, 8px))}.sv-popup__button{margin:calc(0.25 * var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter,.sv-popup--overlay .sv-list__filter{padding-top:calc(1 * var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter-icon,.sv-popup--overlay .sv-list__filter-icon{top:calc(2.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay{z-index:2001;padding:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-content{padding:0;border-radius:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer .sv-action-bar .sv-action{width:auto}.sv-dropdown-popup.sv-popup--overlay .sv-popup__button{background-color:rgba(0,0,0,0);color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px));border-radius:calc(12.5 * var(--base-unit, 8px));margin:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__container{max-height:calc(var(--sv-popup-overlay-height, 100vh));height:calc(var(--sv-popup-overlay-height, 100vh));padding-top:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-content{height:calc(var(--sv-popup-overlay-height, 100vh))}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer{background-color:var(--background-dim-light, #f9f9f9);margin-top:0;padding-top:calc(0.5 * var(--base-unit, 8px));padding-bottom:calc(0.5 * var(--base-unit, 8px));border-top:1px solid var(--sjs-border-light, var(--border-light, #eaeaea))}.sv-dropdown-popup.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 6*var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-icon .sv-svg-icon{width:calc(2 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__container{padding:0}.sv-dropdown-popup.sv-popup--overlay .sv-list{flex-grow:1;padding:calc(0.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter{display:flex;align-items:center;padding:calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px)) calc(0.5 * var(--base-unit, 8px)) calc(2.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-icon{position:static;top:calc(1.5 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__empty-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;padding:calc(1 * var(--base-unit, 8px)) calc(0.5 * var(--base-unit, 8px));background-color:var(--background, #fff)}.sv-dropdown-popup.sv-popup--overlay .sv-popup__button:disabled{pointer-events:none;color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button{height:calc(3 * var(--base-unit, 8px));width:calc(3 * var(--base-unit, 8px));padding:calc(0.5 * var(--base-unit, 8px));appearance:none;border:none;border-radius:100%;background-color:rgba(0,0,0,0)}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button svg{height:calc(2 * var(--base-unit, 8px));width:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button svg use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-dropdown-popup.sv-popup--overlay .sv-list__input{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));font-family:var(--font-family);padding:calc(0.5 * var(--base-unit, 8px)) 0 calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused .sv-list__item-body{background:var(--background, #fff)}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover.sv-list__item--selected .sd-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus.sv-list__item--selected .sd-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused.sv-list__item--selected .sd-list__item-body{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__body-content{--sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--base-unit, 8px) * 8);--sv-popup-overlay-max-width: calc(100% - var(--base-unit, 8px) * 8);position:absolute;transform:translate(-50%, -50%);left:50%;top:50%;max-height:var(--sv-popup-overlay-max-height);min-height:min(var(--sv-popup-overlay-max-height),31 * var(--base-unit, 8px));height:auto;width:auto;min-width:min(40 * var(--base-unit, 8px),var(--sv-popup-overlay-max-width));max-width:var(--sv-popup-overlay-max-width);border-radius:calc(1 * var(--sjs-corner-radius, 4px));overflow:hidden;margin:0}.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__content,.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__scrolling-content,.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-list__container{flex-grow:1}.sv_progress-buttons__container-center{text-align:center}.sv_progress-buttons__container{display:inline-block;font-size:0;width:100%;max-width:1100px;white-space:nowrap;overflow:hidden}.sv_progress-buttons__image-button-left{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));width:16px;height:16px;cursor:pointer;background-image:url(${y})}.sv_progress-buttons__image-button-right{display:inline-block;vertical-align:top;margin-top:22px;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));width:16px;height:16px;cursor:pointer;background-image:url(${v})}.sv_progress-buttons__image-button--hidden{visibility:hidden}.sv_progress-buttons__list-container{max-width:calc(100% - 36px);display:inline-block;overflow:hidden}.sv_progress-buttons__list{display:inline-block;width:max-content;padding-left:28px;padding-right:28px;margin-top:14px;margin-bottom:14px}.sv_progress-buttons__list li{width:138px;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-family:var(--font-family, var(--font-family));position:relative;text-align:center;vertical-align:top;display:inline-block}.sv_progress-buttons__list li:before{width:24px;height:24px;content:"";line-height:30px;display:block;margin:0 auto 10px auto;border:3px solid;border-radius:50%;box-sizing:content-box;cursor:pointer}.sv_progress-buttons__list li:after{width:73%;height:3px;content:"";position:absolute;top:15px;left:-36.5%}.sv_progress-buttons__list li:first-child:after{content:none}.sv_progress-buttons__list .sv_progress-buttons__page-title{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:bold}.sv_progress-buttons__list .sv_progress-buttons__page-description{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv_progress-buttons__list li.sv_progress-buttons__list-element--nonclickable:before{cursor:not-allowed}.sv_progress-toc{padding:8px;max-width:336px;height:100%;background:#fff;box-sizing:border-box;min-width:256px}.sv_progress-toc .sv-list__item.sv-list__item--selected .sv-list__item-body{background:rgba(25,179,148,.1);color:#161616;font-weight:400}.sv_progress-toc .sv-list__item span{white-space:break-spaces}.sv_progress-toc .sv-list__item-body{padding-inline-start:16px;padding-inline-end:16px;border-radius:calc(1 * var(--sjs-corner-radius, 4px));padding-top:12px;padding-bottom:12px}.sv_progress-toc--left{border-right:1px solid #d6d6d6}.sv_progress-toc--right{border-left:1px solid #d6d6d6}.sv-container-modern{color:var(--text-color, #404040);font-size:var(--font-size, var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-family:var(--font-family, var(--font-family));margin-bottom:calc(10 * var(--base-unit, 8px))}.sv-container-modern__title{padding-left:.55em;color:var(--main-color, #1ab394);padding-top:5em;padding-bottom:.9375em}@media only screen and (min-width: 1000px){.sv-container-modern__title{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-container-modern__title{margin-right:10px;margin-left:10px}}.sv-container-modern__title h3{margin:0;font-size:1.875em}.sv-container-modern__title h5{margin:0}.sv-container-modern__close{clear:right}.sv-container-modern fieldset{border:none;padding:0;margin:0}.sv-container-modern legend{border:none;padding:0;margin:0}.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-top:2em}@media only screen and (min-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:5%;margin-left:5%}}@media only screen and (max-width: 1000px){.sv-body__timer,.sv-body__page,.sv-body__footer.sv-footer.sv-action-bar{margin-right:10px;margin-left:10px}}.sv-body__timer{padding:0 calc(1 * var(--base-unit, 8px));box-sizing:border-box}.sv-body__progress{margin-bottom:4.5em}.sv-body__progress:not(:first-child){margin-top:2.5em}.sv-root-modern{width:100%}.sv-page__title{margin:0;margin-bottom:1.333em;font-size:1.875em;padding-left:.293em}.sv-page__description{min-height:2.8em;font-size:1em;padding-left:.55em}.sv-page__title+.sv-page__description{margin-top:-2.8em}.sv-panel{box-sizing:border-box;width:100%}.sv-panel__title{font-size:1.25em;margin:0;padding:0;padding-bottom:.1em;padding-left:.44em;padding-right:.44em;position:relative}.sv-panel__footer{margin:0;padding:1em .44em 1em 0}.sv-panel__description{padding-left:.55em}.sv-panel__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-panel__title--expandable:after{content:"";display:block;background-image:url(${b});background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-panel__title--expandable.sv-panel__title--expanded:after{transform:rotate(180deg)}.sv-panel__icon{outline:none}.sv-panel__icon:before{content:"";display:inline-block;background-image:url(${b});background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-panel__icon--expanded:before{transform:rotate(180deg)}.sv-panel .sv-question__title{font-size:1em;padding-left:.55em}.sv-panel__content:not(:first-child){margin-top:.75em}.sv-panel .sv-row:not(:last-child){padding-bottom:1.875em}.sv-panel__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, 0.2))}.sv-paneldynamic__progress-container{position:relative;margin-left:.75em;margin-right:250px;margin-top:20px}.sv-paneldynamic__add-btn{background-color:var(--add-button-color, #1948b3);float:right;margin-top:-18px}[dir=rtl] .sv-paneldynamic__add-btn,[style*="direction:rtl"] .sv-paneldynamic__add-btn,[style*="direction: rtl"] .sv-paneldynamic__add-btn{float:left}.sv-paneldynamic__add-btn--list-mode{float:none;margin-top:1em}.sv-paneldynamic__remove-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-paneldynamic__remove-btn--right{margin-top:0;margin-left:1.25em}.sv-paneldynamic__prev-btn,.sv-paneldynamic__next-btn{box-sizing:border-box;display:inline-block;fill:var(--text-color, #404040);cursor:pointer;width:.7em;top:-0.28em;position:absolute}.sv-paneldynamic__prev-btn svg,.sv-paneldynamic__next-btn svg{display:block;height:.7em;width:.7em}.sv-paneldynamic__prev-btn{left:-1.3em;transform:rotate(90deg)}.sv-paneldynamic__next-btn{right:-1.3em;transform:rotate(270deg)}.sv-paneldynamic__prev-btn--disabled,.sv-paneldynamic__next-btn--disabled{fill:var(--disable-color, #dbdbdb);cursor:auto}.sv-paneldynamic__progress-text{color:var(--progress-text-color, #9d9d9d);font-weight:bold;font-size:.87em;margin-top:.69em;margin-left:1em}.sv-paneldynamic__separator{border:none;margin:0}.sv-paneldynamic__progress--top{margin-bottom:1em}.sv-paneldynamic__progress--bottom{margin-top:1em}.sv-paneldynamic__panel-wrapper~.sv-paneldynamic__panel-wrapper{padding-top:2.5em}.sv-paneldynamic__panel-wrapper--in-row{display:flex;flex-direction:row;align-items:center}@supports(display: flex){.sv-row{display:flex;flex-wrap:wrap}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){float:left}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question:not(:last-child){padding-bottom:2.5em;float:none}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){[dir=rtl] .sv-row__question:not(:last-child),[style*="direction:rtl"] .sv-row__question:not(:last-child),[style*="direction: rtl"] .sv-row__question:not(:last-child){float:right}}@media only screen and (-ms-high-contrast: active)and (max-width: 6000px),only screen and (-ms-high-contrast: none)and (max-width: 6000px){.sv-row__question--small:only-child{max-width:3000px}}@media only screen and (-ms-high-contrast: active)and (max-width: 3000px),only screen and (-ms-high-contrast: none)and (max-width: 3000px){.sv-row__question--small:only-child{max-width:1200px}}@media only screen and (-ms-high-contrast: active)and (max-width: 2000px),only screen and (-ms-high-contrast: none)and (max-width: 2000px){.sv-row__question--small:only-child{max-width:700px}}@media only screen and (-ms-high-contrast: active)and (max-width: 1000px),only screen and (-ms-high-contrast: none)and (max-width: 1000px){.sv-row__question--small:only-child{max-width:500px}}@media only screen and (-ms-high-contrast: active)and (max-width: 500px),only screen and (-ms-high-contrast: none)and (max-width: 500px){.sv-row__question--small:only-child{max-width:300px}}@media only screen and (-ms-high-contrast: active)and (max-width: 600px),only screen and (-ms-high-contrast: none)and (max-width: 600px){.sv-row>.sv-row__panel,.sv-row__question{width:100% !important;padding-right:0 !important}}.sv-row>.sv-row__panel,.sv-row__question{vertical-align:top;white-space:normal}.sv-row__question:first-child:last-child{flex:none !important}.sv-row:not(:last-child){padding-bottom:2.5em}.sv-question{overflow:auto;box-sizing:border-box;font-family:inherit;padding-left:var(--sv-element-add-padding-left, 0px);padding-right:var(--sv-element-add-padding-right, 0px)}.sv-question__title{position:relative;box-sizing:border-box;margin:0;padding:.25em .44em;cursor:default;font-size:1.25em;word-break:break-word}.sv-question__required-text{line-height:.8em;font-size:1.4em}.sv-question__description{margin:0;padding-left:.55em;font-size:1em;word-break:break-word}.sv-question__input{width:100%;height:1.81em}.sv-question__content{margin-left:.55em}.sv-question__erbox{color:var(--error-color, #d52901);font-size:.74em;font-weight:bold}.sv-question__erbox--location--top{margin-bottom:.4375em}.sv-question__erbox--location--bottom{margin-top:.4375em}.sv-question__footer{padding:.87em 0}.sv-question__title--answer{background-color:var(--answer-background-color, rgba(26, 179, 148, 0.2))}.sv-question__title--error{background-color:var(--error-background-color, rgba(213, 41, 1, 0.2))}.sv-question__header--location--top{margin-bottom:.65em}.sv-question__header--location--left{float:left;width:27%;margin-right:.875em}[dir=rtl] .sv-question__header--location--left,[style*="direction:rtl"] .sv-question__header--location--left,[style*="direction: rtl"] .sv-question__header--location--left{float:right}.sv-question__header--location--bottom{margin-top:.8em}.sv-question__content--left{overflow:hidden}.sv-question__other{margin-top:.5em}.sv-question__form-group{margin-top:.5em}.sv-question--disabled .sv-question__header{color:var(--disabled-text-color, rgba(64, 64, 64, 0.5))}.sv-image{display:inline-block}.sv-question__title--expandable{cursor:pointer;display:flex;padding-right:24px;align-items:center}.sv-question__title--expandable:after{content:"";display:block;background-image:url(${b});background-repeat:no-repeat;background-position:center center;background-size:10px 12px;width:24px;height:24px;position:absolute;right:0}.sv-question__title--expandable.sv-question__title--expanded:after{transform:rotate(180deg)}.sv-question__icon{outline:none}.sv-question__icon:before{content:"";display:inline-block;background-image:url(${b});background-repeat:no-repeat;background-position:center center;height:.5em;width:.6em;margin-left:1.5em;vertical-align:middle}.sv-question__icon--expanded:before{transform:rotate(180deg)}.sv-progress{height:.19em;background-color:var(--header-background-color, #e7e7e7);position:relative}.sv-progress__bar{position:relative;height:100%;background-color:var(--main-color, #1ab394)}.sv-progress__text{position:absolute;margin-top:.69em;color:var(--progress-text-color, #9d9d9d);font-size:.87em;font-weight:bold;padding-left:.6321em}@media only screen and (min-width: 1000px){.sv-progress__text{margin-left:5%}}@media only screen and (max-width: 1000px){.sv-progress__text{margin-left:10px}}.sv_progress-buttons__list li:before{border-color:var(--progress-buttons-color, #8dd9ca);background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li:after{background-color:var(--text-border-color, #d4d4d4)}.sv_progress-buttons__list .sv_progress-buttons__page-title{color:var(--text-color, #404040)}.sv_progress-buttons__list .sv_progress-buttons__page-description{color:var(--text-color, #404040)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before{border-color:var(--main-color, #1ab394);background-color:var(--main-color, #1ab394)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed+li:after{background-color:var(--progress-buttons-color, #8dd9ca)}.sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before{border-color:var(--main-color, #1ab394);background-color:#fff}.sv-title{font-family:var(--font-family, var(--font-family));font-weight:700;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal}.sv-description{color:var(--disabled-text-color, rgba(64, 64, 64, 0.5))}.sv-question .sv-selectbase{margin-bottom:4px}.sv-selectbase__item{margin-bottom:.425em;vertical-align:top}.sv-selectbase__item--inline{display:inline-block;padding-right:5%}.sv-selectbase__column{min-width:140px;vertical-align:top}.sv-selectbase__label{position:relative;display:block;box-sizing:border-box;cursor:inherit;margin-left:41px;min-height:30px}[dir=rtl] .sv-selectbase__label,[style*="direction:rtl"] .sv-selectbase__label,[style*="direction: rtl"] .sv-selectbase__label{margin-right:41px;margin-left:0}.sv-selectbase__decorator.sv-item__decorator{position:absolute;left:-41px}[dir=rtl] .sv-selectbase__decorator.sv-item__decorator,[style*="direction:rtl"] .sv-selectbase__decorator.sv-item__decorator,[style*="direction: rtl"] .sv-selectbase__decorator.sv-item__decorator{left:initial;right:-41px}.sv-selectbase__clear-btn{margin-top:.9em;background-color:var(--clean-button-color, #1948b3)}.sv-selectbase .sv-selectbase__item.sv-q-col-1{padding-right:0}.sv-question .sv-q-column-1{width:100%;max-width:100%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-question .sv-q-column-2{max-width:50%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-question .sv-q-column-3{max-width:33.33333%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-question .sv-q-column-4{max-width:25%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-question .sv-q-column-5{max-width:20%;display:inline-block;padding-right:1em;box-sizing:border-box;word-break:break-word}.sv-multipletext{width:100%;table-layout:fixed}.sv-multipletext__item-label{display:flex;align-items:center}.sv-multipletext__item{flex:1}.sv-multipletext__item-title{margin-right:1em;width:33%}.sv-multipletext__cell:not(:first-child){padding-left:.5em}.sv-multipletext__cell:not(:last-child){padding-right:.5em}.sv-matrix{overflow-x:auto}.sv-matrix .sv-table__cell--header{text-align:center}.sv-matrix__label{display:inline-block;margin:0}.sv-matrix__cell{min-width:10em;text-align:center}.sv-matrix__cell:first-child{text-align:left}.sv-matrix__text{cursor:pointer}.sv-matrix__text--checked{color:var(--body-background-color, white);background-color:var(--main-color, #1ab394)}.sv-matrix__text--disabled{cursor:default}.sv-matrix__text--disabled.sv-matrix__text--checked{background-color:var(--disable-color, #dbdbdb)}.sv-matrix__row--error{background-color:var(--error-background-color, rgba(213, 41, 1, 0.2))}.sv-matrixdynamic__add-btn{background-color:var(--add-button-color, #1948b3)}.sv-matrixdynamic__remove-btn{background-color:var(--remove-button-color, #ff1800)}.sv-detail-panel__icon{display:block;position:absolute;left:50%;top:50%;height:13px;width:24px;transform:translate(-50%, -50%) rotate(270deg)}.sv-detail-panel__icon--expanded{transform:translate(-50%, -50%)}.sv-detail-panel__icon:before{content:"";display:block;background-image:url(${C});background-repeat:no-repeat;background-position:center center;height:18px;width:24px}.sv-root-modern ::-webkit-scrollbar{height:6px;width:6px;background-color:var(--main-hover-color, #9f9f9f)}.sv-root-modern ::-webkit-scrollbar-thumb{background:var(--main-color, #1ab394)}.sv-table{width:100%;background-color:rgba(var(--main-hover-color, #9f9f9f), 0.1);border-collapse:separate;border-spacing:0}.sv-table tbody tr:last-child .sv-table__cell{padding-bottom:2.5em}.sv-table tr:first-child .sv-table__cell{padding-top:1.875em}.sv-table td:first-child,.sv-table th:first-child{padding-left:1.875em}.sv-table td:last-child,.sv-table th:last-child{padding-right:1.875em}.sv-table__row--detail{background-color:var(--header-background-color, #e7e7e7)}.sv-table__row--detail td{border-top:1px solid var(--text-border-color, #d4d4d4);border-bottom:1px solid var(--text-border-color, #d4d4d4);padding:1em 0}.sv-table__cell{padding:.9375em 0;box-sizing:content-box;vertical-align:top}.sv-table__cell:not(:last-child){padding-right:1em}.sv-table__cell:not(:first-child){padding-left:1em}.sv-table__cell--header{font-family:var(--font-family, var(--font-family));font-weight:bold;text-align:left}.sv-table__cell--rowText{vertical-align:middle}.sv-table__cell--detail{text-align:center;vertical-align:middle;width:32px}.sv-table__cell--detail-rowtext{vertical-align:middle}.sv-table__cell--detail-panel{padding-left:1em}.sv-table__cell--detail-button{appearance:none;position:relative;border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));border-radius:50px;text-align:center;vertical-align:middle;width:32px;height:32px;padding:0;margin:0;outline:none;cursor:pointer;background:rgba(0,0,0,0)}.sv-table__empty--rows--section{text-align:center;vertical-align:middle}.sv-table__empty--rows--text{padding:20px}.sv-table__cell--actions sv-action-bar,.sv-table__cell--actions .sv-action-bar{margin-left:0;padding-left:0}.sv-footer.sv-action-bar{display:block;min-height:var(--base-line-height, 2em);padding:2.5em 0 .87em 0;margin-left:auto}.sv-footer.sv-action-bar .sv-action__content{display:block}.sv-footer.sv-action-bar .sv-action:not(:last-child) .sv-action__content{padding-right:0}.sv-btn--navigation{margin:0 1em;float:right;background-color:var(--main-color, #1ab394)}.sv-footer__complete-btn,.sv-footer__next-btn,.sv-footer__preview-btn{float:right}.sv-footer__prev-btn,.sv-footer__edit-btn{float:left}[dir=rtl] .sv-footer__complete-btn,[style*="direction:rtl"] .sv-footer__complete-btn,[style*="direction: rtl"] .sv-footer__complete-btn{float:left}[dir=rtl] .sv-footer__preview-btn,[style*="direction:rtl"] .sv-footer__preview-btn,[style*="direction: rtl"] .sv-footer__preview-btn{float:left}[dir=rtl] .sv-footer__next-btn,[style*="direction:rtl"] .sv-footer__next-btn,[style*="direction: rtl"] .sv-footer__next-btn{float:left}[dir=rtl] .sv-footer__prev-btn,[style*="direction:rtl"] .sv-footer__prev-btn,[style*="direction: rtl"] .sv-footer__prev-btn{float:right}[dir=rtl] .sv-footer__edit-btn,[style*="direction:rtl"] .sv-footer__edit-btn,[style*="direction: rtl"] .sv-footer__edit-btn{float:right}.sv-btn.sv-action-bar-item,.sv-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:1.214em;color:var(--body-background-color, white);cursor:pointer;font-family:inherit;font-size:.875em;font-weight:bold;outline:none;padding:.5em 2.786em .6em;text-align:left}.sv-btn--navigation{background-color:var(--main-color, #1ab394)}.sv-item{position:relative;cursor:pointer}.sv-item--disabled{cursor:default}.sv-item__decorator{position:relative;display:inline-block;box-sizing:border-box;width:30px;height:30px;border:solid 1px rgba(0,0,0,0);vertical-align:middle}.sv-item__svg{position:absolute;top:50%;left:50%;display:inline-block;box-sizing:border-box;width:24px;height:24px;margin-right:-50%;transform:translate(-50%, -50%)}.sv-item__control:focus+.sv-item__decorator{border-color:var(--main-color, #1ab394);outline:none}.sv-item__control-label{position:relative;top:4px}.sv-checkbox__decorator{border-radius:2px}.sv-checkbox__svg{border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));border-radius:2px;fill:rgba(0,0,0,0)}.sv-checkbox--allowhover:hover .sv-checkbox__svg{border:none;background-color:var(--main-hover-color, #9f9f9f);fill:#fff}.sv-checkbox--checked .sv-checkbox__svg{border:none;background-color:var(--main-color, #1ab394);fill:#fff}.sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg{border:none;background-color:var(--disable-color, #dbdbdb);fill:#fff}.sv-checkbox--disabled .sv-checkbox__svg{border:3px solid var(--disable-color, #dbdbdb)}.sv-radio__decorator{border-radius:100%}.sv-radio__svg{border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));border-radius:100%;fill:rgba(0,0,0,0)}.sv-radio--allowhover:hover .sv-radio__svg{fill:var(--border-color, rgba(64, 64, 64, 0.5))}.sv-radio--checked .sv-radio__svg{border-color:var(--radio-checked-color, #404040);fill:var(--radio-checked-color, #404040)}.sv-radio--disabled .sv-radio__svg{border-color:var(--disable-color, #dbdbdb)}.sv-radio--disabled.sv-radio--checked .sv-radio__svg{fill:var(--disable-color, #dbdbdb)}.sv-boolean{display:block;position:relative;line-height:1.5em}.sv-boolean__switch{float:left;box-sizing:border-box;width:4em;height:1.5em;margin-right:1.0625em;margin-left:1.3125em;padding:.125em .1875em;border-radius:.75em;margin-bottom:2px}.sv-boolean__switch{background-color:var(--main-color, #1ab394)}.sv-boolean__slider{background-color:var(--slider-color, #fff)}.sv-boolean__label--disabled{color:var(--disabled-label-color, rgba(64, 64, 64, 0.5))}.sv-boolean--disabled .sv-boolean__switch{background-color:var(--main-hover-color, #9f9f9f)}.sv-boolean--disabled .sv-boolean__slider{background-color:var(--disabled-slider-color, #cfcfcf)}.sv-boolean input:focus~.sv-boolean__switch{outline:1px solid var(--main-color, #1ab394);outline-offset:1px}[dir=rtl] .sv-boolean__switch,[style*="direction:rtl"] .sv-boolean__switch,[style*="direction: rtl"] .sv-boolean__switch{float:right}.sv-boolean__slider{display:block;width:1.25em;height:1.25em;transition-duration:.1s;transition-property:margin-left;transition-timing-function:linear;border:none;border-radius:100%}.sv-boolean--indeterminate .sv-boolean__slider{margin-left:calc(50% - .625em)}.sv-boolean--checked .sv-boolean__slider{margin-left:calc(100% - 1.25em)}.sv-boolean__label{cursor:pointer;float:left}[dir=rtl] .sv-boolean__label,[style*="direction:rtl"] .sv-boolean__label,[style*="direction: rtl"] .sv-boolean__label{float:right}[dir=rtl] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--indeterminate .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--indeterminate .sv-boolean__slider{margin-right:calc(50% - .625em)}[dir=rtl] .sv-boolean--checked .sv-boolean__slider,[style*="direction:rtl"] .sv-boolean--checked .sv-boolean__slider,[style*="direction: rtl"] .sv-boolean--checked .sv-boolean__slider{margin-right:calc(100% - 1.25em)}.sv-boolean__switch{background-color:var(--main-color, #1ab394)}.sv-boolean__slider{background-color:var(--slider-color, #fff)}.sv-boolean__label--disabled{color:var(--disabled-label-color, rgba(64, 64, 64, 0.5))}.sv-boolean--disabled .sv-boolean__switch{background-color:var(--main-hover-color, #9f9f9f)}.sv-boolean--disabled .sv-boolean__slider{background-color:var(--disabled-slider-color, #cfcfcf)}.sv-imagepicker__item{border:none;padding:.24em}.sv-imagepicker__item--inline{display:inline-block}.sv-imagepicker__item--inline:not(:last-child){margin-right:4%}.sv-imagepicker__image{border:.24em solid rgba(0,0,0,0);display:block;pointer-events:none}.sv-imagepicker__label{cursor:inherit}.sv-imagepicker__text{font-size:1.14em;padding-left:.24em}.sv-imagepicker__item--allowhover:hover .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item:not(.sv-imagepicker__item--checked) .sv-imagepicker__control:focus~div .sv-imagepicker__image{background-color:var(--main-hover-color, #9f9f9f);border-color:var(--main-hover-color, #9f9f9f)}.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--main-color, #1ab394);border-color:var(--main-color, #1ab394)}.sv-imagepicker__item{cursor:pointer}.sv-imagepicker__item--disabled{cursor:default}.sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image{background-color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-dropdown{appearance:none;-webkit-appearance:none;-moz-appearance:none;display:block;background:rgba(0,0,0,0);background-image:url(${b});background-repeat:no-repeat,repeat;background-position:right .7em top 50%,0 0;background-size:.57em 100%;border:none;border-bottom:.06em solid var(--text-border-color, #d4d4d4);box-sizing:border-box;font-family:inherit;font-size:inherit;padding-block:.25em;padding-inline-end:1.5em;padding-inline-start:.87em;height:2.19em;width:100%;display:flex;justify-content:space-between}.sv-dropdown:focus,.sv-dropdown:focus-within{background-image:url(${w});border-color:var(--text-border-color, #d4d4d4);outline:none}.sv-dropdown::-ms-expand{display:none}.sv-dropdown--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-dropdown--error::placeholder,.sv-dropdown--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-dropdown option{color:var(--text-color, #404040)}.sv-dropdown__value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;font-family:var(--font-family, var(--font-family));font-size:inherit;color:var(--text-color, #404040);position:relative}.sv-dropdown__value .sv-string-viewer{line-height:28px}.sv_dropdown_control__input-field-component{height:auto}.sv-dropdown__hint-prefix{opacity:.5}.sv-dropdown__hint-prefix span{word-break:unset;line-height:28px}.sv-dropdown__hint-suffix{display:flex;opacity:.5}.sv-dropdown__hint-suffix span{word-break:unset;line-height:28px}.sv-dropdown_clean-button{padding:3px 12px;margin:auto 0}.sv-dropdown_clean-button-svg{width:12px;height:12px}.sv-input.sv-dropdown:focus-within .sv-dropdown__filter-string-input{z-index:2000}.sv-dropdown__filter-string-input{border:none;outline:none;padding:0;font-family:var(--font-family, var(--font-family));font-size:inherit;background-color:rgba(0,0,0,0);width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;appearance:none;position:absolute;left:0;top:0;height:100%}.sv-dropdown--empty:not(.sv-input--disabled) .sv-dropdown__filter-string-input::placeholder{font-family:var(--font-family, var(--font-family));color:var(--text-color, #404040)}.sv-dropdown__filter-string-input::placeholder{color:var(--disabled-text-color, rgba(64, 64, 64, 0.5));font-size:inherit;width:100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;appearance:none}[dir=rtl] .sv-dropdown,[style*="direction:rtl"] .sv-dropdown,[style*="direction: rtl"] .sv-dropdown{background-position:left .7em top 50%,0 0}.sv-input.sv-tagbox:not(.sv-tagbox--empty):not(.sv-input--disabled){height:auto;padding:.5em;padding-inline-end:2em}.sv-tagbox_clean-button{height:1.5em;padding:.5em;margin:auto 0}.sv-tagbox__value.sv-dropdown__value{position:relative;gap:.25em;display:flex;flex-wrap:wrap;flex-grow:1;padding-inline:unset;margin-inline:unset;margin-block:unset}.sv-tagbox__item{position:relative;display:flex;color:var(--text-color, #404040);height:1.5em;padding-block:.25em;padding-inline-end:.4em;padding-inline-start:.87em;border:solid .1875em #9f9f9f;border-radius:2px;min-width:2.3125em}.sv-tagbox__item:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-tagbox__item:hover .sv-tagbox__item_clean-button-svg use{fill:var(--body-background-color, white)}.sv-tagbox__item-text{color:inherit;font-size:1em}.sv-tagbox__item_clean-button-svg{margin:.3125em;width:1em;height:1em}.sv-tagbox__item_clean-button-svg use{fill:var(--text-color, #404040)}.sv-tagbox__filter-string-input{width:auto;display:flex;flex-grow:1;position:initial}.sv-tagbox__placeholder{position:absolute;top:0;left:0;max-width:100%;width:auto;height:100%;text-align:left;cursor:text;pointer-events:none;color:var(--main-hover-color, #9f9f9f)}.sv-tagbox{border-bottom:.06em solid var(--text-border-color, #d4d4d4)}.sv-tagbox:focus{border-color:var(--text-border-color, #d4d4d4)}.sv-tagbox--error{border-color:var(--error-color, #d52901);color:var(--error-color, #d52901)}.sv-tagbox--error::placeholder{color:var(--error-color, #d52901)}.sv-tagbox--error::-ms-input-placeholder{color:var(--error-color, #d52901)}.sv-tagbox .sv-dropdown__filter-string-input{height:auto}.sv-text{box-sizing:border-box;width:100%;height:2.19em;padding:.25em 0 .25em .87em;border:none;border-radius:0;border-bottom:.07em solid var(--text-border-color, #d4d4d4);box-shadow:none;background-color:rgba(0,0,0,0);font-family:inherit;font-size:1em}.sv-text:focus{border-color:var(--main-color, #1ab394);outline:none;box-shadow:none}.sv-text:invalid{box-shadow:none}.sv-text:-webkit-autofill{-webkit-box-shadow:0 0 0 30px #fff inset}.sv-text::placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text:-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text::-ms-input-placeholder{opacity:1;color:var(--text-color, #404040)}.sv-text[type=date]{padding-right:2px;background-image:url(${b});background-repeat:no-repeat,repeat;background-position:right .61em top 50%,0 0;background-size:.57em auto,100%}.sv-text[type=date]:focus{background-image:url(${w})}.sv-text[type=date]::-webkit-calendar-picker-indicator{color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.sv-text[type=date]::-webkit-clear-button{display:none}.sv-text[type=date]::-webkit-inner-spin-button{display:none}.sv-text--error{color:var(--error-color, #d52901);border-color:var(--error-color, #d52901)}.sv-text--error::placeholder{color:var(--error-color, #d52901)}.sv-text--error::-ms-input-placeholder{color:var(--error-color, #d52901)}input.sv-text,textarea.sv-comment,select.sv-dropdown{color:var(--text-color, #404040);background-color:var(--inputs-background-color, white)}.sv-rating{color:var(--text-color, #404040);padding-bottom:3px}.sv-rating input:focus+.sv-rating__min-text+.sv-rating__item-text,.sv-rating input:focus+.sv-rating__item-text{outline:1px solid var(--main-color, #1ab394);outline-offset:2px}.sv-rating__item{position:relative;display:inline}.sv-rating__item-text{min-width:2.3125em;height:2.3125em;display:inline-block;color:var(--main-hover-color, #9f9f9f);padding:0 .3125em;border:solid .1875em var(--main-hover-color, #9f9f9f);text-align:center;font-size:1em;font-weight:bold;line-height:1.13;cursor:pointer;margin:3px 0;margin-right:.26em;box-sizing:border-box}.sv-rating__item-text>span{margin-top:.44em;display:inline-block}.sv-rating__item-text:hover{background-color:var(--main-hover-color, #9f9f9f);color:var(--body-background-color, white)}.sv-rating__item--selected .sv-rating__item-text{background-color:var(--main-color, #1ab394);color:var(--body-background-color, white);border-color:var(--main-color, #1ab394)}.sv-rating__item--selected .sv-rating__item-text:hover{background-color:var(--main-color, #1ab394)}.sv-rating__item-star>svg{height:32px;width:32px;display:inline-block;vertical-align:middle;border:1px solid rgba(0,0,0,0);fill:var(--text-color, #404040)}.sv-rating__item-star>svg.sv-star-2{display:none}.sv-rating__item-star>svg:hover{border:1px solid var(--main-hover-color, #9f9f9f)}.sv-rating__item-star--selected>svg{fill:var(--main-color, #1ab394)}.sv-rating__item-smiley>svg{height:24px;width:24px;padding:4px;display:inline-block;vertical-align:middle;border:3px solid var(--border-color, rgba(64, 64, 64, 0.5));margin:3px 0;margin-right:.26em;fill:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley>svg>use{display:block}.sv-rating__item-smiley>svg:hover{border:3px solid var(--main-hover-color, #9f9f9f);background-color:var(--main-hover-color, #9f9f9f)}.sv-rating__item-smiley--selected>svg{background-color:var(--main-color, #1ab394);fill:var(--body-background-color, white);border:3px solid var(--main-color, #1ab394)}.sv-rating__min-text{font-size:1em;margin-right:1.25em;cursor:pointer}.sv-rating__max-text{font-size:1em;margin-left:.87em;cursor:pointer}.sv-question--disabled .sv-rating__item-text{cursor:default;color:var(--disable-color, #dbdbdb);border-color:var(--disable-color, #dbdbdb)}.sv-question--disabled .sv-rating__item-text:hover{background-color:rgba(0,0,0,0)}.sv-question--disabled .sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text{background-color:var(--disable-color, #dbdbdb);color:var(--body-background-color, white)}.sv-question--disabled .sv-rating__item--selected .sv-rating__item-text{background-color:var(--disable-color, #dbdbdb);color:var(--body-background-color, white)}.sv-question--disabled .sv-rating__min-text{cursor:default}.sv-question--disabled .sv-rating__max-text{cursor:default}.sv-comment{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:.06em solid var(--text-border-color, #d4d4d4);border-radius:0;box-sizing:border-box;padding:.25em .87em;font-family:inherit;font-size:1em;outline:none;width:100%;max-width:100%}.sv-comment:focus{border-color:var(--main-color, #1ab394)}.sv-file{position:relative}.sv-file__decorator{background-color:var(--body-container-background-color, #f4f4f4);padding:1.68em 0}.sv-file__clean-btn{background-color:var(--remove-button-color, #ff1800);margin-top:1.25em}.sv-file__choose-btn:not(.sv-file__choose-btn--disabled){background-color:var(--add-button-color, #1948b3);display:inline-block}.sv-file__choose-btn--disabled{cursor:default;background-color:var(--disable-color, #dbdbdb);display:inline-block}.sv-file__no-file-chosen{display:inline-block;font-size:.87em;margin-left:1em}.sv-file__preview{display:inline-block;padding-right:23px;position:relative;margin-top:1.25em;vertical-align:top}.sv-file__preview:not(:last-child){margin-right:31px}.sv-file__remove-svg{position:absolute;fill:#ff1800;cursor:pointer;height:16px;top:0;right:0;width:16px}.sv-file__remove-svg .sv-svg-icon{width:16px;height:16px}.sv-file__sign a{color:var(--text-color, #404040);text-align:left;text-decoration:none}.sv-file__wrapper{position:relative;display:inline-block;margin:0;margin-left:50%;transform:translate(-50%, 0);padding:0}.sv-clearfix:after{content:"";display:table;clear:both}.sv-completedpage{font-family:var(--font-family, var(--font-family));font-size:1.875em;font-weight:bold;box-sizing:border-box;height:14em;padding-top:4.5em;padding-bottom:4.5em;text-align:center;color:var(--text-color, #404040);background-color:var(--body-container-background-color, #f4f4f4)}.sv-completedpage:before{display:block;content:"";background-image:url(${x});width:72px;height:72px;margin-left:calc(50% - 36px);padding:36px 0px}@media only screen and (min-width: 1000px){.sv-completedpage{margin-right:5%;margin-left:calc(5% + .293em)}}@media only screen and (max-width: 1000px){.sv-completedpage{margin-left:calc(10px + .293em);margin-right:10px}}.sv-header{white-space:nowrap}.sv-logo--left{display:inline-block;vertical-align:top;margin-right:2em}.sv-logo--right{vertical-align:top;margin-left:2em;float:right}.sv-logo--top{display:block;width:100%;text-align:center}.sv-logo--bottom{display:block;width:100%;text-align:center}.sv-header__text{display:inline-block;vertical-align:top}.sjs_sp_container{border:1px dashed var(--disable-color, #dbdbdb)}.sjs_sp_placeholder{color:var(--foreground-light, var(--sjs-general-forecolor-light, var(--foreground-light, #909090)))}.sv-action-bar{display:flex;box-sizing:content-box;position:relative;align-items:center;margin-left:auto;overflow:hidden;white-space:nowrap}.sv-action-bar-separator{display:inline-block;width:1px;height:24px;vertical-align:middle;margin-right:16px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-action-bar--default-size-mode .sv-action-bar-separator{margin:0 calc(1 * var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-separator{margin:0 calc(0.5 * var(--base-unit, 8px))}.sv-action-bar-item{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;padding:calc(1 * var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(0.5 * var(--sjs-corner-radius, 4px));background-color:rgba(0,0,0,0);color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;font-family:var(--font-family, var(--font-family));overflow-x:hidden;white-space:nowrap}button.sv-action-bar-item{overflow:hidden}.sv-action-bar--default-size-mode .sv-action-bar-item{height:calc(5 * var(--base-unit, 8px));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));margin:0 calc(1 * var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item{height:calc(4 * var(--base-unit, 8px));font-size:calc(0.75 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(2 * var(--base-unit, 8px));margin:0 calc(0.5 * var(--base-unit, 8px))}.sv-action:first-of-type .sv-action-bar-item{margin-inline-start:0}.sv-action:last-of-type .sv-action-bar-item{margin-inline-end:0}.sv-action-bar--default-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:calc(1 * var(--base-unit, 8px))}.sv-action-bar--small-size-mode .sv-action-bar-item__title--with-icon{margin-inline-start:calc(0.5 * var(--base-unit, 8px))}.sv-action-bar-item__icon svg{display:block}.sv-action-bar-item__icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-action-bar-item:not(.sv-action-bar-item--pressed):hover:enabled,.sv-action-bar-item:not(.sv-action-bar-item--pressed):focus:enabled{outline:none;background-color:var(--background-dim, #f3f3f3)}.sv-action-bar-item--active.sv-action-bar-item--pressed:focus,.sv-action-bar-item--active.sv-action-bar-item--pressed:focus-visible{outline:none}.sv-action-bar-item:not(.sv-action-bar-item--pressed):active:enabled{opacity:.5}.sv-action-bar-item:disabled{opacity:.25;cursor:default}.sv-action-bar-item__title{color:inherit;vertical-align:middle;white-space:nowrap}.sv-action-bar-item--secondary .sv-action-bar-item__icon use{fill:var(--secondary, #ff9814)}.sv-action-bar-item--active .sv-action-bar-item__icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-action-bar-item-dropdown{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:calc(5 * var(--base-unit, 8px));padding:calc(1 * var(--base-unit, 8px));box-sizing:border-box;border:none;border-radius:calc(0.5 * var(--sjs-corner-radius, 4px));background-color:rgba(0,0,0,0);cursor:pointer;line-height:calc(3 * var(--base-unit, 8px));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-family:var(--font-family, var(--font-family))}.sv-expand-action:before{content:"";display:inline-block;background-image:url(${b});background-repeat:no-repeat;background-position:center center;height:10px;width:12px;margin:auto 8px}.sv-expand-action--expanded:before{transform:rotate(180deg)}.sv-dots{width:48px}.sv-dots__item{width:100%}.sv-dots__item .sv-action-bar-item__icon{margin:auto}.sv-action--hidden{width:0px;height:0px;overflow:hidden;visibility:hidden}.sv-action__content{display:flex;flex-direction:row;align-items:center}.sv-action__content>*{flex:0 0 auto}.sv-action--space{margin-left:auto}.sv-action-bar-item--pressed:not(.sv-action-bar-item--active){background-color:var(--background-dim, #f3f3f3);opacity:50%}.sv-dragged-element-shortcut{height:calc(3 * var(--base-unit, 8px));min-width:calc(12.5 * var(--base-unit, 8px));border-radius:calc(4.5 * var(--base-unit, 8px));background-color:var(--background, #fff);padding:calc(2 * var(--base-unit, 8px));cursor:grabbing;position:absolute;z-index:1000;box-shadow:0px 8px 16px rgba(0,0,0,.1);font-family:var(--font-family, var(--font-family));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));padding-left:calc(2.5 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px))}.sv-matrixdynamic__drag-icon{padding-top:calc(1.75 * var(--base-unit, 8px))}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:calc(0.75 * var(--base-unit, 8px));width:calc(2.5 * var(--base-unit, 8px));border:1px solid #e7e7e7;box-sizing:border-box;border-radius:calc(1.25 * var(--base-unit, 8px));cursor:move;margin-top:calc(1.5 * var(--base-unit, 8px))}.sv-matrix-row--drag-drop-ghost-mod td{background-color:var(--background-dim, #f3f3f3)}.sv-matrix-row--drag-drop-ghost-mod td>*{visibility:hidden}sv-popup{display:block;position:absolute;z-index:-1}.sv-popup{position:fixed;left:0;top:0;width:100vw;outline:none;z-index:2000;height:100vh}.sv-dropdown-popup{height:0}.sv-popup__container{box-shadow:0px 2px 6px rgba(0,0,0,.1);position:absolute;padding:0}.sv-popup__shadow{width:100%;height:100%;border-radius:calc(2 * var(--sjs-corner-radius, 4px))}.sv-popup__body-content{background-color:var(--background, #fff);border-radius:calc(1 * var(--sjs-corner-radius, 4px));width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;max-height:90vh;max-width:100vw}.sv-popup.sv-popup--modal{display:flex;align-items:center;justify-content:center;background-color:var(--background-semitransparent, rgba(144, 144, 144, 0.5));padding:calc(11 * var(--base-unit, 8px)) calc(15 * var(--base-unit, 8px));box-sizing:border-box}.sv-popup.sv-popup--modal .sv-popup__container{position:static}.sv-popup.sv-popup--modal .sv-popup__body-content{padding:calc(4 * var(--base-unit, 8px));height:auto}.sv-popup--overlay.sv-popup--overlay{width:100%;height:var(--sv-popup-overlay-height, 100vh)}.sv-popup--overlay.sv-popup--overlay .sv-popup__container{background:var(--background-semitransparent, rgba(144, 144, 144, 0.5));max-width:100vw;max-height:calc(var(--sv-popup-overlay-height, 100vh) - 1 * var(--base-unit, 8px));height:calc(var(--sv-popup-overlay-height, 100vh) - 1 * var(--base-unit, 8px));width:100%;padding-top:calc(2 * var(--base-unit, 8px));border:unset}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-content{max-height:var(--sv-popup-overlay-height, 100vh);max-width:100vw;border-radius:calc(4 * var(--sjs-corner-radius, 4px)) calc(4 * var(--sjs-corner-radius, 4px)) 0px 0px;background:var(--background, #fff);box-shadow:0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0,0,0,.1);padding:calc(3 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px));height:calc(100% - (1 * var(--base-unit, 8px)))}.sv-popup--overlay.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 10*var(--base-unit, 8px))}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer{margin-top:calc(2 * var(--base-unit, 8px))}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer .sv-action-bar{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer .sv-action{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__body-footer-item{width:100%}.sv-popup--overlay.sv-popup--overlay .sv-popup__button{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:2px solid var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff))}.sv-popup--modal .sv-popup__scrolling-content{padding:2px;margin:-2px}.sv-popup__scrolling-content{height:100%;overflow:auto;display:flex;flex-direction:column}.sv-popup__scrolling-content::-webkit-scrollbar,.sv-popup__scrolling-content *::-webkit-scrollbar{height:6px;width:6px;background-color:var(--background-dim, #f3f3f3)}.sv-popup__scrolling-content::-webkit-scrollbar-thumb,.sv-popup__scrolling-content *::-webkit-scrollbar-thumb{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)))}.sv-popup__content{min-width:100%;height:100%;display:flex;flex-direction:column;min-height:0}.sv-popup--show-pointer.sv-popup--top .sv-popup__pointer{transform:translate(calc(-1 * var(--base-unit, 8px))) rotate(180deg)}.sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer{transform:translate(calc(-1 * var(--base-unit, 8px)), calc(-1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right{transform:translate(calc(1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--right .sv-popup__pointer{transform:translate(-12px, -4px) rotate(-90deg)}.sv-popup--show-pointer.sv-popup--left{transform:translate(calc(-1 * var(--base-unit, 8px)))}.sv-popup--show-pointer.sv-popup--left .sv-popup__pointer{transform:translate(-4px, -4px) rotate(90deg)}.sv-popup__pointer{display:block;position:absolute}.sv-popup__pointer:after{content:" ";display:block;width:0;height:0;border-left:calc(1 * var(--base-unit, 8px)) solid rgba(0,0,0,0);border-right:calc(1 * var(--base-unit, 8px)) solid rgba(0,0,0,0);border-bottom:calc(1 * var(--base-unit, 8px)) solid var(--background, #fff);align-self:center}.sv-popup__body-header{font-family:Open Sans;font-size:calc(1.5 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(4 * var(--base-unit, 8px));font-style:normal;font-weight:700;margin-bottom:calc(2 * var(--base-unit, 8px));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-popup__body-footer{display:flex;margin-top:calc(4 * var(--base-unit, 8px))}.sv-popup__body-footer .sv-action-bar{gap:calc(1.5 * var(--base-unit, 8px))}.sv-popup__button{margin:calc(0.25 * var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter,.sv-popup--overlay .sv-list__filter{padding-top:calc(1 * var(--base-unit, 8px))}.sv-popup--modal .sv-list__filter-icon,.sv-popup--overlay .sv-list__filter-icon{top:calc(2.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay{z-index:2001;padding:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-content{padding:0;border-radius:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer .sv-action-bar .sv-action{width:auto}.sv-dropdown-popup.sv-popup--overlay .sv-popup__button{background-color:rgba(0,0,0,0);color:var(--sjs-primary-backcolor, var(--primary, #19b394));border:none;box-shadow:none;padding:calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px));border-radius:calc(12.5 * var(--base-unit, 8px));margin:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__container{max-height:calc(var(--sv-popup-overlay-height, 100vh));height:calc(var(--sv-popup-overlay-height, 100vh));padding-top:0}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-content{height:calc(var(--sv-popup-overlay-height, 100vh))}.sv-dropdown-popup.sv-popup--overlay .sv-popup__body-footer{background-color:var(--background-dim-light, #f9f9f9);margin-top:0;padding-top:calc(0.5 * var(--base-unit, 8px));padding-bottom:calc(0.5 * var(--base-unit, 8px));border-top:1px solid var(--sjs-border-light, var(--border-light, #eaeaea))}.sv-dropdown-popup.sv-popup--overlay .sv-popup__scrolling-content{height:calc(100% - 6*var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-icon .sv-svg-icon{width:calc(2 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__container{padding:0}.sv-dropdown-popup.sv-popup--overlay .sv-list{flex-grow:1;padding:calc(0.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter{display:flex;align-items:center;padding:calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px)) calc(0.5 * var(--base-unit, 8px)) calc(2.5 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-icon{position:static;top:calc(1.5 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__empty-container{display:flex;flex-direction:column;justify-content:center;flex-grow:1;padding:calc(1 * var(--base-unit, 8px)) calc(0.5 * var(--base-unit, 8px));background-color:var(--background, #fff)}.sv-dropdown-popup.sv-popup--overlay .sv-popup__button:disabled{pointer-events:none;color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button{height:calc(3 * var(--base-unit, 8px));width:calc(3 * var(--base-unit, 8px));padding:calc(0.5 * var(--base-unit, 8px));appearance:none;border:none;border-radius:100%;background-color:rgba(0,0,0,0)}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button svg{height:calc(2 * var(--base-unit, 8px));width:calc(2 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__filter-clear-button svg use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-dropdown-popup.sv-popup--overlay .sv-list__input{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));font-family:var(--font-family);padding:calc(0.5 * var(--base-unit, 8px)) 0 calc(0.5 * var(--base-unit, 8px)) calc(1 * var(--base-unit, 8px))}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused .sv-list__item-body{background:var(--background, #fff)}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover.sv-list__item--selected .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus.sv-list__item--selected .sv-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused.sv-list__item--selected .sv-list__item-body{background:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-dropdown-popup.sv-popup--overlay .sv-list__item:hover.sv-list__item--selected .sd-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item:focus.sv-list__item--selected .sd-list__item-body,.sv-dropdown-popup.sv-popup--overlay .sv-list__item--focused.sv-list__item--selected .sd-list__item-body{background:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__body-content{--sv-popup-overlay-max-height: calc(var(--sv-popup-overlay-height, 100vh) - var(--base-unit, 8px) * 8);--sv-popup-overlay-max-width: calc(100% - var(--base-unit, 8px) * 8);position:absolute;transform:translate(-50%, -50%);left:50%;top:50%;max-height:var(--sv-popup-overlay-max-height);min-height:min(var(--sv-popup-overlay-max-height),31 * var(--base-unit, 8px));height:auto;width:auto;min-width:min(40 * var(--base-unit, 8px),var(--sv-popup-overlay-max-width));max-width:var(--sv-popup-overlay-max-width);border-radius:calc(1 * var(--sjs-corner-radius, 4px));overflow:hidden;margin:0}.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__content,.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-popup__scrolling-content,.sv-dropdown-popup.sv-popup--overlay.sv-popup--tablet .sv-list__container{flex-grow:1}.sv-button-group{display:flex;align-items:center;flex-direction:row;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));overflow:auto;border:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group:focus-within{box-shadow:0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));border-color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item{display:flex;box-sizing:border-box;flex-direction:row;justify-content:center;align-items:center;appearance:none;width:100%;padding:11px calc(2 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px));outline:none;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-weight:400;background:var(--background, #fff);cursor:pointer;overflow:hidden;color:var(--sjs-general-forecolor, var(--foreground, #161616));position:relative}.sv-button-group__item:not(:last-of-type){border-right:1px solid var(--sjs-border-default, var(--border, #d6d6d6))}.sv-button-group__item--hover:hover{background-color:var(--background-dim, #f3f3f3)}.sv-button-group__item-icon{display:block;height:calc(3 * var(--base-unit, 8px))}.sv-button-group__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-button-group__item--selected{font-weight:600;color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected .sv-button-group__item-icon use{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-button-group__item--selected:hover{background-color:var(--background, #fff)}.sv-button-group__item-decorator{display:flex;align-items:center;max-width:100%}.sv-button-group__item-caption{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-button-group__item-icon+.sv-button-group__item-caption{margin-left:calc(1 * var(--base-unit, 8px))}.sv-button-group__item--disabled{color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25;cursor:default}.sv-button-group__item--disabled .sv-button-group__item-icon use{fill:var(--sjs-general-forecolor, var(--foreground, #161616))}.sv-button-group__item--disabled:hover{background-color:var(--background, #fff)}.sv-button-group:focus-within{box-shadow:0 0 0 1px var(--sjs-primary-backcolor, var(--primary, #19b394));border-color:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-visuallyhidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.sv-hidden{display:none !important}.sv-title-actions{display:flex;align-items:center;width:100%}.sv-title-actions__title{flex-wrap:wrap;max-width:90%;min-width:50%;white-space:initial}.sv-action-title-bar{min-width:56px}.sv-title-actions .sv-title-actions__title{flex-wrap:wrap;flex:0 0 auto;max-width:unset;min-width:unset}.sv-title-actions .sv-action-title-bar{flex:1 1 auto;justify-content:flex-end;min-width:unset}.sv_window{position:fixed;bottom:3px;right:10px;background-color:#5f9ea0;padding:1px;font-family:var(--font-family, var(--font-family));font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:calc(1.5 * var(--sjs-corner-radius, 4px));-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto;z-index:100}.sv_window_title{padding:8px 14px;margin:0;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:calc(1 * var(--sjs-corner-radius, 4px)) calc(1 * var(--sjs-corner-radius, 4px)) 0 0}.sv_window_content{padding:0;margin:0;max-height:80vh;overflow-y:auto}.sv_window_title a,.sv_window_title a:link,.sv_window_title a:visited{text-decoration:none;font-size:calc(0.875 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-style:normal;color:#000}.sv-brand-info{width:100%;font-family:var(--font-family, var(--font-family));text-align:center;color:#161616;background:#fff;padding:32px 0;box-shadow:0px -1px 0px #d6d6d6}.sv-brand-info a{color:#161616;text-decoration-line:underline}.sv-brand-info__text{font-weight:600;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));color:#161616}.sv-brand-info__logo{display:inline-block}.sv-brand-info__logo img{width:118px}.sv-brand-info__terms{font-weight:400;font-size:calc(0.75 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(2 * var(--base-unit, 8px))}.sv-brand-info__terms a{color:#909090}.sv-ranking{outline:none;user-select:none;-webkit-user-select:none}.sv-ranking-item{cursor:pointer;position:relative}.sv-ranking-item:focus .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:hover:not(:focus) .sv-ranking-item__icon--hover{visibility:visible}.sv-question--disabled .sv-ranking-item:hover .sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking-item:focus{outline:none}.sv-ranking-item:focus .sv-ranking-item__icon--focus{visibility:visible;top:calc(0.6 * var(--base-unit, 8px));height:calc(3 * var(--base-unit, 8px))}.sv-ranking-item:focus .sv-ranking-item__index{background:var(--background, #fff);outline:calc(0.25 * var(--base-unit, 8px)) solid var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-item__content.sv-ranking-item__content{display:flex;align-items:center;line-height:1em;padding:calc(0.5 * var(--base-unit, 8px)) 0px;border-radius:calc(12.5 * var(--base-unit, 8px))}.sv-ranking-item__icon-container{position:relative;left:0;top:0;bottom:0;flex-shrink:0;width:calc(3 * var(--base-unit, 8px));height:calc(4 * var(--base-unit, 8px))}.sv-ranking-item__icon.sv-ranking-item__icon{visibility:hidden;fill:var(--sjs-primary-backcolor, var(--primary, #19b394));position:absolute;top:calc(1 * var(--base-unit, 8px));width:calc(1.75 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px))}.sv-ranking-item__index.sv-ranking-item__index{display:flex;flex-shrink:0;align-items:center;justify-content:center;background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));border-radius:100%;border:calc(0.25 * var(--base-unit, 8px)) solid rgba(0,0,0,0);width:calc(5 * var(--base-unit, 8px));height:calc(5 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px));box-sizing:border-box;font-weight:600;margin-left:calc(0 * var(--base-unit, 8px))}.sv-ranking-item__index.sv-ranking-item__index.sv-ranking-item__index--empty:empty{background-image:url(${P});background-position:center;background-repeat:no-repeat}.sv-ranking-item__text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sjs-general-forecolor, var(--foreground, #161616));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));margin:0 calc(2 * var(--base-unit, 8px))}.sd-ranking--disabled .sv-ranking-item__text{color:var(--sjs-general-forecolor, var(--foreground, #161616));opacity:.25}.sv-ranking-item__ghost.sv-ranking-item__ghost{display:none;background-color:var(--background-dim, #f3f3f3);border-radius:calc(12.5 * var(--base-unit, 8px));padding:calc(0.5 * var(--base-unit, 8px)) 0px;width:calc(25 * var(--base-unit, 8px));height:calc(5 * var(--base-unit, 8px));z-index:1;position:absolute;left:calc(5 * var(--base-unit, 8px))}[dir=rtl] .sv-ranking-item__ghost{left:initilal;right:calc(5 * var(--base-unit, 8px))}.sv-ranking-item--ghost .sv-ranking-item__ghost{display:block}.sv-ranking-item--ghost .sv-ranking-item__content{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__content{box-shadow:0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0,0,0,.1);border-radius:calc(12.5 * var(--base-unit, 8px))}.sv-ranking--drag .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking-item--drag .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking--mobile .sv-ranking-item__icon--hover{visibility:visible;fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-ranking--mobile.sv-ranking--drag .sv-ranking-item--ghost .sv-ranking-item__icon.sv-ranking-item__icon--hover{visibility:hidden}.sv-ranking--mobile.sv-ranking-shortcut{max-width:80%}.sv-ranking--mobile .sv-ranking-item__index.sv-ranking-item__index{margin-left:0}.sv-ranking--mobile .sd-element--with-frame .sv-ranking-item__icon{margin-left:0}.sv-ranking--design-mode .sv-ranking-item:hover .sv-ranking-item__icon{visibility:hidden}.sv-ranking--disabled{opacity:.8}.sv-ranking-shortcut[hidden]{display:none}.sv-ranking-shortcut .sv-ranking-item__icon{fill:var(--sjs-primary-backcolor, var(--primary, #19b394))}.sv-ranking-shortcut .sv-ranking-item__text{margin-right:calc(4 * var(--base-unit, 8px))}.sv-ranking-shortcut .sv-ranking-item__icon--hover{visibility:visible}.sv-ranking-shortcut .sv-ranking-item__icon{width:calc(1.75 * var(--base-unit, 8px));height:calc(2 * var(--base-unit, 8px));top:calc(1 * var(--base-unit, 8px))}.sv-ranking-shortcut .sv-ranking-item__icon-container{margin-left:calc(1 * var(--base-unit, 8px))}.sv-list{padding:0;margin:0;overflow-y:auto;background:var(--background, #fff);font-family:var(--font-family, var(--font-family));list-style-type:none}.sv-list__empty-container{width:100%;font-family:var(--font-family, var(--font-family));box-sizing:border-box;padding:calc(1.5 * var(--base-unit, 8px)) calc(8 * var(--base-unit, 8px));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__empty-text{line-height:calc(3 * var(--base-unit, 8px));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));font-weight:400;text-align:center;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item{width:100%;align-items:center;box-sizing:border-box;color:var(--sjs-general-forecolor, var(--foreground, #161616));cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__item-body{width:100%;align-items:center;box-sizing:border-box;padding-block:calc(1 * var(--base-unit, 8px));padding-inline-end:calc(8 * var(--base-unit, 8px));padding-inline-start:calc(2 * var(--base-unit, 8px));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected){outline:none}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-list__item-body{border:calc(0.25 * var(--base-unit, 8px)) solid var(--sjs-border-light, var(--border-light, #eaeaea));border-radius:calc(1 * var(--sjs-corner-radius, 4px));padding-block:calc(0.75 * var(--base-unit, 8px));padding-inline-end:calc(7.75 * var(--base-unit, 8px));padding-inline-start:calc(1.75 * var(--base-unit, 8px))}.sv-list__item.sv-list__item--focused:not(.sv-list__item--selected) .sv-string-viewer{margin-inline-start:calc(-0.25 * var(--base-unit, 8px))}.sv-list__item:hover,.sv-list__item:focus{outline:none}.sv-list__item:hover .sv-list__item-body,.sv-list__item:focus .sv-list__item-body{background-color:var(--sjs-questionpanel-hovercolor, var(--sjs-general-backcolor-dark, rgb(248, 248, 248)))}.sv-list__item--with-icon.sv-list__item--with-icon{padding:0}.sv-list__item--with-icon.sv-list__item--with-icon .sv-list__item-body{padding-top:calc(1.5 * var(--base-unit, 8px));padding-bottom:calc(1.5 * var(--base-unit, 8px));gap:calc(2 * var(--base-unit, 8px));display:flex}.sv-list__item-icon{float:left;width:calc(3 * var(--base-unit, 8px));height:calc(3 * var(--base-unit, 8px))}.sv-list__item-icon svg{display:block}.sv-list__item-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}[dir=rtl] .sv-list__item-icon,[style*="direction:rtl"] .sv-list__item-icon,[style*="direction: rtl"] .sv-list__item-icon{float:right}.sv-list__item-separator{margin:calc(1 * var(--base-unit, 8px)) 0;height:1px;background-color:var(--sjs-border-default, var(--border, #d6d6d6))}.sv-list__item.sv-list__item--selected .sv-list__item-body,.sv-list__item.sv-list__item--selected:hover .sv-list__item-body,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-body,li:focus .sv-list__item.sv-list__item--selected .sv-list__item-body{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:var(--sjs-primary-forecolor, var(--primary-foreground, #fff));font-weight:600}.sv-list__item.sv-list__item--selected .sv-list__item-icon use,.sv-list__item.sv-list__item--selected:hover .sv-list__item-icon use,.sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,.sv-multi-select-list .sv-list__item.sv-list__item--selected.sv-list__item--focused .sv-list__item-icon use,li:focus .sv-list__item.sv-list__item--selected .sv-list__item-icon use{fill:var(--background, #fff)}.sv-multi-select-list .sv-list__item.sv-list__item--selected .sv-list__item-body,.sv-multi-select-list .sv-list__item.sv-list__item--selected:hover .sv-list__item-body{background-color:var(--sjs-primary-backcolor-light, var(--primary-light, rgba(25, 179, 148, 0.1)));color:var(--sjs-general-forecolor, var(--foreground, #161616));font-weight:400}.sv-list__item.sv-list__item--disabled .sv-list__item-body{cursor:default;color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__item span{white-space:nowrap}.sv-list__container{position:relative;display:flex;height:100%;flex-direction:column;display:flex;min-height:0}.sv-list__filter{border-bottom:1px solid var(--sjs-border-inside, var(--border-inside, rgba(0, 0, 0, 0.16)));background:var(--background, #fff);padding-bottom:calc(1 * var(--base-unit, 8px))}.sv-list__filter-icon{display:block;position:absolute;top:calc(1.5 * var(--base-unit, 8px));inset-inline-start:calc(2 * var(--base-unit, 8px))}.sv-list__filter-icon .sv-svg-icon{width:calc(3 * var(--base-unit, 8px));height:calc(3 * var(--base-unit, 8px))}.sv-list__filter-icon .sv-svg-icon use{fill:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;background:var(--background, #fff);box-sizing:border-box;width:100%;outline:none;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));color:var(--sjs-general-forecolor, var(--foreground, #161616));padding:calc(1.5 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px));padding-inline-start:calc(7 * var(--base-unit, 8px));line-height:calc(3 * var(--base-unit, 8px));border:none}.sv-list__input::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__input:disabled,.sv-list__input:disabled::placeholder{color:var(--sjs-general-forecolor-light, var(--foreground-light, #909090))}.sv-list__loading-indicator{pointer-events:none}.sv-list__loading-indicator .sv-list__item-body{background-color:rgba(0,0,0,0)}.sv-save-data_root{position:absolute;left:50%;bottom:calc(3 * var(--base-unit, 8px));background:var(--background, #fff);opacity:0;padding:calc(3 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px));box-shadow:0px 2px 6px rgba(0,0,0,.1);border-radius:calc(2 * var(--sjs-corner-radius, 4px));color:var(--sjs-general-forecolor, var(--foreground, #161616));min-width:calc(30 * var(--base-unit, 8px));text-align:center;z-index:1600;font-family:var(--font-family, var(--font-family));font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));display:flex;flex-direction:row;justify-content:center;align-items:center;transform:translateX(-50%) translateY(calc(3 * var(--base-unit, 8px)));transition-timing-function:ease-in;transition-property:transform,opacity;transition-delay:.25s;transition:.5s}.sv-save-data_root.sv-save-data_root--shown{transition-timing-function:ease-out;transition-property:transform,opacity;transform:translateX(-50%) translateY(0);transition-delay:.25s;opacity:.75}.sv-save-data_root span{display:flex;flex-grow:1}.sv-save-data_root .sv-action-bar{display:flex;flex-grow:0;flex-shrink:0}.sv-save-data_root--shown.sv-save-data_success,.sv-save-data_root--shown.sv-save-data_error{opacity:1}.sv-save-data_root.sv-save-data_error{background-color:var(--red, #e60a3e);color:var(--background, #fff);font-weight:600;padding:calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px));gap:calc(6 * var(--base-unit, 8px))}.sv-save-data_root.sv-save-data_error .sv-save-data_button{font-weight:600;font-size:calc(1 * var(--sjs-font-size, calc(2 * var(--base-unit, 8px))));line-height:calc(3 * var(--base-unit, 8px));height:calc(5 * var(--base-unit, 8px));color:#fff;background-color:var(--red, #e60a3e);border:calc(0.25 * var(--base-unit, 8px)) solid #fff;border-radius:calc(1.5 * var(--sjs-corner-radius, 4px));padding:calc(1 * var(--base-unit, 8px)) calc(3 * var(--base-unit, 8px));display:flex;align-items:center}.sv-save-data_root.sv-save-data_error .sv-save-data_button:hover,.sv-save-data_root.sv-save-data_error .sv-save-data_button:focus{color:var(--red, #e60a3e);background-color:var(--background, #fff)}.sv-save-data_root.sv-save-data_success{background-color:var(--sjs-primary-backcolor, var(--primary, #19b394));color:#fff;font-weight:600}.sjs_sp_container{position:relative}.sjs_sp_controls{position:absolute;left:0;bottom:0}.sjs_sp_controls>button{user-select:none}.sjs_sp_container>div>canvas:focus{outline:none}.sjs_sp_placeholder{display:flex;align-items:center;justify-content:center;position:absolute;z-index:0;user-select:none;pointer-events:none;width:100%;height:100%}.sv-boolean__decorator{border-radius:2px}.sv_main .sv-boolean__decorator+.sv-boolean__label{float:none;vertical-align:top;margin-left:.5em}.sv-boolean__svg{border:none;border-radius:2px;background-color:#1ab394;fill:#fff;width:24px;height:24px}.sv-boolean--allowhover:hover .sv-boolean__checked-path{display:inline-block}.sv-boolean--allowhover:hover .sv-boolean__svg{background-color:#9f9f9f;fill:#fff}.sv-boolean--allowhover:hover .sv-boolean__unchecked-path,.sv-boolean--allowhover:hover .sv-boolean__indeterminate-path{display:none}.sv-boolean__checked-path,.sv-boolean__indeterminate-path{display:none}.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#1ab394}.sv-boolean--indeterminate .sv-boolean__indeterminate-path{display:inline-block}.sv-boolean--indeterminate .sv-boolean__unchecked-path,.sv-boolean--checked .sv-boolean__unchecked-path{display:none}.sv-boolean--checked .sv-boolean__checked-path{display:inline-block}.sv-boolean--disabled.sv-boolean--indeterminate .sv-boolean__svg{background-color:inherit;fill:#dbdbdb}.sv-boolean--disabled .sv-boolean__svg{background-color:#dbdbdb}td.sv_matrix_cell .sv_qbln,td.td.sv_matrix_cell .sv_qbln{text-align:center}td.sv_matrix_cell .sv_qbln .sv-boolean,td.td.sv_matrix_cell .sv_qbln .sv-boolean{text-align:initial}sv-components-container,.sd-components-container{display:flex}.sv-components-row{display:flex;flex-direction:row;width:100%}.sv-components-column{display:flex;flex-direction:column}.sv-components-column--expandable{flex-grow:1}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100% !important}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td{display:block}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown td:before,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic td:before,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown td:before,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic td:before{content:attr(data-responsive-title)}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td:after,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td:after{content:attr(data-responsive-title)}.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv_m600 .sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}@media(max-width: 600px){.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question{display:block;width:100% !important}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-question__header--location--left,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-question__header--location--left{float:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question .sv-imagepicker__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-selectbase__item--inline,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question .sv-imagepicker__item--inline{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table thead,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table thead{display:none}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td.sv-table__cell--choice,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td.sv-table__cell--choice{text-align:initial}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-table td,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tbody,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table tr,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-table td{display:block}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdropdown td:before,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrixdynamic td:before,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdropdown td:before,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrixdynamic td:before{content:attr(data-responsive-title)}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td label.sv-matrix__label,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td label.sv-matrix__label{display:inline}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root td:after,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root td:after{content:attr(data-responsive-title)}.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-question table.sv-matrix-root .sv-matrix__cell,.sv-root-modern .sv-container-modern .sv-body .sv-page .sv-row .sv-row__question table.sv-matrix-root .sv-matrix__cell{text-align:initial}}body{--sv-modern-mark: true}.sv-matrixdynamic__drag-icon{padding-top:16px}.sv-matrixdynamic__drag-icon:after{content:" ";display:block;height:6px;width:20px;border:1px solid var(--border-color, rgba(64, 64, 64, 0.5));box-sizing:border-box;border-radius:10px;cursor:move;margin-top:12px}.sv-matrix__drag-drop-ghost-position-top,.sv-matrix__drag-drop-ghost-position-bottom{position:relative}.sv-matrix__drag-drop-ghost-position-top::after,.sv-matrix__drag-drop-ghost-position-bottom::after{content:"";width:100%;height:4px;background-color:var(--main-color, #1ab394);position:absolute;left:0}.sv-matrix__drag-drop-ghost-position-top::after{top:0}.sv-matrix__drag-drop-ghost-position-bottom::after{bottom:0}.sv-skeleton-element{background-color:var(--background-dim, var(--background-dim, #f3f3f3))}\n`,""]);const _=m},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);r&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{"use strict";e.exports=function(e){return e[1]}},448:(e,t,n)=>{"use strict";var r=n(294),o=n(840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},f={};function g(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(f,e)||!p.call(h,e)&&(d.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var C=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),x=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),O=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var k=Symbol.iterator;function q(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=k&&e[k]||e["@@iterator"])?e:null}var M,L=Object.assign;function A(e){if(void 0===M)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+e}var N=!1;function B(e,t){if(!e||N)return"";N=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||o[s]!==i[a]){var l="\n"+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{N=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?A(e):""}function F(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case P:return"Fragment";case x:return"Portal";case S:return"Profiler";case _:return"StrictMode";case T:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case V:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:Q(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return Q(e(t))}catch(e){}}return null}function z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Q(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function J(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Z(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Y(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,pe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ye=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ce=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Pe=null,_e=null;function Se(e){if(e=Co(e)){if("function"!=typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=xo(t),xe(e.stateNode,e.type,t))}}function Ve(e){Pe?_e?_e.push(e):_e=[e]:Pe=e}function Oe(){if(Pe){var e=Pe,t=_e;if(_e=Pe=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Ee(e,t){return e(t)}function Te(){}var Ie=!1;function Re(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Ee(e,t,n)}finally{Ie=!1,(null!==Pe||null!==_e)&&(Te(),Oe())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=xo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var je=!1;if(c)try{var ke={};Object.defineProperty(ke,"passive",{get:function(){je=!0}}),window.addEventListener("test",ke,ke),window.removeEventListener("test",ke,ke)}catch(ce){je=!1}function qe(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Me=!1,Le=null,Ae=!1,Ne=null,Be={onError:function(e){Me=!0,Le=e}};function Fe(e,t,n,r,o,i,s,a,l){Me=!1,Le=null,qe.apply(Be,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if(Qe(e)!==e)throw Error(i(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var s=o.alternate;if(null===s){if(null!==(r=o.return)){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return He(o),e;if(s===r)return He(o),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=s;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=s;break}if(l===r){a=!0,r=o,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=o;break}if(l===r){a=!0,r=s,n=o;break}l=l.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Je=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,$e=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Ze=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Ye=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2,ut=64,ct=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~o;0!==a?r=pt(a):0!=(i&=s)&&(r=pt(i))}else 0!=(s=n&~o)?r=pt(s):0!==i&&(r=pt(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-st(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ut;return 0==(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function Ct(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var wt,xt,Pt,_t,St,Vt=!1,Ot=[],Et=null,Tt=null,It=null,Rt=new Map,Dt=new Map,jt=[],kt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function qt(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.delete(t.pointerId)}}function Mt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=Co(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=bo(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ze(n)))return e.blockedOn=t,void St(e.priority,(function(){Pt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Co(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ce=r,n.target.dispatchEvent(r),Ce=null,t.shift()}return!0}function Nt(e,t,n){At(e)&&n.delete(t)}function Bt(){Vt=!1,null!==Et&&At(Et)&&(Et=null),null!==Tt&&At(Tt)&&(Tt=null),null!==It&&At(It)&&(It=null),Rt.forEach(Nt),Dt.forEach(Nt)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,Vt||(Vt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Qt(e){function t(t){return Ft(t,e)}if(0<Ot.length){Ft(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Ft(Et,e),null!==Tt&&Ft(Tt,e),null!==It&&Ft(It,e),Rt.forEach(t),Dt.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Lt(n),null===n.blockedOn&&jt.shift()}var zt=C.ReactCurrentBatchConfig,Ht=!0;function Ut(e,t,n,r){var o=bt,i=zt.transition;zt.transition=null;try{bt=1,Jt(e,t,n,r)}finally{bt=o,zt.transition=i}}function Wt(e,t,n,r){var o=bt,i=zt.transition;zt.transition=null;try{bt=4,Jt(e,t,n,r)}finally{bt=o,zt.transition=i}}function Jt(e,t,n,r){if(Ht){var o=$t(e,t,n,r);if(null===o)Hr(e,t,r,Gt,n),qt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Et=Mt(Et,e,t,n,r,o),!0;case"dragenter":return Tt=Mt(Tt,e,t,n,r,o),!0;case"mouseover":return It=Mt(It,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,Mt(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Dt.set(i,Mt(Dt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(qt(e,r),4&t&&-1<kt.indexOf(e)){for(;null!==o;){var i=Co(o);if(null!==i&&wt(i),null===(i=$t(e,t,n,r))&&Hr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function $t(e,t,n,r){if(Gt=null,null!==(e=bo(e=we(r))))if(null===(t=Qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ze(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ye:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Xt=null,Yt=null;function en(){if(Yt)return Yt;var e,t,n=Xt,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[i-t];t++);return Yt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),pn=L({},un,{view:0,detail:0}),dn=on(pn),hn=L({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=on(hn),gn=on(L({},hn,{dataTransfer:0})),mn=on(L({},pn,{relatedTarget:0})),yn=on(L({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=L({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(vn),Cn=on(L({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Pn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Pn[e])&&!!t[e]}function Sn(){return _n}var Vn=L({},pn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=on(Vn),En=on(L({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(L({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),In=on(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=L({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=on(Rn),jn=[9,13,27,32],kn=c&&"CompositionEvent"in window,qn=null;c&&"documentMode"in document&&(qn=document.documentMode);var Mn=c&&"TextEvent"in window&&!qn,Ln=c&&(!kn||qn&&8<qn&&11>=qn),An=String.fromCharCode(32),Nn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Qn=!1,zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Un(e,t,n,r){Ve(r),0<(t=Wr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Jn=null;function Gn(e){Ar(e,0)}function $n(e){if(J(wo(e)))return e}function Kn(e,t){if("change"===e)return t}var Zn=!1;if(c){var Xn;if(c){var Yn="oninput"in document;if(!Yn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Yn="function"==typeof er.oninput}Xn=Yn}else Xn=!1;Zn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Wn&&(Wn.detachEvent("onpropertychange",nr),Jn=Wn=null)}function nr(e){if("value"===e.propertyName&&$n(Jn)){var t=[];Un(t,Jn,e,we(e)),Re(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Jn=n,(Wn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Jn)}function ir(e,t){if("click"===e)return $n(t)}function sr(e,t){if("input"===e||"change"===e)return $n(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!p.call(t,o)||!ar(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var s=cr(n,r);o&&s&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=c&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,vr=null,br=!1;function Cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==G(r)||(r="selectionStart"in(r=mr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=Wr(yr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Pr={},_r={};function Sr(e){if(Pr[e])return Pr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Pr[e]=n[t];return e}c&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Vr=Sr("animationend"),Or=Sr("animationiteration"),Er=Sr("animationstart"),Tr=Sr("transitionend"),Ir=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Dr(e,t){Ir.set(e,t),l(t,[e])}for(var jr=0;jr<Rr.length;jr++){var kr=Rr[jr];Dr(kr.toLowerCase(),"on"+(kr[0].toUpperCase()+kr.slice(1)))}Dr(Vr,"onAnimationEnd"),Dr(Or,"onAnimationIteration"),Dr(Er,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Tr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mr=new Set("cancel close invalid load scroll toggle".split(" ").concat(qr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,s,a,l,u){if(Fe.apply(this,arguments),Me){if(!Me)throw Error(i(198));var c=Le;Me=!1,Le=null,Ae||(Ae=!0,Ne=c)}}(r,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,a,u),i=l}else for(s=0;s<r.length;s++){if(l=(a=r[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;Lr(o,a,u),i=l}}}if(Ae)throw e=Ne,Ae=!1,Ne=null,e}function Nr(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(zr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),zr(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[Fr]){e[Fr]=!0,s.forEach((function(t){"selectionchange"!==t&&(Mr.has(t)||Br(t,!1,e),Br(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,Br("selectionchange",!1,t))}}function zr(e,t,n,r){switch(Kt(t)){case 1:var o=Ut;break;case 4:o=Wt;break;default:o=Jt}n=o.bind(null,t,n,e),o=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var a=r.stateNode.containerInfo;if(a===o||8===a.nodeType&&a.parentNode===o)break;if(4===s)for(s=r.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;s=s.return}for(;null!==a;){if(null===(s=bo(a)))return;if(5===(l=s.tag)||6===l){r=i=s;continue e}a=a.parentNode}}r=r.return}Re((function(){var r=i,o=we(n),s=[];e:{var a=Ir.get(e);if(void 0!==a){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Vr:case Or:case Er:l=yn;break;case Tr:l=In;break;case"scroll":l=dn;break;case"wheel":l=Dn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=En}var c=0!=(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=r;null!==f;){var g=(h=f).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==d&&null!=(g=De(f,d))&&c.push(Ur(f,g,h))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,n,o),s.push({event:a,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===Ce||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[go])&&(l||a)&&(a=o.window===o?o:(a=o.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(p=Qe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=fn,g="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=En,g="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:wo(l),h=null==u?a:wo(u),(a=new c(g,f+"leave",l,n,o)).target=p,a.relatedTarget=h,g=null,bo(o)===r&&((c=new c(d,f+"enter",u,n,o)).target=h,c.relatedTarget=p,g=c),p=g,l&&u)e:{for(d=u,f=0,h=c=l;h;h=Jr(h))f++;for(h=0,g=d;g;g=Jr(g))h++;for(;0<f-h;)c=Jr(c),f--;for(;0<h-f;)d=Jr(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=Jr(c),d=Jr(d)}c=null}else c=null;null!==l&&Gr(s,a,l,c,!1),null!==u&&null!==p&&Gr(s,p,u,c,!0)}if("select"===(l=(a=r?wo(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var m=Kn;else if(Hn(a))if(Zn)m=sr;else{m=or;var y=rr}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(m=ir);switch(m&&(m=m(e,r))?Un(s,m,n,o):(y&&y(e,a,r),"focusout"===e&&(y=a._wrapperState)&&y.controlled&&"number"===a.type&&ee(a,"number",a.value)),y=r?wo(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,vr=null);break;case"focusout":vr=yr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,Cr(s,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":Cr(s,n,o)}var v;if(kn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Qn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(Qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Qn&&(v=en()):(Xt="value"in(Zt=o)?Zt.value:Zt.textContent,Qn=!0)),0<(y=Wr(r,b)).length&&(b=new Cn(b,e,null,n,o),s.push({event:b,listeners:y}),(v||null!==(v=Fn(n)))&&(b.data=v))),(v=Mn?function(e,t){switch(e){case"compositionend":return Fn(t);case"keypress":return 32!==t.which?null:(Nn=!0,An);case"textInput":return(e=t.data)===An&&Nn?null:e;default:return null}}(e,n):function(e,t){if(Qn)return"compositionend"===e||!kn&&Bn(e,t)?(e=en(),Yt=Xt=Zt=null,Qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Wr(r,"onBeforeInput")).length&&(o=new Cn("onBeforeInput","beforeinput",null,n,o),s.push({event:o,listeners:r}),o.data=v)}Ar(s,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=De(e,n))&&r.unshift(Ur(e,i,o)),null!=(i=De(e,t))&&r.push(Ur(e,i,o))),e=e.return}return r}function Jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,s=[];null!==n&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===r)break;5===a.tag&&null!==u&&(a=u,o?null!=(l=De(n,i))&&s.unshift(Ur(n,l,a)):o||null!=(l=De(n,i))&&s.push(Ur(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var $r=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Zr(e){return("string"==typeof e?e:""+e).replace($r,"\n").replace(Kr,"")}function Xr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(i(425))}function Yr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,so="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(ao)}:ro;function ao(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Qt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,fo="__reactProps$"+po,go="__reactContainer$"+po,mo="__reactEvents$"+po,yo="__reactListeners$"+po,vo="__reactHandles$"+po;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[ho])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function Co(e){return!(e=e[ho]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function xo(e){return e[fo]||null}var Po=[],_o=-1;function So(e){return{current:e}}function Vo(e){0>_o||(e.current=Po[_o],Po[_o]=null,_o--)}function Oo(e,t){_o++,Po[_o]=e.current,e.current=t}var Eo={},To=So(Eo),Io=So(!1),Ro=Eo;function Do(e,t){var n=e.type.contextTypes;if(!n)return Eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jo(e){return null!=e.childContextTypes}function ko(){Vo(Io),Vo(To)}function qo(e,t,n){if(To.current!==Eo)throw Error(i(168));Oo(To,t),Oo(Io,n)}function Mo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,z(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eo,Ro=To.current,Oo(To,e),Oo(Io,Io.current),!0}function Ao(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Mo(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,Vo(Io),Vo(To),Oo(To,e)):Vo(Io),Oo(Io,n)}var No=null,Bo=!1,Fo=!1;function Qo(e){null===No?No=[e]:No.push(e)}function zo(){if(!Fo&&null!==No){Fo=!0;var e=0,t=bt;try{var n=No;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}No=null,Bo=!1}catch(t){throw null!==No&&(No=No.slice(e+1)),Je(Ye,zo),t}finally{bt=t,Fo=!1}}return null}var Ho=[],Uo=0,Wo=null,Jo=0,Go=[],$o=0,Ko=null,Zo=1,Xo="";function Yo(e,t){Ho[Uo++]=Jo,Ho[Uo++]=Wo,Wo=e,Jo=t}function ei(e,t,n){Go[$o++]=Zo,Go[$o++]=Xo,Go[$o++]=Ko,Ko=e;var r=Zo;e=Xo;var o=32-st(r)-1;r&=~(1<<o),n+=1;var i=32-st(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Zo=1<<32-st(t)+o|n<<o|r,Xo=i+e}else Zo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Yo(e,1),ei(e,1,0))}function ni(e){for(;e===Wo;)Wo=Ho[--Uo],Ho[Uo]=null,Jo=Ho[--Uo],Ho[Uo]=null;for(;e===Ko;)Ko=Go[--$o],Go[$o]=null,Xo=Go[--$o],Go[$o]=null,Zo=Go[--$o],Go[$o]=null}var ri=null,oi=null,ii=!1,si=null;function ai(e,t){var n=Du(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Zo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Du(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?ai(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function di(e){if(e!==ri)return!1;if(!ii)return pi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw hi(),Error(i(418));for(;t;)ai(e,t),t=uo(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=uo(e.nextSibling)}function fi(){oi=ri=null,ii=!1}function gi(e){null===si?si=[e]:si.push(e)}var mi=C.ReactCurrentBatchConfig;function yi(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vi=So(null),bi=null,Ci=null,wi=null;function xi(){wi=Ci=bi=null}function Pi(e){var t=vi.current;Vo(vi),e._currentValue=t}function _i(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Si(e,t){bi=e,wi=Ci=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ca=!0),e.firstContext=null)}function Vi(e){var t=e._currentValue;if(wi!==e)if(e={context:e,memoizedValue:t,next:null},null===Ci){if(null===bi)throw Error(i(308));Ci=e,bi.dependencies={lanes:0,firstContext:e}}else Ci=Ci.next=e;return t}var Oi=null;function Ei(e){null===Oi?Oi=[e]:Oi.push(e)}function Ti(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ei(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ii(e,r)}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ri=!1;function Di(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ji(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ki(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Tl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Ei(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function Mi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Li(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ai(e,t,n,r){var o=e.updateQueue;Ri=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(null!==a){o.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&(a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l)}if(null!==i){var p=o.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,h=a.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,g=a;switch(d=t,h=n,g.tag){case 1:if("function"==typeof(f=g.payload)){p=f.call(h,p,d);break e}p=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(d="function"==typeof(f=g.payload)?f.call(h,p,d):f))break e;p=L({},p,d);break e;case 2:Ri=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=p):c=c.next=h,s|=d;if(null===(a=a.next)){if(null===(a=o.shared.pending))break;a=(d=a).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(l=p),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{s|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ll|=s,e.lanes=s,e.memoizedState=p}}function Ni(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Bi=(new r.Component).refs;function Fi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Qi={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=ki(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=qi(e,i,o))&&(ru(t,e,o,r),Mi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=ki(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=qi(e,i,o))&&(ru(t,e,o,r),Mi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=ki(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=qi(e,o,r))&&(ru(t,e,r,n),Mi(t,e,r))}};function zi(e,t,n,r,o,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function Hi(e,t,n){var r=!1,o=Eo,i=t.contextType;return"object"==typeof i&&null!==i?i=Vi(i):(o=jo(t)?Ro:To.current,i=(r=null!=(r=t.contextTypes))?Do(e,o):Eo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Qi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ui(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Qi.enqueueReplaceState(t,t.state,null)}function Wi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Bi,Di(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Vi(i):(i=jo(t)?Ro:To.current,o.context=Do(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Fi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Qi.enqueueReplaceState(o,o.state,null),Ai(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ji(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,s=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=o.refs;t===Bi&&(t=o.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Gi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $i(e){return(0,e._init)(e._payload)}function Ki(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=ku(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Au(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===P?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===D&&$i(i)===t.type)?((r=o(t,n.props)).ref=Ji(e,t,n),r.return=e,r):((r=qu(n.type,n.key,n.props,null,e.mode,r)).ref=Ji(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Nu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,i){return null===t||7!==t.tag?((t=Mu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Au(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=qu(t.type,t.key,t.props,null,e.mode,n)).ref=Ji(e,null,t),n.return=e,n;case x:return(t=Nu(t,e.mode,n)).return=e,t;case D:return d(e,(0,t._init)(t._payload),n)}if(te(t)||q(t))return(t=Mu(t,e.mode,n,null)).return=e,t;Gi(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?u(e,t,n,r):null;case x:return n.key===o?c(e,t,n,r):null;case D:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||q(n))return null!==o?null:p(e,t,n,r,null);Gi(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case D:return f(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||q(r))return p(t,e=e.get(n)||null,r,o,null);Gi(t,r)}return null}function g(o,i,a,l){for(var u=null,c=null,p=i,g=i=0,m=null;null!==p&&g<a.length;g++){p.index>g?(m=p,p=null):m=p.sibling;var y=h(o,p,a[g],l);if(null===y){null===p&&(p=m);break}e&&p&&null===y.alternate&&t(o,p),i=s(y,i,g),null===c?u=y:c.sibling=y,c=y,p=m}if(g===a.length)return n(o,p),ii&&Yo(o,g),u;if(null===p){for(;g<a.length;g++)null!==(p=d(o,a[g],l))&&(i=s(p,i,g),null===c?u=p:c.sibling=p,c=p);return ii&&Yo(o,g),u}for(p=r(o,p);g<a.length;g++)null!==(m=f(p,o,g,a[g],l))&&(e&&null!==m.alternate&&p.delete(null===m.key?g:m.key),i=s(m,i,g),null===c?u=m:c.sibling=m,c=m);return e&&p.forEach((function(e){return t(o,e)})),ii&&Yo(o,g),u}function m(o,a,l,u){var c=q(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var p=c=null,g=a,m=a=0,y=null,v=l.next();null!==g&&!v.done;m++,v=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var b=h(o,g,v.value,u);if(null===b){null===g&&(g=y);break}e&&g&&null===b.alternate&&t(o,g),a=s(b,a,m),null===p?c=b:p.sibling=b,p=b,g=y}if(v.done)return n(o,g),ii&&Yo(o,m),c;if(null===g){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,u))&&(a=s(v,a,m),null===p?c=v:p.sibling=v,p=v);return ii&&Yo(o,m),c}for(g=r(o,g);!v.done;m++,v=l.next())null!==(v=f(g,o,m,v.value,u))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),a=s(v,a,m),null===p?c=v:p.sibling=v,p=v);return e&&g.forEach((function(e){return t(o,e)})),ii&&Yo(o,m),c}return function e(r,i,s,l){if("object"==typeof s&&null!==s&&s.type===P&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case w:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===P){if(7===c.tag){n(r,c.sibling),(i=o(c,s.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===D&&$i(u)===c.type){n(r,c.sibling),(i=o(c,s.props)).ref=Ji(r,c,s),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===P?((i=Mu(s.props.children,r.mode,l,s.key)).return=r,r=i):((l=qu(s.type,s.key,s.props,null,r.mode,l)).ref=Ji(r,i,s),l.return=r,r=l)}return a(r);case x:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(r,i.sibling),(i=o(i,s.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Nu(s,r.mode,l)).return=r,r=i}return a(r);case D:return e(r,i,(c=s._init)(s._payload),l)}if(te(s))return g(r,i,s,l);if(q(s))return m(r,i,s,l);Gi(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,s)).return=r,r=i):(n(r,i),(i=Au(s,r.mode,l)).return=r,r=i),a(r)):n(r,i)}}var Zi=Ki(!0),Xi=Ki(!1),Yi={},es=So(Yi),ts=So(Yi),ns=So(Yi);function rs(e){if(e===Yi)throw Error(i(174));return e}function os(e,t){switch(Oo(ns,t),Oo(ts,e),Oo(es,Yi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Vo(es),Oo(es,t)}function is(){Vo(es),Vo(ts),Vo(ns)}function ss(e){rs(ns.current);var t=rs(es.current),n=le(t,e.type);t!==n&&(Oo(ts,e),Oo(es,n))}function as(e){ts.current===e&&(Vo(es),Vo(ts))}var ls=So(0);function us(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cs=[];function ps(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var ds=C.ReactCurrentDispatcher,hs=C.ReactCurrentBatchConfig,fs=0,gs=null,ms=null,ys=null,vs=!1,bs=!1,Cs=0,ws=0;function xs(){throw Error(i(321))}function Ps(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function _s(e,t,n,r,o,s){if(fs=s,gs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ds.current=null===e||null===e.memoizedState?aa:la,e=n(r,o),bs){s=0;do{if(bs=!1,Cs=0,25<=s)throw Error(i(301));s+=1,ys=ms=null,t.updateQueue=null,ds.current=ua,e=n(r,o)}while(bs)}if(ds.current=sa,t=null!==ms&&null!==ms.next,fs=0,ys=ms=gs=null,vs=!1,t)throw Error(i(300));return e}function Ss(){var e=0!==Cs;return Cs=0,e}function Vs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ys?gs.memoizedState=ys=e:ys=ys.next=e,ys}function Os(){if(null===ms){var e=gs.alternate;e=null!==e?e.memoizedState:null}else e=ms.next;var t=null===ys?gs.memoizedState:ys.next;if(null!==t)ys=t,ms=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ms=e).memoizedState,baseState:ms.baseState,baseQueue:ms.baseQueue,queue:ms.queue,next:null},null===ys?gs.memoizedState=ys=e:ys=ys.next=e}return ys}function Es(e,t){return"function"==typeof t?t(e):t}function Ts(e){var t=Os(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ms,o=r.baseQueue,s=n.pending;if(null!==s){if(null!==o){var a=o.next;o.next=s.next,s.next=a}r.baseQueue=o=s,n.pending=null}if(null!==o){s=o.next,r=r.baseState;var l=a=null,u=null,c=s;do{var p=c.lane;if((fs&p)===p)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=r):u=u.next=d,gs.lanes|=p,Ll|=p}c=c.next}while(null!==c&&c!==s);null===u?a=r:u.next=l,ar(r,t.memoizedState)||(Ca=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{s=o.lane,gs.lanes|=s,Ll|=s,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Is(e){var t=Os(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{s=e(s,a.action),a=a.next}while(a!==o);ar(s,t.memoizedState)||(Ca=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Rs(){}function Ds(e,t){var n=gs,r=Os(),o=t(),s=!ar(r.memoizedState,o);if(s&&(r.memoizedState=o,Ca=!0),r=r.queue,Hs(qs.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||null!==ys&&1&ys.memoizedState.tag){if(n.flags|=2048,Ns(9,ks.bind(null,n,r,o,t),void 0,null),null===Il)throw Error(i(349));0!=(30&fs)||js(n,t,o)}return o}function js(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ks(e,t,n,r){t.value=n,t.getSnapshot=r,Ms(t)&&Ls(e)}function qs(e,t,n){return n((function(){Ms(t)&&Ls(e)}))}function Ms(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(e){return!0}}function Ls(e){var t=Ii(e,1);null!==t&&ru(t,e,1,-1)}function As(e){var t=Vs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Es,lastRenderedState:e},t.queue=e,e=e.dispatch=na.bind(null,gs,e),[t.memoizedState,e]}function Ns(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Bs(){return Os().memoizedState}function Fs(e,t,n,r){var o=Vs();gs.flags|=e,o.memoizedState=Ns(1|t,n,void 0,void 0===r?null:r)}function Qs(e,t,n,r){var o=Os();r=void 0===r?null:r;var i=void 0;if(null!==ms){var s=ms.memoizedState;if(i=s.destroy,null!==r&&Ps(r,s.deps))return void(o.memoizedState=Ns(t,n,i,r))}gs.flags|=e,o.memoizedState=Ns(1|t,n,i,r)}function zs(e,t){return Fs(8390656,8,e,t)}function Hs(e,t){return Qs(2048,8,e,t)}function Us(e,t){return Qs(4,2,e,t)}function Ws(e,t){return Qs(4,4,e,t)}function Js(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Gs(e,t,n){return n=null!=n?n.concat([e]):null,Qs(4,4,Js.bind(null,t,e),n)}function $s(){}function Ks(e,t){var n=Os();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ps(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zs(e,t){var n=Os();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ps(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xs(e,t,n){return 0==(21&fs)?(e.baseState&&(e.baseState=!1,Ca=!0),e.memoizedState=n):(ar(n,t)||(n=gt(),gs.lanes|=n,Ll|=n,e.baseState=!0),t)}function Ys(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=hs.transition;hs.transition={};try{e(!1),t()}finally{bt=n,hs.transition=r}}function ea(){return Os().memoizedState}function ta(e,t,n){var r=nu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ra(e)?oa(t,n):null!==(n=Ti(e,t,n,r))&&(ru(n,e,r,tu()),ia(n,t,r))}function na(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ra(e))oa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,ar(a,s)){var l=t.interleaved;return null===l?(o.next=o,Ei(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ti(e,t,o,r))&&(ru(n,e,r,o=tu()),ia(n,t,r))}}function ra(e){var t=e.alternate;return e===gs||null!==t&&t===gs}function oa(e,t){bs=vs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ia(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var sa={readContext:Vi,useCallback:xs,useContext:xs,useEffect:xs,useImperativeHandle:xs,useInsertionEffect:xs,useLayoutEffect:xs,useMemo:xs,useReducer:xs,useRef:xs,useState:xs,useDebugValue:xs,useDeferredValue:xs,useTransition:xs,useMutableSource:xs,useSyncExternalStore:xs,useId:xs,unstable_isNewReconciler:!1},aa={readContext:Vi,useCallback:function(e,t){return Vs().memoizedState=[e,void 0===t?null:t],e},useContext:Vi,useEffect:zs,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fs(4194308,4,Js.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fs(4,2,e,t)},useMemo:function(e,t){var n=Vs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ta.bind(null,gs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Vs().memoizedState=e},useState:As,useDebugValue:$s,useDeferredValue:function(e){return Vs().memoizedState=e},useTransition:function(){var e=As(!1),t=e[0];return e=Ys.bind(null,e[1]),Vs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=gs,o=Vs();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Il)throw Error(i(349));0!=(30&fs)||js(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,zs(qs.bind(null,r,s,e),[e]),r.flags|=2048,Ns(9,ks.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Vs(),t=Il.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Zo&~(1<<32-st(Zo)-1)).toString(32)+n),0<(n=Cs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ws++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},la={readContext:Vi,useCallback:Ks,useContext:Vi,useEffect:Hs,useImperativeHandle:Gs,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Zs,useReducer:Ts,useRef:Bs,useState:function(){return Ts(Es)},useDebugValue:$s,useDeferredValue:function(e){return Xs(Os(),ms.memoizedState,e)},useTransition:function(){return[Ts(Es)[0],Os().memoizedState]},useMutableSource:Rs,useSyncExternalStore:Ds,useId:ea,unstable_isNewReconciler:!1},ua={readContext:Vi,useCallback:Ks,useContext:Vi,useEffect:Hs,useImperativeHandle:Gs,useInsertionEffect:Us,useLayoutEffect:Ws,useMemo:Zs,useReducer:Is,useRef:Bs,useState:function(){return Is(Es)},useDebugValue:$s,useDeferredValue:function(e){var t=Os();return null===ms?t.memoizedState=e:Xs(t,ms.memoizedState,e)},useTransition:function(){return[Is(Es)[0],Os().memoizedState]},useMutableSource:Rs,useSyncExternalStore:Ds,useId:ea,unstable_isNewReconciler:!1};function ca(e,t){try{var n="",r=t;do{n+=F(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function pa(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function da(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ha="function"==typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=ki(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Wl=r),da(0,t)},n}function ga(e,t,n){(n=ki(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){da(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){da(0,t),"function"!=typeof r&&(null===Jl?Jl=new Set([this]):Jl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ha;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Vu.bind(null,e,t,n),t.then(e,e))}function ya(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function va(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ki(-1,1)).tag=2,qi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ba=C.ReactCurrentOwner,Ca=!1;function wa(e,t,n,r){t.child=null===e?Xi(t,null,n,r):Zi(t,e.child,n,r)}function xa(e,t,n,r,o){n=n.render;var i=t.ref;return Si(t,o),r=_s(e,t,n,r,i,o),n=Ss(),null===e||Ca?(ii&&n&&ti(t),t.flags|=1,wa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Pa(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||ju(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=qu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_a(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(s,r)&&e.ref===t.ref)return Ua(e,t,o)}return t.flags|=1,(e=ku(i,r)).ref=t.ref,e.return=t,t.child=e}function _a(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(Ca=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Ua(e,t,o);0!=(131072&e.flags)&&(Ca=!0)}}return Oa(e,t,n,r,o)}function Sa(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oo(kl,jl),jl|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oo(kl,jl),jl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Oo(kl,jl),jl|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Oo(kl,jl),jl|=r;return wa(e,t,o,n),t.child}function Va(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Oa(e,t,n,r,o){var i=jo(n)?Ro:To.current;return i=Do(t,i),Si(t,o),n=_s(e,t,n,r,i,o),r=Ss(),null===e||Ca?(ii&&r&&ti(t),t.flags|=1,wa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ua(e,t,o))}function Ea(e,t,n,r,o){if(jo(n)){var i=!0;Lo(t)}else i=!1;if(Si(t,o),null===t.stateNode)Ha(e,t),Hi(t,n,r),Wi(t,n,r,o),r=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;u="object"==typeof u&&null!==u?Vi(u):Do(t,u=jo(n)?Ro:To.current);var c=n.getDerivedStateFromProps,p="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==r||l!==u)&&Ui(t,s,r,u),Ri=!1;var d=t.memoizedState;s.state=d,Ai(t,r,s,o),l=t.memoizedState,a!==r||d!==l||Io.current||Ri?("function"==typeof c&&(Fi(t,n,c,r),l=t.memoizedState),(a=Ri||zi(t,n,a,r,d,l,u))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.flags|=4194308)):("function"==typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):("function"==typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,ji(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:yi(t.type,a),s.props=u,p=t.pendingProps,d=s.context,l="object"==typeof(l=n.contextType)&&null!==l?Vi(l):Do(t,l=jo(n)?Ro:To.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==p||d!==l)&&Ui(t,s,r,l),Ri=!1,d=t.memoizedState,s.state=d,Ai(t,r,s,o);var f=t.memoizedState;a!==p||d!==f||Io.current||Ri?("function"==typeof h&&(Fi(t,n,h,r),f=t.memoizedState),(u=Ri||zi(t,n,u,r,d,f,l)||!1)?(c||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof s.componentDidUpdate&&(t.flags|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=l,r=u):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Ta(e,t,n,r,i,o)}function Ta(e,t,n,r,o,i){Va(e,t);var s=0!=(128&t.flags);if(!r&&!s)return o&&Ao(t,n,!1),Ua(e,t,i);r=t.stateNode,ba.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&s?(t.child=Zi(t,e.child,null,i),t.child=Zi(t,null,a,i)):wa(e,t,a,i),t.memoizedState=r.state,o&&Ao(t,n,!0),t.child}function Ia(e){var t=e.stateNode;t.pendingContext?qo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&qo(0,t.context,!1),os(e,t.containerInfo)}function Ra(e,t,n,r,o){return fi(),gi(o),t.flags|=256,wa(e,t,n,r),t.child}var Da,ja,ka,qa,Ma={dehydrated:null,treeContext:null,retryLane:0};function La(e){return{baseLanes:e,cachePool:null,transitions:null}}function Aa(e,t,n){var r,o=t.pendingProps,s=ls.current,a=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&s)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Oo(ls,1&s),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Lu(l,o,0,null),e=Mu(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=La(n),t.memoizedState=Ma,e):Na(t,l));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,o,s,a){if(n)return 256&t.flags?(t.flags&=-257,Ba(e,t,a,r=pa(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=Lu({mode:"visible",children:r.children},o,0,null),(s=Mu(s,o,a,null)).flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,0!=(1&t.mode)&&Zi(t,e.child,null,a),t.child.memoizedState=La(a),t.memoizedState=Ma,s);if(0==(1&t.mode))return Ba(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Ba(e,t,a,r=pa(s=Error(i(419)),r,void 0))}if(l=0!=(a&e.childLanes),Ca||l){if(null!==(r=Il)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|a))?0:o)&&o!==s.retryLane&&(s.retryLane=o,Ii(e,o),ru(r,e,o,-1))}return mu(),Ba(e,t,a,r=pa(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Eu.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,si=null,null!==e&&(Go[$o++]=Zo,Go[$o++]=Xo,Go[$o++]=Ko,Zo=e.id,Xo=e.overflow,Ko=t),(t=Na(t,r.children)).flags|=4096,t)}(e,t,l,o,r,s,n);if(a){a=o.fallback,l=t.mode,r=(s=e.child).sibling;var u={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==s?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=ku(s,u)).subtreeFlags=14680064&s.subtreeFlags,null!==r?a=ku(r,a):(a=Mu(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?La(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Ma,o}return e=(a=e.child).sibling,o=ku(a,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Na(e,t){return(t=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ba(e,t,n,r){return null!==r&&gi(r),Zi(t,e.child,null,n),(e=Na(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fa(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_i(e.return,t,n)}function Qa(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function za(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wa(e,t,r.children,n),0!=(2&(r=ls.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fa(e,n,t);else if(19===e.tag)Fa(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Oo(ls,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===us(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Qa(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===us(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Qa(t,!0,n,null,i);break;case"together":Qa(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ha(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=ku(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ku(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Wa(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ja(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ga(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ja(t),null;case 1:case 17:return jo(t.type)&&ko(),Ja(t),null;case 3:return r=t.stateNode,is(),Vo(Io),Vo(To),ps(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==si&&(au(si),si=null))),ja(e,t),Ja(t),null;case 5:as(t);var o=rs(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)ka(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ja(t),null}if(e=rs(es.current),di(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ho]=t,r[fo]=s,e=0!=(1&t.mode),n){case"dialog":Nr("cancel",r),Nr("close",r);break;case"iframe":case"object":case"embed":Nr("load",r);break;case"video":case"audio":for(o=0;o<qr.length;o++)Nr(qr[o],r);break;case"source":Nr("error",r);break;case"img":case"image":case"link":Nr("error",r),Nr("load",r);break;case"details":Nr("toggle",r);break;case"input":K(r,s),Nr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Nr("invalid",r);break;case"textarea":oe(r,s),Nr("invalid",r)}for(var l in ve(n,s),o=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(r.textContent,u,e),o=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Nr("scroll",r)}switch(n){case"input":W(r),Y(r,s,!0);break;case"textarea":W(r),se(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Yr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[fo]=r,Da(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Nr("cancel",e),Nr("close",e),o=r;break;case"iframe":case"object":case"embed":Nr("load",e),o=r;break;case"video":case"audio":for(o=0;o<qr.length;o++)Nr(qr[o],e);o=r;break;case"source":Nr("error",e),o=r;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),o=r;break;case"details":Nr("toggle",e),o=r;break;case"input":K(e,r),o=$(e,r),Nr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Nr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Nr("invalid",e)}for(s in ve(n,o),u=o)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?me(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===s?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Nr("scroll",e):null!=c&&b(e,s,c,l))}switch(n){case"input":W(e),Y(e,r,!1);break;case"textarea":W(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ne(e,!!r.multiple,s,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Yr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ja(t),null;case 6:if(e&&null!=t.stateNode)qa(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=rs(ns.current),rs(es.current),di(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(s=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Xr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!=(1&e.mode))}s&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Ja(t),null;case 13:if(Vo(ls),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!=(1&t.mode)&&0==(128&t.flags))hi(),fi(),t.flags|=98560,s=!1;else if(s=di(t),null!==r&&null!==r.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[ho]=t}else fi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ja(t),s=!1}else null!==si&&(au(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ls.current)?0===ql&&(ql=3):mu())),null!==t.updateQueue&&(t.flags|=4),Ja(t),null);case 4:return is(),ja(e,t),null===e&&Qr(t.stateNode.containerInfo),Ja(t),null;case 10:return Pi(t.type._context),Ja(t),null;case 19:if(Vo(ls),null===(s=t.memoizedState))return Ja(t),null;if(r=0!=(128&t.flags),null===(l=s.rendering))if(r)Wa(s,!1);else{if(0!==ql||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=us(e))){for(t.flags|=128,Wa(s,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Oo(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Ze()>zl&&(t.flags|=128,r=!0,Wa(s,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=us(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Wa(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Ja(t),null}else 2*Ze()-s.renderingStartTime>zl&&1073741824!==n&&(t.flags|=128,r=!0,Wa(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ze(),t.sibling=null,n=ls.current,Oo(ls,r?1&n|2:1&n),t):(Ja(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&jl)&&(Ja(t),6&t.subtreeFlags&&(t.flags|=8192)):Ja(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function $a(e,t){switch(ni(t),t.tag){case 1:return jo(t.type)&&ko(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return is(),Vo(Io),Vo(To),ps(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return as(t),null;case 13:if(Vo(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Vo(ls),null;case 4:return is(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Da=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ja=function(){},ka=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,rs(es.current);var i,s=null;switch(n){case"input":o=$(e,o),r=$(e,r),s=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),s=[];break;case"textarea":o=re(e,o),r=re(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(c in ve(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Nr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ka=!1,Za=!1,Xa="function"==typeof WeakSet?WeakSet:Set,Ya=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Su(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Su(e,t,n)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tl(t,n,i)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[fo],delete t[mo],delete t[yo],delete t[vo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Yr));else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var pl=null,dl=!1;function hl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Za||el(n,t);case 6:var r=pl,o=dl;pl=null,hl(e,t,n),dl=o,null!==(pl=r)&&(dl?(e=pl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):pl.removeChild(n.stateNode));break;case 18:null!==pl&&(dl?(e=pl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Qt(e)):lo(pl,n.stateNode));break;case 4:r=pl,o=dl,pl=n.stateNode.containerInfo,dl=!0,hl(e,t,n),pl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Za&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,void 0!==s&&(0!=(2&i)||0!=(4&i))&&tl(n,t,s),o=o.next}while(o!==r)}hl(e,t,n);break;case 1:if(!Za&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Su(n,t,e)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Za=(r=Za)||null!==n.memoizedState,hl(e,t,n),Za=r):hl(e,t,n);break;default:hl(e,t,n)}}function gl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xa),t.forEach((function(t){var r=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:pl=l.stateNode,dl=!1;break e;case 3:case 4:pl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===pl)throw Error(i(160));fl(s,a,o),pl=null,dl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Su(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yl(t,e),t=t.sibling}function yl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),vl(e),4&r){try{rl(3,e,e.return),ol(3,e)}catch(t){Su(e,e.return,t)}try{rl(5,e,e.return)}catch(t){Su(e,e.return,t)}}break;case 1:ml(t,e),vl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(ml(t,e),vl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){Su(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&Z(o,s),be(l,a);var c=be(l,s);for(a=0;a<u.length;a+=2){var p=u[a],d=u[a+1];"style"===p?me(o,d):"dangerouslySetInnerHTML"===p?pe(o,d):"children"===p?de(o,d):b(o,p,d,c)}switch(l){case"input":X(o,s);break;case"textarea":ie(o,s);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?ne(o,!!s.multiple,f,!1):h!==!!s.multiple&&(null!=s.defaultValue?ne(o,!!s.multiple,s.defaultValue,!0):ne(o,!!s.multiple,s.multiple?[]:"",!1))}o[fo]=s}catch(t){Su(e,e.return,t)}}break;case 6:if(ml(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(t){Su(e,e.return,t)}}break;case 3:if(ml(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Qt(t.containerInfo)}catch(t){Su(e,e.return,t)}break;case 4:default:ml(t,e),vl(e);break;case 13:ml(t,e),vl(e),8192&(o=e.child).flags&&(s=null!==o.memoizedState,o.stateNode.isHidden=s,!s||null!==o.alternate&&null!==o.alternate.memoizedState||(Ql=Ze())),4&r&&gl(e);break;case 22:if(p=null!==n&&null!==n.memoizedState,1&e.mode?(Za=(c=Za)||p,ml(t,e),Za=c):ml(t,e),vl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!p&&0!=(1&e.mode))for(Ya=e,p=e.child;null!==p;){for(d=Ya=p;null!==Ya;){switch(f=(h=Ya).child,h.tag){case 0:case 11:case 14:case 15:rl(4,h,h.return);break;case 1:el(h,h.return);var g=h.stateNode;if("function"==typeof g.componentWillUnmount){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){Su(r,n,e)}}break;case 5:el(h,h.return);break;case 22:if(null!==h.memoizedState){xl(d);continue}}null!==f?(f.return=h,Ya=f):xl(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{o=d.stateNode,c?"function"==typeof(s=o.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,a=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=ge("display",a))}catch(t){Su(e,e.return,t)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Su(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ml(t,e),vl(e),4&r&&gl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),cl(e,ll(e),o);break;case 3:case 4:var s=r.stateNode.containerInfo;ul(e,ll(e),s);break;default:throw Error(i(161))}}catch(t){Su(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Ya=e,Cl(e,t,n)}function Cl(e,t,n){for(var r=0!=(1&e.mode);null!==Ya;){var o=Ya,i=o.child;if(22===o.tag&&r){var s=null!==o.memoizedState||Ka;if(!s){var a=o.alternate,l=null!==a&&null!==a.memoizedState||Za;a=Ka;var u=Za;if(Ka=s,(Za=l)&&!u)for(Ya=o;null!==Ya;)l=(s=Ya).child,22===s.tag&&null!==s.memoizedState?Pl(o):null!==l?(l.return=s,Ya=l):Pl(o);for(;null!==i;)Ya=i,Cl(i,t,n),i=i.sibling;Ya=o,Ka=a,Za=u}wl(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Ya=i):wl(e)}}function wl(e){for(;null!==Ya;){var t=Ya;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Za||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Za)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:yi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Ni(t,s,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ni(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var p=c.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&Qt(d)}}}break;default:throw Error(i(163))}Za||512&t.flags&&il(t)}catch(e){Su(t,t.return,e)}}if(t===e){Ya=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ya=n;break}Ya=t.return}}function xl(e){for(;null!==Ya;){var t=Ya;if(t===e){Ya=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ya=n;break}Ya=t.return}}function Pl(e){for(;null!==Ya;){var t=Ya;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(e){Su(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Su(t,o,e)}}var i=t.return;try{il(t)}catch(e){Su(t,i,e)}break;case 5:var s=t.return;try{il(t)}catch(e){Su(t,s,e)}}}catch(e){Su(t,t.return,e)}if(t===e){Ya=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Ya=a;break}Ya=t.return}}var _l,Sl=Math.ceil,Vl=C.ReactCurrentDispatcher,Ol=C.ReactCurrentOwner,El=C.ReactCurrentBatchConfig,Tl=0,Il=null,Rl=null,Dl=0,jl=0,kl=So(0),ql=0,Ml=null,Ll=0,Al=0,Nl=0,Bl=null,Fl=null,Ql=0,zl=1/0,Hl=null,Ul=!1,Wl=null,Jl=null,Gl=!1,$l=null,Kl=0,Zl=0,Xl=null,Yl=-1,eu=0;function tu(){return 0!=(6&Tl)?Ze():-1!==Yl?Yl:Yl=Ze()}function nu(e){return 0==(1&e.mode)?1:0!=(2&Tl)&&0!==Dl?Dl&-Dl:null!==mi.transition?(0===eu&&(eu=gt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function ru(e,t,n,r){if(50<Zl)throw Zl=0,Xl=null,Error(i(185));yt(e,n,r),0!=(2&Tl)&&e===Il||(e===Il&&(0==(2&Tl)&&(Al|=n),4===ql&&lu(e,Dl)),ou(e,r),1===n&&0===Tl&&0==(1&t.mode)&&(zl=Ze()+500,Bo&&zo()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=o[s];-1===l?0!=(a&n)&&0==(a&r)||(o[s]=ht(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var r=dt(e,e===Il?Dl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Bo=!0,Qo(e)}(uu.bind(null,e)):Qo(uu.bind(null,e)),so((function(){0==(6&Tl)&&zo()})),n=null;else{switch(Ct(r)){case 1:n=Ye;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Iu(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Yl=-1,eu=0,0!=(6&Tl))throw Error(i(327));var n=e.callbackNode;if(Pu()&&e.callbackNode!==n)return null;var r=dt(e,e===Il?Dl:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=yu(e,r);else{t=r;var o=Tl;Tl|=2;var s=gu();for(Il===e&&Dl===t||(Hl=null,zl=Ze()+500,hu(e,t));;)try{bu();break}catch(t){fu(e,t)}xi(),Vl.current=s,Tl=o,null!==Rl?t=0:(Il=null,Dl=0,t=ql)}if(0!==t){if(2===t&&0!==(o=ft(e))&&(r=o,t=su(e,o)),1===t)throw n=Ml,hu(e,0),lu(e,r),ou(e,Ze()),n;if(6===t)lu(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ar(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=yu(e,r))&&0!==(s=ft(e))&&(r=s,t=su(e,s)),1===t))throw n=Ml,hu(e,0),lu(e,r),ou(e,Ze()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xu(e,Fl,Hl);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Ql+500-Ze())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xu.bind(null,e,Fl,Hl),t);break}xu(e,Fl,Hl);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-st(r);s=1<<a,(a=t[a])>o&&(o=a),r&=~s}if(r=o,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ro(xu.bind(null,e,Fl,Hl),r);break}xu(e,Fl,Hl);break;default:throw Error(i(329))}}}return ou(e,Ze()),e.callbackNode===n?iu.bind(null,e):null}function su(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=yu(e,t))&&(t=Fl,Fl=n,null!==t&&au(t)),e}function au(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function lu(e,t){for(t&=~Nl,t&=~Al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(0!=(6&Tl))throw Error(i(327));Pu();var t=dt(e,0);if(0==(1&t))return ou(e,Ze()),null;var n=yu(e,t);if(0!==e.tag&&2===n){var r=ft(e);0!==r&&(t=r,n=su(e,r))}if(1===n)throw n=Ml,hu(e,0),lu(e,t),ou(e,Ze()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xu(e,Fl,Hl),ou(e,Ze()),null}function cu(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(zl=Ze()+500,Bo&&zo())}}function pu(e){null!==$l&&0===$l.tag&&0==(6&Tl)&&Pu();var t=Tl;Tl|=1;var n=El.transition,r=bt;try{if(El.transition=null,bt=1,e)return e()}finally{bt=r,El.transition=n,0==(6&(Tl=t))&&zo()}}function du(){jl=kl.current,Vo(kl)}function hu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Rl)for(n=Rl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&ko();break;case 3:is(),Vo(Io),Vo(To),ps();break;case 5:as(r);break;case 4:is();break;case 13:case 19:Vo(ls);break;case 10:Pi(r.type._context);break;case 22:case 23:du()}n=n.return}if(Il=e,Rl=e=ku(e.current,null),Dl=jl=t,ql=0,Ml=null,Nl=Al=Ll=0,Fl=Bl=null,null!==Oi){for(t=0;t<Oi.length;t++)if(null!==(r=(n=Oi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var s=i.next;i.next=o,r.next=s}n.pending=r}Oi=null}return e}function fu(e,t){for(;;){var n=Rl;try{if(xi(),ds.current=sa,vs){for(var r=gs.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}vs=!1}if(fs=0,ys=ms=gs=null,bs=!1,Cs=0,Ol.current=null,null===n||null===n.return){ql=1,Ml=t,Rl=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=Dl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,p=l,d=p.tag;if(0==(1&p.mode)&&(0===d||11===d||15===d)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var f=ya(a);if(null!==f){f.flags&=-257,va(f,a,l,0,t),1&f.mode&&ma(s,c,t),u=c;var g=(t=f).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(0==(1&t)){ma(s,c,t),mu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var y=ya(a);if(null!==y){0==(65536&y.flags)&&(y.flags|=256),va(y,a,l,0,t),gi(ca(u,l));break e}}s=u=ca(u,l),4!==ql&&(ql=2),null===Bl?Bl=[s]:Bl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,Li(s,fa(0,u,t));break e;case 1:l=u;var v=s.type,b=s.stateNode;if(0==(128&s.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Jl||!Jl.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t,Li(s,ga(s,l,t));break e}}s=s.return}while(null!==s)}wu(n)}catch(e){t=e,Rl===n&&null!==n&&(Rl=n=n.return);continue}break}}function gu(){var e=Vl.current;return Vl.current=sa,null===e?sa:e}function mu(){0!==ql&&3!==ql&&2!==ql||(ql=4),null===Il||0==(268435455&Ll)&&0==(268435455&Al)||lu(Il,Dl)}function yu(e,t){var n=Tl;Tl|=2;var r=gu();for(Il===e&&Dl===t||(Hl=null,hu(e,t));;)try{vu();break}catch(t){fu(e,t)}if(xi(),Tl=n,Vl.current=r,null!==Rl)throw Error(i(261));return Il=null,Dl=0,ql}function vu(){for(;null!==Rl;)Cu(Rl)}function bu(){for(;null!==Rl&&!$e();)Cu(Rl)}function Cu(e){var t=_l(e.alternate,e,jl);e.memoizedProps=e.pendingProps,null===t?wu(e):Rl=t,Ol.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Ga(n,t,jl)))return void(Rl=n)}else{if(null!==(n=$a(n,t)))return n.flags&=32767,void(Rl=n);if(null===e)return ql=6,void(Rl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Rl=t);Rl=t=e}while(null!==t);0===ql&&(ql=5)}function xu(e,t,n){var r=bt,o=El.transition;try{El.transition=null,bt=1,function(e,t,n,r){do{Pu()}while(null!==$l);if(0!=(6&Tl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-st(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,s),e===Il&&(Rl=Il=null,Dl=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Gl||(Gl=!0,Iu(tt,(function(){return Pu(),null}))),s=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||s){s=El.transition,El.transition=null;var a=bt;bt=1;var l=Tl;Tl|=4,Ol.current=null,function(e,t){if(eo=Ht,hr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(e){n=null;break e}var a=0,l=-1,u=-1,c=0,p=0,d=e,h=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==s||0!==r&&3!==d.nodeType||(u=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===o&&(l=a),h===s&&++p===r&&(u=a),null!==(f=d.nextSibling))break;h=(d=h).parentNode}d=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Ya=t;null!==Ya;)if(e=(t=Ya).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ya=e;else for(;null!==Ya;){t=Ya;try{var g=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,y=g.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:yi(t.type,m),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;1===C.nodeType?C.textContent="":9===C.nodeType&&C.documentElement&&C.removeChild(C.documentElement);break;default:throw Error(i(163))}}catch(e){Su(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ya=e;break}Ya=t.return}g=nl,nl=!1}(e,n),yl(n,e),fr(to),Ht=!!eo,to=eo=null,e.current=n,bl(n,e,o),Ke(),Tl=l,bt=a,El.transition=s}else e.current=n;if(Gl&&(Gl=!1,$l=e,Kl=o),0===(s=e.pendingLanes)&&(Jl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),ou(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Ul)throw Ul=!1,e=Wl,Wl=null,e;0!=(1&Kl)&&0!==e.tag&&Pu(),0!=(1&(s=e.pendingLanes))?e===Xl?Zl++:(Zl=0,Xl=e):Zl=0,zo()}(e,t,n,r)}finally{El.transition=o,bt=r}return null}function Pu(){if(null!==$l){var e=Ct(Kl),t=El.transition,n=bt;try{if(El.transition=null,bt=16>e?16:e,null===$l)var r=!1;else{if(e=$l,$l=null,Kl=0,0!=(6&Tl))throw Error(i(331));var o=Tl;for(Tl|=4,Ya=e.current;null!==Ya;){var s=Ya,a=s.child;if(0!=(16&Ya.flags)){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Ya=c;null!==Ya;){var p=Ya;switch(p.tag){case 0:case 11:case 15:rl(8,p,s)}var d=p.child;if(null!==d)d.return=p,Ya=d;else for(;null!==Ya;){var h=(p=Ya).sibling,f=p.return;if(sl(p),p===c){Ya=null;break}if(null!==h){h.return=f,Ya=h;break}Ya=f}}}var g=s.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Ya=s}}if(0!=(2064&s.subtreeFlags)&&null!==a)a.return=s,Ya=a;else e:for(;null!==Ya;){if(0!=(2048&(s=Ya).flags))switch(s.tag){case 0:case 11:case 15:rl(9,s,s.return)}var v=s.sibling;if(null!==v){v.return=s.return,Ya=v;break e}Ya=s.return}}var b=e.current;for(Ya=b;null!==Ya;){var C=(a=Ya).child;if(0!=(2064&a.subtreeFlags)&&null!==C)C.return=a,Ya=C;else e:for(a=b;null!==Ya;){if(0!=(2048&(l=Ya).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){Su(l,l.return,e)}if(l===a){Ya=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Ya=w;break e}Ya=l.return}}if(Tl=o,zo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,El.transition=t}}return!1}function _u(e,t,n){e=qi(e,t=fa(0,t=ca(n,t),1),1),t=tu(),null!==e&&(yt(e,1,t),ou(e,t))}function Su(e,t,n){if(3===e.tag)_u(e,e,n);else for(;null!==t;){if(3===t.tag){_u(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Jl||!Jl.has(r))){t=qi(t,e=ga(t,e=ca(n,e),1),1),e=tu(),null!==t&&(yt(t,1,e),ou(t,e));break}}t=t.return}}function Vu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Il===e&&(Dl&n)===n&&(4===ql||3===ql&&(130023424&Dl)===Dl&&500>Ze()-Ql?hu(e,0):Nl|=n),ou(e,t)}function Ou(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ct,0==(130023424&(ct<<=1))&&(ct=4194304)));var n=tu();null!==(e=Ii(e,t))&&(yt(e,t,n),ou(e,n))}function Eu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function Tu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ou(e,n)}function Iu(e,t){return Je(e,t)}function Ru(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Du(e,t,n,r){return new Ru(e,t,n,r)}function ju(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ku(e,t){var n=e.alternate;return null===n?((n=Du(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qu(e,t,n,r,o,s){var a=2;if(r=e,"function"==typeof e)ju(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case P:return Mu(n.children,o,s,t);case _:a=8,o|=8;break;case S:return(e=Du(12,n,t,2|o)).elementType=S,e.lanes=s,e;case T:return(e=Du(13,n,t,o)).elementType=T,e.lanes=s,e;case I:return(e=Du(19,n,t,o)).elementType=I,e.lanes=s,e;case j:return Lu(n,o,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case V:a=10;break e;case O:a=9;break e;case E:a=11;break e;case R:a=14;break e;case D:a=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Du(a,n,t,o)).elementType=e,t.type=r,t.lanes=s,t}function Mu(e,t,n,r){return(e=Du(7,e,r,t)).lanes=n,e}function Lu(e,t,n,r){return(e=Du(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function Au(e,t,n){return(e=Du(6,e,null,t)).lanes=n,e}function Nu(e,t,n){return(t=Du(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fu(e,t,n,r,o,i,s,a,l){return e=new Bu(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Du(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Di(i),e}function Qu(e){if(!e)return Eo;e:{if(Qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(jo(n))return Mo(e,n,t)}return t}function zu(e,t,n,r,o,i,s,a,l){return(e=Fu(n,r,!0,e,0,i,0,a,l)).context=Qu(null),n=e.current,(i=ki(r=tu(),o=nu(n))).callback=null!=t?t:null,qi(n,i,o),e.current.lanes=o,yt(e,o,r),ou(e,r),e}function Hu(e,t,n,r){var o=t.current,i=tu(),s=nu(o);return n=Qu(n),null===t.context?t.context=n:t.pendingContext=n,(t=ki(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=qi(o,t,s))&&(ru(e,o,s,i),Mi(e,o,s)),s}function Uu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ju(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}_l=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Io.current)Ca=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Ca=!1,function(e,t,n){switch(t.tag){case 3:Ia(t),fi();break;case 5:ss(t);break;case 1:jo(t.type)&&Lo(t);break;case 4:os(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Oo(vi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Oo(ls,1&ls.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Aa(e,t,n):(Oo(ls,1&ls.current),null!==(e=Ua(e,t,n))?e.sibling:null);Oo(ls,1&ls.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return za(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Oo(ls,ls.current),r)break;return null;case 22:case 23:return t.lanes=0,Sa(e,t,n)}return Ua(e,t,n)}(e,t,n);Ca=0!=(131072&e.flags)}else Ca=!1,ii&&0!=(1048576&t.flags)&&ei(t,Jo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ha(e,t),e=t.pendingProps;var o=Do(t,To.current);Si(t,n),o=_s(null,t,r,e,o,n);var s=Ss();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,jo(r)?(s=!0,Lo(t)):s=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Di(t),o.updater=Qi,t.stateNode=o,o._reactInternals=t,Wi(t,r,e,n),t=Ta(null,t,r,!0,s,n)):(t.tag=0,ii&&s&&ti(t),wa(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ha(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return ju(e)?1:0;if(null!=e){if((e=e.$$typeof)===E)return 11;if(e===R)return 14}return 2}(r),e=yi(r,e),o){case 0:t=Oa(null,t,r,e,n);break e;case 1:t=Ea(null,t,r,e,n);break e;case 11:t=xa(null,t,r,e,n);break e;case 14:t=Pa(null,t,r,yi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Oa(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ea(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 3:e:{if(Ia(t),null===e)throw Error(i(387));r=t.pendingProps,o=(s=t.memoizedState).element,ji(e,t),Ai(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ra(e,t,r,n,o=ca(Error(i(423)),t));break e}if(r!==o){t=Ra(e,t,r,n,o=ca(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,si=null,n=Xi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fi(),r===o){t=Ua(e,t,n);break e}wa(e,t,r,n)}t=t.child}return t;case 5:return ss(t),null===e&&ci(t),r=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,a=o.children,no(r,o)?a=null:null!==s&&no(r,s)&&(t.flags|=32),Va(e,t),wa(e,t,a,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Aa(e,t,n);case 4:return os(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Zi(t,null,r,n):wa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xa(e,t,r,o=t.elementType===r?o:yi(r,o),n);case 7:return wa(e,t,t.pendingProps,n),t.child;case 8:case 12:return wa(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Oo(vi,r._currentValue),r._currentValue=a,null!==s)if(ar(s.value,a)){if(s.children===o.children&&!Io.current){t=Ua(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===s.tag){(u=ki(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var p=(c=c.shared).pending;null===p?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),_i(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),_i(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}wa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Si(t,n),r=r(o=Vi(o)),t.flags|=1,wa(e,t,r,n),t.child;case 14:return o=yi(r=t.type,t.pendingProps),Pa(e,t,r,o=yi(r.type,o),n);case 15:return _a(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yi(r,o),Ha(e,t),t.tag=1,jo(r)?(e=!0,Lo(t)):e=!1,Si(t,n),Hi(t,r,o),Wi(t,r,o,n),Ta(null,t,r,!0,e,n);case 19:return za(e,t,n);case 22:return Sa(e,t,n)}throw Error(i(156,t.tag))};var Gu="function"==typeof reportError?reportError:function(e){console.error(e)};function $u(e){this._internalRoot=e}function Ku(e){this._internalRoot=e}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yu(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if("function"==typeof o){var a=o;o=function(){var e=Uu(s);a.call(e)}}Hu(t,s,e,o)}else s=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Uu(s);i.call(e)}}var s=zu(t,r,e,0,null,!1,0,"",Yu);return e._reactRootContainer=s,e[go]=s.current,Qr(8===e.nodeType?e.parentNode:e),pu(),s}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var a=r;r=function(){var e=Uu(l);a.call(e)}}var l=Fu(e,0,!1,null,0,!1,0,"",Yu);return e._reactRootContainer=l,e[go]=l.current,Qr(8===e.nodeType?e.parentNode:e),pu((function(){Hu(t,l,n,r)})),l}(n,t,e,o,r);return Uu(s)}Ku.prototype.render=$u.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hu(e,t,null,null)},Ku.prototype.unmount=$u.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;pu((function(){Hu(null,e,null,null)})),t[go]=null}},Ku.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(vt(t,1|n),ou(t,Ze()),0==(6&Tl)&&(zl=Ze()+500,zo()))}break;case 13:pu((function(){var t=Ii(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}})),Ju(e,1)}},xt=function(e){if(13===e.tag){var t=Ii(e,134217728);null!==t&&ru(t,e,134217728,tu()),Ju(e,134217728)}},Pt=function(e){if(13===e.tag){var t=nu(e),n=Ii(e,t);null!==n&&ru(n,e,t,tu()),Ju(e,t)}},_t=function(){return bt},St=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=xo(r);if(!o)throw Error(i(90));J(r),X(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ee=cu,Te=pu;var tc={usingClientEntryPoint:!1,Events:[Co,wo,xo,Ve,Oe,cu]},nc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zu(e))throw Error(i(299));var n=!1,r="",o=Gu;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fu(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Qr(8===e.nodeType?e.parentNode:e),new $u(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return pu(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,s="",a=Gu;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=zu(t,null,e,1,null!=n?n:null,o,0,s,a),e[go]=t.current,Qr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ku(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(i(40));return!!e._reactRootContainer&&(pu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},745:(e,t,n)=>{"use strict";var r=n(935);t.s=r.createRoot,r.hydrateRoot},935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(448)},408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator,f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var C=b.prototype=new v;C.constructor=b,g(C,y.prototype),C.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,P={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var o,i={},s=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)x.call(t,o)&&!_.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:P.current}}function V(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function E(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,o,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return s=s(l=e),e=""===i?"."+E(l,0):i,w(s)?(o="",null!=e&&(o=e.replace(O,"$&/")+"/"),T(s,t,o,"",(function(e){return e}))):null!=s&&(V(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(O,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",w(e))for(var u=0;u<e.length;u++){var c=i+E(a=e[u],u);l+=T(a,t,o,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=T(a=a.value,t,o,c=i+E(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function I(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},j={transition:null},k={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:j,ReactCurrentOwner:P};t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!V(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=s,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=P.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!_.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:s,props:o,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=V,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.transition;j.transition={};try{e()}finally{j.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return D.current.useCallback(e,t)},t.useContext=function(e){return D.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return D.current.useDeferredValue(e)},t.useEffect=function(e,t){return D.current.useEffect(e,t)},t.useId=function(){return D.current.useId()},t.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return D.current.useMemo(e,t)},t.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},t.useRef=function(e){return D.current.useRef(e)},t.useState=function(e){return D.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return D.current.useTransition()},t.version="18.2.0"},294:(e,t,n)=>{"use strict";e.exports=n(408)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,s=o>>>1;r<s;){var a=2*(r+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],p=1,d=null,h=3,f=!1,g=!1,m=!1,y="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function C(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(m=!1,C(e),!g)if(null!==r(u))g=!0,j(x);else{var t=r(c);null!==t&&k(w,t.startTime-e)}}function x(e,n){g=!1,m&&(m=!1,v(V),V=-1),f=!0;var i=h;try{for(C(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!T());){var s=d.callback;if("function"==typeof s){d.callback=null,h=d.priorityLevel;var a=s(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?d.callback=a:d===r(u)&&o(u),C(n)}else o(u);d=r(u)}if(null!==d)var l=!0;else{var p=r(c);null!==p&&k(w,p.startTime-n),l=!1}return l}finally{d=null,h=i,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var P,_=!1,S=null,V=-1,O=5,E=-1;function T(){return!(t.unstable_now()-E<O)}function I(){if(null!==S){var e=t.unstable_now();E=e;var n=!0;try{n=S(!0,e)}finally{n?P():(_=!1,S=null)}}else _=!1}if("function"==typeof b)P=function(){b(I)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,D=R.port2;R.port1.onmessage=I,P=function(){D.postMessage(null)}}else P=function(){y(I,0)};function j(e){S=e,_||(_=!0,P())}function k(e,n){V=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||f||(g=!0,j(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?s+i:s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:p++,callback:o,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(m?(v(V),V=-1):m=!0,k(w,i-s))):(e.sortIndex=a,n(u,e),g||f||(g=!0,j(x))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},840:(e,t,n)=>{"use strict";e.exports=n(53)},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},s=[],a=0;a<e.length;a++){var l=e[a],u=r.base?l[0]+r.base:l[0],c=i[u]||0,p="".concat(u," ").concat(c);i[u]=c+1;var d=n(p),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var f=o(h,r);r.byIndex=a,t.splice(a,0,{identifier:p,updater:f,references:1})}s.push(p)}return s}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var a=n(i[s]);t[a].references--}for(var l=r(e,o),u=0;u<i.length;u++){var c=n(i[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},535:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/entries/core.ts")}({"./node_modules/signature_pad/dist/signature_pad.mjs":function(e,t,n){"use strict";function r(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function o(e,t,n,r){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=r}function i(e,t){var n=this,r=t||{};this.velocityFilterWeight=r.velocityFilterWeight||.7,this.minWidth=r.minWidth||.5,this.maxWidth=r.maxWidth||2.5,this.throttle="throttle"in r?r.throttle:16,this.minDistance="minDistance"in r?r.minDistance:5,this.throttle?this._strokeMoveUpdate=function(e,t,n){var r,o,i,s=null,a=0;n||(n={});var l=function(){a=!1===n.leading?0:Date.now(),s=null,i=e.apply(r,o),s||(r=o=null)};return function(){var u=Date.now();a||!1!==n.leading||(a=u);var c=t-(u-a);return r=this,o=arguments,c<=0||c>t?(s&&(clearTimeout(s),s=null),a=u,i=e.apply(r,o),s||(r=o=null)):s||!1===n.trailing||(s=setTimeout(l,c)),i}}(i.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=i.prototype._strokeUpdate,this.dotSize=r.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=r.penColor||"black",this.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",this.onBegin=r.onBegin,this.onEnd=r.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];n._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];n._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}n.r(t),r.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},r.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},r.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},o.prototype.length=function(){for(var e=0,t=void 0,n=void 0,r=0;r<=10;r+=1){var o=r/10,i=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){var a=i-t,l=s-n;e+=Math.sqrt(a*a+l*l)}t=i,n=s}return e},o.prototype._point=function(e,t,n,r,o){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*r*(1-e)*e*e+o*e*e*e},i.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},i.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new Image,o=n.ratio||window.devicePixelRatio||1,i=n.width||this._canvas.width/o,s=n.height||this._canvas.height/o;this._reset(),r.src=e,r.onload=function(){t._ctx.drawImage(r,0,0,i,s)},this._isEmpty=!1},i.prototype.toDataURL=function(e){var t;if("image/svg+xml"===e)return this._toSVG();for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this._canvas).toDataURL.apply(t,[e].concat(r))},i.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},i.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},i.prototype.isEmpty=function(){return this._isEmpty},i.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},i.prototype._strokeUpdate=function(e){var t=e.clientX,n=e.clientY,r=this._createPoint(t,n),o=this._data[this._data.length-1],i=o&&o[o.length-1],s=i&&r.distanceTo(i)<this.minDistance;if(!i||!s){var a=this._addPoint(r),l=a.curve,u=a.widths;l&&u&&this._drawCurve(l,u.start,u.end),this._data[this._data.length-1].push({x:r.x,y:r.y,time:r.time,color:this.penColor})}},i.prototype._strokeEnd=function(e){var t=this.points.length>2,n=this.points[0];if(!t&&n&&this._drawDot(n),n){var r=this._data[this._data.length-1],o=r[r.length-1];n.equals(o)||r.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},i.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},i.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},i.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},i.prototype._createPoint=function(e,t,n){var o=this._canvas.getBoundingClientRect();return new r(e-o.left,t-o.top,n||(new Date).getTime())},i.prototype._addPoint=function(e){var t=this.points;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var n=this._calculateCurveControlPoints(t[0],t[1],t[2]).c2,r=this._calculateCurveControlPoints(t[1],t[2],t[3]).c1,i=new o(t[1],n,r,t[2]),s=this._calculateCurveWidths(i);return t.shift(),{curve:i,widths:s}}return{}},i.prototype._calculateCurveControlPoints=function(e,t,n){var o=e.x-t.x,i=e.y-t.y,s=t.x-n.x,a=t.y-n.y,l=(e.x+t.x)/2,u=(e.y+t.y)/2,c=(t.x+n.x)/2,p=(t.y+n.y)/2,d=Math.sqrt(o*o+i*i),h=Math.sqrt(s*s+a*a),f=h/(d+h),g=c+(l-c)*f,m=p+(u-p)*f,y=t.x-g,v=t.y-m;return{c1:new r(l+y,u+v),c2:new r(c+y,p+v)}},i.prototype._calculateCurveWidths=function(e){var t=e.startPoint,n=e.endPoint,r={start:null,end:null},o=this.velocityFilterWeight*n.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(o);return r.start=this._lastWidth,r.end=i,this._lastVelocity=o,this._lastWidth=i,r},i.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},i.prototype._drawPoint=function(e,t,n){var r=this._ctx;r.moveTo(e,t),r.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},i.prototype._drawCurve=function(e,t,n){var r=this._ctx,o=n-t,i=Math.floor(e.length());r.beginPath();for(var s=0;s<i;s+=1){var a=s/i,l=a*a,u=l*a,c=1-a,p=c*c,d=p*c,h=d*e.startPoint.x;h+=3*p*a*e.control1.x,h+=3*c*l*e.control2.x,h+=u*e.endPoint.x;var f=d*e.startPoint.y;f+=3*p*a*e.control1.y,f+=3*c*l*e.control2.y,f+=u*e.endPoint.y;var g=t+u*o;this._drawPoint(h,f,g)}r.closePath(),r.fill()},i.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},i.prototype._fromData=function(e,t,n){for(var o=0;o<e.length;o+=1){var i=e[o];if(i.length>1)for(var s=0;s<i.length;s+=1){var a=i[s],l=new r(a.x,a.y,a.time),u=a.color;if(0===s)this.penColor=u,this._reset(),this._addPoint(l);else if(s!==i.length-1){var c=this._addPoint(l),p=c.curve,d=c.widths;p&&d&&t(p,d,u)}}else this._reset(),n(i[0])}},i.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,r=Math.max(window.devicePixelRatio||1,1),o=n.width/r,i=n.height/r,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttributeNS(null,"width",n.width),s.setAttributeNS(null,"height",n.height),this._fromData(t,(function(e,t,n){var r=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var o="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" C "+e.control1.x.toFixed(3)+","+e.control1.y.toFixed(3)+" "+e.control2.x.toFixed(3)+","+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);r.setAttribute("d",o),r.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),r.setAttribute("stroke",n),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),s.appendChild(r)}}),(function(t){var n=document.createElement("circle"),r="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",r),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),s.appendChild(n)}));var a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+o+" "+i+'" width="'+o+'" height="'+i+'">',l=s.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=s.childNodes;u.innerHTML="";for(var p=0;p<c.length;p+=1)u.appendChild(c[p].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(a+l+"</svg>")},i.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,(function(e,n){return t._drawCurve(e,n.start,n.end)}),(function(e){return t._drawDot(e)})),this._data=e},i.prototype.toData=function(){return this._data},t.default=i},"./src/actions/action.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"createDropdownActionModel",(function(){return h})),n.d(t,"createDropdownActionModelAdvanced",(function(){return f})),n.d(t,"BaseAction",(function(){return g})),n.d(t,"Action",(function(){return m})),n.d(t,"ActionDropdownViewModel",(function(){return y}));var r,o=n("./src/base.ts"),i=n("./src/surveyStrings.ts"),s=n("./src/jsonobject.ts"),a=n("./src/list.ts"),l=n("./src/popup.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/actions/container.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};function h(e,t,n){return f(e,t,t,n)}function f(e,t,n,r){var o=new a.ListModel(t.items,(function(e){t.onSelectionChanged(e),i.toggleVisibility()}),t.allowSelection,t.selectedItem,t.onFilterStringChangedCallback);o.locOwner=r;var i=new l.PopupModel("sv-list",{model:o},null==n?void 0:n.verticalPosition,null==n?void 0:n.horizontalPosition,null==n?void 0:n.showPointer,null==n?void 0:n.isModal,null==n?void 0:n.onCancel,null==n?void 0:n.onApply,null==n?void 0:n.onHide,null==n?void 0:n.onShow,null==n?void 0:n.cssClass,null==n?void 0:n.title);i.displayMode=null==n?void 0:n.displayMode;var s=Object.assign({},e,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(t,n){e.action&&e.action(),i.isFocusedContent=!n||o.showFilter,i.toggleVisibility(),o.scrollToSelectedItem()}}),u=new m(s);return u.data=o,u}var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.iconSize=24,t}return p(t,e),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||c.defaultActionBarCss},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode&&"removed"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return(new u.CssClassBuilder).append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},d([Object(s.property)()],t.prototype,"tooltip",void 0),d([Object(s.property)()],t.prototype,"showTitle",void 0),d([Object(s.property)()],t.prototype,"innerCss",void 0),d([Object(s.property)()],t.prototype,"active",void 0),d([Object(s.property)()],t.prototype,"pressed",void 0),d([Object(s.property)()],t.prototype,"data",void 0),d([Object(s.property)()],t.prototype,"popupModel",void 0),d([Object(s.property)()],t.prototype,"needSeparator",void 0),d([Object(s.property)()],t.prototype,"template",void 0),d([Object(s.property)({defaultValue:"large"})],t.prototype,"mode",void 0),d([Object(s.property)()],t.prototype,"visibleIndex",void 0),d([Object(s.property)()],t.prototype,"disableTabStop",void 0),d([Object(s.property)()],t.prototype,"disableShrink",void 0),d([Object(s.property)()],t.prototype,"disableHide",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"needSpace",void 0),d([Object(s.property)()],t.prototype,"ariaChecked",void 0),d([Object(s.property)()],t.prototype,"ariaExpanded",void 0),d([Object(s.property)({defaultValue:"button"})],t.prototype,"ariaRole",void 0),d([Object(s.property)()],t.prototype,"iconName",void 0),d([Object(s.property)()],t.prototype,"iconSize",void 0),d([Object(s.property)()],t.prototype,"css",void 0),t}(o.Base),m=function(e){function t(t){var n=e.call(this)||this;if(n.innerItem=t,n.locTitleChanged=function(){var e=n.locTitle.renderedHtml;n.setPropertyValue("_title",e||void 0)},n.locTitle=t?t.locTitle:null,t)for(var r in t)n[r]=t[r];return n.locTitleName&&n.locTitleChanged(),n.locStrChangedInPopupModel(),n}return p(t,e),t.prototype.raiseUpdate=function(){this.updateCallback&&this.updateCallback()},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){e||this.locTitleValue||(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.locStrChangedInPopupModel=function(){if(this.popupModel&&this.popupModel.contentComponentData&&this.popupModel.contentComponentData.model){var e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach((function(e){e.locStrsChanged&&e.locStrsChanged()}))}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=i.surveyLocalization.getString(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.owner?this.owner.getMarkdownHtml(e,t):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},d([Object(s.property)()],t.prototype,"id",void 0),d([Object(s.property)({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"_visible",void 0),d([Object(s.property)({onSet:function(e,t){t.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),d([Object(s.property)()],t.prototype,"_enabled",void 0),d([Object(s.property)()],t.prototype,"action",void 0),d([Object(s.property)()],t.prototype,"_component",void 0),d([Object(s.property)()],t.prototype,"items",void 0),d([Object(s.property)({onSet:function(e,t){t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(g),y=function(){function e(e){this.item=e,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return e.prototype.setupPopupCallbacks=function(){var e=this,t=this.popupModel=this.item.popupModel;t&&t.registerPropertyChangedHandlers(["isVisible"],(function(){t.isVisible?e.item.pressed=!0:e.item.pressed=!1}),this.funcKey)},e.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},e.prototype.dispose=function(){this.removePopupCallbacks()},e}()},"./src/actions/adaptive-container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AdaptiveActionContainer",(function(){return u}));var r,o=n("./src/utils/responsivity-manager.ts"),i=n("./src/actions/action.ts"),s=n("./src/actions/container.ts"),a=n("./src/surveyStrings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var n=e.call(this)||this;return n.minVisibleItemsCount=0,n.isResponsivenessDisabled=!1,n.dotsItem=Object(i.createDropdownActionModelAdvanced)({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:a.surveyLocalization.getString("more")},{items:[],onSelectionChanged:function(e){n.hiddenItemSelected(e)},allowSelection:!1}),n}return l(t,e),t.prototype.hideItemsGreaterN=function(e){var t=this.visibleActions.filter((function(e){return!e.disableHide}));e=Math.max(e,this.minVisibleItemsCount)-(this.visibleActions.length-t.length);var n=[];t.forEach((function(t){e<=0&&(t.mode="popup",n.push(t.innerItem)),e--})),this.hiddenItemsListModel.setItems(n)},t.prototype.getVisibleItemsCount=function(e){for(var t=this.visibleActions.map((function(e){return e.minDimension})),n=0,r=0;r<t.length;r++)if((n+=t[r])>e)return r;return r},t.prototype.updateItemMode=function(e,t){for(var n=this.visibleActions,r=n.length-1;r>=0;r--)t>e&&!n[r].disableShrink?(t-=n[r].maxDimension-n[r].minDimension,n[r].mode="small"):n[r].mode="large";if(t>e){var o=this.visibleActions.filter((function(e){return e.removePriority}));for(o.sort((function(e,t){return e.removePriority-t.removePriority})),r=0;r<o.length;r++)t>e&&(t-=n[r].disableShrink?o[r].maxDimension:o[r].minDimension,o[r].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.hiddenItemSelected=function(e){e&&"function"==typeof e.action&&e.action()},t.prototype.onSet=function(){var t=this;this.actions.forEach((function(e){return e.updateCallback=function(){return t.raiseUpdate(!1)}})),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var n=this;t.updateCallback=function(){return n.raiseUpdate(!1)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return 1===this.actions.length&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(t){this.isResponsivenessDisabled||e.prototype.raiseUpdate.call(this,t)},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var n=0,r=0;this.visibleActions.forEach((function(e){n+=e.minDimension,r+=e.maxDimension})),e>=r?this.setActionsMode("large"):e<n?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!0):this.updateItemMode(e,r)}},t.prototype.initResponsivityManager=function(e){this.responsivityManager=new o.ResponsivityManager(e,this,".sv-action:not(.sv-dots)>.sv-action__content")},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach((function(t){return t.mode=e}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetResponsivityManager()},t.ContainerID=1,t}(s.ActionContainer)},"./src/actions/container.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultActionBarCss",(function(){return p})),n.d(t,"ActionContainer",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sizeMode="default",t}return u(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.actions.forEach((function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()}))},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some((function(e){return e.visible})),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach((function(t){e.setActionCssClasses(t)})),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter((function(e){return!1!==e.visible}))},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e="small"===this.sizeMode?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return(new a.CssClassBuilder).append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return p},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var t=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),Object(l.mergeValues)(e,this.cssClasses),this.actions.forEach((function(e){t.setActionCssClasses(e)}))},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof s.BaseAction?e:new s.Action(e)},t.prototype.addAction=function(e,t){void 0===t&&(t=!0);var n=this.createAction(e);return this.actions.push(n),this.sortItems(),n},t.prototype.sortItems=function(){this.actions=[].concat(this.actions.filter((function(e){return void 0===e.visibleIndex||e.visibleIndex>=0}))).sort((function(e,t){return e.visibleIndex-t.visibleIndex}))},t.prototype.setItems=function(e,t){var n=this;void 0===t&&(t=!0),this.actions=e.map((function(e){return n.createAction(e)})),t&&this.sortItems()},t.prototype.initResponsivityManager=function(e){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return this.actions[t];return null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.actions.forEach((function(e){return e.dispose()})),this.actions.length=0},c([Object(o.propertyArray)({onSet:function(e,t){t.onSet()},onPush:function(e,t,n){n.onPush(e)},onRemove:function(e,t,n){n.onRemove(e)}})],t.prototype,"actions",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isEmpty",void 0),t}(i.Base)},"./src/base.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Bindings",(function(){return p})),n.d(t,"Dependencies",(function(){return d})),n.d(t,"ComputedUpdater",(function(){return h})),n.d(t,"Base",(function(){return f})),n.d(t,"ArrayChanges",(function(){return g})),n.d(t,"Event",(function(){return m})),n.d(t,"EventBase",(function(){return y}));var r,o=n("./src/localizablestring.ts"),i=n("./src/helpers.ts"),s=n("./src/jsonobject.ts"),a=n("./src/settings.ts"),l=n("./src/conditions.ts"),u=n("./src/surveyStrings.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={});var n=this.getJson();n!==t&&(t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null)),this.onChangedJSON(n))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){if(!this.values)return!0;for(var e in this.values)return!1;return!0},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var n in this.values)this.values[n]==e&&t.push(n);return t},e.prototype.getJson=function(){if(!this.isEmpty()){var e={};for(var t in this.values)e[t]=this.values[t];return e}},e.prototype.setJson=function(e){var t=this.getJson();if(this.values=null,e)for(var n in this.values={},e)this.values[n]=e[n];this.onChangedJSON(t)},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=s.Serializer.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e.prototype.onChangedJSON=function(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())},e}(),d=function(){function e(t,n,r){this.currentDependency=t,this.target=n,this.property=r,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){this.target===e&&this.property===t||this.dependencies.some((function(n){return n.obj===e&&n.prop===t}))||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id))},e.prototype.dispose=function(){this.dependencies.forEach((function(e){e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)}))},e.DependenciesCount=0,e}(),h=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies()},e.ComputedUpdaterType="__dependency_computed",e}(),f=function(){function e(){this.propertyHash={},this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.bindingsValue=new p(this),s.CustomPropertiesCollection.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,n,r){if(void 0!==e.currentDependencis)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new d(t,n,r)},e.collectDependency=function(t,n){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,n)},Object.defineProperty(e,"commentSuffix",{get:function(){return a.settings.commentSuffix},set:function(e){a.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"commentPrefix",{get:function(){return e.commentSuffix},set:function(t){e.commentSuffix=t},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),i.Helpers.isValueEmpty(e)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.prototype.isPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.prototype.dispose=function(){for(var e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new y;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.isDescendantOf=function(e){return s.Serializer.isDescendantOf(this.getType(),e)},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"isDesignMode",{get:function(){var e=this.getSurvey();return!!e&&e.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var n=this.bindings.getValueNameByPropertyName(e);n&&this.updateBindingValue(n,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!(!this.loadingOwner||!this.loadingOwner.isLoadingFromJson)||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(e){this.isLoadingFromJsonValue=!0},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(){return(new s.JsonObject).toJsonObject(this)},e.prototype.fromJSON=function(e){(new s.JsonObject).toObject(e,this),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=s.Serializer.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){return this.classMetaData||(this.classMetaData=s.Serializer.findClass(this.getType())),this.classMetaData?this.classMetaData.findProperty(e):null},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo)if((r=this.arraysInfo[t])&&r.isItemValues){var n=this.getPropertyValue(t);n&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(n)}if(this.localizableStrings)for(var t in this.localizableStrings){var r;(r=this.getLocalizableString(t))&&r.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var n=this.getPropertyValueCore(this.propertyHash,e);if(this.isPropertyEmpty(n)){var r=this.localizableStrings?this.localizableStrings[e]:void 0;if(r)return r.text;if(null!=t)return t;var o=this.getDefaultValueFromProperty(e);if(void 0!==o)return o}return n},e.prototype.getDefaultValueFromProperty=function(e){var t=this.getPropertyByName(e);if(!(!t||t.isCustom&&this.isCreating)){var n=t.defaultValue;return this.isPropertyEmpty(n)||Array.isArray(n)?"boolean"!=t.type&&"switch"!=t.type&&(t.isCustom&&t.onGetValue?t.onGetValue(this):void 0):n}},e.prototype.getPropertyValueCore=function(t,n){return this.isLoadingFromJson||e.collectDependency(this,n),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,n):t[n]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,n){this.setPropertyValueCoreHandler?this.isDisposedValue?console.warn("Attempt to set property '"+t+"' of a disposed object '"+this.getType()+"'"):this.setPropertyValueCoreHandler(e,t,n):e[t]=n},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,n=[];for(var r in this.propertyHash)"value"===r&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach((function(n){return e(t.propertyHash,n)}))},e.prototype.setPropertyValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getPropertyByName(e);n&&(t=n.settingValue(this,t))}var r=this.getPropertyValue(e);if(r&&Array.isArray(r)&&this.arraysInfo&&(!t||Array.isArray(t))){if(this.isTwoValueEquals(r,t))return;this.setArrayPropertyDirectly(e,t)}else this.setPropertyValueDirectly(e,t),this.isDisposedValue||this.isTwoValueEquals(r,t)||this.propertyValueChanged(e,r,t)},e.prototype.setArrayPropertyDirectly=function(e,t,n){void 0===n&&(n=!0);var r=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,!!r&&r.isItemValues,r?n&&r.onPush:null)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,n,r,o){},e.prototype.itemValuePropertyChanged=function(e,t,n,r){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:n,newValue:r,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,n){},e.prototype.propertyValueChanged=function(e,t,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(e,n),this.onPropertyValueChanged(e,t,n),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n}),this.doPropertyValueChangedCallback(e,t,n,r,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions))for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(n)},e.prototype.onBindingChanged=function(e,t){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",e,t)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,n,r,o){if(!this.isInternal){o||(o=this);var i=this.getSurvey();i||(i=this),i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,n,o,r),i!==this&&this.onPropertyValueChangedCallback&&this.onPropertyValueChangedCallback(e,t,n,o,r)}},e.prototype.addExpressionProperty=function(e,t,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:n}},e.prototype.getDataFilteredValues=function(){return{}},e.prototype.getDataFilteredProperties=function(){return{}},e.prototype.runConditionCore=function(e,t){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,e,t)},e.prototype.canRunConditions=function(){return!this.isDesignMode},e.prototype.checkConditionPropertyChanged=function(e){this.expressionInfo&&this.expressionInfo[e]&&this.canRunConditions()&&this.runConditionItemCore(e,this.getDataFilteredValues(),this.getDataFilteredProperties())},e.prototype.runConditionItemCore=function(e,t,n){var r=this,o=this.expressionInfo[e],i=this.getPropertyValue(e);i&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=new l.ExpressionRunner(i),o.runner.onRunComplete=function(e){o.onExecute(r,e)}),o.runner.expression=i,o.runner.run(t,n)))},e.prototype.registerPropertyChangedHandlers=function(e,t,n){void 0===n&&(n=null);for(var r=0;r<e.length;r++)this.registerFunctionOnPropertyValueChanged(e[r],t,n)},e.prototype.unregisterPropertyChangedHandlers=function(e,t){void 0===t&&(t=null);for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,n){if(void 0===n&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==e&&o.key==n)return void(o.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:n})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,n){void 0===n&&(n=null),this.registerPropertyChangedHandlers(e,t,n)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==e&&r.key==t)return void this.onPropChangeFunctions.splice(n,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null),this.unregisterPropertyChangedHandlers(e,t)},e.prototype.createCustomLocalizableObj=function(e){this.getLocalizableString(e)||this.createLocalizableString(e,this,!1,!0)},e.prototype.getLocale=function(){var e=this.getSurvey();return e?e.getLocale():""},e.prototype.getLocalizationString=function(e){return u.surveyLocalization.getString(e,this.getLocale())},e.prototype.getLocalizationFormatString=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.getLocalizationString(e);return r&&r.format?r.format.apply(r,t):""},e.prototype.createLocalizableString=function(e,t,n,r){var i=this;void 0===n&&(n=!1),void 0===r&&(r=!1);var s=new o.LocalizableString(t,n,e);r&&(s.localizationName=!0===r?e:r),s.onStrChanged=function(t,n){i.propertyValueChanged(e,t,n)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=s;var a=this.getPropertyByName(e);return s.disableLocalization=a&&!1===a.isLocalizable,s},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(t,n){void 0===n&&(n=""),e.collectDependency(this,t);var r=this.getLocalizableString(t);return r?r.text||n:""},e.prototype.setLocalizableStringText=function(e,t){var n=this.getLocalizableString(e);n&&n.text!=t&&(n.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings)(o=this.getLocalizableString(t))&&this.AddLocStringToUsedLocales(o,e);if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.getPropertyValue(t);if(n&&n.length)for(var r=0;r<n.length;r++){var o;(o=n[r])&&o.addUsedLocales&&o.addUsedLocales(e)}}},e.prototype.searchText=function(e,t){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(e)&&t.push({element:this,str:n[r]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var n=0;n<t.length;n++){var r=this.getLocalizableString(t[n]);r&&e.push(r)}}if(this.arraysInfo){var o=[];for(this.getSearchableItemValueKeys(o),n=0;n<o.length;n++){var i=this.getPropertyValue(o[n]);if(i)for(var s=0;s<i.length;s++)e.push(i[s].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var n=e.getLocales(),r=0;r<n.length;r++)t.indexOf(n[r])<0&&t.push(n[r])},e.prototype.createItemValues=function(e){var t=this,n=this.createNewArray(e,(function(n){if(n.locOwner=t,n.ownerPropertyName=e,"function"==typeof n.getSurvey){var r=n.getSurvey();r&&"function"==typeof r.makeReactive&&r.makeReactive(n)}}));return this.arraysInfo[e].isItemValues=!0,n},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=new Array,this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,n)},e.prototype.createNewArray=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return r.push=function(n){var i=Object.getPrototypeOf(r).push.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new g(r.length-1,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.shift=function(){var t=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&t){n&&n(t);var i=new g(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.unshift=function(n){var i=Object.getPrototypeOf(r).unshift.call(r,n);if(!o.isDisposedValue){t&&t(n,r.length-1);var s=new g(0,0,[n],[]);o.propertyValueChanged(e,r,r,s),o.notifyArrayChanged(r,s)}return i},r.pop=function(){var t=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(t);var i=new g(r.length-1,1,[],[]);o.propertyValueChanged(e,r,r,i),o.notifyArrayChanged(r,i)}return t},r.splice=function(i,s){for(var a,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];i||(i=0),s||(s=0);var c=(a=Object.getPrototypeOf(r).splice).call.apply(a,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([r,i,s],l));if(l||(l=[]),!o.isDisposedValue){if(n&&c)for(var p=0;p<c.length;p++)n(c[p]);if(t)for(p=0;p<l.length;p++)t(l[p],i+p);var d=new g(i,s,l,c);o.propertyValueChanged(e,r,r,d),o.notifyArrayChanged(r,d)}return c},r},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,n,r,o,i){var s=[].concat(n);if(Object.getPrototypeOf(n).splice.call(n,0,n.length),r)for(var a=0;a<r.length;a++){var l=r[a];o&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(n).push.call(n,l),i&&i(n[a])}var u=new g(0,s.length,n,s);this.propertyValueChanged(t,s,n,u),this.notifyArrayChanged(n,u)},e.prototype.isTwoValueEquals=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),i.Helpers.isTwoValueEquals(e,t,!1,!n,r)},e.copyObject=function(e,t){for(var n in t){var r=t[n];"object"==typeof r&&(r={},this.copyObject(r,t[n])),e[n]=r}},e.prototype.copyCssClasses=function(t,n){n&&("string"==typeof n||n instanceof String?t.root=n:e.copyObject(t,n))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},e.currentDependencis=void 0,e}(),g=function(e,t,n,r){this.index=e,this.deleteCount=t,this.itemsToAdd=n,this.deletedItems=r},m=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),e.prototype.fireByCreatingOptions=function(e,t){if(this.callbacks)for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t()),!this.callbacks)return},e.prototype.fire=function(e,t){if(this.callbacks)for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](e,t),!this.callbacks)return},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(m)},"./src/calculatedValue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CalculatedValue",(function(){return u}));var r,o=n("./src/helpers.ts"),i=n("./src/base.ts"),s=n("./src/conditions.ts"),a=n("./src/jsonobject.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,t&&(r.name=t),n&&(r.expression=n),r}return l(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,n){this.isCalculated||(this.runExpressionCore(e,t,n),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!(!this.data||this.isLoadingFromJson||!this.expression||this.expressionIsRunning||!this.name)},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,n){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,n),this.expressionRunner.run(t,n))},t.prototype.runDependentExpressions=function(e,t,n){var r=this.expressionRunner.getVariables();if(r)for(var o=0;o<e.length;o++){var i=e[o];i===this||r.indexOf(i.name)<0||(i.doCalculation(e,t,n),t[i.name]=i.value)}},t.prototype.ensureExpression=function(e){var t=this;this.expressionRunner||(this.expressionRunner=new s.ExpressionRunner(this.expression),this.expressionRunner.onRunComplete=function(e){o.Helpers.isTwoValueEquals(e,t.value)||t.setValue(e),t.unlocCalculation()})},t}(i.Base);a.Serializer.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],(function(){return new u}),"base")},"./src/choicesRestful.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ChoicesRestful",(function(){return p})),n.d(t,"ChoicesRestfull",(function(){return d}));var r,o=n("./src/base.ts"),i=n("./src/itemvalue.ts"),s=n("./src/jsonobject.ts"),a=n("./src/error.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,n){Array.isArray(e[t])?e[t].push(n):void 0!==e[t]?e[t]=[e[t]].concat(n):"object"==typeof n&&1===Object.keys(n).length&&Object.keys(n)[0]===t?e[t]=n[t]:e[t]=n},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var r=e.children[n],o={};this.xml2Json(r,o),this.assignValue(t,r.nodeName,o)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),n={};return this.xml2Json(t,n),n},e}(),p=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.isUsingCacheFromUrl=void 0,t.error=null,t.createItemValue=function(e){return new i.ItemValue(e)},t}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return l.settings.webserviceEncodeParameters},set:function(e){l.settings.webserviceEncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){if(e.isUsingCache){var r=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],r)for(var o=0;o<r.length;o++)r[o].isRunningValue=!1,r[o].getResultCallback&&r[o].getResultCallback(n)}},t.getCachedItemsResult=function(e){var n=e.objHash,r=t.itemsResult[n];return!!r&&(e.getResultCallback&&e.getResultCallback(r),!0)},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner?this.owner.survey:null},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return this.doEmptyResultCallback({}),void(this.lastObjHash=this.objHash);this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,this.useChangedItemsResults()||t.addSameRequest(this)||this.sendRequest())}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return!0===this.isUsingCacheFromUrl||!1!==this.isUsingCacheFromUrl&&l.settings.useCachingForChoicesRestful},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx(n,!1,l.settings.webserviceEncodeParameters),o=e.processTextEx(this.path,!1,l.settings.webserviceEncodeParameters);r.hasAllValuesOnLastRun&&o.hasAllValuesOnLastRun?(this.processedUrl=r.text,this.processedPath=o.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<"))t=(new c).parseXmlString(e);else try{t=JSON.parse(e)}catch(n){t=(e||"").split("\n").map((function(e){return e.trim(" ")})).filter((function(e){return!!e}))}return t},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var n=this,r=this.objHash;e.onload=function(){n.beforeLoadRequest(),200===e.status?n.onLoad(n.parseResponse(e.response),r):n.onError(e.statusText,e.responseText)};var o={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(this,o),this.beforeSendRequest(),o.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!(this.url||this.path||this.valueName||this.titleName||this.imageLinkName)},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,n=0;n<e.length;n++)t.push(this.getCustomPropertyName(e[n].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=s.Serializer.getProperties(this.itemValueType),t=[],n=0;n<e.length;n++)"value"!==e[n].name&&"text"!==e[n].name&&"visibleIf"!==e[n].name&&"enableIf"!==e[n].name&&t.push(e[n]);return t},t.prototype.setData=function(e){this.clear(),e.url&&(this.url=e.url),e.path&&(this.path=e.path),e.valueName&&(this.valueName=e.valueName),e.titleName&&(this.titleName=e.titleName),e.imageLinkName&&(this.imageLinkName=e.imageLinkName),void 0!==e.allowEmptyResponse&&(this.allowEmptyResponse=e.allowEmptyResponse),void 0!==e.attachOriginalItems&&(this.attachOriginalItems=e.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)e[t[n]]&&(this[t[n]]=e[t[n]])},t.prototype.getData=function(){if(this.isEmpty)return null;var e={};this.url&&(e.url=this.url),this.path&&(e.path=this.path),this.valueName&&(e.valueName=this.valueName),this.titleName&&(e.titleName=this.titleName),this.imageLinkName&&(e.imageLinkName=this.imageLinkName),this.allowEmptyResponse&&(e.allowEmptyResponse=this.allowEmptyResponse),this.attachOriginalItems&&(e.attachOriginalItems=this.attachOriginalItems);for(var t=this.getCustomPropertiesNames(),n=0;n<t.length;n++)this[t[n]]&&(e[t[n]]=this[t[n]]);return e},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url","")},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=s.Serializer.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="",this.imageLinkName="";for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){void 0===n&&(n=null),n||(n=this.objHash);var r=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var i=0;i<o.length;i++){var s=o[i];if(s){var l=this.getItemValueCallback?this.getItemValueCallback(s):this.getValue(s),u=this.createItemValue(l);this.setTitle(u,s),this.setCustomProperties(u,s),this.attachOriginalItems&&(u.originalItem=s);var c=this.getImageLink(s);c&&(u.imageLink=c),r.push(u)}}else this.allowEmptyResponse||(this.error=new a.WebRequestEmptyError(null,this.owner));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),this.isUsingCache&&(t.itemsResult[n]=r),this.callResultCallback(r,n),t.unregisterSameRequests(this,r)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var n=this.getCustomProperties(),r=0;r<n.length;r++){var o=n[r],i=this.getValueCore(t,this.getPropertyBinding(o.name));this.isValueEmpty(i)||(e[o.name]=i)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new a.WebRequestError(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),n=0;n<t.length;n++)if(!(e=e[t[n]]))return null;return e},t.prototype.getPathes=function(){var e=[];return 0==(e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(",")).length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.setTitle=function(e,t){var n=this.titleName?this.titleName:"title",r=this.getValueCore(t,n);r&&("string"==typeof r?e.text=r:e.locText.setJson(r))},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=0;r<n.length;r++)if(!(e=e[n[r]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(o.Base),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return p.EncodeParameters},set:function(e){p.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){p.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return p.onBeforeSendRequest},set:function(e){p.onBeforeSendRequest=e},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],(function(){return new p}))},"./src/conditionProcessValue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ProcessValue",(function(){return i}));var r=n("./src/helpers.ts"),o="@survey",i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var n="";if(t&&(n=this.getFirstPropertyName(e,t)))return n;for(var r=0;r<e.length;r++){var o=e[r];if("."==o||"["==o)break;n+=o}return n},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,n){if(t){var r=this.getNonNestedObject(e,t,!0);r&&(e=r.value,t=r.text,e&&t&&(e[t]=n))}},e.prototype.getValueInfo=function(e){if(e.path)return e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!r.Helpers.isValueEmpty(e.value),void(!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0));var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null},e.prototype.getValueFromPath=function(e,t){if(2===e.length&&e[0]===o)return this.getValueFromSurvey(e[1]);for(var n=0;t&&n<e.length;){var i=e[n];if(r.Helpers.isNumber(i)&&Array.isArray(t)&&i>=t.length)return null;t=t[i],n++}return t},e.prototype.getValueCore=function(e,t){var n=this.getQuestionDirectly(e);if(n)return{hasValue:!0,value:n.value,path:[e]};var r=this.getValueFromValues(e,t);if(e&&!r.hasValue){var i=this.getValueFromSurvey(e);void 0!==i&&(r.hasValue=!0,r.value=i,r.path=[o,e])}return r},e.prototype.getQuestionDirectly=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(e)},e.prototype.getValueFromSurvey=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(e.toLocaleLowerCase())},e.prototype.getValueFromValues=function(e,t){var n={hasValue:!1,value:null,path:null},o=t;if(!o&&0!==o&&!1!==o)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-7&&(n.value=0,n.hasValue=!0);var i=this.getNonNestedObject(o,e,!1);return i?(n.path=i.path,n.value=i.text?this.getObjectValue(i.value,i.text):i.value,n.hasValue=!r.Helpers.isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t,n){for(var o=this.getFirstPropertyName(t,e,n),i=o?[o]:null;t!=o&&e;){if("["==t[0]){var s=this.getObjInArray(e,t);if(!s)return null;e=s.value,t=s.text,i.push(s.index)}else{if(!o&&t==this.getFirstName(t))return{value:e,text:t,path:i};if(e=this.getObjectValue(e,o),r.Helpers.isValueEmpty(e)&&!n)return null;t=t.substring(o.length)}t&&"."==t[0]&&(t=t.substring(1)),(o=this.getFirstPropertyName(t,e,n))&&i.push(o)}return{value:e,text:t,path:i}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var n=1,r="";n<t.length&&"]"!=t[n];)r+=t[n],n++;return t=n<t.length?t.substring(n+1):"",(n=this.getIntValue(r))<0||n>=e.length?null:{value:e[n],text:t,index:n}},e.prototype.getFirstPropertyName=function(e,t,n){if(void 0===n&&(n=!1),!e)return e;if(t||(t={}),t.hasOwnProperty(e))return e;var r=e.toLowerCase(),o=r[0],i=o.toUpperCase();for(var s in t){var a=s[0];if(a===i||a===o){var l=s.toLowerCase();if(l==r)return s;if(r.length<=l.length)continue;var u=r[l.length];if("."!=u&&"["!=u)continue;if(l==r.substring(0,l.length))return s}}if(n&&"["!==e[0]){var c=e.indexOf(".");return c>-1&&(t[e=e.substring(0,c)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},"./src/conditions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ExpressionExecutor",(function(){return a})),n.d(t,"ExpressionRunnerBase",(function(){return l})),n.d(t,"ConditionRunner",(function(){return u})),n.d(t,"ExpressionRunner",(function(){return c}));var r,o=n("./src/conditionProcessValue.ts"),i=n("./src/conditionsParser.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){function e(e){this.processValue=new o.ProcessValue,this.parser=new i.ConditionsParser,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t){var n=this;if(void 0===t&&(t=null),!this.operand)return null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].onAsyncReady=function(){n.doAsyncFunctionReady()};for(r=0;r<this.asyncFuncList.length;r++)this.asyncFuncList[r].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e),e},e.createExpressionExecutor=function(t){return new e(t)},e}(),l=function(){function e(e){this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(e){var t=this;this.expressionExecutor&&e===this.expression||(this.expressionExecutor=a.createExpressionExecutor(e),this.expressionExecutor.onComplete=function(e){t.doOnComplete(e)})},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return this.expressionExecutor.getVariables()},e.prototype.hasFunction=function(){return this.expressionExecutor.hasFunction()},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return this.expressionExecutor.canRun()},e.prototype.runCore=function(e,t){return void 0===t&&(t=null),this.expressionExecutor.run(e,t)},e.prototype.doOnComplete=function(e){},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(1==e)},t}(l),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(e)},t}(l)},"./src/conditionsParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ConditionsParserError",(function(){return o})),n.d(t,"ConditionsParser",(function(){return i}));var r=n("./src/expressions/expressionParser.ts"),o=function(e,t){this.at=e,this.code=t},i=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var n=e.parserCache[t];return void 0===n&&((n=Object(r.parse)(this.patchExpression(t))).hasAsyncFunction()||(e.parserCache[t]=n)),n}catch(e){e instanceof r.SyntaxError&&(this.conditionError=new o(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e.parserCache={},e}()},"./src/defaultCss/cssmodern.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"modernCss",(function(){return o}));var r=n("./src/defaultCss/defaultV2Css.ts"),o={root:"sv-root-modern",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg  sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-hidden",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",preview:"sv-file__preview",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},variables:{themeMark:"--sv-modern-mark"}};r.surveyCss.modern=o},"./src/defaultCss/cssstandard.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultStandardCss",(function(){return o}));var r=n("./src/defaultCss/defaultV2Css.ts"),o={root:"sv_main sv_default_css",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv-hidden"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},variables:{themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};r.surveyCss.default=o,r.surveyCss.orange=o,r.surveyCss.darkblue=o,r.surveyCss.darkrose=o,r.surveyCss.stone=o,r.surveyCss.winter=o,r.surveyCss.winterstone=o},"./src/defaultCss/defaultV2Css.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyCss",(function(){return r})),n.d(t,"defaultV2Css",(function(){return o})),n.d(t,"defaultV2ThemeName",(function(){return i}));var r={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:o;return e||(e=o),e},getAvailableThemes:function(){return Object.keys(this).filter((function(e){return-1===["currentType","getCss","getAvailableThemes"].indexOf(e)}))}},o={root:"sd-root-modern",rootMobile:"sd-root-modern--mobile",rootReadOnly:"sd-root--readonly",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sv-components-column sv-components-column--expandable sd-body",bodyWithTimer:"sd-body--with-timer",clockTimerRoot:"sd-timer",clockTimerRootTop:"sd-timer--top",clockTimerRootBottom:"sd-timer--bottom",clockTimerProgress:"sd-timer__progress",clockTimerProgressAnimation:"sd-timer__progress--animation",clockTimerTextContainer:"sd-timer__text-container",clockTimerMinorText:"sd-timer__text--minor",clockTimerMajorText:"sd-timer__text--major",bodyEmpty:"sd-body sd-body--empty",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:""},panel:{asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact"},paneldynamic:{mainRoot:"sd-element  sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",header:"sd-paneldynamic__header sd-element__header",headerTab:"sd-paneldynamic__header-tab",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",panelFooter:"sd-paneldynamic__panel-footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact"},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",rowCompact:"sd-row--compact",pageRow:"sd-page__row",question:{mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-question__content",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleOnAnswer:"sd-question__title--answer",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-description sd-question__description sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex",disabled:"sd-question--disabled"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",noImage:"sd-image__no-image",noImageSvgIconId:"icon-no-image",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:""},error:{root:"sd-question__erbox",icon:"",item:"",tooltip:"sd-question__erbox--tooltip",outsideQuestion:"sd-question__erbox--outside-question",aboveQuestion:"sd-question__erbox--above-question",belowQuestion:"sd-question__erbox--below-question",locationTop:"sd-question__erbox--location--top",locationBottom:"sd-question__erbox--location--bottom"},checkbox:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-v2check",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container sd-boolean-root",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",itemHover:"sd-boolean--allowhover",label:"sd-boolean__label",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-checkbox--disabled",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-v2check"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",itemLabel:"sd-multipletext__item-container sd-input",itemLabelOnError:"sd-multipletext__item-container--error",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator",hintPrefix:"sd-dropdown__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-v2check_24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title",compact:"sd-element--with-frame sd-element--compact"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",itemCell:"sd-table__cell--item",row:"sd-table__row",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",actionsCell:"sd-table__cell sd-table__cell--actions",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",tableWrapper:"sd-table-wrapper",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",row:"sd-table__row",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",actionsCell:"sd-table__cell sd-table__cell--actions",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-v2dragelement_16x16",footer:"sd-matrixdynamic__footer",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-scrollable-container sd-rating sd-rating--wrappable",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",itemStar:"sd-rating__item-star",itemStarOnError:"sd-rating__item-star--error",itemStarHover:"sd-rating__item-star--allowhover",itemStarSelected:"sd-rating__item-star--selected",itemStarDisabled:"sd-rating__item-star--disabled",itemStarHighlighted:"sd-rating__item-star--highlighted",itemStarUnhighlighted:"sd-rating__item-star--unhighlighted",itemStarSmall:"sd-rating__item-star--small",itemSmiley:"sd-rating__item-smiley",itemSmileyOnError:"sd-rating__item-smiley--error",itemSmileyHover:"sd-rating__item-smiley--allowhover",itemSmileySelected:"sd-rating__item-smiley--selected",itemSmileyDisabled:"sd-rating__item-smiley--disabled",itemSmileyHighlighted:"sd-rating__item-star--highlighted",itemSmileyScaleColored:"sd-rating__item-smiley--scale-colored",itemSmileyRateColored:"sd-rating__item-smiley--rate-colored",itemSmileySmall:"sd-rating__item-smiley--small",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",itemFixedSize:"sd-rating__item--fixed-size",control:"sd-input sd-dropdown",itemSmall:"sd-rating--small",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",popup:"sv-dropdown-popup",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",preview:"sd-file__preview",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-context-btn sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",removeButton:"sd-context-btn sd-context-btn--negative sd-file__btn sd-file__clean-btn",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-delete",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear"},saveData:{root:"sv-save-data_root",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index sd-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty sd-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",imagepickerGapBetweenItems:"--sd-imagepicker-gap",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},i="defaultV2";r[i]=o},"./src/defaultTitle.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DefaultTitleModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getIconCss=function(e,t){return(new r.CssClassBuilder).append(e.icon).append(e.iconExpanded,!t).toString()},e}()},"./src/drag-drop-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropInfo",(function(){return r}));var r=function(e,t,n){void 0===n&&(n=-1),this.source=e,this.target=t,this.nestedPanelDepth=n}},"./src/drag-drop-page-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropPageHelperV1",(function(){return i}));var r=n("./src/drag-drop-helper-v1.ts"),o=n("./src/settings.ts"),i=function(){function e(e){this.page=e}return e.prototype.getDragDropInfo=function(){return this.dragDropInfo},e.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropInfo=new r.DragDropInfo(e,t,n)},e.prototype.dragDropMoveTo=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var r=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},e.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},e.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.page.survey)return!0;var t=null,n=null,r=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var o=e.parent;if(o){var i=o.elements,s=i.indexOf(e);s>-1&&(t=e,n=e,this.dragDropInfo.isBottom?t=s<i.length-1?i[s+1]:null:n=s>0?i[s-1]:null)}}var a={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,parent:r,insertAfter:n,insertBefore:t};return this.page.survey.dragAndDropAllow(a)},e.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,n=this.dragDropInfo.source,r=this.dragDropInfo.destination,i=this.page.dragDropFindRow(t),s=this.dragDropGetElementIndex(t,i);this.page.updateRowsRemoveElementFromRow(t,i);var a=[],l=[];if(!e&&i){if(this.page.isDesignMode&&o.settings.supportCreatorV2){var u=n&&n.parent&&n.parent.dragDropFindRow(n);i.panel.elements[s]&&i.panel.elements[s].startWithNewLine&&i.elements.length>1&&i.panel.elements[s]===r&&(a.push(t),l.push(i.panel.elements[s])),!(t.startWithNewLine&&i.elements.length>1)||i.panel.elements[s]&&i.panel.elements[s].startWithNewLine||l.push(t),u&&u.elements[0]===n&&u.elements[1]&&a.push(u.elements[1]),i.elements.length<=1&&a.push(t),t.startWithNewLine&&i.elements.length>1&&i.elements[0]!==r&&l.push(t)}n&&n.parent&&(this.page.survey.startMovingQuestion(),i.panel==n.parent?(i.panel.dragDropMoveElement(n,t,s),s=-1):n.parent.removeElement(n)),s>-1&&i.panel.addElement(t,s),this.page.survey.stopMovingQuestion()}return a.map((function(e){e.startWithNewLine=!0})),l.map((function(e){e.startWithNewLine=!1})),this.dragDropInfo=null,e?null:t}},e.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var n=t.elements.indexOf(e);if(0==t.index)return n;var r=t.panel.rows[t.index-1],o=r.elements[r.elements.length-1];return n+t.panel.elements.indexOf(o)+1},e.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},e.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(e,t))return!1;if(this.page.isDesignMode&&o.settings.supportCreatorV2){if(this.page.dragDropFindRow(e)!==this.page.dragDropFindRow(t)){if(!e.startWithNewLine&&t.startWithNewLine)return!0;if(e.startWithNewLine&&!t.startWithNewLine)return!0}var n=this.page.dragDropFindRow(t);if(n&&1==n.elements.length)return!0}return this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},e.prototype.dragDropCanDropCore=function(e,t){if(!t)return!0;if(this.dragDropIsSameElement(t,e))return!1;if(e.isPanel){var n=e;if(n.containsElement(t)||n.getElementByName(t.name))return!1}return!0},e.prototype.dragDropCanDropNotNext=function(e,t,n,r){if(!t||t.isPanel&&!n)return!0;if(void 0===e.parent||e.parent!==t.parent)return!0;var o=e.parent,i=o.elements.indexOf(e),s=o.elements.indexOf(t);return s<i&&!r&&s--,r&&s++,i<s?s-i>1:i-s>0},e.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},e}()},"./src/drag-drop-panel-helper-v1.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropPanelHelperV1",(function(){return i}));var r=n("./src/drag-drop-helper-v1.ts"),o=n("./src/settings.ts"),i=function(){function e(e){this.panel=e}return e.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.panel.updateRowsRemoveElementFromRow(e.target,t)},e.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,n=this.panel.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(t)>-1)return n[r];for(r=0;r<this.panel.elements.length;r++){var o=this.panel.elements[r].getPanel();if(o){var i=o.dragDropFindRow(t);if(i)return i}}return null},e.prototype.dragDropMoveElement=function(e,t,n){n>e.parent.elements.indexOf(e)&&n--,this.panel.removeElement(e),this.panel.addElement(t,n)},e.prototype.updateRowsOnElementAdded=function(e,t,n,o){n||((n=new r.DragDropInfo(null,e)).target=e,n.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?n.destination=o:(n.isBottom=t>0,n.destination=0==t?this.panel.elements[1]:this.panel.elements[t-1])),this.dragDropAddTargetToRow(n,null)},e.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPanel(e))return!0;var n=e.destination,r=this.dragDropFindRow(n);return!r||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,r,t):this.dragDropAddTargetToExistingRow(e,r,t))},e.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){var n=t;if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},e.prototype.dragDropAddTargetToExistingRow=function(e,t,n){var r=t.elements.indexOf(e.destination);if(0==r&&!e.isBottom)if(this.panel.isDesignMode&&o.settings.supportCreatorV2);else if(t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,n)):this.dragDropAddTargetToNewRow(e,t,n);var i=-1;n==t&&(i=t.elements.indexOf(e.target)),e.isBottom&&r++;var s=this.panel.findRowByElement(e.source);return(s!=t||s.elements.indexOf(e.source)!=r)&&r!=i&&(i>-1&&(t.elements.splice(i,1),i<r&&r--),t.elements.splice(r,0,e.target),t.updateVisible(),i<0)},e.prototype.dragDropAddTargetToNewRow=function(e,t,n){var r=t.panel.createRowAndSetLazy(t.panel.rows.length);this.panel.isDesignMode&&o.settings.supportCreatorV2&&r.setIsLazyRendering(!1),r.addElement(e.target);var i=t.index;if(e.isBottom&&i++,n&&n.panel==r.panel&&n.index==i)return!1;var s=this.panel.findRowByElement(e.source);return!(s&&s.panel==r.panel&&1==s.elements.length&&s.index==i||(t.panel.rows.splice(i,0,r),0))},e.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,n){var r=e.createRow();r.addElement(t),0==e.elements.length||n?e.rows.push(r):e.rows.splice(0,0,r)},e}()},"./src/dragdrop/choices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropChoices",(function(){return s}));var r,o=n("./src/dragdrop/core.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.doDragOver=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="grabbing")},t.doBanDropHere=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="not-allowed")},t}return i(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){if("imagepicker"===this.parentElement.getType())return this.createImagePickerShortcut(this.draggedElement,e,t,n);var r=document.createElement("div");r.style.cssText=" \n          cursor: grabbing;\n          position: absolute;\n          z-index: 1000;\n          font-family: var(--font-family, $font-family);\n        ";var o=t.closest("[data-sv-drop-target-item-value]").cloneNode(!0);o.style.cssText="\n      min-width: 100px;\n      box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n      background-color: var(--background, white);\n      border-radius: 36px;\n      padding-right: 16px;\n      margin-left: 0;\n    ",o.querySelector(".svc-item-value-controls__drag-icon").style.visibility="visible",o.querySelector(".svc-item-value-controls__remove").style.backgroundColor="transparent",o.classList.remove("svc-item-value--moveup"),o.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,r.appendChild(o);var i=t.getBoundingClientRect();return r.shortcutXOffset=n.clientX-i.x,r.shortcutYOffset=n.clientY-i.y,this.isBottom=null,r},t.prototype.createImagePickerShortcut=function(e,t,n,r){var o=document.createElement("div");o.style.cssText=" \n      cursor: grabbing;\n      position: absolute;\n      z-index: 1000;\n      box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n      padding: 4px;\n      border-radius: 4px;\n      background: white;\n    ";var i=n.closest("[data-sv-drop-target-item-value]"),s=i.querySelector(".svc-image-item-value-controls"),a=i.querySelector(".sd-imagepicker__image-container"),l=i.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return s.style.display="none",a.style.width=l.width+"px",a.style.height=l.height+"px",l.style.objectFit="cover",l.style.borderRadius="4px",o.appendChild(l),o},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.choices.filter((function(t){return""+t.value==e}))[0]},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return"ranking"===e.getType()?e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,t){var n=this.getVisibleChoices();if("imagepicker"!==this.parentElement.getType()){var r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o>r&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(o<r&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return-1!==n.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.getVisibleChoices();return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var n=this.getVisibleChoices(),r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);n.splice(o,1),n.splice(r,0,this.draggedElement),"imagepicker"!==this.parentElement.getType()&&(o!==r&&(t.classList.remove("svc-item-value--moveup"),t.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>r&&(this.dropTarget.isDragDropMoveDown=!0),o<r&&(this.dropTarget.isDragDropMoveUp=!0),e.prototype.ghostPositionChanged.call(this))}},t.prototype.doDrop=function(){var e=this.parentElement.choices,t=this.getVisibleChoices().filter((function(t){return-1!==e.indexOf(t)})),n=e.indexOf(this.draggedElement),r=t.indexOf(this.draggedElement);return e.splice(n,1),e.splice(r,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),e.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){"ranking"===e.getType()?e.updateRankingChoices():e.updateVisibleChoices()},t}(o.DragDropCore)},"./src/dragdrop/core.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropCore",(function(){return i}));var r=n("./src/base.ts"),o=n("./src/dragdrop/dom-adapter.ts"),i=function(){function e(e,t,n,i){var s=this;this.surveyValue=e,this.creator=t,this._isBottom=null,this.onGhostPositionChanged=new r.EventBase,this.onDragStart=new r.EventBase,this.onDragEnd=new r.EventBase,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){s.allowDropHere=!1,s.doBanDropHere(),s.dropTarget=null,s.domAdapter.draggedElementShortcut.style.cursor="not-allowed",s.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=i||new o.DragDropDOMAdapter(this,n)}return Object.defineProperty(e.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(e){this._isBottom=e,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),e.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(e.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){return this.surveyValue||this.creator.survey},enumerable:!1,configurable:!0}),e.prototype.startDrag=function(e,t,n,r,o){void 0===o&&(o=!1),this.domAdapter.startDrag(e,t,n,r,o)},e.prototype.dragInit=function(e,t,n,r){this.draggedElement=t,this.parentElement=n;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,r,e),this.onStartDrag()},e.prototype.onStartDrag=function(){},e.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},e.prototype.getShortcutText=function(e){return e.shortcutText},e.prototype.createDraggedElementShortcut=function(e,t,n){var r=document.createElement("div");return r.innerText=e,r.className=this.getDraggedElementClass(),r},e.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},e.prototype.doDragOver=function(){},e.prototype.afterDragOver=function(e){},e.prototype.findDropTargetNodeFromPoint=function(e,t){this.domAdapter.draggedElementShortcut.hidden=!0;var n=document.elementFromPoint(e,t);return this.domAdapter.draggedElementShortcut.hidden=!1,n?this.findDropTargetNodeByDragOverNode(n):null},e.prototype.getDataAttributeValueByNode=function(e){var t=this,n="svDropTarget";return this.draggedElementType.split("-").forEach((function(e){n+=t.capitalizeFirstLetter(e)})),e.dataset[n]},e.prototype.getDropTargetByNode=function(e,t){var n=this.getDataAttributeValueByNode(e);return this.getDropTargetByDataAttributeValue(n,e,t)},e.prototype.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.calculateVerticalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.y+t.height/2},e.prototype.calculateHorizontalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.x+t.width/2},e.prototype.calculateIsBottom=function(e,t){return!1},e.prototype.findDropTargetNodeByDragOverNode=function(e){return e.closest(this.dropTargetDataAttributeName)},e.prototype.dragOver=function(e){var t=this.findDropTargetNodeFromPoint(e.clientX,e.clientY);if(t){this.dropTarget=this.getDropTargetByNode(t,e);var n=this.isDropTargetValid(this.dropTarget,t);if(this.doDragOver(),n){var r=this.calculateIsBottom(e.clientY,t);this.allowDropHere=!0,this.isDropTargetDoesntChanged(r)||(this.isBottom=null,this.isBottom=r,this.afterDragOver(t),this.prevDropTarget=this.dropTarget)}else this.banDropHere()}else this.banDropHere()},e.prototype.drop=function(){if(this.allowDropHere){var e=this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:e,draggedElement:this.draggedElement});var t=this.doDrop();this.onDragEnd.fire(this,{fromElement:e,draggedElement:t,toElement:this.dropTarget})}},e.prototype.clear=function(){this.dropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null},e}()},"./src/dragdrop/dom-adapter.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropDOMAdapter",(function(){return s}));var r=n("./src/utils/utils.ts"),o=n("./src/utils/devices.ts"),i=n("./src/settings.ts");"undefined"!=typeof window&&window.addEventListener("touchmove",(function(e){s.PreventScrolling&&e.preventDefault()}),{passive:!1});var s=function(){function e(t,n){var r=this;this.dd=t,this.longTap=n,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(e){e.preventDefault(),r.currentX=e.pageX,r.currentY=e.pageY,r.isMicroMovement||(document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select",""),r.stopLongTap())},this.stopLongTap=function(e){clearTimeout(r.timeoutID),r.timeoutID=null,document.removeEventListener("pointerup",r.stopLongTap),document.removeEventListener("pointermove",r.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(e){r.clear()},this.handleEscapeButton=function(e){27==e.keyCode&&r.clear()},this.onContextMenu=function(e){e.preventDefault(),e.stopPropagation()},this.dragOver=function(e){r.moveShortcutElement(e),r.draggedElementShortcut.style.cursor="grabbing",r.dd.dragOver(e)},this.clear=function(){cancelAnimationFrame(r.scrollIntervalId),document.removeEventListener("pointermove",r.dragOver),document.removeEventListener("pointercancel",r.handlePointerCancel),document.removeEventListener("keydown",r.handleEscapeButton),document.removeEventListener("pointerup",r.drop),r.draggedElementShortcut.removeEventListener("pointerup",r.drop),o.IsTouch&&r.draggedElementShortcut.removeEventListener("contextmenu",r.onContextMenu),i.settings.environment.rootElement.removeChild(r.draggedElementShortcut),r.dd.clear(),r.draggedElementShortcut=null,r.scrollIntervalId=null,o.IsTouch&&(r.savedTargetNode&&i.settings.environment.rootElement.removeChild(r.savedTargetNode),e.PreventScrolling=!1),document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select","")},this.drop=function(){r.dd.drop(),r.clear()},this.draggedElementShortcut=null}return Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<5&&t<5},enumerable:!1,configurable:!0}),e.prototype.startLongTapProcessing=function(e,t,n,r,o){var s=this;void 0===o&&(o=!1),this.startX=e.pageX,this.startY=e.pageY,document.body.style.setProperty("touch-action","none","important"),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),this.timeoutID=setTimeout((function(){s.doStartDrag(e,t,n,r),o||(s.savedTargetNode=e.target,s.savedTargetNode.style.cssText="\n          position: absolute;\n          height: 1px!important;\n          width: 1px!important;\n          overflow: hidden;\n          clip: rect(1px 1px 1px 1px);\n          clip: rect(1px, 1px, 1px, 1px);\n        ",i.settings.environment.rootElement.appendChild(s.savedTargetNode)),s.stopLongTap()}),this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},e.prototype.moveShortcutElement=function(e){this.doScroll(e.clientY,e.clientX);var t=this.draggedElementShortcut.offsetHeight,n=this.draggedElementShortcut.offsetWidth,o=this.draggedElementShortcut.shortcutXOffset||n/2,s=this.draggedElementShortcut.shortcutYOffset||t/2;0!==document.querySelectorAll("[dir='rtl']").length&&(o=n/2,s=t/2);var a=(Object(r.isShadowDOM)(i.settings.environment.root)?i.settings.environment.root.host:i.settings.environment.root.documentElement).clientHeight,l=(Object(r.isShadowDOM)(i.settings.environment.root)?i.settings.environment.root.host:i.settings.environment.root.documentElement).clientWidth,u=this.getShortcutBottomCoordinate(e.clientY,t,s);return this.getShortcutRightCoordinate(e.clientX,n,o)>=l?(this.draggedElementShortcut.style.left=e.pageX-e.clientX+l-n+"px",void(this.draggedElementShortcut.style.top=e.pageY-s+"px")):e.clientX-o<=0?(this.draggedElementShortcut.style.left=e.pageX-e.clientX+"px",void(this.draggedElementShortcut.style.top=e.pageY-s+"px")):u>=a?(this.draggedElementShortcut.style.left=e.pageX-o+"px",void(this.draggedElementShortcut.style.top=e.pageY-e.clientY+a-t+"px")):e.clientY-s<=0?(this.draggedElementShortcut.style.left=e.pageX-o+"px",void(this.draggedElementShortcut.style.top=e.pageY-e.clientY+"px")):(this.draggedElementShortcut.style.left=e.pageX-o+"px",void(this.draggedElementShortcut.style.top=e.pageY-s+"px"))},e.prototype.getShortcutBottomCoordinate=function(e,t,n){return e+t-n},e.prototype.getShortcutRightCoordinate=function(e,t,n){return e+t-n},e.prototype.doScroll=function(e,t){var n=this;cancelAnimationFrame(this.scrollIntervalId),this.draggedElementShortcut.hidden=!0;var o=document.elementFromPoint(t,e);this.draggedElementShortcut.hidden=!1;var i,s,a,l,u=Object(r.findScrollableParent)(o);"HTML"===u.tagName?(i=0,s=document.documentElement.clientHeight,a=0,l=document.documentElement.clientWidth):(i=u.getBoundingClientRect().top,s=u.getBoundingClientRect().bottom,a=u.getBoundingClientRect().left,l=u.getBoundingClientRect().right);var c=function(){e-i<=50?u.scrollTop-=15:s-e<=50?u.scrollTop+=15:l-t<=50?u.scrollLeft+=15:t-a<=50&&(u.scrollLeft-=15),n.scrollIntervalId=requestAnimationFrame(c)};this.scrollIntervalId=requestAnimationFrame(c)},e.prototype.doStartDrag=function(t,n,r,i){o.IsTouch&&(e.PreventScrolling=!0),3!==t.which&&(this.dd.dragInit(t,n,r,i),document.body.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),o.IsTouch?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},e.prototype.startDrag=function(e,t,n,r,i){void 0===i&&(i=!1),o.IsTouch?this.startLongTapProcessing(e,t,n,r,i):this.doStartDrag(e,t,n,r)},e.PreventScrolling=!1,e}()},"./src/dragdrop/matrix-rows.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropMatrixRows",(function(){return s}));var r,o=n("./src/dragdrop/core.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fromIndex=null,t.toIndex=null,t.doDrop=function(){return t.parentElement.moveRowByIndex(t.fromIndex,t.toIndex),t.parentElement},t}return i(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){var r=this,o=document.createElement("div");if(o.style.cssText=" \n          cursor: grabbing;\n          position: absolute;\n          z-index: 1000;\n          font-family: var(--font-family, $font-family);\n        ",t){var i=t.closest("[data-sv-drop-target-matrix-row]"),s=i.cloneNode(!0);s.style.cssText="\n        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n        background-color: white;\n        display: flex;\n        flex-grow: 0;\n        flex-shrink: 0;\n        align-items: center;\n        line-height: 0;\n        width: "+i.offsetWidth+"px;\n      ",s.classList.remove("sv-matrix__drag-drop--moveup"),s.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(s);var a=t.getBoundingClientRect();o.shortcutXOffset=n.clientX-a.x,o.shortcutYOffset=n.clientY-a.y}return this.parentElement.renderedTable.rows.forEach((function(e,t){e.row===r.draggedElement&&(e.isGhostRow=!0)})),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),o},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.renderedTable.rows.filter((function(t){return t.row.id===e}))[0].row},t.prototype.isDropTargetValid=function(e,t){return!0},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.renderedTable.rows.map((function(e){return e.row}));return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){var n=this;if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var r,o,i,s=this.parentElement.renderedTable.rows;s.forEach((function(e,t){e.row===n.dropTarget&&(r=t),e.row===n.draggedElement&&(o=t,(i=e).isGhostRow=!0)})),s.splice(o,1),s.splice(r,0,i),this.toIndex=r,e.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){this.parentElement.renderedTable.rows.forEach((function(e){e.isGhostRow=!1})),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null,e.prototype.clear.call(this)},t}(o.DragDropCore)},"./src/dragdrop/ranking-choices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragDropRankingChoices",(function(){return l}));var r,o=n("./src/dragdrop/choices.ts"),i=n("./src/utils/cssClassBuilder.ts"),s=n("./src/utils/devices.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragOverRootNode=!1,t.doDragOver=function(){t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="grabbing"},t.doBanDropHere=function(){t.isDragOverRootNode?t.allowDropHere=!0:t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="not-allowed"},t.doDrop=function(){return t.parentElement.setValue(),t.parentElement},t}return a(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,n){var r=document.createElement("div");r.className=this.shortcutClass+" sv-ranking-shortcut",r.style.cssText=" \n          cursor: grabbing;\n          position: absolute;\n          z-index: 1000;\n          border-radius: 36px;\n          min-width: 100px;\n          box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n          background-color: var(--background, white);\n          font-family: var(--font-family, $font-family);\n        ";var o=t.cloneNode(!0);r.appendChild(o);var i=t.getBoundingClientRect();return r.shortcutXOffset=n.clientX-i.x,r.shortcutYOffset=n.clientY-i.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(r.style.width=t.offsetWidth+"px",r.style.height=t.offsetHeight+"px"),r},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return(new i.CssClassBuilder).append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,s.IsMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(t){return this.isDragOverRootNode=this.getIsDragOverRootNode(t),e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getIsDragOverRootNode=function(e){return"string"==typeof e.className&&-1!==e.className.indexOf("sv-ranking")},t.prototype.isDropTargetValid=function(e,t){var n=this.parentElement.rankingChoices,r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);return o>r&&t.classList.contains("sv-dragdrop-moveup")||o<r&&t.classList.contains("sv-dragdrop-movedown")?(this.parentElement.dropTargetNodeMove=null,!1):-1!==n.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.rankingChoices;return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var t=this.parentElement.rankingChoices,n=t.indexOf(this.dropTarget),r=t.indexOf(this.draggedElement);t.splice(r,1),t.splice(n,0,this.draggedElement),this.parentElement.setPropertyValue("rankingChoices",t),this.updateDraggedElementShortcut(n+1),r!==n&&(e.classList.remove("sv-dragdrop-moveup"),e.classList.remove("sv-dragdrop-movedown"),this.parentElement.dropTargetNodeMove=null),r>n&&(this.parentElement.dropTargetNodeMove="down"),r<n&&(this.parentElement.dropTargetNodeMove="up")},t.prototype.updateDraggedElementShortcut=function(e){var t=e+"";this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index").innerText=t},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,e.prototype.ghostPositionChanged.call(this)},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),e.prototype.clear.call(this)},t}(o.DragDropChoices)},"./src/dropdownListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DropdownListModel",(function(){return f}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=n("./src/list.ts"),a=n("./src/popup.ts"),l=n("./src/question_dropdown.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/utils/devices.ts"),p=n("./src/utils/utils.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(e){function t(t,n){var r=e.call(this)||this;return r.question=t,r.onSelectionChanged=n,r.minPageSize=25,r.loadingItemHeight=40,r._markdownMode=!1,r.selectedItemSelector=".sv-list__item--selected",r.itemSelector=".sv-list__item",r.itemsSettings={skip:0,take:0,totalCount:0,items:[]},r.isRunningLoadQuestionChoices=!1,r.popupCssClasses="sv-single-select-list",r.listModelFilterStringChanged=function(e){r.filterString!==e&&(r.filterString=e)},t.onPropertyChanged.add((function(e,t){"value"==t.name&&(r.showInputFieldComponent=r.question.showInputFieldComponent,r.showSelectedItemLocText=r.question.showSelectedItemLocText)})),r.showInputFieldComponent=r.question.showInputFieldComponent,r.showSelectedItemLocText=r.question.showSelectedItemLocText,r.listModel=r.createListModel(),r.updateAfterListModelCreated(r.listModel),r.setSearchEnabled(r.question.searchEnabled),r.createPopup(),r.resetItemsSettings(),r}return d(t,e),Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return c.IsTouch?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,t){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=t,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.updateQuestionChoices=function(e){var t=this;if(!this.isRunningLoadQuestionChoices){var n=this.itemsSettings.skip+1<this.itemsSettings.totalCount;this.itemsSettings.skip&&!n||(this.isRunningLoadQuestionChoices=!0,this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(n,r){t.isRunningLoadQuestionChoices=!1,t.setItems(n||[],r||0),t.popupRecalculatePosition(t.itemsSettings.skip===t.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take)}},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.createPopup=function(){var e=this;this._popupModel=new a.PopupModel("sv-list",{model:this.listModel},"bottom","center",!1),this._popupModel.displayMode=c.IsTouch?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContent=c.IsTouch,this._popupModel.setWidthByTarget=!c.IsTouch,this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],(function(){e.updatePopupFocusFirstInputSelector()})),this._popupModel.cssClass=this.popupCssClasses,this._popupModel.onVisibilityChanged.add((function(t,n){n.isVisible&&(e.listModel.renderElements=!0),n.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.updateQuestionChoices()),n.isVisible&&e.question.onOpenedCallBack&&(e.updatePopupFocusFirstInputSelector(),e.question.onOpenedCallBack()),n.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings())}))},t.prototype.setFilterStringToListModel=function(e){var t=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0)return this.listModel.focusedItem=this.getAvailableItems().filter((function(e){return e.id==t.question.selectedItem.value}))[0],void(this.listModel.filterString&&this.listModel.actions.map((function(e){return e.selectedValue=!1})));this.listModel.focusedItem&&this.listModel.isItemVisible(this.listModel.focusedItem)||this.listModel.focusFirstVisibleItem()},t.prototype.popupRecalculatePosition=function(e){var t=this;setTimeout((function(){t.popupModel.recalculatePosition(e)}),1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null,this.listModel.refresh()},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),n=this.onSelectionChanged;n||(n=function(t){e.question.value=t.id,e.question.searchEnabled&&e.applyInputString(t),e._popupModel.toggleVisibility()});var r=new s.ListModel(t,n,!1,void 0,this.question.choicesLazyLoadEnabled?this.listModelFilterStringChanged:void 0,this.listElementId);return r.renderElements=!1,r.forceShowFilter=!0,r.areSameItemsCallback=function(e,t){return e===t},r},t.prototype.updateAfterListModelCreated=function(e){var t=this;e.isItemSelected=function(e){return!!e.selected},e.locOwner=this.question,e.onPropertyChanged.add((function(e,n){"hasVerticalScroller"==n.name&&(t.hasScroll=n.newValue)})),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled},t.prototype.updateCssClasses=function(e,t){this.popupModel.cssClass=(new u.CssClassBuilder).append(e).append(this.popupCssClasses).toString(),this.listModel.cssClasses=t},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;this.filterString&&!this.popupModel.isVisible&&(this.popupModel.isVisible=!0);var t=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(t)):t()},t.prototype.applyInputString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString="",this.hintString=""):(this.inputString=null==e?void 0:e.title,this.hintString=null==e?void 0:e.title)},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=null==e?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,this.applyHintString(this.listModel.focusedItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString?"":this.question.readOnlyText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return(null===(e=this.hintString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return(null===(e=this.inputString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&this.hintStringLC&&this.hintStringLC.indexOf(this.inputStringLC)>=0||!this.question.searchEnabled&&this.hintStringLC&&!this.question.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return-1==e?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputReadOnly",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterStringEnabled",{get:function(){return!this.question.isInputReadOnly&&this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputMode",{get:function(){return c.IsTouch?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.searchEnabled=c.IsTouch,this.listModel.showSearchClearButton=c.IsTouch,this.searchEnabled=e},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){if(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.searchEnabled&&e&&e.target){var t=e.target.querySelector("input");t&&t.focus()}},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(),this._popupModel.isVisible=!1,e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var t,n=this.listModel.focusedItem;e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(n),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=null===(t=this.listModel.focusedItem)||void 0===t?void 0:t.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.fixInputCase(),this.ariaActivedescendant=null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.elementId},t.prototype.keyHandler=function(e){var t=e.which||e.keyCode;if(this.popupModel.isVisible&&38===e.keyCode)this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation();else if(40===e.keyCode)this.popupModel.isVisible||this.popupModel.toggleVisibility(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation();else if(this.popupModel.isVisible||13!==e.keyCode&&32!==e.keyCode)if(!this.popupModel.isVisible||13!==e.keyCode&&(32!==e.keyCode||this.question.searchEnabled&&this.inputString))if(46===t||8===t)this.searchEnabled||this.onClear(e);else if(27===e.keyCode)this._popupModel.isVisible=!1,this.hintString="",this.onEscape();else{if((38===e.keyCode||40===e.keyCode||32===e.keyCode&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),32===e.keyCode&&this.question.searchEnabled)return;Object(p.doKey2ClickUp)(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}else 13===e.keyCode&&this.question.searchEnabled&&!this.inputString&&this.question instanceof l.QuestionDropdownModel&&!this._markdownMode&&this.question.value?(this._popupModel.isVisible=!1,this.onClear(e),this.question.survey.questionEditFinishCallback(this.question,e)):(this.listModel.selectFocusedItem(),this.onFocus(e),this.question.survey.questionEditFinishCallback(this.question,e)),e.preventDefault(),e.stopPropagation();else this.popupModel.toggleVisibility(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var t=e.target;t.scrollHeight-(t.scrollTop+t.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){this.popupModel.isVisible&&c.IsTouch?this._popupModel.isVisible=!0:(this.popupModel.isVisible&&this.filterString&&this.listModel.selectFocusedItem(),this.resetFilterString(),this.inputString=null,this.hintString="",Object(p.doKey2ClickBlur)(e),this._popupModel.isVisible=!1,e.stopPropagation())},t.prototype.onFocus=function(e){this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose()},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},h([Object(i.property)({defaultValue:!0})],t.prototype,"searchEnabled",void 0),h([Object(i.property)({defaultValue:"",onSet:function(e,t){t.onSetFilterString()}})],t.prototype,"filterString",void 0),h([Object(i.property)({defaultValue:"",onSet:function(e,t){t.question.inputHasValue=!!e,t.showSelectedItemLocText=t.question.showSelectedItemLocText}})],t.prototype,"inputString",void 0),h([Object(i.property)({})],t.prototype,"showSelectedItemLocText",void 0),h([Object(i.property)({})],t.prototype,"showInputFieldComponent",void 0),h([Object(i.property)()],t.prototype,"ariaActivedescendant",void 0),h([Object(i.property)({defaultValue:!1,onSet:function(e,t){e?t.listModel.addScrollEventListener((function(e){t.onScroll(e)})):t.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),h([Object(i.property)({defaultValue:""})],t.prototype,"hintString",void 0),t}(o.Base)},"./src/dropdownMultiSelectListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DropdownMultiSelectListModel",(function(){return d}));var r,o=n("./src/base.ts"),i=n("./src/dropdownListModel.ts"),s=n("./src/jsonobject.ts"),a=n("./src/multiSelectListModel.ts"),l=n("./src/settings.ts"),u=n("./src/utils/devices.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.popupCssClasses="sv-multi-select-list",r.setHideSelectedItems(t.hideSelectedItems),r.syncFilterStringPlaceholder(),r.closeOnSelect=t.closeOnSelect,r}return c(t,e),t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){this.getSelectedActions().length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter((function(e){return e.selected}))},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&u.IsTouch&&!this.isValueEmpty(this.question.value)?this.itemSelector:e.prototype.getFocusFirstInputSelector.call(this)},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),n=this.onSelectionChanged;n||(n=function(t,n){e.resetFilterString(),"selectall"===t.value?e.selectAllItems():"added"===n&&t.value===l.settings.noneItemValue?e.selectNoneItem():"added"===n?e.selectItem(t.value):"removed"===n&&e.deselectItem(t.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var r=new a.MultiSelectListModel(t,n,!1,void 0,this.question.choicesLazyLoadEnabled?this.listModelFilterStringChanged:void 0,this.listElementId);return r.forceShowFilter=!0,r},t.prototype.resetFilterString=function(){e.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return u.IsTouch&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var t=this;e.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add((function(e,n){t.shouldResetAfterCancel&&n.actions.push({id:"sv-dropdown-done-button",title:t.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){t.popupModel.isVisible=!1},enabled:new o.ComputedUpdater((function(){return!t.isTwoValueEquals(t.question.renderedValue,t.previousValue)}))})})),this.popupModel.onVisibilityChanged.add((function(e,n){t.shouldResetAfterCancel&&n.isVisible&&(t.previousValue=[].concat(t.question.renderedValue||[]))})),this.popupModel.onCancel=function(){t.shouldResetAfterCancel&&(t.question.renderedValue=t.previousValue,t.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[l.settings.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.push(e),this.question.renderedValue=t,this.updateListState()},t.prototype.deselectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.splice(t.indexOf(e),1),this.question.renderedValue=t,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(t){e.prototype.onClear.call(this,t),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){8!==e.keyCode||this.filterString||(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;(null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.selected)?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},p([Object(s.property)({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),p([Object(s.property)({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),p([Object(s.property)()],t.prototype,"previousValue",void 0),p([Object(s.property)({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(i.DropdownListModel)},"./src/dxSurveyService.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"dxSurveyService",(function(){return o}));var r=n("./src/settings.ts"),o=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return r.settings.surveyServiceUrl},set:function(e){r.settings.surveyServiceUrl=e},enumerable:!1,configurable:!0}),e.prototype.loadSurvey=function(t,n){var r=new XMLHttpRequest;r.open("GET",e.serviceUrl+"/getSurvey?surveyId="+t),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=JSON.parse(r.response);n(200==r.status,e,r.response)},r.send()},e.prototype.getSurveyJsonAndIsCompleted=function(t,n,r){var o=new XMLHttpRequest;o.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+n),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=JSON.parse(o.response),t=e?e.survey:null,n=e?e.isCompleted:null;r(200==o.status,t,n,o.response)},o.send()},e.prototype.sendResult=function(t,n,r,o,i){void 0===o&&(o=null),void 0===i&&(i=!1);var s=new XMLHttpRequest;s.open("POST",e.serviceUrl+"/post/"),s.setRequestHeader("Content-Type","application/json; charset=utf-8");var a={postId:t,surveyResult:JSON.stringify(n)};o&&(a.clientId=o),i&&(a.isPartialCompleted=!0);var l=JSON.stringify(a);s.onload=s.onerror=function(){r&&r(200===s.status,s.response,s)},s.send(l)},e.prototype.sendFile=function(t,n,r){var o=new XMLHttpRequest;o.onload=o.onerror=function(){r&&r(200==o.status,JSON.parse(o.response))},o.open("POST",e.serviceUrl+"/upload/",!0);var i=new FormData;i.append("file",n),i.append("postId",t),o.send(i)},e.prototype.getResult=function(t,n,r){var o=new XMLHttpRequest,i="resultId="+t+"&name="+n;o.open("GET",e.serviceUrl+"/getResult?"+i),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=null,t=null;if(200==o.status)for(var n in t=[],(e=JSON.parse(o.response)).QuestionResult){var i={name:n,value:e.QuestionResult[n]};t.push(i)}r(200==o.status,e,t,o.response)},o.send()},e.prototype.isCompleted=function(t,n,r){var o=new XMLHttpRequest,i="resultId="+t+"&clientId="+n;o.open("GET",e.serviceUrl+"/isCompleted?"+i),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=null;200==o.status&&(e=JSON.parse(o.response)),r(200==o.status,e,o.response)},o.send()},e}()},"./src/element-helper.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ElementHelper",(function(){return r}));var r=function(){function e(){}return e.focusElement=function(e){e&&e.focus()},e.visibility=function(e){var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&(!e.parentElement||this.visibility(e.parentElement))},e.getNextElementPreorder=function(e){var t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)},e.getNextElementPostorder=function(e){var t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)},e.hasHorizontalScroller=function(e){return!!e&&e.scrollWidth>e.offsetWidth},e.hasVerticalScroller=function(e){return!!e&&e.scrollHeight>e.offsetHeight},e}()},"./src/entries/chunks/model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Version",(function(){return De})),n.d(t,"checkLibraryVersion",(function(){return ke}));var r=n("./src/settings.ts");n.d(t,"settings",(function(){return r.settings}));var o=n("./src/helpers.ts");n.d(t,"Helpers",(function(){return o.Helpers}));var i=n("./src/validator.ts");n.d(t,"AnswerCountValidator",(function(){return i.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return i.EmailValidator})),n.d(t,"NumericValidator",(function(){return i.NumericValidator})),n.d(t,"RegexValidator",(function(){return i.RegexValidator})),n.d(t,"SurveyValidator",(function(){return i.SurveyValidator})),n.d(t,"TextValidator",(function(){return i.TextValidator})),n.d(t,"ValidatorResult",(function(){return i.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return i.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return i.ValidatorRunner}));var s=n("./src/itemvalue.ts");n.d(t,"ItemValue",(function(){return s.ItemValue}));var a=n("./src/base.ts");n.d(t,"Base",(function(){return a.Base})),n.d(t,"Event",(function(){return a.Event})),n.d(t,"EventBase",(function(){return a.EventBase})),n.d(t,"ArrayChanges",(function(){return a.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return a.ComputedUpdater}));var l=n("./src/survey-error.ts");n.d(t,"SurveyError",(function(){return l.SurveyError}));var u=n("./src/survey-element.ts");n.d(t,"SurveyElementCore",(function(){return u.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return u.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return u.DragTypeOverMeEnum}));var c=n("./src/calculatedValue.ts");n.d(t,"CalculatedValue",(function(){return c.CalculatedValue}));var p=n("./src/error.ts");n.d(t,"CustomError",(function(){return p.CustomError})),n.d(t,"AnswerRequiredError",(function(){return p.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return p.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return p.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return p.ExceedSizeError}));var d=n("./src/localizablestring.ts");n.d(t,"LocalizableString",(function(){return d.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return d.LocalizableStrings}));var h=n("./src/expressionItems.ts");n.d(t,"HtmlConditionItem",(function(){return h.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return h.UrlConditionItem}));var f=n("./src/choicesRestful.ts");n.d(t,"ChoicesRestful",(function(){return f.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return f.ChoicesRestfull}));var g=n("./src/functionsfactory.ts");n.d(t,"FunctionFactory",(function(){return g.FunctionFactory})),n.d(t,"registerFunction",(function(){return g.registerFunction}));var m=n("./src/conditions.ts");n.d(t,"ConditionRunner",(function(){return m.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return m.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return m.ExpressionExecutor}));var y=n("./src/expressions/expressions.ts");n.d(t,"Operand",(function(){return y.Operand})),n.d(t,"Const",(function(){return y.Const})),n.d(t,"BinaryOperand",(function(){return y.BinaryOperand})),n.d(t,"Variable",(function(){return y.Variable})),n.d(t,"FunctionOperand",(function(){return y.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return y.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return y.UnaryOperand}));var v=n("./src/conditionsParser.ts");n.d(t,"ConditionsParser",(function(){return v.ConditionsParser}));var b=n("./src/conditionProcessValue.ts");n.d(t,"ProcessValue",(function(){return b.ProcessValue}));var C=n("./src/jsonobject.ts");n.d(t,"JsonError",(function(){return C.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return C.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return C.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return C.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return C.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return C.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return C.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return C.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return C.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return C.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return C.Serializer})),n.d(t,"property",(function(){return C.property})),n.d(t,"propertyArray",(function(){return C.propertyArray}));var w=n("./src/question_matrixdropdownbase.ts");n.d(t,"MatrixDropdownCell",(function(){return w.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return w.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return w.QuestionMatrixDropdownModelBase}));var x=n("./src/question_matrixdropdowncolumn.ts");n.d(t,"MatrixDropdownColumn",(function(){return x.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return x.matrixDropdownColumnTypes}));var P=n("./src/question_matrixdropdownrendered.ts");n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return P.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return P.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return P.QuestionMatrixDropdownRenderedTable}));var _=n("./src/question_matrixdropdown.ts");n.d(t,"MatrixDropdownRowModel",(function(){return _.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return _.QuestionMatrixDropdownModel}));var S=n("./src/question_matrixdynamic.ts");n.d(t,"MatrixDynamicRowModel",(function(){return S.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return S.QuestionMatrixDynamicModel}));var V=n("./src/question_matrix.ts");n.d(t,"MatrixRowModel",(function(){return V.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return V.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return V.QuestionMatrixModel}));var O=n("./src/martixBase.ts");n.d(t,"QuestionMatrixBaseModel",(function(){return O.QuestionMatrixBaseModel}));var E=n("./src/question_multipletext.ts");n.d(t,"MultipleTextItemModel",(function(){return E.MultipleTextItemModel})),n.d(t,"QuestionMultipleTextModel",(function(){return E.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return E.MultipleTextEditorModel}));var T=n("./src/panel.ts");n.d(t,"PanelModel",(function(){return T.PanelModel})),n.d(t,"PanelModelBase",(function(){return T.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return T.QuestionRowModel}));var I=n("./src/flowpanel.ts");n.d(t,"FlowPanelModel",(function(){return I.FlowPanelModel}));var R=n("./src/page.ts");n.d(t,"PageModel",(function(){return R.PageModel})),n("./src/template-renderer.ts");var D=n("./src/defaultTitle.ts");n.d(t,"DefaultTitleModel",(function(){return D.DefaultTitleModel}));var j=n("./src/question.ts");n.d(t,"Question",(function(){return j.Question}));var k=n("./src/questionnonvalue.ts");n.d(t,"QuestionNonValue",(function(){return k.QuestionNonValue}));var q=n("./src/question_empty.ts");n.d(t,"QuestionEmptyModel",(function(){return q.QuestionEmptyModel}));var M=n("./src/question_baseselect.ts");n.d(t,"QuestionCheckboxBase",(function(){return M.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return M.QuestionSelectBase}));var L=n("./src/question_checkbox.ts");n.d(t,"QuestionCheckboxModel",(function(){return L.QuestionCheckboxModel}));var A=n("./src/question_tagbox.ts");n.d(t,"QuestionTagboxModel",(function(){return A.QuestionTagboxModel}));var N=n("./src/question_ranking.ts");n.d(t,"QuestionRankingModel",(function(){return N.QuestionRankingModel}));var B=n("./src/question_comment.ts");n.d(t,"QuestionCommentModel",(function(){return B.QuestionCommentModel}));var F=n("./src/question_dropdown.ts");n.d(t,"QuestionDropdownModel",(function(){return F.QuestionDropdownModel}));var Q=n("./src/questionfactory.ts");n.d(t,"QuestionFactory",(function(){return Q.QuestionFactory})),n.d(t,"ElementFactory",(function(){return Q.ElementFactory}));var z=n("./src/question_file.ts");n.d(t,"QuestionFileModel",(function(){return z.QuestionFileModel}));var H=n("./src/question_html.ts");n.d(t,"QuestionHtmlModel",(function(){return H.QuestionHtmlModel}));var U=n("./src/question_radiogroup.ts");n.d(t,"QuestionRadiogroupModel",(function(){return U.QuestionRadiogroupModel}));var W=n("./src/question_rating.ts");n.d(t,"QuestionRatingModel",(function(){return W.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return W.RenderedRatingItem}));var J=n("./src/question_expression.ts");n.d(t,"QuestionExpressionModel",(function(){return J.QuestionExpressionModel}));var G=n("./src/question_textbase.ts");n.d(t,"QuestionTextBase",(function(){return G.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return G.CharacterCounter}));var $=n("./src/question_text.ts");n.d(t,"QuestionTextModel",(function(){return $.QuestionTextModel}));var K=n("./src/question_boolean.ts");n.d(t,"QuestionBooleanModel",(function(){return K.QuestionBooleanModel}));var Z=n("./src/question_imagepicker.ts");n.d(t,"QuestionImagePickerModel",(function(){return Z.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return Z.ImageItemValue}));var X=n("./src/question_image.ts");n.d(t,"QuestionImageModel",(function(){return X.QuestionImageModel}));var Y=n("./src/question_signaturepad.ts");n.d(t,"QuestionSignaturePadModel",(function(){return Y.QuestionSignaturePadModel}));var ee=n("./src/question_paneldynamic.ts");n.d(t,"QuestionPanelDynamicModel",(function(){return ee.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return ee.QuestionPanelDynamicItem}));var te=n("./src/surveytimer.ts");n.d(t,"SurveyTimer",(function(){return te.SurveyTimer}));var ne=n("./src/surveyTimerModel.ts");n.d(t,"SurveyTimerModel",(function(){return ne.SurveyTimerModel}));var re=n("./src/surveyToc.ts");n.d(t,"tryNavigateToPage",(function(){return re.tryNavigateToPage})),n.d(t,"createTOCListModel",(function(){return re.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return re.getTocRootCss}));var oe=n("./src/surveyProgress.ts");n.d(t,"SurveyProgressModel",(function(){return oe.SurveyProgressModel}));var ie=n("./src/surveyProgressButtons.ts");n.d(t,"SurveyProgressButtonsModel",(function(){return ie.SurveyProgressButtonsModel}));var se=n("./src/survey.ts");n.d(t,"SurveyModel",(function(){return se.SurveyModel}));var ae=n("./src/trigger.ts");n.d(t,"SurveyTrigger",(function(){return ae.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return ae.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return ae.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return ae.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return ae.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return ae.SurveyTriggerRunExpression})),n.d(t,"Trigger",(function(){return ae.Trigger}));var le=n("./src/popup-survey.ts");n.d(t,"PopupSurveyModel",(function(){return le.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return le.SurveyWindowModel}));var ue=n("./src/textPreProcessor.ts");n.d(t,"TextPreProcessor",(function(){return ue.TextPreProcessor}));var ce=n("./src/notifier.ts");n.d(t,"Notifier",(function(){return ce.Notifier}));var pe=n("./src/dxSurveyService.ts");n.d(t,"dxSurveyService",(function(){return pe.dxSurveyService}));var de=n("./src/localization/english.ts");n.d(t,"englishStrings",(function(){return de.englishStrings}));var he=n("./src/surveyStrings.ts");n.d(t,"surveyLocalization",(function(){return he.surveyLocalization})),n.d(t,"surveyStrings",(function(){return he.surveyStrings}));var fe=n("./src/questionCustomWidgets.ts");n.d(t,"QuestionCustomWidget",(function(){return fe.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return fe.CustomWidgetCollection}));var ge=n("./src/question_custom.ts");n.d(t,"QuestionCustomModel",(function(){return ge.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return ge.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return ge.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return ge.ComponentCollection}));var me=n("./src/stylesmanager.ts");n.d(t,"StylesManager",(function(){return me.StylesManager}));var ye=n("./src/list.ts");n.d(t,"ListModel",(function(){return ye.ListModel}));var ve=n("./src/multiSelectListModel.ts");n.d(t,"MultiSelectListModel",(function(){return ve.MultiSelectListModel}));var be=n("./src/popup.ts");n.d(t,"PopupModel",(function(){return be.PopupModel})),n.d(t,"createDialogOptions",(function(){return be.createDialogOptions}));var Ce=n("./src/popup-view-model.ts");n.d(t,"PopupBaseViewModel",(function(){return Ce.PopupBaseViewModel}));var we=n("./src/popup-dropdown-view-model.ts");n.d(t,"PopupDropdownViewModel",(function(){return we.PopupDropdownViewModel}));var xe=n("./src/popup-modal-view-model.ts");n.d(t,"PopupModalViewModel",(function(){return xe.PopupModalViewModel}));var Pe=n("./src/popup-utils.ts");n.d(t,"createPopupViewModel",(function(){return Pe.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return Pe.createPopupModalViewModel}));var _e=n("./src/dropdownListModel.ts");n.d(t,"DropdownListModel",(function(){return _e.DropdownListModel}));var Se=n("./src/dropdownMultiSelectListModel.ts");n.d(t,"DropdownMultiSelectListModel",(function(){return Se.DropdownMultiSelectListModel}));var Ve=n("./src/question_buttongroup.ts");n.d(t,"QuestionButtonGroupModel",(function(){return Ve.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return Ve.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return Ve.ButtonGroupItemValue}));var Oe=n("./src/utils/devices.ts");n.d(t,"IsMobile",(function(){return Oe.IsMobile})),n.d(t,"IsTouch",(function(){return Oe.IsTouch})),n.d(t,"_setIsTouch",(function(){return Oe._setIsTouch}));var Ee=n("./src/utils/utils.ts");n.d(t,"confirmAction",(function(){return Ee.confirmAction})),n.d(t,"detectIEOrEdge",(function(){return Ee.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return Ee.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return Ee.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return Ee.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return Ee.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return Ee.increaseHeightByContent})),n.d(t,"createSvg",(function(){return Ee.createSvg})),n.d(t,"sanitizeEditableContent",(function(){return Ee.sanitizeEditableContent}));var Te=n("./src/utils/cssClassBuilder.ts");n.d(t,"CssClassBuilder",(function(){return Te.CssClassBuilder}));var Ie=n("./src/defaultCss/defaultV2Css.ts");n.d(t,"surveyCss",(function(){return Ie.surveyCss})),n.d(t,"defaultV2Css",(function(){return Ie.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return Ie.defaultV2ThemeName}));var Re=n("./src/dragdrop/core.ts");n.d(t,"DragDropCore",(function(){return Re.DragDropCore}));var De,je=n("./src/dragdrop/choices.ts");function ke(e,t){if(De!=e){var n="survey-core has version '"+De+"' and "+t+" has version '"+e+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(n)}}n.d(t,"DragDropChoices",(function(){return je.DragDropChoices})),De="1.9.90"},"./src/entries/core-wo-model.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/chunks/model.ts");n.d(t,"Version",(function(){return r.Version})),n.d(t,"checkLibraryVersion",(function(){return r.checkLibraryVersion})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"Helpers",(function(){return r.Helpers})),n.d(t,"AnswerCountValidator",(function(){return r.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return r.EmailValidator})),n.d(t,"NumericValidator",(function(){return r.NumericValidator})),n.d(t,"RegexValidator",(function(){return r.RegexValidator})),n.d(t,"SurveyValidator",(function(){return r.SurveyValidator})),n.d(t,"TextValidator",(function(){return r.TextValidator})),n.d(t,"ValidatorResult",(function(){return r.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return r.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return r.ValidatorRunner})),n.d(t,"ItemValue",(function(){return r.ItemValue})),n.d(t,"Base",(function(){return r.Base})),n.d(t,"Event",(function(){return r.Event})),n.d(t,"EventBase",(function(){return r.EventBase})),n.d(t,"ArrayChanges",(function(){return r.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return r.ComputedUpdater})),n.d(t,"SurveyError",(function(){return r.SurveyError})),n.d(t,"SurveyElementCore",(function(){return r.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return r.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return r.DragTypeOverMeEnum})),n.d(t,"CalculatedValue",(function(){return r.CalculatedValue})),n.d(t,"CustomError",(function(){return r.CustomError})),n.d(t,"AnswerRequiredError",(function(){return r.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return r.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return r.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return r.ExceedSizeError})),n.d(t,"LocalizableString",(function(){return r.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return r.LocalizableStrings})),n.d(t,"HtmlConditionItem",(function(){return r.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return r.UrlConditionItem})),n.d(t,"ChoicesRestful",(function(){return r.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return r.ChoicesRestfull})),n.d(t,"FunctionFactory",(function(){return r.FunctionFactory})),n.d(t,"registerFunction",(function(){return r.registerFunction})),n.d(t,"ConditionRunner",(function(){return r.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return r.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return r.ExpressionExecutor})),n.d(t,"Operand",(function(){return r.Operand})),n.d(t,"Const",(function(){return r.Const})),n.d(t,"BinaryOperand",(function(){return r.BinaryOperand})),n.d(t,"Variable",(function(){return r.Variable})),n.d(t,"FunctionOperand",(function(){return r.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return r.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return r.UnaryOperand})),n.d(t,"ConditionsParser",(function(){return r.ConditionsParser})),n.d(t,"ProcessValue",(function(){return r.ProcessValue})),n.d(t,"JsonError",(function(){return r.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return r.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return r.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return r.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return r.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return r.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return r.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return r.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return r.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return r.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return r.Serializer})),n.d(t,"property",(function(){return r.property})),n.d(t,"propertyArray",(function(){return r.propertyArray})),n.d(t,"MatrixDropdownCell",(function(){return r.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return r.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return r.QuestionMatrixDropdownModelBase})),n.d(t,"MatrixDropdownColumn",(function(){return r.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return r.matrixDropdownColumnTypes})),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return r.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return r.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return r.QuestionMatrixDropdownRenderedTable})),n.d(t,"MatrixDropdownRowModel",(function(){return r.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return r.QuestionMatrixDropdownModel})),n.d(t,"MatrixDynamicRowModel",(function(){return r.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return r.QuestionMatrixDynamicModel})),n.d(t,"MatrixRowModel",(function(){return r.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return r.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return r.QuestionMatrixModel})),n.d(t,"QuestionMatrixBaseModel",(function(){return r.QuestionMatrixBaseModel})),n.d(t,"MultipleTextItemModel",(function(){return r.MultipleTextItemModel})),n.d(t,"QuestionMultipleTextModel",(function(){return r.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return r.MultipleTextEditorModel})),n.d(t,"PanelModel",(function(){return r.PanelModel})),n.d(t,"PanelModelBase",(function(){return r.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return r.QuestionRowModel})),n.d(t,"FlowPanelModel",(function(){return r.FlowPanelModel})),n.d(t,"PageModel",(function(){return r.PageModel})),n.d(t,"DefaultTitleModel",(function(){return r.DefaultTitleModel})),n.d(t,"Question",(function(){return r.Question})),n.d(t,"QuestionNonValue",(function(){return r.QuestionNonValue})),n.d(t,"QuestionEmptyModel",(function(){return r.QuestionEmptyModel})),n.d(t,"QuestionCheckboxBase",(function(){return r.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return r.QuestionSelectBase})),n.d(t,"QuestionCheckboxModel",(function(){return r.QuestionCheckboxModel})),n.d(t,"QuestionTagboxModel",(function(){return r.QuestionTagboxModel})),n.d(t,"QuestionRankingModel",(function(){return r.QuestionRankingModel})),n.d(t,"QuestionCommentModel",(function(){return r.QuestionCommentModel})),n.d(t,"QuestionDropdownModel",(function(){return r.QuestionDropdownModel})),n.d(t,"QuestionFactory",(function(){return r.QuestionFactory})),n.d(t,"ElementFactory",(function(){return r.ElementFactory})),n.d(t,"QuestionFileModel",(function(){return r.QuestionFileModel})),n.d(t,"QuestionHtmlModel",(function(){return r.QuestionHtmlModel})),n.d(t,"QuestionRadiogroupModel",(function(){return r.QuestionRadiogroupModel})),n.d(t,"QuestionRatingModel",(function(){return r.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return r.RenderedRatingItem})),n.d(t,"QuestionExpressionModel",(function(){return r.QuestionExpressionModel})),n.d(t,"QuestionTextBase",(function(){return r.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return r.CharacterCounter})),n.d(t,"QuestionTextModel",(function(){return r.QuestionTextModel})),n.d(t,"QuestionBooleanModel",(function(){return r.QuestionBooleanModel})),n.d(t,"QuestionImagePickerModel",(function(){return r.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return r.ImageItemValue})),n.d(t,"QuestionImageModel",(function(){return r.QuestionImageModel})),n.d(t,"QuestionSignaturePadModel",(function(){return r.QuestionSignaturePadModel})),n.d(t,"QuestionPanelDynamicModel",(function(){return r.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return r.QuestionPanelDynamicItem})),n.d(t,"SurveyTimer",(function(){return r.SurveyTimer})),n.d(t,"SurveyTimerModel",(function(){return r.SurveyTimerModel})),n.d(t,"tryNavigateToPage",(function(){return r.tryNavigateToPage})),n.d(t,"createTOCListModel",(function(){return r.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return r.getTocRootCss})),n.d(t,"SurveyProgressModel",(function(){return r.SurveyProgressModel})),n.d(t,"SurveyProgressButtonsModel",(function(){return r.SurveyProgressButtonsModel})),n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyTrigger",(function(){return r.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return r.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return r.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return r.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return r.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return r.SurveyTriggerRunExpression})),n.d(t,"Trigger",(function(){return r.Trigger})),n.d(t,"PopupSurveyModel",(function(){return r.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"TextPreProcessor",(function(){return r.TextPreProcessor})),n.d(t,"Notifier",(function(){return r.Notifier})),n.d(t,"dxSurveyService",(function(){return r.dxSurveyService})),n.d(t,"englishStrings",(function(){return r.englishStrings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings})),n.d(t,"QuestionCustomWidget",(function(){return r.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return r.CustomWidgetCollection})),n.d(t,"QuestionCustomModel",(function(){return r.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return r.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return r.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return r.ComponentCollection})),n.d(t,"StylesManager",(function(){return r.StylesManager})),n.d(t,"ListModel",(function(){return r.ListModel})),n.d(t,"MultiSelectListModel",(function(){return r.MultiSelectListModel})),n.d(t,"PopupModel",(function(){return r.PopupModel})),n.d(t,"createDialogOptions",(function(){return r.createDialogOptions})),n.d(t,"PopupBaseViewModel",(function(){return r.PopupBaseViewModel})),n.d(t,"PopupDropdownViewModel",(function(){return r.PopupDropdownViewModel})),n.d(t,"PopupModalViewModel",(function(){return r.PopupModalViewModel})),n.d(t,"createPopupViewModel",(function(){return r.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return r.createPopupModalViewModel})),n.d(t,"DropdownListModel",(function(){return r.DropdownListModel})),n.d(t,"DropdownMultiSelectListModel",(function(){return r.DropdownMultiSelectListModel})),n.d(t,"QuestionButtonGroupModel",(function(){return r.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return r.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return r.ButtonGroupItemValue})),n.d(t,"IsMobile",(function(){return r.IsMobile})),n.d(t,"IsTouch",(function(){return r.IsTouch})),n.d(t,"_setIsTouch",(function(){return r._setIsTouch})),n.d(t,"confirmAction",(function(){return r.confirmAction})),n.d(t,"detectIEOrEdge",(function(){return r.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return r.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return r.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return r.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return r.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return r.increaseHeightByContent})),n.d(t,"createSvg",(function(){return r.createSvg})),n.d(t,"sanitizeEditableContent",(function(){return r.sanitizeEditableContent})),n.d(t,"CssClassBuilder",(function(){return r.CssClassBuilder})),n.d(t,"surveyCss",(function(){return r.surveyCss})),n.d(t,"defaultV2Css",(function(){return r.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return r.defaultV2ThemeName})),n.d(t,"DragDropCore",(function(){return r.DragDropCore})),n.d(t,"DragDropChoices",(function(){return r.DragDropChoices}));var o=n("./src/defaultCss/cssstandard.ts");n.d(t,"defaultStandardCss",(function(){return o.defaultStandardCss}));var i=n("./src/defaultCss/cssmodern.ts");n.d(t,"modernCss",(function(){return i.modernCss}));var s=n("./src/svgbundle.ts");n.d(t,"SvgIconRegistry",(function(){return s.SvgIconRegistry})),n.d(t,"SvgRegistry",(function(){return s.SvgRegistry})),n.d(t,"SvgBundleViewModel",(function(){return s.SvgBundleViewModel}));var a=n("./src/rendererFactory.ts");n.d(t,"RendererFactory",(function(){return a.RendererFactory}));var l=n("./src/utils/responsivity-manager.ts");n.d(t,"ResponsivityManager",(function(){return l.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return l.VerticalResponsivityManager}));var u=n("./src/utils/utils.ts");n.d(t,"unwrap",(function(){return u.unwrap})),n.d(t,"getOriginalEvent",(function(){return u.getOriginalEvent})),n.d(t,"getElement",(function(){return u.getElement}));var c=n("./src/actions/action.ts");n.d(t,"createDropdownActionModel",(function(){return c.createDropdownActionModel})),n.d(t,"createDropdownActionModelAdvanced",(function(){return c.createDropdownActionModelAdvanced})),n.d(t,"BaseAction",(function(){return c.BaseAction})),n.d(t,"Action",(function(){return c.Action})),n.d(t,"ActionDropdownViewModel",(function(){return c.ActionDropdownViewModel}));var p=n("./src/actions/adaptive-container.ts");n.d(t,"AdaptiveActionContainer",(function(){return p.AdaptiveActionContainer}));var d=n("./src/actions/container.ts");n.d(t,"defaultActionBarCss",(function(){return d.defaultActionBarCss})),n.d(t,"ActionContainer",(function(){return d.ActionContainer}));var h=n("./src/utils/tooltip.ts");n.d(t,"TooltipManager",(function(){return h.TooltipManager}));var f=n("./src/utils/dragOrClickHelper.ts");n.d(t,"DragOrClickHelper",(function(){return f.DragOrClickHelper}))},"./src/entries/core.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/core-wo-model.ts");n.d(t,"Version",(function(){return r.Version})),n.d(t,"checkLibraryVersion",(function(){return r.checkLibraryVersion})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"Helpers",(function(){return r.Helpers})),n.d(t,"AnswerCountValidator",(function(){return r.AnswerCountValidator})),n.d(t,"EmailValidator",(function(){return r.EmailValidator})),n.d(t,"NumericValidator",(function(){return r.NumericValidator})),n.d(t,"RegexValidator",(function(){return r.RegexValidator})),n.d(t,"SurveyValidator",(function(){return r.SurveyValidator})),n.d(t,"TextValidator",(function(){return r.TextValidator})),n.d(t,"ValidatorResult",(function(){return r.ValidatorResult})),n.d(t,"ExpressionValidator",(function(){return r.ExpressionValidator})),n.d(t,"ValidatorRunner",(function(){return r.ValidatorRunner})),n.d(t,"ItemValue",(function(){return r.ItemValue})),n.d(t,"Base",(function(){return r.Base})),n.d(t,"Event",(function(){return r.Event})),n.d(t,"EventBase",(function(){return r.EventBase})),n.d(t,"ArrayChanges",(function(){return r.ArrayChanges})),n.d(t,"ComputedUpdater",(function(){return r.ComputedUpdater})),n.d(t,"SurveyError",(function(){return r.SurveyError})),n.d(t,"SurveyElementCore",(function(){return r.SurveyElementCore})),n.d(t,"SurveyElement",(function(){return r.SurveyElement})),n.d(t,"DragTypeOverMeEnum",(function(){return r.DragTypeOverMeEnum})),n.d(t,"CalculatedValue",(function(){return r.CalculatedValue})),n.d(t,"CustomError",(function(){return r.CustomError})),n.d(t,"AnswerRequiredError",(function(){return r.AnswerRequiredError})),n.d(t,"OneAnswerRequiredError",(function(){return r.OneAnswerRequiredError})),n.d(t,"RequreNumericError",(function(){return r.RequreNumericError})),n.d(t,"ExceedSizeError",(function(){return r.ExceedSizeError})),n.d(t,"LocalizableString",(function(){return r.LocalizableString})),n.d(t,"LocalizableStrings",(function(){return r.LocalizableStrings})),n.d(t,"HtmlConditionItem",(function(){return r.HtmlConditionItem})),n.d(t,"UrlConditionItem",(function(){return r.UrlConditionItem})),n.d(t,"ChoicesRestful",(function(){return r.ChoicesRestful})),n.d(t,"ChoicesRestfull",(function(){return r.ChoicesRestfull})),n.d(t,"FunctionFactory",(function(){return r.FunctionFactory})),n.d(t,"registerFunction",(function(){return r.registerFunction})),n.d(t,"ConditionRunner",(function(){return r.ConditionRunner})),n.d(t,"ExpressionRunner",(function(){return r.ExpressionRunner})),n.d(t,"ExpressionExecutor",(function(){return r.ExpressionExecutor})),n.d(t,"Operand",(function(){return r.Operand})),n.d(t,"Const",(function(){return r.Const})),n.d(t,"BinaryOperand",(function(){return r.BinaryOperand})),n.d(t,"Variable",(function(){return r.Variable})),n.d(t,"FunctionOperand",(function(){return r.FunctionOperand})),n.d(t,"ArrayOperand",(function(){return r.ArrayOperand})),n.d(t,"UnaryOperand",(function(){return r.UnaryOperand})),n.d(t,"ConditionsParser",(function(){return r.ConditionsParser})),n.d(t,"ProcessValue",(function(){return r.ProcessValue})),n.d(t,"JsonError",(function(){return r.JsonError})),n.d(t,"JsonIncorrectTypeError",(function(){return r.JsonIncorrectTypeError})),n.d(t,"JsonMetadata",(function(){return r.JsonMetadata})),n.d(t,"JsonMetadataClass",(function(){return r.JsonMetadataClass})),n.d(t,"JsonMissingTypeError",(function(){return r.JsonMissingTypeError})),n.d(t,"JsonMissingTypeErrorBase",(function(){return r.JsonMissingTypeErrorBase})),n.d(t,"JsonObject",(function(){return r.JsonObject})),n.d(t,"JsonObjectProperty",(function(){return r.JsonObjectProperty})),n.d(t,"JsonRequiredPropertyError",(function(){return r.JsonRequiredPropertyError})),n.d(t,"JsonUnknownPropertyError",(function(){return r.JsonUnknownPropertyError})),n.d(t,"Serializer",(function(){return r.Serializer})),n.d(t,"property",(function(){return r.property})),n.d(t,"propertyArray",(function(){return r.propertyArray})),n.d(t,"MatrixDropdownCell",(function(){return r.MatrixDropdownCell})),n.d(t,"MatrixDropdownRowModelBase",(function(){return r.MatrixDropdownRowModelBase})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return r.QuestionMatrixDropdownModelBase})),n.d(t,"MatrixDropdownColumn",(function(){return r.MatrixDropdownColumn})),n.d(t,"matrixDropdownColumnTypes",(function(){return r.matrixDropdownColumnTypes})),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return r.QuestionMatrixDropdownRenderedCell})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return r.QuestionMatrixDropdownRenderedRow})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return r.QuestionMatrixDropdownRenderedTable})),n.d(t,"MatrixDropdownRowModel",(function(){return r.MatrixDropdownRowModel})),n.d(t,"QuestionMatrixDropdownModel",(function(){return r.QuestionMatrixDropdownModel})),n.d(t,"MatrixDynamicRowModel",(function(){return r.MatrixDynamicRowModel})),n.d(t,"QuestionMatrixDynamicModel",(function(){return r.QuestionMatrixDynamicModel})),n.d(t,"MatrixRowModel",(function(){return r.MatrixRowModel})),n.d(t,"MatrixCells",(function(){return r.MatrixCells})),n.d(t,"QuestionMatrixModel",(function(){return r.QuestionMatrixModel})),n.d(t,"QuestionMatrixBaseModel",(function(){return r.QuestionMatrixBaseModel})),n.d(t,"MultipleTextItemModel",(function(){return r.MultipleTextItemModel})),n.d(t,"QuestionMultipleTextModel",(function(){return r.QuestionMultipleTextModel})),n.d(t,"MultipleTextEditorModel",(function(){return r.MultipleTextEditorModel})),n.d(t,"PanelModel",(function(){return r.PanelModel})),n.d(t,"PanelModelBase",(function(){return r.PanelModelBase})),n.d(t,"QuestionRowModel",(function(){return r.QuestionRowModel})),n.d(t,"FlowPanelModel",(function(){return r.FlowPanelModel})),n.d(t,"PageModel",(function(){return r.PageModel})),n.d(t,"DefaultTitleModel",(function(){return r.DefaultTitleModel})),n.d(t,"Question",(function(){return r.Question})),n.d(t,"QuestionNonValue",(function(){return r.QuestionNonValue})),n.d(t,"QuestionEmptyModel",(function(){return r.QuestionEmptyModel})),n.d(t,"QuestionCheckboxBase",(function(){return r.QuestionCheckboxBase})),n.d(t,"QuestionSelectBase",(function(){return r.QuestionSelectBase})),n.d(t,"QuestionCheckboxModel",(function(){return r.QuestionCheckboxModel})),n.d(t,"QuestionTagboxModel",(function(){return r.QuestionTagboxModel})),n.d(t,"QuestionRankingModel",(function(){return r.QuestionRankingModel})),n.d(t,"QuestionCommentModel",(function(){return r.QuestionCommentModel})),n.d(t,"QuestionDropdownModel",(function(){return r.QuestionDropdownModel})),n.d(t,"QuestionFactory",(function(){return r.QuestionFactory})),n.d(t,"ElementFactory",(function(){return r.ElementFactory})),n.d(t,"QuestionFileModel",(function(){return r.QuestionFileModel})),n.d(t,"QuestionHtmlModel",(function(){return r.QuestionHtmlModel})),n.d(t,"QuestionRadiogroupModel",(function(){return r.QuestionRadiogroupModel})),n.d(t,"QuestionRatingModel",(function(){return r.QuestionRatingModel})),n.d(t,"RenderedRatingItem",(function(){return r.RenderedRatingItem})),n.d(t,"QuestionExpressionModel",(function(){return r.QuestionExpressionModel})),n.d(t,"QuestionTextBase",(function(){return r.QuestionTextBase})),n.d(t,"CharacterCounter",(function(){return r.CharacterCounter})),n.d(t,"QuestionTextModel",(function(){return r.QuestionTextModel})),n.d(t,"QuestionBooleanModel",(function(){return r.QuestionBooleanModel})),n.d(t,"QuestionImagePickerModel",(function(){return r.QuestionImagePickerModel})),n.d(t,"ImageItemValue",(function(){return r.ImageItemValue})),n.d(t,"QuestionImageModel",(function(){return r.QuestionImageModel})),n.d(t,"QuestionSignaturePadModel",(function(){return r.QuestionSignaturePadModel})),n.d(t,"QuestionPanelDynamicModel",(function(){return r.QuestionPanelDynamicModel})),n.d(t,"QuestionPanelDynamicItem",(function(){return r.QuestionPanelDynamicItem})),n.d(t,"SurveyTimer",(function(){return r.SurveyTimer})),n.d(t,"SurveyTimerModel",(function(){return r.SurveyTimerModel})),n.d(t,"tryNavigateToPage",(function(){return r.tryNavigateToPage})),n.d(t,"createTOCListModel",(function(){return r.createTOCListModel})),n.d(t,"getTocRootCss",(function(){return r.getTocRootCss})),n.d(t,"SurveyProgressModel",(function(){return r.SurveyProgressModel})),n.d(t,"SurveyProgressButtonsModel",(function(){return r.SurveyProgressButtonsModel})),n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyTrigger",(function(){return r.SurveyTrigger})),n.d(t,"SurveyTriggerComplete",(function(){return r.SurveyTriggerComplete})),n.d(t,"SurveyTriggerSetValue",(function(){return r.SurveyTriggerSetValue})),n.d(t,"SurveyTriggerVisible",(function(){return r.SurveyTriggerVisible})),n.d(t,"SurveyTriggerCopyValue",(function(){return r.SurveyTriggerCopyValue})),n.d(t,"SurveyTriggerRunExpression",(function(){return r.SurveyTriggerRunExpression})),n.d(t,"Trigger",(function(){return r.Trigger})),n.d(t,"PopupSurveyModel",(function(){return r.PopupSurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"TextPreProcessor",(function(){return r.TextPreProcessor})),n.d(t,"Notifier",(function(){return r.Notifier})),n.d(t,"dxSurveyService",(function(){return r.dxSurveyService})),n.d(t,"englishStrings",(function(){return r.englishStrings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings})),n.d(t,"QuestionCustomWidget",(function(){return r.QuestionCustomWidget})),n.d(t,"CustomWidgetCollection",(function(){return r.CustomWidgetCollection})),n.d(t,"QuestionCustomModel",(function(){return r.QuestionCustomModel})),n.d(t,"QuestionCompositeModel",(function(){return r.QuestionCompositeModel})),n.d(t,"ComponentQuestionJSON",(function(){return r.ComponentQuestionJSON})),n.d(t,"ComponentCollection",(function(){return r.ComponentCollection})),n.d(t,"StylesManager",(function(){return r.StylesManager})),n.d(t,"ListModel",(function(){return r.ListModel})),n.d(t,"MultiSelectListModel",(function(){return r.MultiSelectListModel})),n.d(t,"PopupModel",(function(){return r.PopupModel})),n.d(t,"createDialogOptions",(function(){return r.createDialogOptions})),n.d(t,"PopupBaseViewModel",(function(){return r.PopupBaseViewModel})),n.d(t,"PopupDropdownViewModel",(function(){return r.PopupDropdownViewModel})),n.d(t,"PopupModalViewModel",(function(){return r.PopupModalViewModel})),n.d(t,"createPopupViewModel",(function(){return r.createPopupViewModel})),n.d(t,"createPopupModalViewModel",(function(){return r.createPopupModalViewModel})),n.d(t,"DropdownListModel",(function(){return r.DropdownListModel})),n.d(t,"DropdownMultiSelectListModel",(function(){return r.DropdownMultiSelectListModel})),n.d(t,"QuestionButtonGroupModel",(function(){return r.QuestionButtonGroupModel})),n.d(t,"ButtonGroupItemModel",(function(){return r.ButtonGroupItemModel})),n.d(t,"ButtonGroupItemValue",(function(){return r.ButtonGroupItemValue})),n.d(t,"IsMobile",(function(){return r.IsMobile})),n.d(t,"IsTouch",(function(){return r.IsTouch})),n.d(t,"_setIsTouch",(function(){return r._setIsTouch})),n.d(t,"confirmAction",(function(){return r.confirmAction})),n.d(t,"detectIEOrEdge",(function(){return r.detectIEOrEdge})),n.d(t,"doKey2ClickUp",(function(){return r.doKey2ClickUp})),n.d(t,"doKey2ClickDown",(function(){return r.doKey2ClickDown})),n.d(t,"doKey2ClickBlur",(function(){return r.doKey2ClickBlur})),n.d(t,"loadFileFromBase64",(function(){return r.loadFileFromBase64})),n.d(t,"increaseHeightByContent",(function(){return r.increaseHeightByContent})),n.d(t,"createSvg",(function(){return r.createSvg})),n.d(t,"sanitizeEditableContent",(function(){return r.sanitizeEditableContent})),n.d(t,"CssClassBuilder",(function(){return r.CssClassBuilder})),n.d(t,"surveyCss",(function(){return r.surveyCss})),n.d(t,"defaultV2Css",(function(){return r.defaultV2Css})),n.d(t,"defaultV2ThemeName",(function(){return r.defaultV2ThemeName})),n.d(t,"DragDropCore",(function(){return r.DragDropCore})),n.d(t,"DragDropChoices",(function(){return r.DragDropChoices})),n.d(t,"defaultStandardCss",(function(){return r.defaultStandardCss})),n.d(t,"modernCss",(function(){return r.modernCss})),n.d(t,"SvgIconRegistry",(function(){return r.SvgIconRegistry})),n.d(t,"SvgRegistry",(function(){return r.SvgRegistry})),n.d(t,"SvgBundleViewModel",(function(){return r.SvgBundleViewModel})),n.d(t,"RendererFactory",(function(){return r.RendererFactory})),n.d(t,"ResponsivityManager",(function(){return r.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return r.VerticalResponsivityManager})),n.d(t,"unwrap",(function(){return r.unwrap})),n.d(t,"getOriginalEvent",(function(){return r.getOriginalEvent})),n.d(t,"getElement",(function(){return r.getElement})),n.d(t,"createDropdownActionModel",(function(){return r.createDropdownActionModel})),n.d(t,"createDropdownActionModelAdvanced",(function(){return r.createDropdownActionModelAdvanced})),n.d(t,"BaseAction",(function(){return r.BaseAction})),n.d(t,"Action",(function(){return r.Action})),n.d(t,"ActionDropdownViewModel",(function(){return r.ActionDropdownViewModel})),n.d(t,"AdaptiveActionContainer",(function(){return r.AdaptiveActionContainer})),n.d(t,"defaultActionBarCss",(function(){return r.defaultActionBarCss})),n.d(t,"ActionContainer",(function(){return r.ActionContainer})),n.d(t,"TooltipManager",(function(){return r.TooltipManager})),n.d(t,"DragOrClickHelper",(function(){return r.DragOrClickHelper}));var o=n("./src/survey.ts");n.d(t,"Model",(function(){return o.SurveyModel}))},"./src/error.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"AnswerRequiredError",(function(){return a})),n.d(t,"OneAnswerRequiredError",(function(){return l})),n.d(t,"RequreNumericError",(function(){return u})),n.d(t,"ExceedSizeError",(function(){return c})),n.d(t,"WebRequestError",(function(){return p})),n.d(t,"WebRequestEmptyError",(function(){return d})),n.d(t,"OtherEmptyError",(function(){return h})),n.d(t,"UploadingFileError",(function(){return f})),n.d(t,"RequiredInAllRowsError",(function(){return g})),n.d(t,"MinRowCountError",(function(){return m})),n.d(t,"KeyDuplicationError",(function(){return y})),n.d(t,"CustomError",(function(){return v}));var r,o=n("./src/surveyStrings.ts"),i=n("./src/survey-error.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(i.SurveyError),l=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(i.SurveyError),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(i.SurveyError),c=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.maxSize=t,r.locText.text=r.getText(),r}return s(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){if(0===this.maxSize)return"0 Byte";var e=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,e)).toFixed([0,0,2,3,3][e])+" "+["Bytes","KB","MB","GB","TB"][e]},t}(i.SurveyError),p=function(e){function t(t,n,r){void 0===r&&(r=null);var o=e.call(this,null,r)||this;return o.status=t,o.response=n,o}return s(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(i.SurveyError),d=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(i.SurveyError),h=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(i.SurveyError),f=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(i.SurveyError),g=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(i.SurveyError),m=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.minRowCount=t,r}return s(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("minRowCountError").format(this.minRowCount)},t}(i.SurveyError),y=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(i.SurveyError),v=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return s(t,e),t.prototype.getErrorType=function(){return"custom"},t}(i.SurveyError)},"./src/expressionItems.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ExpressionItem",(function(){return l})),n.d(t,"HtmlConditionItem",(function(){return u})),n.d(t,"UrlConditionItem",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/conditions.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.expression=t,n}return a(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new s.ConditionRunner(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner},t}(i.Base),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("html",r),r.html=n,r}return a(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(l),c=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t)||this;return r.createLocalizableString("url",r),r.url=n,r}return a(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(l);o.Serializer.addClass("expressionitem",["expression:condition"],(function(){return new l}),"base"),o.Serializer.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new u}),"expressionitem"),o.Serializer.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],(function(){return new c}),"expressionitem")},"./src/expressions/expressionParser.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SyntaxError",(function(){return s})),n.d(t,"parse",(function(){return a}));var r,o=n("./src/expressions/expressions.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(n,r,o,i){var s=e.call(this)||this;return s.message=n,s.expected=r,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return i(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+((s=t)?'"'+r(s)+'"':"end of input")+" found.";var s},t}(Error),a=function(e,t){t=void 0!==t?t:{};var n,r,i,a,l={},u={Expression:jn},c=jn,p=function(e,t){return rr(e,t,!0)},d="||",h=En("||",!1),f="or",g=En("or",!0),m=function(){return"or"},y="&&",v=En("&&",!1),b="and",C=En("and",!0),w=function(){return"and"},x=function(e,t){return rr(e,t)},P="<=",_=En("<=",!1),S="lessorequal",V=En("lessorequal",!0),O=function(){return"lessorequal"},E=">=",T=En(">=",!1),I="greaterorequal",R=En("greaterorequal",!0),D=function(){return"greaterorequal"},j="==",k=En("==",!1),q="equal",M=En("equal",!0),L=function(){return"equal"},A="=",N=En("=",!1),B="!=",F=En("!=",!1),Q="notequal",z=En("notequal",!0),H=function(){return"notequal"},U="<",W=En("<",!1),J="less",G=En("less",!0),$=function(){return"less"},K=">",Z=En(">",!1),X="greater",Y=En("greater",!0),ee=function(){return"greater"},te="+",ne=En("+",!1),re=function(){return"plus"},oe="-",ie=En("-",!1),se=function(){return"minus"},ae="*",le=En("*",!1),ue=function(){return"mul"},ce="/",pe=En("/",!1),de=function(){return"div"},he="%",fe=En("%",!1),ge=function(){return"mod"},me="^",ye=En("^",!1),ve="power",be=En("power",!0),Ce=function(){return"power"},we="*=",xe=En("*=",!1),Pe="contains",_e=En("contains",!0),Se="contain",Ve=En("contain",!0),Oe=function(){return"contains"},Ee="notcontains",Te=En("notcontains",!0),Ie="notcontain",Re=En("notcontain",!0),De=function(){return"notcontains"},je="anyof",ke=En("anyof",!0),qe=function(){return"anyof"},Me="allof",Le=En("allof",!0),Ae=function(){return"allof"},Ne="(",Be=En("(",!1),Fe=")",Qe=En(")",!1),ze=function(e){return e},He=function(e,t){return new o.FunctionOperand(e,t)},Ue="!",We=En("!",!1),Je="negate",Ge=En("negate",!0),$e=function(e){return new o.UnaryOperand(e,"negate")},Ke=function(e,t){return new o.UnaryOperand(e,t)},Ze="empty",Xe=En("empty",!0),Ye=function(){return"empty"},et="notempty",tt=En("notempty",!0),nt=function(){return"notempty"},rt="undefined",ot=En("undefined",!1),it="null",st=En("null",!1),at=function(){return null},lt=function(e){return new o.Const(e)},ut="{",ct=En("{",!1),pt="}",dt=En("}",!1),ht=function(e){return new o.Variable(e)},ft=function(e){return e},gt="''",mt=En("''",!1),yt=function(){return""},vt='""',bt=En('""',!1),Ct="'",wt=En("'",!1),xt=function(e){return"'"+e+"'"},Pt='"',_t=En('"',!1),St="[",Vt=En("[",!1),Ot="]",Et=En("]",!1),Tt=function(e){return e},It=",",Rt=En(",",!1),Dt=function(e,t){if(null==e)return new o.ArrayOperand([]);var n=[e];if(Array.isArray(t))for(var r=function(e){return[].concat.apply([],e)}(t),i=3;i<r.length;i+=4)n.push(r[i]);return new o.ArrayOperand(n)},jt="true",kt=En("true",!0),qt=function(){return!0},Mt="false",Lt=En("false",!0),At=function(){return!1},Nt="0x",Bt=En("0x",!1),Ft=function(){return parseInt(On(),16)},Qt=/^[\-]/,zt=Tn(["-"],!1,!1),Ht=function(e,t){return null==e?t:-t},Ut=".",Wt=En(".",!1),Jt=function(){return parseFloat(On())},Gt=function(){return parseInt(On(),10)},$t="0",Kt=En("0",!1),Zt=function(){return 0},Xt=function(e){return e.join("")},Yt="\\'",en=En("\\'",!1),tn=function(){return"'"},nn='\\"',rn=En('\\"',!1),on=function(){return'"'},sn=/^[^"']/,an=Tn(['"',"'"],!0,!1),ln=function(){return On()},un=/^[^{}]/,cn=Tn(["{","}"],!0,!1),pn=/^[0-9]/,dn=Tn([["0","9"]],!1,!1),hn=/^[1-9]/,fn=Tn([["1","9"]],!1,!1),gn=/^[a-zA-Z_]/,mn=Tn([["a","z"],["A","Z"],"_"],!1,!1),yn={type:"other",description:"whitespace"},vn=/^[ \t\n\r]/,bn=Tn([" ","\t","\n","\r"],!1,!1),Cn=0,wn=0,xn=[{line:1,column:1}],Pn=0,_n=[],Sn=0,Vn={};if(void 0!==t.startRule){if(!(t.startRule in u))throw new Error("Can't start parsing from rule \""+t.startRule+'".');c=u[t.startRule]}function On(){return e.substring(wn,Cn)}function En(e,t){return{type:"literal",text:e,ignoreCase:t}}function Tn(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function In(t){var n,r=xn[t];if(r)return r;for(n=t-1;!xn[n];)n--;for(r={line:(r=xn[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return xn[t]=r,r}function Rn(e,t){var n=In(e),r=In(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function Dn(e){Cn<Pn||(Cn>Pn&&(Pn=Cn,_n=[]),_n.push(e))}function jn(){var e,t,n,r,o,i,s,a,u=34*Cn+0,c=Vn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,nr()!==l)if((t=qn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=kn())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=kn())!==l&&(s=nr())!==l&&(a=qn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l&&(r=nr())!==l?(wn=e,e=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;else Cn=e,e=l;return Vn[u]={nextPos:Cn,result:e},e}function kn(){var t,n,r=34*Cn+1,o=Vn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===d?(n=d,Cn+=2):(n=l,0===Sn&&Dn(h)),n===l&&(e.substr(Cn,2).toLowerCase()===f?(n=e.substr(Cn,2),Cn+=2):(n=l,0===Sn&&Dn(g))),n!==l&&(wn=t,n=m()),t=n,Vn[r]={nextPos:Cn,result:t},t)}function qn(){var e,t,n,r,o,i,s,a,u=34*Cn+2,c=Vn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Ln())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Mn())!==l&&(s=nr())!==l&&(a=Ln())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Mn())!==l&&(s=nr())!==l&&(a=Ln())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return Vn[u]={nextPos:Cn,result:e},e}function Mn(){var t,n,r=34*Cn+3,o=Vn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===y?(n=y,Cn+=2):(n=l,0===Sn&&Dn(v)),n===l&&(e.substr(Cn,3).toLowerCase()===b?(n=e.substr(Cn,3),Cn+=3):(n=l,0===Sn&&Dn(C))),n!==l&&(wn=t,n=w()),t=n,Vn[r]={nextPos:Cn,result:t},t)}function Ln(){var e,t,n,r,o,i,s,a,u=34*Cn+4,c=Vn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Nn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=An())!==l&&(s=nr())!==l&&(a=Nn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=An())!==l&&(s=nr())!==l&&(a=Nn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return Vn[u]={nextPos:Cn,result:e},e}function An(){var t,n,r=34*Cn+5,o=Vn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===P?(n=P,Cn+=2):(n=l,0===Sn&&Dn(_)),n===l&&(e.substr(Cn,11).toLowerCase()===S?(n=e.substr(Cn,11),Cn+=11):(n=l,0===Sn&&Dn(V))),n!==l&&(wn=t,n=O()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===E?(n=E,Cn+=2):(n=l,0===Sn&&Dn(T)),n===l&&(e.substr(Cn,14).toLowerCase()===I?(n=e.substr(Cn,14),Cn+=14):(n=l,0===Sn&&Dn(R))),n!==l&&(wn=t,n=D()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===j?(n=j,Cn+=2):(n=l,0===Sn&&Dn(k)),n===l&&(e.substr(Cn,5).toLowerCase()===q?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&Dn(M))),n!==l&&(wn=t,n=L()),(t=n)===l&&(t=Cn,61===e.charCodeAt(Cn)?(n=A,Cn++):(n=l,0===Sn&&Dn(N)),n===l&&(e.substr(Cn,5).toLowerCase()===q?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&Dn(M))),n!==l&&(wn=t,n=L()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===B?(n=B,Cn+=2):(n=l,0===Sn&&Dn(F)),n===l&&(e.substr(Cn,8).toLowerCase()===Q?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&Dn(z))),n!==l&&(wn=t,n=H()),(t=n)===l&&(t=Cn,60===e.charCodeAt(Cn)?(n=U,Cn++):(n=l,0===Sn&&Dn(W)),n===l&&(e.substr(Cn,4).toLowerCase()===J?(n=e.substr(Cn,4),Cn+=4):(n=l,0===Sn&&Dn(G))),n!==l&&(wn=t,n=$()),(t=n)===l&&(t=Cn,62===e.charCodeAt(Cn)?(n=K,Cn++):(n=l,0===Sn&&Dn(Z)),n===l&&(e.substr(Cn,7).toLowerCase()===X?(n=e.substr(Cn,7),Cn+=7):(n=l,0===Sn&&Dn(Y))),n!==l&&(wn=t,n=ee()),t=n)))))),Vn[r]={nextPos:Cn,result:t},t)}function Nn(){var e,t,n,r,o,i,s,a,u=34*Cn+6,c=Vn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Fn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Bn())!==l&&(s=nr())!==l&&(a=Fn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Bn())!==l&&(s=nr())!==l&&(a=Fn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return Vn[u]={nextPos:Cn,result:e},e}function Bn(){var t,n,r=34*Cn+7,o=Vn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,43===e.charCodeAt(Cn)?(n=te,Cn++):(n=l,0===Sn&&Dn(ne)),n!==l&&(wn=t,n=re()),(t=n)===l&&(t=Cn,45===e.charCodeAt(Cn)?(n=oe,Cn++):(n=l,0===Sn&&Dn(ie)),n!==l&&(wn=t,n=se()),t=n),Vn[r]={nextPos:Cn,result:t},t)}function Fn(){var e,t,n,r,o,i,s,a,u=34*Cn+8,c=Vn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=zn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=zn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Qn())!==l&&(s=nr())!==l&&(a=zn())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return Vn[u]={nextPos:Cn,result:e},e}function Qn(){var t,n,r=34*Cn+9,o=Vn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,42===e.charCodeAt(Cn)?(n=ae,Cn++):(n=l,0===Sn&&Dn(le)),n!==l&&(wn=t,n=ue()),(t=n)===l&&(t=Cn,47===e.charCodeAt(Cn)?(n=ce,Cn++):(n=l,0===Sn&&Dn(pe)),n!==l&&(wn=t,n=de()),(t=n)===l&&(t=Cn,37===e.charCodeAt(Cn)?(n=he,Cn++):(n=l,0===Sn&&Dn(fe)),n!==l&&(wn=t,n=ge()),t=n)),Vn[r]={nextPos:Cn,result:t},t)}function zn(){var e,t,n,r,o,i,s,a,u=34*Cn+10,c=Vn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Un())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Hn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Hn())!==l&&(s=nr())!==l&&(a=Un())!==l?r=o=[o,i,s,a]:(Cn=r,r=l);n!==l?(wn=e,e=t=p(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return Vn[u]={nextPos:Cn,result:e},e}function Hn(){var t,n,r=34*Cn+11,o=Vn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,94===e.charCodeAt(Cn)?(n=me,Cn++):(n=l,0===Sn&&Dn(ye)),n===l&&(e.substr(Cn,5).toLowerCase()===ve?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&Dn(be))),n!==l&&(wn=t,n=Ce()),t=n,Vn[r]={nextPos:Cn,result:t},t)}function Un(){var e,t,n,r,o,i,s,a,u=34*Cn+12,c=Vn[u];if(c)return Cn=c.nextPos,c.result;if(e=Cn,(t=Jn())!==l){for(n=[],r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=Jn())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);r!==l;)n.push(r),r=Cn,(o=nr())!==l&&(i=Wn())!==l&&(s=nr())!==l?((a=Jn())===l&&(a=null),a!==l?r=o=[o,i,s,a]:(Cn=r,r=l)):(Cn=r,r=l);n!==l?(wn=e,e=t=x(t,n)):(Cn=e,e=l)}else Cn=e,e=l;return Vn[u]={nextPos:Cn,result:e},e}function Wn(){var t,n,r=34*Cn+13,o=Vn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===we?(n=we,Cn+=2):(n=l,0===Sn&&Dn(xe)),n===l&&(e.substr(Cn,8).toLowerCase()===Pe?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&Dn(_e)),n===l&&(e.substr(Cn,7).toLowerCase()===Se?(n=e.substr(Cn,7),Cn+=7):(n=l,0===Sn&&Dn(Ve)))),n!==l&&(wn=t,n=Oe()),(t=n)===l&&(t=Cn,e.substr(Cn,11).toLowerCase()===Ee?(n=e.substr(Cn,11),Cn+=11):(n=l,0===Sn&&Dn(Te)),n===l&&(e.substr(Cn,10).toLowerCase()===Ie?(n=e.substr(Cn,10),Cn+=10):(n=l,0===Sn&&Dn(Re))),n!==l&&(wn=t,n=De()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===je?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&Dn(ke)),n!==l&&(wn=t,n=qe()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Me?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&Dn(Le)),n!==l&&(wn=t,n=Ae()),t=n))),Vn[r]={nextPos:Cn,result:t},t)}function Jn(){var t,n,r,o,i=34*Cn+14,s=Vn[i];return s?(Cn=s.nextPos,s.result):(t=Cn,40===e.charCodeAt(Cn)?(n=Ne,Cn++):(n=l,0===Sn&&Dn(Be)),n!==l&&nr()!==l&&(r=jn())!==l&&nr()!==l?(41===e.charCodeAt(Cn)?(o=Fe,Cn++):(o=l,0===Sn&&Dn(Qe)),o===l&&(o=null),o!==l?(wn=t,t=n=ze(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=function(){var t,n,r,o,i,s=34*Cn+15,a=Vn[s];return a?(Cn=a.nextPos,a.result):(t=Cn,(n=Yn())!==l?(40===e.charCodeAt(Cn)?(r=Ne,Cn++):(r=l,0===Sn&&Dn(Be)),r!==l&&(o=$n())!==l?(41===e.charCodeAt(Cn)?(i=Fe,Cn++):(i=l,0===Sn&&Dn(Qe)),i===l&&(i=null),i!==l?(wn=t,t=n=He(n,o)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l),Vn[s]={nextPos:Cn,result:t},t)}(),t===l&&(t=function(){var t,n,r,o=34*Cn+16,i=Vn[o];return i?(Cn=i.nextPos,i.result):(t=Cn,33===e.charCodeAt(Cn)?(n=Ue,Cn++):(n=l,0===Sn&&Dn(We)),n===l&&(e.substr(Cn,6).toLowerCase()===Je?(n=e.substr(Cn,6),Cn+=6):(n=l,0===Sn&&Dn(Ge))),n!==l&&nr()!==l&&(r=jn())!==l?(wn=t,t=n=$e(r)):(Cn=t,t=l),t===l&&(t=Cn,(n=Gn())!==l&&nr()!==l?(r=function(){var t,n,r=34*Cn+17,o=Vn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,5).toLowerCase()===Ze?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&Dn(Xe)),n!==l&&(wn=t,n=Ye()),(t=n)===l&&(t=Cn,e.substr(Cn,8).toLowerCase()===et?(n=e.substr(Cn,8),Cn+=8):(n=l,0===Sn&&Dn(tt)),n!==l&&(wn=t,n=nt()),t=n),Vn[r]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Ke(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),Vn[o]={nextPos:Cn,result:t},t)}(),t===l&&(t=Gn())===l&&(t=function(){var t,n,r,o,i=34*Cn+20,s=Vn[i];return s?(Cn=s.nextPos,s.result):(t=Cn,91===e.charCodeAt(Cn)?(n=St,Cn++):(n=l,0===Sn&&Dn(Vt)),n!==l&&(r=$n())!==l?(93===e.charCodeAt(Cn)?(o=Ot,Cn++):(o=l,0===Sn&&Dn(Et)),o!==l?(wn=t,t=n=Tt(r)):(Cn=t,t=l)):(Cn=t,t=l),Vn[i]={nextPos:Cn,result:t},t)}()))),Vn[i]={nextPos:Cn,result:t},t)}function Gn(){var t,n,r,o,i=34*Cn+18,s=Vn[i];return s?(Cn=s.nextPos,s.result):(t=Cn,nr()!==l?(e.substr(Cn,9)===rt?(n=rt,Cn+=9):(n=l,0===Sn&&Dn(ot)),n===l&&(e.substr(Cn,4)===it?(n=it,Cn+=4):(n=l,0===Sn&&Dn(st))),n!==l?(wn=t,t=at()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(n=function(){var t,n,r,o,i=34*Cn+19,s=Vn[i];return s?(Cn=s.nextPos,s.result):(t=Cn,n=function(){var t,n,r=34*Cn+22,o=Vn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,4).toLowerCase()===jt?(n=e.substr(Cn,4),Cn+=4):(n=l,0===Sn&&Dn(kt)),n!==l&&(wn=t,n=qt()),(t=n)===l&&(t=Cn,e.substr(Cn,5).toLowerCase()===Mt?(n=e.substr(Cn,5),Cn+=5):(n=l,0===Sn&&Dn(Lt)),n!==l&&(wn=t,n=At()),t=n),Vn[r]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,n=function(){var t,n,r,o=34*Cn+23,i=Vn[o];return i?(Cn=i.nextPos,i.result):(t=Cn,e.substr(Cn,2)===Nt?(n=Nt,Cn+=2):(n=l,0===Sn&&Dn(Bt)),n!==l&&(r=er())!==l?(wn=t,t=n=Ft()):(Cn=t,t=l),t===l&&(t=Cn,Qt.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&Dn(zt)),n===l&&(n=null),n!==l?(r=function(){var t,n,r,o=34*Cn+24,i=Vn[o];return i?(Cn=i.nextPos,i.result):(t=Cn,(n=er())!==l?(46===e.charCodeAt(Cn)?(r=Ut,Cn++):(r=l,0===Sn&&Dn(Wt)),r!==l&&er()!==l?(wn=t,t=n=Jt()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,n=function(){var t,n,r=34*Cn+31,o=Vn[r];if(o)return Cn=o.nextPos,o.result;if(t=[],hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&Dn(fn)),n!==l)for(;n!==l;)t.push(n),hn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&Dn(fn));else t=l;return Vn[r]={nextPos:Cn,result:t},t}(),n!==l?((r=er())===l&&(r=null),r!==l?(wn=t,t=n=Gt()):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,48===e.charCodeAt(Cn)?(n=$t,Cn++):(n=l,0===Sn&&Dn(Kt)),n!==l&&(wn=t,n=Zt()),t=n)),Vn[o]={nextPos:Cn,result:t},t)}(),r!==l?(wn=t,t=n=Ht(n,r)):(Cn=t,t=l)):(Cn=t,t=l)),Vn[o]={nextPos:Cn,result:t},t)}(),n!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,(n=Yn())!==l&&(wn=t,n=ft(n)),(t=n)===l&&(t=Cn,e.substr(Cn,2)===gt?(n=gt,Cn+=2):(n=l,0===Sn&&Dn(mt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===vt?(n=vt,Cn+=2):(n=l,0===Sn&&Dn(bt)),n!==l&&(wn=t,n=yt()),(t=n)===l&&(t=Cn,39===e.charCodeAt(Cn)?(n=Ct,Cn++):(n=l,0===Sn&&Dn(wt)),n!==l&&(r=Kn())!==l?(39===e.charCodeAt(Cn)?(o=Ct,Cn++):(o=l,0===Sn&&Dn(wt)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,34===e.charCodeAt(Cn)?(n=Pt,Cn++):(n=l,0===Sn&&Dn(_t)),n!==l&&(r=Kn())!==l?(34===e.charCodeAt(Cn)?(o=Pt,Cn++):(o=l,0===Sn&&Dn(_t)),o!==l?(wn=t,t=n=xt(r)):(Cn=t,t=l)):(Cn=t,t=l))))))),Vn[i]={nextPos:Cn,result:t},t)}(),n!==l?(wn=t,t=lt(n)):(Cn=t,t=l)):(Cn=t,t=l),t===l&&(t=Cn,nr()!==l?(123===e.charCodeAt(Cn)?(n=ut,Cn++):(n=l,0===Sn&&Dn(ct)),n!==l?(r=function(){var e,t,n,r=34*Cn+25,o=Vn[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Xn())!==l)for(;n!==l;)t.push(n),n=Xn();else t=l;return t!==l&&(wn=e,t=Xt(t)),e=t,Vn[r]={nextPos:Cn,result:e},e}(),r!==l?(125===e.charCodeAt(Cn)?(o=pt,Cn++):(o=l,0===Sn&&Dn(dt)),o!==l?(wn=t,t=ht(r)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l)):(Cn=t,t=l))),Vn[i]={nextPos:Cn,result:t},t)}function $n(){var t,n,r,o,i,s,a,u,c=34*Cn+21,p=Vn[c];if(p)return Cn=p.nextPos,p.result;if(t=Cn,(n=jn())===l&&(n=null),n!==l){for(r=[],o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=It,Cn++):(s=l,0===Sn&&Dn(Rt)),s!==l&&(a=nr())!==l&&(u=jn())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);o!==l;)r.push(o),o=Cn,(i=nr())!==l?(44===e.charCodeAt(Cn)?(s=It,Cn++):(s=l,0===Sn&&Dn(Rt)),s!==l&&(a=nr())!==l&&(u=jn())!==l?o=i=[i,s,a,u]:(Cn=o,o=l)):(Cn=o,o=l);r!==l?(wn=t,t=n=Dt(n,r)):(Cn=t,t=l)}else Cn=t,t=l;return Vn[c]={nextPos:Cn,result:t},t}function Kn(){var e,t,n,r=34*Cn+26,o=Vn[r];if(o)return Cn=o.nextPos,o.result;if(e=Cn,t=[],(n=Zn())!==l)for(;n!==l;)t.push(n),n=Zn();else t=l;return t!==l&&(wn=e,t=Xt(t)),e=t,Vn[r]={nextPos:Cn,result:e},e}function Zn(){var t,n,r=34*Cn+27,o=Vn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,e.substr(Cn,2)===Yt?(n=Yt,Cn+=2):(n=l,0===Sn&&Dn(en)),n!==l&&(wn=t,n=tn()),(t=n)===l&&(t=Cn,e.substr(Cn,2)===nn?(n=nn,Cn+=2):(n=l,0===Sn&&Dn(rn)),n!==l&&(wn=t,n=on()),(t=n)===l&&(t=Cn,sn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&Dn(an)),n!==l&&(wn=t,n=ln()),t=n)),Vn[r]={nextPos:Cn,result:t},t)}function Xn(){var t,n,r=34*Cn+28,o=Vn[r];return o?(Cn=o.nextPos,o.result):(t=Cn,un.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&Dn(cn)),n!==l&&(wn=t,n=ln()),t=n,Vn[r]={nextPos:Cn,result:t},t)}function Yn(){var e,t,n,r,o,i,s=34*Cn+29,a=Vn[s];if(a)return Cn=a.nextPos,a.result;if(e=Cn,tr()!==l){if(t=[],n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;for(;n!==l;)if(t.push(n),n=Cn,(r=er())!==l){for(o=[],i=tr();i!==l;)o.push(i),i=tr();o!==l?n=r=[r,o]:(Cn=n,n=l)}else Cn=n,n=l;t!==l?(wn=e,e=ln()):(Cn=e,e=l)}else Cn=e,e=l;return Vn[s]={nextPos:Cn,result:e},e}function er(){var t,n,r=34*Cn+30,o=Vn[r];if(o)return Cn=o.nextPos,o.result;if(t=[],pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&Dn(dn)),n!==l)for(;n!==l;)t.push(n),pn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&Dn(dn));else t=l;return Vn[r]={nextPos:Cn,result:t},t}function tr(){var t,n,r=34*Cn+32,o=Vn[r];if(o)return Cn=o.nextPos,o.result;if(t=[],gn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&Dn(mn)),n!==l)for(;n!==l;)t.push(n),gn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&Dn(mn));else t=l;return Vn[r]={nextPos:Cn,result:t},t}function nr(){var t,n,r=34*Cn+33,o=Vn[r];if(o)return Cn=o.nextPos,o.result;for(Sn++,t=[],vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&Dn(bn));n!==l;)t.push(n),vn.test(e.charAt(Cn))?(n=e.charAt(Cn),Cn++):(n=l,0===Sn&&Dn(bn));return Sn--,t===l&&(n=l,0===Sn&&Dn(yn)),Vn[r]={nextPos:Cn,result:t},t}function rr(e,t,n){return void 0===n&&(n=!1),t.reduce((function(e,t){return new o.BinaryOperand(t[1],e,t[3],n)}),e)}if((n=c())!==l&&Cn===e.length)return n;throw n!==l&&Cn<e.length&&Dn({type:"end"}),r=_n,i=Pn<e.length?e.charAt(Pn):null,a=Pn<e.length?Rn(Pn,Pn+1):Rn(Pn,Pn),new s(s.buildMessage(r,i),r,i,a)}},"./src/expressions/expressions.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Operand",(function(){return u})),n.d(t,"BinaryOperand",(function(){return c})),n.d(t,"UnaryOperand",(function(){return p})),n.d(t,"ArrayOperand",(function(){return d})),n.d(t,"Const",(function(){return h})),n.d(t,"Variable",(function(){return f})),n.d(t,"FunctionOperand",(function(){return g})),n.d(t,"OperandMaker",(function(){return m}));var r,o=n("./src/helpers.ts"),i=n("./src/functionsfactory.ts"),s=n("./src/conditionProcessValue.ts"),a=n("./src/settings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e}(),c=function(e){function t(t,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null),void 0===o&&(o=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=n,i.right=r,i.isArithmeticValue=o,i.consumer=o?m.binaryFunctions.arithmeticOp(t):m.binaryFunctions[t],null==i.consumer&&m.throwInvalidOperatorError(t),i}return l(t,e),t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var t=e;return t.operator===this.operator&&this.areOperatorsEquals(this.left,t.left)&&this.areOperatorsEquals(this.right,t.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e))},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+m.safeToString(this.left,e)+" "+m.operatorToString(this.operatorName)+" "+m.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(u),p=function(e){function t(t,n){var r=e.call(this)||this;return r.expressionValue=t,r.operatorName=n,r.consumer=m.unaryFunctions[n],null==r.consumer&&m.throwInvalidOperatorError(n),r}return l(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return m.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var t=e;return t.operator==this.operator&&this.areOperatorsEquals(this.expression,t.expression)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(u),d=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return l(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map((function(t){return t.toString(e)})).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map((function(t){return t.evaluate(e)}))},t.prototype.setVariables=function(e){this.values.forEach((function(t){t.setVariables(e)}))},t.prototype.hasFunction=function(){return this.values.some((function(e){return e.hasFunction()}))},t.prototype.hasAsyncFunction=function(){return this.values.some((function(e){return e.hasAsyncFunction()}))},t.prototype.addToAsyncList=function(e){this.values.forEach((function(t){return t.addToAsyncList(e)}))},t.prototype.isContentEqual=function(e){var t=e;if(t.values.length!==this.values.length)return!1;for(var n=0;n<this.values.length;n++)if(!t.values[n].isEqual(this.values[n]))return!1;return!0},t}(u),h=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return l(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1])?e.substring(1,e.length-1):m.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):e.length>1&&"0"==e[0]?e:parseFloat(e):e:e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(u),f=function(e){function t(n){var r=e.call(this,n)||this;return r.variableName=n,r.valueInfo={},r.useValueAsItIs=!1,r.variableName&&r.variableName.length>1&&r.variableName[0]===t.DisableConversionChar&&(r.variableName=r.variableName.substring(1),r.useValueAsItIs=!0),r}return l(t,e),Object.defineProperty(t,"DisableConversionChar",{get:function(){return a.settings.expressionDisableConversionChar},set:function(e){a.settings.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var n=e(this);if(n)return n}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t}(h),g=function(e){function t(t,n){var r=e.call(this)||this;return r.originalValue=t,r.parameters=n,r.isReadyValue=!1,Array.isArray(n)&&0===n.length&&(r.parameters=new d([])),r}return l(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var n=new s.ProcessValue;n.values=o.Helpers.createCopy(e.values),n.properties=o.Helpers.createCopy(e.properties),n.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(n)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return i.FunctionFactory.Instance.run(this.originalValue,this.parameters.evaluate(e),e.properties)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return i.FunctionFactory.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t.prototype.isContentEqual=function(e){var t=e;return t.originalValue==this.originalValue&&this.areOperatorsEquals(t.parameters,this.parameters)},t}(u),m=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return(!t||!(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1))&&!e.isSpaceString(t)&&o.Helpers.isNumber(t)},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(o.Helpers.isNumber(e)&&Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.isTwoValueEquals=function(e,t){return"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),o.Helpers.isTwoValueEquals(e,t,!0)},e.operatorToString=function(t){var n=e.signs[t];return null==n?t:n},e.unaryFunctions={empty:function(e){return o.Helpers.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){var n=function(e,t){return o.Helpers.isValueEmpty(e)?"number"==typeof t?0:"string"==typeof e?e:"string"==typeof t?"":Array.isArray(t)?[]:0:e};return function(r,o){r=n(r,o),o=n(o,r);var i=e.binaryFunctions[t];return null==i?null:i.call(this,r,o)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return o.Helpers.sumAnyValues(e,t)},minus:function(e,t){return o.Helpers.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return o.Helpers.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(e,t){return null!=e&&null!=t&&e>t},less:function(e,t){return null!=e&&null!=t&&e<t},greaterorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.greater(t,n)},lessorequal:function(t,n){return!!e.binaryFunctions.equal(t,n)||e.binaryFunctions.less(t,n)},equal:function(t,n){return e.isTwoValueEquals(t,n)},notequal:function(t,n){return!e.binaryFunctions.equal(t,n)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!o.Helpers.isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(o.Helpers.isValueEmpty(t)&&o.Helpers.isValueEmpty(n))return!0;if(o.Helpers.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(o.Helpers.isValueEmpty(n))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(n,t);if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(e.binaryFunctions.contains(t,n[r]))return!0;return!1},allof:function(t,n){if(!t&&!o.Helpers.isValueEmpty(n))return!1;if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(!e.binaryFunctions.contains(t,n[r]))return!1;return!0},containsCore:function(t,n,r){if(!t&&0!==t&&!1!==t)return!1;if(t.length||(t=t.toString(),("string"==typeof n||n instanceof String)&&(t=t.toUpperCase(),n=n.toUpperCase())),"string"==typeof t||t instanceof String){if(!n)return!1;n=n.toString();var o=t.indexOf(n)>-1;return r?o:!o}for(var i=Array.isArray(n)?n:[n],s=0;s<i.length;s++){var a=0;for(n=i[s];a<t.length&&!e.isTwoValueEquals(t[a],n);a++);if(a==t.length)return!r}return r}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},"./src/flowpanel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FlowPanelModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/panel.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.createLocalizableString("content",n,!0),n.registerPropertyChangedHandlers(["content"],(function(){n.onContentChanged()})),n}return s(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e;e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,n=this.content,r=0,o=null;null!==(o=t.exec(n));){o.index>r&&(e.push(n.substring(r,o.index)),r=o.index);var i=this.getQuestionFromText(o[0]);i?e.push(this.getHtmlForQuestion(i)):e.push(n.substring(r,o.index+o[0].length)),r=o.index+o[0].length}return r<n.length&&e.push(n.substring(r,n.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=(e=e.substring(1,e.length-1)).replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,n){e.prototype.onAddElement.call(this,t,n),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var n=this.getElementContentText(t);this.content=this.content.replace(n,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,n){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||"undefined"==typeof document||!window.getSelection)return!1;var n=window.getSelection();if(n.getRangeAt&&n.rangeCount){var r=n.getRangeAt(0);if(r.deleteContents(),r.insertNode(document.createTextNode(e)),this.getContent){var o=this.getContent(t);this.content=o}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(i.PanelModel);o.Serializer.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],(function(){return new a}),"panel")},"./src/functionsfactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FunctionFactory",(function(){return i})),n.d(t,"registerFunction",(function(){return s}));var r=n("./src/helpers.ts"),o=n("./src/settings.ts"),i=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,n){void 0===n&&(n=!1),this.functionHash[e]=t,n&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,n){void 0===n&&(n=null);var r=this.functionHash[e];if(!r)return null;var o={func:r};if(n)for(var i in n)o[i]=n[i];return o.func(t)},e.Instance=new e,e}(),s=i.Instance.register;function a(e,t){if(null!=e)if(Array.isArray(e))for(var n=0;n<e.length;n++)a(e[n],t);else r.Helpers.isNumber(e)&&(e=r.Helpers.getNumber(e)),t.push(e)}function l(e){var t=[];a(e,t);for(var n=0,o=0;o<t.length;o++)n=r.Helpers.correctAfterPlusMinis(n,t[o],n+t[o]);return n}function u(e,t){var n=[];a(e,n);for(var r=void 0,o=0;o<n.length;o++)void 0===r&&(r=n[o]),t?r>n[o]&&(r=n[o]):r<n[o]&&(r=n[o]);return r}function c(e,t,n,o,i){return!e||r.Helpers.isValueEmpty(e[t])?n:o(n,i?"string"==typeof(s=e[t])?r.Helpers.isNumber(s)?r.Helpers.getNumber(s):void 0:s:1);var s}function p(e,t,n){void 0===n&&(n=!0);var r=function(e){if(2!=e.length)return null;var t=e[0];if(!t)return null;if(!Array.isArray(t)&&!Array.isArray(Object.keys(t)))return null;var n=e[1];return"string"==typeof n||n instanceof String?{data:t,name:n}:null}(e);if(r){var o=void 0;if(Array.isArray(r.data))for(var i=0;i<r.data.length;i++)o=c(r.data[i],r.name,o,t,n);else for(var s in r.data)o=c(r.data[s],r.name,o,t,n);return o}}function d(e){var t=p(e,(function(e,t){return null==e&&(e=0),null==t||null==t?e:r.Helpers.correctAfterPlusMinis(e,t,e+t)}));return void 0!==t?t:0}function h(e){var t=p(e,(function(e,t){return null==e&&(e=0),null==t||null==t?e:e+1}),!1);return void 0!==t?t:0}function f(e){if(!e)return!1;for(var t=e.questions,n=0;n<t.length;n++)if(!t[n].validate(!1))return!1;return!0}i.Instance.register("sum",l),i.Instance.register("min",(function(e){return u(e,!0)})),i.Instance.register("max",(function(e){return u(e,!1)})),i.Instance.register("count",(function(e){var t=[];return a(e,t),t.length})),i.Instance.register("avg",(function(e){var t=[];a(e,t);var n=l(e);return t.length>0?n/t.length:0})),i.Instance.register("sumInArray",d),i.Instance.register("minInArray",(function(e){return p(e,(function(e,t){return null==e?t:null==t||null==t||e<t?e:t}))})),i.Instance.register("maxInArray",(function(e){return p(e,(function(e,t){return null==e?t:null==t||null==t||e>t?e:t}))})),i.Instance.register("countInArray",h),i.Instance.register("avgInArray",(function(e){var t=h(e);return 0==t?0:d(e)/t})),i.Instance.register("iif",(function(e){return e||3===e.length?e[0]?e[1]:e[2]:""})),i.Instance.register("getDate",(function(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null})),i.Instance.register("age",(function(e){if(!e&&e.length<1)return null;if(!e[0])return null;var t=new Date(e[0]),n=new Date,r=n.getFullYear()-t.getFullYear(),o=n.getMonth()-t.getMonth();return(o<0||0===o&&n.getDate()<t.getDate())&&(r-=r>0?1:0),r})),i.Instance.register("isContainerReady",(function(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],n=this.survey.getPageByName(t);if(n||(n=this.survey.getPanelByName(t)),!n){var r=this.survey.getQuestionByName(t);if(!r||!Array.isArray(r.panels))return!1;if(!(e.length>1)){for(var o=0;o<r.panels.length;o++)if(!f(r.panels[o]))return!1;return!0}e[1]<r.panels.length&&(n=r.panels[e[1]])}return f(n)})),i.Instance.register("isDisplayMode",(function(){return this.survey&&this.survey.isDisplayMode})),i.Instance.register("currentDate",(function(){return new Date})),i.Instance.register("today",(function(e){var t=new Date;return o.settings.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t})),i.Instance.register("getYear",(function(e){if(1===e.length&&e[0])return new Date(e[0]).getFullYear()})),i.Instance.register("currentYear",(function(){return(new Date).getFullYear()})),i.Instance.register("diffDays",(function(e){if(!Array.isArray(e)||2!==e.length)return 0;if(!e[0]||!e[1])return 0;var t=new Date(e[0]),n=new Date(e[1]),r=Math.abs(n-t);return Math.ceil(r/864e5)}))},"./src/helpers.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Helpers",(function(){return o}));var r=n("./src/settings.ts"),o=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&"object"==typeof t&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,n){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++){for(var o=0;o<n.length&&!e.isTwoValueEquals(t[r],n[o]);o++);if(o===n.length)return!1}return!0},e.isArraysEqual=function(t,n,r,o,i){if(void 0===r&&(r=!1),!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;if(r){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(n[l]);s.sort(),a.sort(),t=s,n=a}for(l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],n[l],r,o,i))return!1;return!0},e.compareStrings=function(e,t){if(e&&(e=e.trim()),t&&(t=t.trim()),!e&&!t)return 0;if(!e)return-1;if(!t)return 1;if(e===t)return 0;for(var n=-1,r=0;r<e.length&&r<t.length;r++){if(this.isCharDigit(e[r])&&this.isCharDigit(t[r])){n=r;break}if(e[r]!==t[r])break}if(n>-1){var o=this.getNumberFromStr(e,n),i=this.getNumberFromStr(t,n);if(!Number.isNaN(o)&&!Number.isNaN(i)&&o!==i)return o>i?1:-1}return e>t?1:-1},e.isTwoValueEquals=function(t,n,o,i,s){if(void 0===o&&(o=!1),t===n)return!0;if(Array.isArray(t)&&0===t.length&&void 0===n)return!0;if(Array.isArray(n)&&0===n.length&&void 0===t)return!0;if(null==t&&""===n)return!0;if(null==n&&""===t)return!0;if(void 0===s&&(s=r.settings.comparator.trimStrings),void 0===i&&(i=r.settings.comparator.caseSensitive),"string"==typeof t&&"string"==typeof n)return s&&(t=t.trim(),n=n.trim()),i||(t=t.toLowerCase(),n=n.toLowerCase()),t===n;if(t instanceof Date&&n instanceof Date)return t.getTime()==n.getTime();if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(n)&&parseInt(t)===parseInt(n)&&parseFloat(t)===parseFloat(n))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(n)||e.isValueEmpty(t)&&!e.isValueEmpty(n))return!1;if((!0===t||!1===t)&&"string"==typeof n)return t.toString()===n.toLocaleLowerCase();if((!0===n||!1===n)&&"string"==typeof t)return n.toString()===t.toLocaleLowerCase();if(!(t instanceof Object||n instanceof Object))return t==n;if(!(t instanceof Object&&n instanceof Object))return!1;if(t.equals)return t.equals(n);if(t.toJSON&&n.toJSON&&t.getType&&n.getType)return!t.isDiposed&&!n.isDiposed&&t.getType()===n.getType()&&(!t.name||t.name===n.name)&&this.isTwoValueEquals(t.toJSON(),n.toJSON(),o,i,s);if(Array.isArray(t)&&Array.isArray(n))return e.isArraysEqual(t,n,o,i,s);if(t.equalsTo&&n.equalsTo)return t.equalsTo(n);for(var a in t)if(t.hasOwnProperty(a)){if(!n.hasOwnProperty(a))return!1;if(!this.isTwoValueEquals(t[a],n[a],o,i,s))return!1}for(a in n)if(n.hasOwnProperty(a)&&!t.hasOwnProperty(a))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},e.getUnbindValue=function(e){return e&&e instanceof Object&&!(e instanceof Date)?JSON.parse(JSON.stringify(e)):e},e.createCopy=function(e){var t={};if(!e)return t;for(var n in e)t[n]=e[n];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isNumber=function(e){return!isNaN(this.getNumber(e))},e.getNumber=function(e){if("string"==typeof e&&e&&0==e.indexOf("0x")&&e.length>32)return NaN;e=this.prepareStringToNumber(e);var t=parseFloat(e);return isNaN(t)||!isFinite(e)?NaN:t},e.prepareStringToNumber=function(e){if("string"!=typeof e||!e)return e;var t=e.indexOf(",");return t>-1&&e.indexOf(",",t+1)<0?e.replace(",","."):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getRemainingCharacterCounterText=function(e,t){return!t||t<=0?"":[e?e.length:"0",t].join("/")},e.getNumberByIndex=function(t,n){if(t<0)return"";var r=1,o="",i=".",s=!0,a="A",l="";if(n){for(var u=(l=n).length-1,c=!1,p=0;p<l.length;p++)if(e.isCharDigit(l[p])){c=!0;break}for(var d=function(){return c&&!e.isCharDigit(l[u])||e.isCharNotLetterAndDigit(l[u])};u>=0&&d();)u--;var h="";for(u<l.length-1&&(h=l.substring(u+1),l=l.substring(0,u+1)),u=l.length-1;u>=0&&!d()&&(u--,c););a=l.substring(u+1),o=l.substring(0,u+1),parseInt(a)?r=parseInt(a):1==a.length&&(s=!1),(h||o)&&(i=h)}if(s){for(var f=(t+r).toString();f.length<a.length;)f="0"+f;return o+f+i}return o+String.fromCharCode(a.charCodeAt(0)+t)+i},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.getNumberFromStr=function(e,t){if(!this.isCharDigit(e[t]))return NaN;for(var n="";t<e.length&&this.isCharDigit(e[t]);)n+=e[t],t++;return n?this.getNumber(n):NaN},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var n=t.toString().split(".");return n.length>1&&n[1].length||0}return 0},e.correctAfterPlusMinis=function(t,n,r){var o=e.countDecimals(t),i=e.countDecimals(n);if(o>0||i>0){var s=Math.max(o,i);r=parseFloat(r.toFixed(s))}return r},e.sumAnyValues=function(t,n){if(!e.isNumber(t)||!e.isNumber(n)){if(Array.isArray(t)&&Array.isArray(n))return[].concat(t).concat(n);if(Array.isArray(t)||Array.isArray(n)){var r=Array.isArray(t)?t:n,o=r===t?n:t;if("string"==typeof o){var i=r.join(", ");return r===t?i+o:o+i}if("number"==typeof o){for(var s=0,a=0;a<r.length;a++)"number"==typeof r[a]&&(s=e.correctAfterPlusMinis(s,r[a],s+r[a]));return e.correctAfterPlusMinis(s,o,s+o)}}return t+n}return e.correctAfterPlusMinis(t,n,t+n)},e.correctAfterMultiple=function(t,n,r){var o=e.countDecimals(t)+e.countDecimals(n);return o>0&&(r=parseFloat(r.toFixed(o))),r},e.convertArrayValueToObject=function(t,n,r){void 0===r&&(r=void 0);var o=new Array;if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var s=void 0;Array.isArray(r)&&(s=e.findObjByPropValue(r,n,t[i])),s||((s={})[n]=t[i]),o.push(s)}return o},e.findObjByPropValue=function(t,n,r){for(var o=0;o<t.length;o++)if(e.isTwoValueEquals(t[o][n],r))return t[o]},e.convertArrayObjectToValue=function(t,n){var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var i=t[o]?t[o][n]:void 0;e.isValueEmpty(i)||r.push(i)}return r},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,n){return t instanceof Date?"datetime-local"===n?e.convertDateTimeToString(t):e.convertDateToString(t):t},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,(function(t,n){return void 0!==e[n]?e[n]:t}))})},"./src/images sync \\.svg$":function(e,t,n){var r={"./ArrowDown_34x34.svg":"./src/images/ArrowDown_34x34.svg","./ArrowLeft.svg":"./src/images/ArrowLeft.svg","./ArrowRight.svg":"./src/images/ArrowRight.svg","./Arrow_downGREY_10x10.svg":"./src/images/Arrow_downGREY_10x10.svg","./ChooseFile.svg":"./src/images/ChooseFile.svg","./Clear.svg":"./src/images/Clear.svg","./DefaultFile.svg":"./src/images/DefaultFile.svg","./Delete.svg":"./src/images/Delete.svg","./Down_34x34.svg":"./src/images/Down_34x34.svg","./Left.svg":"./src/images/Left.svg","./ModernBooleanCheckChecked.svg":"./src/images/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./src/images/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./src/images/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./src/images/ModernCheck.svg","./ModernRadio.svg":"./src/images/ModernRadio.svg","./More.svg":"./src/images/More.svg","./ProgressButton.svg":"./src/images/ProgressButton.svg","./ProgressButtonV2.svg":"./src/images/ProgressButtonV2.svg","./RemoveFile.svg":"./src/images/RemoveFile.svg","./Right.svg":"./src/images/Right.svg","./SearchClear.svg":"./src/images/SearchClear.svg","./TimerCircle.svg":"./src/images/TimerCircle.svg","./V2Check.svg":"./src/images/V2Check.svg","./V2Check_24x24.svg":"./src/images/V2Check_24x24.svg","./V2DragElement_16x16.svg":"./src/images/V2DragElement_16x16.svg","./clear_16x16.svg":"./src/images/clear_16x16.svg","./collapseDetail.svg":"./src/images/collapseDetail.svg","./expandDetail.svg":"./src/images/expandDetail.svg","./no-image.svg":"./src/images/no-image.svg","./rating-star-2.svg":"./src/images/rating-star-2.svg","./rating-star-small-2.svg":"./src/images/rating-star-small-2.svg","./rating-star-small.svg":"./src/images/rating-star-small.svg","./rating-star.svg":"./src/images/rating-star.svg","./search.svg":"./src/images/search.svg"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./src/images sync \\.svg$"},"./src/images/ArrowDown_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><polygon class="st0" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></svg>'},"./src/images/ArrowLeft.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/ArrowRight.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},"./src/images/Arrow_downGREY_10x10.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 10 10" xml:space="preserve"><polygon class="st0" points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ChooseFile.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 9V7C22 5.9 21.1 5 20 5H12L10 3H4C2.9 3 2 3.9 2 5V9V10V21H22L24 9H22ZM4 5H9.2L10.6 6.4L11.2 7H12H20V9H4V5ZM20.3 19H4V11H21.6L20.3 19Z"></path></svg>'},"./src/images/Clear.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.4 14.6C0.600003 15.4 0.600003 16.6 1.4 17.4L6 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.8L2.8 16L6.2 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.6 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./src/images/DefaultFile.svg":function(e,t){e.exports='<svg viewBox="0 0 56 68" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_9011_41219)"><path d="M54.83 10.83L45.17 1.17C44.7982 0.798664 44.357 0.504208 43.8714 0.303455C43.3858 0.102703 42.8654 -0.000411943 42.34 1.2368e-06H6C4.4087 1.2368e-06 2.88257 0.632142 1.75735 1.75736C0.632136 2.88258 0 4.4087 0 6V62C0 63.5913 0.632136 65.1174 1.75735 66.2426C2.88257 67.3679 4.4087 68 6 68H50C51.5913 68 53.1174 67.3679 54.2426 66.2426C55.3679 65.1174 56 63.5913 56 62V13.66C56.0004 13.1346 55.8973 12.6142 55.6965 12.1286C55.4958 11.643 55.2013 11.2018 54.83 10.83ZM44 2.83L53.17 12H48C46.9391 12 45.9217 11.5786 45.1716 10.8284C44.4214 10.0783 44 9.06087 44 8V2.83ZM54 62C54 63.0609 53.5786 64.0783 52.8284 64.8284C52.0783 65.5786 51.0609 66 50 66H6C4.93913 66 3.92172 65.5786 3.17157 64.8284C2.42142 64.0783 2 63.0609 2 62V6C2 4.93914 2.42142 3.92172 3.17157 3.17157C3.92172 2.42143 4.93913 2 6 2H42V8C42 9.5913 42.6321 11.1174 43.7574 12.2426C44.8826 13.3679 46.4087 14 48 14H54V62ZM14 24H42V26H14V24ZM14 30H42V32H14V30ZM14 36H42V38H14V36ZM14 42H42V44H14V42Z" fill="#909090"></path></g><defs><clipPath id="clip0_9011_41219"><rect width="56" height="68" fill="white"></rect></clipPath></defs></svg>'},"./src/images/Delete.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},"./src/images/Down_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><g><path class="st0" d="M33,34H0V0h33c0.6,0,1,0.4,1,1v32C34,33.6,33.6,34,33,34z"></path><polygon class="st1" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></g></svg>'},"./src/images/Left.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="11,12 9,14 3,8 9,2 11,4 7,8 "></polygon></svg>'},"./src/images/ModernBooleanCheckChecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./src/images/ModernBooleanCheckInd.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./src/images/ModernBooleanCheckUnchecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./src/images/ModernCheck.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./src/images/ModernRadio.svg":function(e,t){e.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./src/images/More.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},"./src/images/ProgressButton.svg":function(e,t){e.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./src/images/ProgressButtonV2.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},"./src/images/RemoveFile.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./src/images/Right.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="5,4 7,2 13,8 7,14 5,12 9,8 "></polygon></svg>'},"./src/images/SearchClear.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/TimerCircle.svg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./src/images/V2Check.svg":function(e,t){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.00001 15.8L2.60001 10.4L4.00001 9L8.00001 13L16 5L17.4 6.4L8.00001 15.8Z"></path></svg>'},"./src/images/V2Check_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},"./src/images/V2DragElement_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 4C2 3.73478 2.10536 3.48043 2.29289 3.29289C2.48043 3.10536 2.73478 3 3 3H13C13.2652 3 13.5196 3.10536 13.7071 3.29289C13.8946 3.48043 14 3.73478 14 4C14 4.26522 13.8946 4.51957 13.7071 4.70711C13.5196 4.89464 13.2652 5 13 5H3C2.73478 5 2.48043 4.89464 2.29289 4.70711C2.10536 4.51957 2 4.26522 2 4ZM13 7H3C2.73478 7 2.48043 7.10536 2.29289 7.29289C2.10536 7.48043 2 7.73478 2 8C2 8.26522 2.10536 8.51957 2.29289 8.70711C2.48043 8.89464 2.73478 9 3 9H13C13.2652 9 13.5196 8.89464 13.7071 8.70711C13.8946 8.51957 14 8.26522 14 8C14 7.73478 13.8946 7.48043 13.7071 7.29289C13.5196 7.10536 13.2652 7 13 7ZM13 11H3C2.73478 11 2.48043 11.1054 2.29289 11.2929C2.10536 11.4804 2 11.7348 2 12C2 12.2652 2.10536 12.5196 2.29289 12.7071C2.48043 12.8946 2.73478 13 3 13H13C13.2652 13 13.5196 12.8946 13.7071 12.7071C13.8946 12.5196 14 12.2652 14 12C14 11.7348 13.8946 11.4804 13.7071 11.2929C13.5196 11.1054 13.2652 11 13 11Z"></path></svg>'},"./src/images/clear_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./src/images/collapseDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./src/images/expandDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./src/images/no-image.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48"><g opacity="0.5"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></g></svg>'},"./src/images/rating-star-2.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.4663 34.6154L24 34.3695L23.5336 34.6154L14.4788 39.389L16.2156 29.2691L16.3044 28.7517L15.9289 28.3848L8.57358 21.1966L18.7249 19.7094L19.245 19.6332L19.4772 19.1616L24 9.97413L28.5228 19.1616L28.755 19.6332L29.275 19.7094L39.4264 21.1966L32.0711 28.3848L31.6956 28.7517L31.7844 29.2691L33.5211 39.389L24.4663 34.6154Z" stroke-width="2"></path></g></svg>'},"./src/images/rating-star-small-2.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./src/images/rating-star-small.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" stroke-width="2"></path></g></svg>'},"./src/images/rating-star.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" stroke-width="2"></path></g></svg>'},"./src/images/search.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},"./src/images/smiley sync \\.svg$":function(e,t,n){var r={"./average.svg":"./src/images/smiley/average.svg","./excellent.svg":"./src/images/smiley/excellent.svg","./good.svg":"./src/images/smiley/good.svg","./normal.svg":"./src/images/smiley/normal.svg","./not-good.svg":"./src/images/smiley/not-good.svg","./perfect.svg":"./src/images/smiley/perfect.svg","./poor.svg":"./src/images/smiley/poor.svg","./terrible.svg":"./src/images/smiley/terrible.svg","./very-good.svg":"./src/images/smiley/very-good.svg","./very-poor.svg":"./src/images/smiley/very-poor.svg"};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id="./src/images/smiley sync \\.svg$"},"./src/images/smiley/average.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./src/images/smiley/excellent.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'},"./src/images/smiley/good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./src/images/smiley/normal.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./src/images/smiley/not-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./src/images/smiley/perfect.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./src/images/smiley/poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./src/images/smiley/terrible.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./src/images/smiley/very-good.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./src/images/smiley/very-poor.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.50999C4.47291 4.50999 4.08291 4.24999 3.94291 3.83999C3.76291 3.31999 4.03291 2.74999 4.55291 2.56999L8.32291 1.24999C8.84291 1.05999 9.41291 1.33999 9.59291 1.85999C9.77291 2.37999 9.50291 2.94999 8.98291 3.12999L5.20291 4.44999C5.09291 4.48999 4.98291 4.50999 4.87291 4.50999H4.88291ZM19.8129 3.88999C20.0229 3.37999 19.7729 2.78999 19.2629 2.58999L15.5529 1.06999C15.0429 0.859992 14.4529 1.10999 14.2529 1.61999C14.0429 2.12999 14.2929 2.71999 14.8029 2.91999L18.5029 4.42999C18.6229 4.47999 18.7529 4.49999 18.8829 4.49999C19.2729 4.49999 19.6529 4.26999 19.8129 3.87999V3.88999ZM3.50291 5.99999C2.64291 6.36999 1.79291 6.87999 1.00291 7.47999C0.79291 7.63999 0.64291 7.86999 0.59291 8.13999C0.48291 8.72999 0.87291 9.28999 1.45291 9.39999C2.04291 9.50999 2.60291 9.11999 2.71291 8.53999C2.87291 7.68999 3.12291 6.82999 3.50291 5.98999V5.99999ZM21.0429 8.54999C21.6029 10.48 24.2429 8.83999 22.7529 7.47999C21.9629 6.87999 21.1129 6.36999 20.2529 5.99999C20.6329 6.83999 20.8829 7.69999 21.0429 8.54999ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 9.99999 11.8829 9.99999C7.47291 9.99999 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./src/itemvalue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ItemValue",(function(){return g}));var r,o=n("./src/localizablestring.ts"),i=n("./src/jsonobject.ts"),s=n("./src/helpers.ts"),a=n("./src/conditions.ts"),l=n("./src/base.ts"),u=n("./src/settings.ts"),c=n("./src/actions/action.ts"),p=n("./src/question_baseselect.ts"),d=n("./src/question.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},g=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="itemvalue");var a=e.call(this)||this;return a.typeName=r,a.ownerPropertyName="",a.locTextValue=new o.LocalizableString(a,!0,"text"),a.locTextValue.onStrChanged=function(e,t){t==a.value&&(t=void 0),a.propertyValueChanged("text",e,t)},a.locTextValue.onGetTextCallback=function(e){return e||(s.Helpers.isValueEmpty(a.value)?null:a.value.toString())},n&&(a.locText.text=n),t&&"object"==typeof t?a.setData(t):a.value=t,"itemvalue"!=a.getType()&&i.CustomPropertiesCollection.createProperties(a),a.data=a,a.onCreating(),a}return h(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return u.settings.itemValueSeparator},set:function(e){u.settings.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,t,n){e.length=0;for(var r=0;r<t.length;r++){var o=t[r],s=o&&"function"==typeof o.getType?o.getType():null!=n?n:"itemvalue",a=i.Serializer.createClass(s);a.setData(o),o.originalItem&&(a.originalItem=o.originalItem),e.push(a)}},t.getData=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].getData());return t},t.getItemByValue=function(e,t){if(!Array.isArray(e))return null;for(var n=s.Helpers.isValueEmpty(t),r=0;r<e.length;r++){if(n&&s.Helpers.isValueEmpty(e[r].value))return e[r];if(s.Helpers.isTwoValueEquals(e[r].value,t,!1,!0,!1))return e[r]}return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return null!==r?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locStrsChanged()},t.runConditionsForItems=function(e,n,r,o,i,s,a){return void 0===s&&(s=!0),t.runConditionsForItemsCore(e,n,r,o,i,!0,s,a)},t.runEnabledConditionsForItems=function(e,n,r,o,i){return t.runConditionsForItemsCore(e,null,n,r,o,!1,!0,i)},t.runConditionsForItemsCore=function(e,t,n,r,o,i,s,a){void 0===s&&(s=!0),r||(r={});for(var l=r.item,u=r.choice,c=!1,p=0;p<e.length;p++){var d=e[p];r.item=d.value,r.choice=d.value;var h=!(!s||!d.getConditionRunner)&&d.getConditionRunner(i);h||(h=n);var f=!0;h&&(f=h.run(r,o)),a&&(f=a(d,f)),t&&f&&t.push(d),f!=(i?d.isVisible:d.isEnabled)&&(c=!0,i?d.setIsVisible&&d.setIsVisible(f):d.setIsEnabled&&d.setIsEnabled(f))}return l?r.item=l:delete r.item,u?r.choice=u:delete r.choice,c},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){var t=void 0;if(!s.Helpers.isValueEmpty(e)){var n=e.toString(),r=n.indexOf(u.settings.itemValueSeparator);r>-1&&(e=n.slice(0,r),t=n.slice(r+1))}this.setPropertyValue("value",e),t&&(this.text=t),this.id=this.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return null!=e&&!Array.isArray(e)&&"object"!=typeof e},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,s.Helpers.isValueEmpty(e.value))return e;var t=this.canSerializeValue();return t&&(u.settings.itemValueAlwaysSerializeAsObject||u.settings.itemValueAlwaysSerializeText)||1!=Object.keys(e).length?(u.settings.itemValueAlwaysSerializeText&&void 0===e.text&&t&&(e.text=this.value.toString()),e):this.value},t.prototype.toJSON=function(){var e={},t=i.Serializer.getProperties(this.getType());t&&0!=t.length||(t=i.Serializer.getProperties("itemvalue"));for(var n=new i.JsonObject,r=0;r<t.length;r++){var o=t[r];"text"===o.name&&!this.locText.hasNonDefaultText()&&s.Helpers.isTwoValueEquals(this.value,this.text,!1,!0,!1)||n.valueToJson(this,e,o)}return e},t.prototype.setData=function(e){if(!s.Helpers.isValueEmpty(e)){if(void 0===e.value&&void 0!==e.text&&1===Object.keys(e).length&&(e.value=e.text),void 0!==e.value){var t;t="function"==typeof e.toJSON?e.toJSON():e,(new i.JsonObject).toObject(t,this)}else this.value=e;this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!0)},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.getPropertyValue("isEnabled",!0)},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,t,n){"value"!==e||this.hasText||this.locText.strChanged();var r="itemValuePropertyChanged";this.locOwner&&this.locOwner[r]&&this.locOwner[r](this,e,t,n)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new a.ConditionRunner(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new a.ConditionRunner(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this;return this._locOwner instanceof p.QuestionSelectBase&&void 0===this.selectedValue&&(this.selectedValue=new l.ComputedUpdater((function(){return e._locOwner.isItemSelected(e)}))),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof d.Question?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=void 0===this.isVisible||this.isVisible,t=void 0===this._visible||this._visible;return e&&t},t.prototype.setVisible=function(e){this._visible=e},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},f([Object(i.property)({defaultValue:!0})],t.prototype,"_visible",void 0),f([Object(i.property)()],t.prototype,"selectedValue",void 0),f([Object(i.property)()],t.prototype,"icon",void 0),t}(c.BaseAction);l.Base.createItemValue=function(e,t){var n=null;return(n=t?i.JsonObject.metaData.createClass(t,{}):"function"==typeof e.getType?new g(null,void 0,e.getType()):new g(null)).setData(e),n},l.Base.itemValueLocStrChanged=function(e){g.locStrsChanged(e)},i.JsonObjectProperty.getItemValuesDefaultValue=function(e,t){var n=new Array;return g.setData(n,Array.isArray(e)?e:[],t),n},i.Serializer.addClass("itemvalue",["!value",{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(e){return!e||"rateValues"!==e.ownerPropertyName}}],(function(e){return new g(e)}))},"./src/jsonobject.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"property",(function(){return c})),n.d(t,"propertyArray",(function(){return d})),n.d(t,"JsonObjectProperty",(function(){return h})),n.d(t,"CustomPropertiesCollection",(function(){return f})),n.d(t,"JsonMetadataClass",(function(){return g})),n.d(t,"JsonMetadata",(function(){return m})),n.d(t,"JsonError",(function(){return y})),n.d(t,"JsonUnknownPropertyError",(function(){return v})),n.d(t,"JsonMissingTypeErrorBase",(function(){return b})),n.d(t,"JsonMissingTypeError",(function(){return C})),n.d(t,"JsonIncorrectTypeError",(function(){return w})),n.d(t,"JsonRequiredPropertyError",(function(){return x})),n.d(t,"JsonObject",(function(){return P})),n.d(t,"Serializer",(function(){return _}));var r,o=n("./src/surveyStrings.ts"),i=n("./src/base.ts"),s=n("./src/helpers.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function u(e,t,n){var r=e.getLocalizableString(n);r||(r=e.createLocalizableString(n,e,!0),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(r.onGetTextCallback=t.localizable.onGetTextCallback))}function c(e){return function(t,n){var r=function(e,t){if(t&&"object"==typeof t&&t.type===i.ComputedUpdater.ComputedUpdaterType){i.Base.startCollectDependencies((function(){return e[n]=t.updater()}),e,n);var r=t.updater(),o=i.Base.finishCollectDependencies();return t.setDependencies(o),r}return t};e&&e.localizable?(Object.defineProperty(t,n,{get:function(){return function(e,t,n){u(e,t,n);var r=e.getLocalizableStringText(n);if(r)return r;if("object"==typeof t.localizable&&t.localizable.defaultStr){var i=e.getLocale?e.getLocale():"";return o.surveyLocalization.getString(t.localizable.defaultStr,i)}return""}(this,e,n)},set:function(t){u(this,e,n);var o=r(this,t);this.setLocalizableStringText(n,o),e&&e.onSet&&e.onSet(o,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+n.charAt(0).toUpperCase()+n.slice(1),{get:function(){return u(this,e,n),this.getLocalizableString(n)}})):Object.defineProperty(t,n,{get:function(){var t=null;return e&&("function"==typeof e.getDefaultValue&&(t=e.getDefaultValue(this)),void 0!==e.defaultValue&&(t=e.defaultValue)),this.getPropertyValue(n,t)},set:function(t){var o=r(this,t);this.setPropertyValue(n,o),e&&e.onSet&&e.onSet(o,this)}})}}function p(e,t,n){e.ensureArray(n,(function(n,r){var o=t?t.onPush:null;o&&o(n,r,e)}),(function(n,r){var o=t?t.onRemove:null;o&&o(n,r,e)}))}function d(e){return function(t,n){Object.defineProperty(t,n,{get:function(){return p(this,e,n),this.getPropertyValue(n)},set:function(t){p(this,e,n);var r=this.getPropertyValue(n);t!==r&&(r?r.splice.apply(r,l([0,r.length],t||[])):this.setPropertyValue(n,t),e&&e.onSet&&e.onSet(t,this))}})}}var h=function(){function e(t,n,r){void 0===r&&(r=!1),this.name=n,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=r,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){this.isRequiredValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){var t=this.defaultValueFunc?this.defaultValueFunc():this.defaultValueValue;return e.getItemValuesDefaultValue&&P.metaData.isDescendantOf(this.className,"itemvalue")&&(t=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),t},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return s.Helpers.isValueEmpty(this.defaultValue)?!1===e&&("boolean"==this.type||"switch"==this.type)||""===e||s.Helpers.isValueEmpty(e):s.Helpers.isTwoValueEquals(e,this.defaultValue,!1,!0,!1)},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,n){this.onSetValue?this.onSetValue(e,t,n):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"!=this.type&&"switch"!=this.type||(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var n=!this.layout||this.layout==e;return!(!this.visible||!n)&&(!this.visibleIf||!t||this.visibleIf(t))},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var n=e.mergableValues,r=0;r<n.length;r++)this.mergeValue(t,n[r])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){if("choicesByUrl"!==this.className)return"string"===this.className?this.className:this.className||this.baseClassName?"array":"switch"==this.type?"boolean":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.schemaRef=function(){if(this.className)return this.className},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","layout","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","showMode","dependedProperties","visibleIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),f=function(){function e(){}return e.addProperty=function(t,n){t=t.toLowerCase();var r=e.properties;r[t]||(r[t]=[]),r[t].push(n)},e.removeProperty=function(t,n){t=t.toLowerCase();var r=e.properties;if(r[t])for(var o=r[t],i=0;i<o.length;i++)if(o[i].name==n){r[t].splice(i,1);break}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},e.addClass=function(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n},e.getProperties=function(t){t=t.toLowerCase();for(var n=[],r=e.properties;t;){var o=r[t];if(o)for(var i=0;i<o.length;i++)n.push(o[i]);t=e.parentClasses[t]}return n},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,n){var r=e.properties;r[n]&&e.createPropertiesInObj(t,r[n]);var o=e.parentClasses[n];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,n){for(var r=0;r<n.length;r++)e.createPropertyInObj(t,n[r])},e.createPropertyInObj=function(t,n){if(!(e.checkIsPropertyExists(t,n.name)||n.serializationProperty&&e.checkIsPropertyExists(t,n.serializationProperty))){if(n.isLocalizable&&n.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(n.name);var r={get:function(){return t.getLocalizableString(n.name)}};Object.defineProperty(t,n.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(n.name,n.defaultValue)},set:function(e){t.setLocalizableStringText(n.name,e)}};Object.defineProperty(t,n.name,o)}else{var i=n.defaultValue,s=n.isArray||"multiplevalues"===n.type;"function"==typeof t.createNewArray&&(P.metaData.isDescendantOf(n.className,"itemvalue")?(t.createNewArray(n.name,(function(e){e.locOwner=t,e.ownerPropertyName=n.name})),s=!0):s&&t.createNewArray(n.name),s&&(Array.isArray(i)&&t.setPropertyValue(n.name,i),i=null)),t.getPropertyValue&&t.setPropertyValue&&(o={get:function(){return n.onGetValue?n.onGetValue(t):t.getPropertyValue(n.name,i)},set:function(e){n.onSetValue?n.onSetValue(t,e,null):t.setPropertyValue(n.name,e)}},Object.defineProperty(t,n.name,o))}"condition"!==n.type&&"expression"!==n.type||n.onExecuteExpression&&t.addExpressionProperty(n.name,n.onExecuteExpression)}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),g=function(){function e(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),this.name=e,this.creator=n,this.parentName=r,e=e.toLowerCase(),this.isCustomValue=!n&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),f.addClass(e,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<t.length;o++)this.createProperty(t[o],this.isCustom)}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.findProperty=function(e){return this.fillAllProperties(),this.hashProperties[e]},e.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},e.prototype.resetAllProperties=function(){this.allProperties=void 0,this.hashProperties=void 0;for(var e=_.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.fillAllProperties=function(){var e=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var t={};this.properties.forEach((function(e){return t[e.name]=e}));var n=this.parentName?_.findClass(this.parentName):null;n&&n.getAllProperties().forEach((function(n){var r=t[n.name];r?(r.mergeWith(n),e.addPropCore(r)):e.addPropCore(n)})),this.properties.forEach((function(t){e.hashProperties[t.name]||e.addPropCore(t)}))}},e.prototype.addPropCore=function(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)},e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!_.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;f.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=_.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,n){void 0===n&&(n=!1);var r="string"==typeof t?t:t.name;if(r){var o=null,i=r.indexOf(e.typeSymbol);i>-1&&(o=r.substring(i+1),r=r.substring(0,i));var a=this.getIsPropertyNameRequired(r)||!!t.isRequired;r=this.getPropertyName(r);var l=new h(this,r,a);if(o&&(l.type=o),"object"==typeof t){if(t.type&&(l.type=t.type),void 0!==t.default&&(l.defaultValue=t.default),void 0!==t.defaultFunc&&(l.defaultValueFunc=t.defaultFunc),s.Helpers.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),s.Helpers.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),s.Helpers.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),s.Helpers.isValueEmpty(t.displayName)||(l.displayName=t.displayName),s.Helpers.isValueEmpty(t.category)||(l.category=t.category),s.Helpers.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),s.Helpers.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),s.Helpers.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),s.Helpers.isValueEmpty(t.showMode)||(l.showMode=t.showMode),s.Helpers.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),s.Helpers.isValueEmpty(t.minValue)||(l.minValue=t.minValue),s.Helpers.isValueEmpty(t.dataList)||(l.dataList=t.dataList),s.Helpers.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),s.Helpers.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),s.Helpers.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),s.Helpers.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),s.Helpers.isValueEmpty(t.isArray)||(l.isArray=t.isArray),!0!==t.visible&&!1!==t.visible||(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.name),t.serializationProperty&&(l.serializationProperty=t.serializationProperty,l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)),t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName),t.layout&&(l.layout=t.layout),t.dependsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),n&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,f.addProperty(this.name,l)),l}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.addDependsOnProperty(e,t[n]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var n=this.find(t);n||(n=_.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),m=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)){var n=e.getOriginalObj();if(r=_.findProperty(n.getType(),t))return this.getObjPropertyValueCore(n,r)}var r;return(r=_.findProperty(e.getType(),t))?this.getObjPropertyValueCore(e,r):e[t]},e.prototype.setObjPropertyValue=function(e,t,n){if(e[t]!==n)if(e[t]&&e[t].setJson)e[t].setJson(n);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}e[t]=n}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.addClass=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e=e.toLowerCase();var o=new g(e,t,n,r);return this.classes[e]=o,r&&(r=r.toLowerCase(),this.childrenClasses[r]||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)),o},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var n=this.childrenClasses[t.parentName].indexOf(t);n>-1&&this.childrenClasses[t.parentName].splice(n,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);return t?t.getAllProperties():[]},e.prototype.getPropertiesByObj=function(e){if(!e||!e.getType)return[];for(var t={},n=this.getProperties(e.getType()),r=0;r<n.length;r++)t[n[r].name]=n[r];var o=e.getDynamicType?this.getProperties(e.getDynamicType()):null;if(o&&o.length>0)for(r=0;r<o.length;r++){var i=o[r];t[i.name]||(t[i.name]=i)}return Object.keys(t).map((function(e){return t[e]}))},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType||!e.getDynamicType&&!t)return[];var n=t||e.getDynamicType();if(!n)return[];var r=this.getProperties(n);if(!r||0==r.length)return[];for(var o={},i=this.getProperties(e.getType()),s=0;s<i.length;s++)o[i[s].name]=i[s];var a=[];for(s=0;s<r.length;s++){var l=r[s];o[l.name]||a.push(l)}return a},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){return this.findProperty(e.getType(),t)||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var n=this.findProperty(e,t);if(!n)return n;var r=this.findClass(e);if(n.classInfo===r)return n;var o=new h(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},e.prototype.findProperty=function(e,t){var n=this.findClass(e);return n?n.findProperty(t):null},e.prototype.findProperties=function(e,t){var n=new Array,r=this.findClass(e);if(!r)return n;for(var o=0;o<t.length;o++){var i=r.findProperty(t[o]);i&&n.push(i)}return n},e.prototype.getAllPropertiesByName=function(e){for(var t=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),i=0;i<o.properties.length;i++)if(o.properties[i].name==e){t.push(o.properties[i]);break}return t},e.prototype.getAllClasses=function(){var e=new Array;for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var r=n.parentName;r;){if(!(n=this.findClass(r)))return null;if(r=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null},e.prototype.createCustomType=function(e,t,n){void 0===n&&(n=void 0),e=e.toLowerCase();var r=t(n),o=e,i=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return i},f.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n},e.prototype.getRequiredProperties=function(e){for(var t=this.getProperties(e),n=[],r=0;r<t.length;r++)t[r].isRequired&&n.push(t[r].name);return n},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var n=this.findClass(e),r=0;r<t.length;r++)this.addCustomPropertyCore(n,t[r])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var n=e.createProperty(t,!0);return n&&e.resetAllProperties(),n},e.prototype.removeProperty=function(e,t){var n=this.findClass(e);if(!n)return!1;var r=n.find(t);r&&(this.removePropertyFromClass(n,r),n.resetAllProperties(),f.removeProperty(n.name,t))},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.fillChildrenClasses=function(e,t,n){var r=this.childrenClasses[e];if(r)for(var o=0;o<r.length;o++)t&&!r[o].creator||n.push(r[o]),this.fillChildrenClasses(r[o].name,t,n)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var n=this.findClass(e);if(!n)return!1;var r=n;do{if(r.name===t)return!0;r=this.classes[r.parentName]}while(r);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(t,n,n.definitions,!0),n},e.prototype.generateLocStrClass=function(){var e={},t=_.findProperty("survey","locale");if(t){var n=t.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach((function(t){t&&(e[t]={type:"string"})})))}return{$id:"locstring",type:"object",properties:e}},e.prototype.generateSchemaProperties=function(e,t,n,r){if(e){var o=t.properties,i=[];"question"!==e.name&&"panel"!==e.name||(o.type={type:"string"},i.push("type"));for(var s=0;s<e.properties.length;s++){var a=e.properties[s];e.parentName&&_.findProperty(e.parentName,a.name)||(o[a.name]=this.generateSchemaProperty(a,n,r),a.isRequired&&i.push(a.name))}i.length>0&&(t.required=i)}},e.prototype.generateSchemaProperty=function(e,t,n){if(e.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=e.schemaType(),o=e.schemaRef(),i={};if(r&&(i.type=r),e.hasChoices){var s=e.getChoices(null);Array.isArray(s)&&s.length>0&&(i.enum=s)}if(o&&("array"===r?"string"===e.className?i.items={type:e.className}:i.items={$ref:this.getChemeRefName(e.className,n)}:i.$ref=this.getChemeRefName(o,n),this.generateChemaClass(e.className,t,!1)),e.baseClassName){var a=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&a.push(this.findClass("panel")),i.items={anyOf:[]};for(var l=0;l<a.length;l++){var u=a[l].name;i.items.anyOf.push({$ref:this.getChemeRefName(u,n)}),this.generateChemaClass(u,t,!1)}}return i},e.prototype.getChemeRefName=function(e,t){return t?"#/definitions/"+e:e+"#"},e.prototype.generateChemaClass=function(e,t,n){if(!t[e]){var r=this.findClass(e);if(r){var o=!!r.parentName&&"base"!=r.parentName;o&&this.generateChemaClass(r.parentName,t,n);var i={type:"object",$id:e};t[e]=i;var s={properties:{}};this.generateSchemaProperties(r,s,t,n),o?i.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:s.properties}]:i.properties=s.properties,Array.isArray(s.required)&&(i.required=s.required)}}},e}(),y=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),v=function(e){function t(t,n){var r=e.call(this,"unknownproperty","The property '"+t+"' in class '"+n+"' is unknown.")||this;r.propertyName=t,r.className=n;var o=P.metaData.getProperties(n);if(o){r.description="The list of available properties are: ";for(var i=0;i<o.length;i++)i>0&&(r.description+=", "),r.description+=o[i].name;r.description+="."}return r}return a(t,e),t}(y),b=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;o.baseClassName=t,o.type=n,o.message=r,o.description="The following types are available: ";for(var i=P.metaData.getChildrenClasses(t,!0),s=0;s<i.length;s++)s>0&&(o.description+=", "),o.description+="'"+i[s].name+"'";return o.description+=".",o}return a(t,e),t}(y),C=function(e){function t(t,n){var r=e.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),w=function(e){function t(t,n){var r=e.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return a(t,e),t}(b),x=function(e){function t(t,n){var r=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return a(t,e),t}(y),P=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return void 0===t&&(t=!1),this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t){this.toObjectCore(e,t);var n=this.getRequiredError(t,e);n&&this.addNewError(n,e)},e.prototype.toObjectCore=function(t,n){if(t){var r=null,o=void 0,i=!0;if(n.getType&&(o=n.getType(),r=e.metaData.getProperties(o),i=!!o&&!e.metaData.isDescendantOf(o,"itemvalue")),r){for(var s in n.startLoadingFromJson&&n.startLoadingFromJson(t),r=this.addDynamicProperties(n,t,r),t)if(s!==e.typePropertyName)if(s!==e.positionPropertyName){var a=this.findProperty(r,s);a?this.valueToObj(t[s],n,a):i&&this.addNewError(new v(s.toString(),o),t)}else n[s]=t[s];n.endLoadingFromJson&&n.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,n,r){if(void 0===r&&(r=!1),!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var o={};return null==n||n.className||(o[e.typePropertyName]=n.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),o,r),this.propertiesToJson(t,this.getDynamicProperties(t),o,r),o},e.prototype.getDynamicProperties=function(e){return _.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,n){if(!e.getDynamicPropertyName)return n;var r=e.getDynamicPropertyName();if(!r)return n;t[r]&&(e[r]=t[r]);for(var o=this.getDynamicProperties(e),i=[],s=0;s<n.length;s++)i.push(n[s]);for(s=0;s<o.length;s++)i.push(o[s]);return i},e.prototype.propertiesToJson=function(e,t,n,r){void 0===r&&(r=!1);for(var o=0;o<t.length;o++)this.valueToJson(e,n,t[o],r)},e.prototype.valueToJson=function(e,t,n,r){if(void 0===r&&(r=!1),!(!1===n.isSerializable||!1===n.isLightSerializable&&this.lightSerializing)){var o=n.getValue(e);if(r||!n.isDefaultValue(o)){if(this.isValueArray(o)){for(var i=[],s=0;s<o.length;s++)i.push(this.toJsonObjectCore(o[s],n,r));o=i.length>0?i:null}else o=this.toJsonObjectCore(o,n,r);var a="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(n.name,null);(r&&a||!n.isDefaultValue(o))&&(_.onSerializingProperty&&_.onSerializingProperty(e,n,o,t)||(t[n.name]=o))}}},e.prototype.valueToObj=function(e,t,n){if(null!=e)if(this.removePos(n,e),null!=n&&n.hasToUseSetValue)n.setValue(t,e,this);else if(this.isValueArray(e))this.valueToArray(e,t,n.name,n);else{var r=this.createNewObj(e,n);r.newObj&&(this.toObjectCore(e,r.newObj),e=r.newObj),r.error||(null!=n?n.setValue(t,e,this):t[n.name]=e)}},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.removePosFromObj(t[n]);t[e.positionPropertyName]&&delete t[e.positionPropertyName]}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(t,n){var r={newObj:null,error:null},o=this.getClassNameForNewObj(t,n);return r.newObj=o?e.metaData.createClass(o,t):null,r.error=this.checkNewObjectOnErrors(r.newObj,t,n,o),r},e.prototype.getClassNameForNewObj=function(t,n){var r=null!=n&&n.className?n.className:void 0;if(r||(r=t[e.typePropertyName]),!r)return r;r=r.toLowerCase();var o=n.classNamePart;return o&&r.indexOf(o)<0&&(r+=o),r},e.prototype.checkNewObjectOnErrors=function(e,t,n,r){var o=null;return e?o=this.getRequiredError(e,t):n.baseClassName&&(o=r?new w(n.name,n.baseClassName):new C(n.name,n.baseClassName)),o&&this.addNewError(o,t),o},e.prototype.getRequiredError=function(t,n){if(!t.getType||"function"==typeof t.getData)return null;var r=t.getType(),o=e.metaData.getRequiredProperties(r);if(!Array.isArray(o))return null;for(var i=0;i<o.length;i++){var a=_.findProperty(r,o[i]);if(a&&s.Helpers.isValueEmpty(a.defaultValue)&&!n[a.name])return new x(a.name,r)}return null},e.prototype.addNewError=function(t,n){n&&n[e.positionPropertyName]&&(t.at=n[e.positionPropertyName].start),this.errors.push(t)},e.prototype.valueToArray=function(e,t,n,r){if(!t[n]||this.isValueArray(t[n])){t[n]&&e.length>0&&t[n].splice(0,t[n].length);var o=t[n]?t[n]:[];this.addValuesIntoArray(e,o,r),t[n]||(t[n]=o)}},e.prototype.addValuesIntoArray=function(e,t,n){for(var r=0;r<e.length;r++){var o=this.createNewObj(e[r],n);o.newObj?(e[r].name&&(o.newObj.name=e[r].name),e[r].valueName&&(o.newObj.valueName=e[r].valueName.toString()),t.push(o.newObj),this.toObjectCore(e[r],o.newObj)):o.error||t.push(e[r])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var r=e[n];if(r.name==t||r.alternativeName==t)return r}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new m,e}(),_=P.metaData},"./src/list.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"defaultListCss",(function(){return p})),n.d(t,"ListModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/actions/container.ts"),s=n("./src/actions/action.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/element-helper.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemIcon:"sv-list__item-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},d=function(e){function t(n,r,o,i,s,l){var u=e.call(this)||this;return u.onSelectionChanged=r,u.allowSelection=o,u.onFilterStringChangedCallback=s,u.elementId=l,u.onItemClick=function(e){u.isItemDisabled(e)||(u.isExpanded=!1,u.allowSelection&&(u.selectedItem=e),u.onSelectionChanged&&u.onSelectionChanged(e))},u.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},u.isItemSelected=function(e){return u.areSameItems(u.selectedItem,e)},u.isItemFocused=function(e){return u.areSameItems(u.focusedItem,e)},u.getItemClass=function(e){return(new a.CssClassBuilder).append(u.cssClasses.item).append(u.cssClasses.itemWithIcon,!!e.iconName).append(u.cssClasses.itemDisabled,u.isItemDisabled(e)).append(u.cssClasses.itemFocused,u.isItemFocused(e)).append(u.cssClasses.itemSelected,u.isItemSelected(e)).append(e.css).toString()},u.getItemIndent=function(e){return((e.level||0)+1)*t.INDENT+"px"},u.setItems(n),u.selectedItem=i,u}return u(t,e),t.prototype.hasText=function(e,t){return!t||(e.title||"").toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter((function(t){return e.isItemVisible(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){var t=this;this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.isEmpty=0===this.renderedActions.filter((function(e){return t.isItemVisible(e)})).length},t.prototype.scrollToItem=function(e,t){var n=this;void 0===t&&(t=0),setTimeout((function(){if(n.listContainerHtmlElement){var r=n.listContainerHtmlElement.querySelector("."+e);r&&setTimeout((function(){r.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}),t)}}),t)},t.prototype.setItems=function(t,n){var r=this;void 0===n&&(n=!0),e.prototype.setItems.call(this,t,n),this.elementId&&this.renderedActions.forEach((function(e){e.elementId=r.elementId+e.id})),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),e.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return p},t.prototype.areSameItems=function(e,t){return this.areSameItemsCallback?this.areSameItemsCallback(e,t):!!e&&!!t&&e.id==t.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector("."+this.getDefaultCssClasses().itemsContainer)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new s.Action({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if("ArrowDown"===e.key||40===e.keyCode){var t=e.target.parentElement.parentElement.querySelector("ul");t&&t.firstElementChild&&(l.ElementHelper.focusElement(t.firstElementChild),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPreorder(t)),e.preventDefault()):"ArrowUp"!==e.key&&38!==e.keyCode||(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPostorder(t)),e.preventDefault())},t.prototype.onPointerDown=function(e,t){},t.prototype.refresh=function(){this.filterString="",this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter((function(t){return t.visible&&e.isItemSelected(t)}))[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t+1];n?this.focusedItem=n:this.focusFirstVisibleItem()}else this.initFocusedItem()},t.prototype.focusPrevVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),n=e[t-1];n?this.focusedItem=n:this.focusLastVisibleItem()}else this.initFocusedItem()},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=l.ElementHelper.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemFocused)},t.prototype.scrollToSelectedItem=function(){this.scrollToItem(this.getDefaultCssClasses().itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose()},t.INDENT=16,t.MINELEMENTCOUNT=10,c([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.onSet()}})],t.prototype,"searchEnabled",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"showFilter",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isExpanded",void 0),c([Object(o.property)({})],t.prototype,"selectedItem",void 0),c([Object(o.property)()],t.prototype,"focusedItem",void 0),c([Object(o.property)({onSet:function(e,t){t.onFilterStringChanged(t.filterString)}})],t.prototype,"filterString",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),c([Object(o.property)({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),c([Object(o.property)({defaultValue:!0})],t.prototype,"renderElements",void 0),t}(i.ActionContainer)},"./src/localizablestring.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"LocalizableString",(function(){return a})),n.d(t,"LocalizableStrings",(function(){return l}));var r=n("./src/helpers.ts"),o=n("./src/surveyStrings.ts"),i=n("./src/settings.ts"),s=n("./src/base.ts"),a=function(){function e(e,t,n){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=n,this.values={},this.htmlValues={},this.onStringChanged=new s.EventBase,this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return i.settings.defaultLocaleName},set:function(e){i.settings.defaultLocaleName=e},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,void 0!==this.renderedText&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;e||(e=this.defaultLoc);var t=this.getValue(e);if(t||e!==this.defaultLoc||(t=this.getValue(o.surveyLocalization.defaultLocale)),!t){var n=this.getRootDialect(e);n&&(t=this.getValue(n))}return t||e===this.defaultLoc||(t=this.getValue(this.defaultLoc)),!t&&this.getLocalizationName()&&(t=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(t=this.onGetLocalizationTextCallback(t))),t||(t=""),t},enumerable:!1,configurable:!0}),e.prototype.getRootDialect=function(e){if(!e)return e;var t=e.indexOf("-");return t>-1?e.substring(0,t):""},e.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},e.prototype.getLocalizationStr=function(){var e=this.getLocalizationName();return e?o.surveyLocalization.getString(e,this.locale):""},Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){return e||(e=this.defaultLoc),this.getValue(e)||""},e.prototype.getLocaleTextWithDefault=function(e){var t=this.getLocaleText(e);return!t&&this.onGetDefaultTextCallback?this.onGetDefaultTextCallback():t},e.prototype.setLocaleText=function(e,t){if(e=this.getValueLoc(e),this.storeDefaultText||t!=this.getLocaleTextWithDefault(e)){if(i.settings.storeDuplicatedTranslations||!t||!e||e==this.defaultLoc||this.getValue(e)||t!=this.getLocaleText(this.defaultLoc)){var n=this.curLocale;e||(e=this.defaultLoc);var r=this.onStrChanged&&e===n?this.pureText:void 0;delete this.htmlValues[e],t?"string"==typeof t&&(this.canRemoveLocValue(e,t)?this.setLocaleText(e,null):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))):this.getValue(e)&&this.deleteValue(e),this.fireStrChanged(e,r)}}else{if(t||e&&e!==this.defaultLoc)return;var s=o.surveyLocalization.defaultLocale,a=this.getValue(s);s&&a&&(this.setValue(s,t),this.fireStrChanged(s,a))}},Object.defineProperty(e.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),e.prototype.canRemoveLocValue=function(e,t){if(i.settings.storeDuplicatedTranslations)return!1;if(e===this.defaultLoc)return!1;var n=this.getRootDialect(e);if(n){var r=this.getLocaleText(n);return r?r==t:this.canRemoveLocValue(n,t)}return t==this.getLocaleText(this.defaultLoc)},e.prototype.fireStrChanged=function(e,t){if(this.strChanged(),this.onStrChanged){var n=this.pureText;e===this.curLocale&&t===n||this.onStrChanged(t,n)}},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=this.defaultLoc)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.defaultLocaleName||i.settings.serializeLocalizableStringAsObject?this.values:this.values[e[0]]},e.prototype.setJson=function(e){if(this.sharedData)this.sharedData.setJson(e);else if(this.values={},this.htmlValues={},e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!(!e||!e.values)&&r.Helpers.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var n=this.searchableText,r=n&&e?n.indexOf(e):void 0;return r<0&&(r=void 0),null==r&&this.searchIndex==r||(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),null!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.locale;if(e||(e=this.defaultLoc),void 0!==this.htmlValues[e])return!!this.htmlValues[e];var t=this.calculatedText;if(!t)return!1;if(this.getLocalizationName()&&t===this.getLocalizationStr())return!1;var n=this.owner.getMarkdownHtml(t,this.name);return this.htmlValues[e]=n,!!n},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=this.defaultLoc),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){if(!i.settings.storeDuplicatedTranslations)for(var t=this.getValuesKeys(),n=0;n<t.length;n++)t[n]!=this.defaultLoc&&this.getValue(t[n])==e&&this.deleteValue(t[n])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[this.getValueLoc(e)]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[this.getValueLoc(e)]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[this.getValueLoc(e)]},e.prototype.getValueLoc=function(e){return this.disableLocalization?i.settings.defaultLocaleName:e},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(e.prototype,"defaultLoc",{get:function(){return i.settings.defaultLocaleName},enumerable:!1,configurable:!0}),e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),l=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var n=t?t.split("\n"):null;this.setValue(e,n)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var n=i.settings.defaultLocaleName;if(e!==n&&this.values[n])return this.values[n]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var n=r.Helpers.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(n,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e||(e=this.locale)||i.settings.defaultLocaleName},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.defaultLocaleName||i.settings.serializeLocalizableStringAsObject?r.Helpers.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e)if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}()},"./src/localization/english.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"englishStrings",(function(){return r}));var r={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain visible pages or questions.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"Our records show that you have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Tap to rate here...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} variant(s).",maxSelectError:"Please select no more than {0} variant(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file chosen",fileDragAreaPlaceholder:"Drag and drop a file here or click the button below and choose a file to upload.",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",chooseFileCaption:"Choose file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:"There are no entries yet.\nClick the button below to add a new entry.",noEntriesReadonlyText:"There are no entries.",more:"More",tagboxDoneButtonCaption:"OK"}},"./src/martixBase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionMatrixBaseModel",(function(){return d}));var r,o=n("./src/itemvalue.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/helpers.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d=function(e){function t(t){var n=e.call(this,t)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.filteredColumns=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return c(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsCondition(t,n)},t.prototype.filterItems=function(){return this.areInvisibleElementsShowing?(this.onRowsChanged(),!1):!(this.isLoadingFromJson||!this.data)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&(this.visible=this.rows.length>0&&(!this.filteredRows||this.filteredRows.length>0))},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var n=null;if(this.filteredRows&&!l.Helpers.isValueEmpty(this.defaultValue)){n=[];for(var r=0;r<this.filteredRows.length;r++)n.push(this.filteredRows[r])}var o=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),i=this.runConditionsForColumns(e,t);return(o=i||o)&&(this.isClearValueOnHidden&&(this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),n&&this.restoreNewVisibleRowsValues(n),this.clearGeneratedRows(),i&&this.onColumnsChanged(),this.onRowsChanged()),o},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.runConditionsForRows=function(e,t){var n=!!this.survey&&this.survey.areInvisibleElementsShowing,r=!n&&this.rowsVisibleIf?new a.ConditionRunner(this.rowsVisibleIf):null;this.filteredRows=[];var i=o.ItemValue.runConditionsForItems(this.rows,this.filteredRows,r,e,t,!n);return this.filteredRows.length===this.rows.length&&(this.filteredRows=null),i},t.prototype.runConditionsForColumns=function(e,t){var n=this.survey&&!this.survey.areInvisibleElementsShowing&&this.columnsVisibleIf?new a.ConditionRunner(this.columnsVisibleIf):null;this.filteredColumns=[];var r=o.ItemValue.runConditionsForItems(this.columns,this.filteredColumns,n,e,t,this.shouldRunColumnExpression());return this.filteredColumns.length===this.columns.length&&(this.filteredColumns=null),r},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,i=this.filteredRows?this.filteredRows:this.rows,s=this.filteredColumns?this.filteredColumns:this.columns;for(var a in t)o.ItemValue.getItemByValue(i,a)&&o.ItemValue.getItemByValue(s,t[a])?(null==n&&(n={}),n[a]=t[a]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=this.getUnbindValue(this.value),t=this.rows,n=0;n<t.length;n++){var r=t[n].value;e[r]&&!t[n].isVisible&&delete e[r]}this.isTwoValueEquals(e,this.value)||(this.value=e)}},t.prototype.restoreNewVisibleRowsValues=function(e){var t=this.filteredRows?this.filteredRows:this.rows,n=this.defaultValue,r=this.getUnbindValue(this.value),i=!1;for(var s in n)o.ItemValue.getItemByValue(t,s)&&!o.ItemValue.getItemByValue(e,s)&&(null==r&&(r={}),r[s]=n[s],i=!0);i&&(this.value=r)},t.prototype.needResponsiveWidth=function(){return!0},t.prototype.getTableCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,"top"===this.verticalAlign).append(this.cssClasses.rootVerticalAlignMiddle,"middle"===this.verticalAlign).toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth","")},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),p([Object(s.property)({defaultValue:"middle"})],t.prototype,"verticalAlign",void 0),p([Object(s.property)()],t.prototype,"alternateRows",void 0),t}(i.Question);s.Serializer.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1}],void 0,"question")},"./src/multiSelectListModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MultiSelectListModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/list.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t,n,r,o,i,s){var a=e.call(this,t,n,r,void 0,i,s)||this;return a.onItemClick=function(e){a.isItemDisabled(e)||(a.isExpanded=!1,a.isItemSelected(e)?(a.selectedItems.splice(a.selectedItems.indexOf(e),1)[0],a.onSelectionChanged&&a.onSelectionChanged(e,"removed")):(a.selectedItems.push(e),a.onSelectionChanged&&a.onSelectionChanged(e,"added")))},a.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},a.isItemSelected=function(e){return!!a.allowSelection&&a.selectedItems.filter((function(t){return a.areSameItems(t,e)})).length>0},a.setSelectedItems(o||[]),a}return s(t,e),t.prototype.updateItemState=function(){var e=this;this.actions.forEach((function(t){var n=e.isItemSelected(t);t.visible=!e.hideSelectedItems||!n}))},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=0===this.renderedActions.filter((function(t){return e.isItemVisible(t)})).length},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){e.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(o.property)()],t.prototype,"hideSelectedItems",void 0),t}(i.ListModel)},"./src/notifier.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Notifier",(function(){return p}));var r,o=n("./src/base.ts"),i=n("./src/settings.ts"),s=n("./src/jsonobject.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/actions/container.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(t){var n=e.call(this)||this;return n.cssClasses=t,n.timeout=i.settings.notifications.lifetime,n.timer=void 0,n.actionsVisibility={},n.actionBar=new l.ActionContainer,n.actionBar.updateCallback=function(e){n.actionBar.actions.forEach((function(e){return e.cssClasses={}}))},n.css=n.cssClasses.root,n}return u(t,e),t.prototype.getCssClass=function(e){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.info,"error"!==e&&"success"!==e).append(this.cssClasses.error,"error"===e).append(this.cssClasses.success,"success"===e).append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var t=this;this.actionBar.actions.forEach((function(n){return n.visible=t.actionsVisibility[n.id]===e}))},t.prototype.notify=function(e,t,n){var r=this;void 0===t&&(t="info"),void 0===n&&(n=!1),this.isDisplayed=!0,setTimeout((function(){r.updateActionsVisibility(t),r.message=e,r.active=!0,r.css=r.getCssClass(t),r.timer&&(clearTimeout(r.timer),r.timer=void 0),n||(r.timer=setTimeout((function(){r.timer=void 0,r.active=!1,r.css=r.getCssClass(t)}),r.timeout))}),1)},t.prototype.addAction=function(e,t){e.visible=!1,e.innerCss=this.cssClasses.button;var n=this.actionBar.addAction(e);this.actionsVisibility[n.id]=t},c([Object(s.property)({defaultValue:!1})],t.prototype,"active",void 0),c([Object(s.property)({defaultValue:!1})],t.prototype,"isDisplayed",void 0),c([Object(s.property)()],t.prototype,"message",void 0),c([Object(s.property)()],t.prototype,"css",void 0),t}(o.Base)},"./src/page.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PageModel",(function(){return u}));var r,o=n("./src/jsonobject.ts"),i=n("./src/panel.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/drag-drop-page-helper-v1.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.hasShownValue=!1,n.timeSpent=0,n.locTitle.onGetTextCallback=function(e){return n.canShowPageNumber()&&e?n.num+". "+e:e},n.createLocalizableString("navigationTitle",n,!0),n.createLocalizableString("navigationDescription",n,!0),n.dragDropPageHelper=new a.DragDropPageHelperV1(n),n}return l(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(){return this.survey&&this.survey.showPageTitles},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),t.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.delete=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},t.prototype.onFirstRendering=function(){this.wasShown||e.prototype.onFirstRendering.call(this)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||0==this.visibleIndex},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={page:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.page,e.page),e.pageTitle&&(t.pageTitle=e.pageTitle),e.pageDescription&&(t.pageDescription=e.pageDescription),e.row&&(t.row=e.row),e.pageRow&&(t.pageRow=e.pageRow),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),e.rowCompact&&(t.rowCompact=e.rowCompact),this.survey&&this.survey.updatePageCssClasses(this,t),t},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.cssClasses.page?(new s.CssClassBuilder).append(this.cssClasses.page.title).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.cssClasses.page&&this.survey?(new s.CssClassBuilder).append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!(this.survey.renderedHasHeader||this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue&&(this.hasShownValue=e,!this.isDesignMode&&!0===e)){for(var t=this.elements,n=0;n<t.length;n++)t[n].isPanel&&t[n].randomizeElements(this.areQuestionsRandomized);this.randomizeElements(this.areQuestionsRandomized)}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=new Array;return this.addPanelsIntoList(n,e,t),n},t.prototype.getPanels=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),this.getAllPanels(e,t)},Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropPageHelper.dragDropStart(e,t,n)},t.prototype.dragDropMoveTo=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!1),this.dragDropPageHelper.dragDropMoveTo(e,t,n)},t.prototype.dragDropFinish=function(e){return void 0===e&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){e.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach((function(e){return e.ensureRowsVisibility()}))},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(o.property)({defaultValue:-1,onSet:function(e,t){return t.onNumChanged(e)}})],t.prototype,"num",void 0),t}(i.PanelModelBase);o.Serializer.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(e){return!!e.survey&&("buttons"===e.survey.progressBarType||e.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],(function(){return new u}),"panelbase")},"./src/panel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRowModel",(function(){return y})),n.d(t,"PanelModelBase",(function(){return v})),n.d(t,"PanelModel",(function(){return b}));var r,o=n("./src/jsonobject.ts"),i=n("./src/helpers.ts"),s=n("./src/base.ts"),a=n("./src/survey-element.ts"),l=n("./src/question.ts"),u=n("./src/questionfactory.ts"),c=n("./src/error.ts"),p=n("./src/settings.ts"),d=n("./src/utils/utils.ts"),h=n("./src/utils/cssClassBuilder.ts"),f=n("./src/drag-drop-panel-helper-v1.ts"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},y=function(e){function t(n){var r=e.call(this)||this;return r.panel=n,r._scrollableParent=void 0,r._updateVisibility=void 0,r.idValue=t.getRowId(),r.visible=n.areInvisibleElementsShowing,r.createNewArray("elements"),r.createNewArray("visibleElements"),r}return g(t,e),t.getRowId=function(){return"pr_"+t.rowCounter++},t.prototype.startLazyRendering=function(e,t){var n=this;void 0===t&&(t=d.findScrollableParent),this._scrollableParent=t(e),this._scrollableParent===document.documentElement&&(this._scrollableParent=window);var r=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!r,r&&(this._updateVisibility=function(){var t=Object(d.isElementVisible)(e,50);!n.isNeedRender&&t&&(n.isNeedRender=!0,n.stopLazyRendering())},setTimeout((function(){n._scrollableParent&&n._scrollableParent.addEventListener&&n._scrollableParent.addEventListener("scroll",n._updateVisibility),n.ensureVisibility()}),10))},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return!0===this.isLazyRenderingValue},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){var e=this.calcVisible();this.setWidth(),this.visible=e},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),t.prototype.setWidth=function(){var e,t=this.visibleElements.length;if(0!=t){for(var n=1===this.visibleElements.length,r=0,o=[],i=0;i<this.elements.length;i++){var s=this.elements[i];if(this.setElementMaxMinWidth(s),s.isVisible){s.isSingleInRow=n;var a=this.getElementWidth(s);a&&(s.renderWidth=this.getRenderedWidthFromWidth(a),o.push(s)),r<t-1&&!this.panel.isDefaultV2Theme&&!(null===(e=this.panel.parentQuestion)||void 0===e?void 0:e.isDefaultV2Theme)?s.rightIndent=1:s.rightIndent=0,r++}else s.renderWidth=""}for(i=0;i<this.elements.length;i++)!(s=this.elements[i]).isVisible||o.indexOf(s)>-1||(0==o.length?s.renderWidth=(100/t).toFixed(6)+"%":s.renderWidth=this.getRenderedCalcWidth(s,o,t))}},t.prototype.setElementMaxMinWidth=function(e){e.width&&"string"==typeof e.width&&-1===e.width.indexOf("%")&&(e.minWidth=e.width,e.maxWidth=e.width)},t.prototype.getRenderedCalcWidth=function(e,t,n){for(var r="100%",o=0;o<t.length;o++)r+=" - "+t[o].renderWidth;var i=n-t.length;return i>1&&(r="("+r+")/"+i.toString()),"calc("+r+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return i.Helpers.isNumber(e)?e+"px":e},t.prototype.calcVisible=function(){for(var e=[],t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e.push(this.elements[t]);return this.needToUpdateVisibleElements(e)&&this.setPropertyValue("visibleElements",e),e.length>0},t.prototype.needToUpdateVisibleElements=function(e){if(e.length!==this.visibleElements.length)return!0;for(var t=0;t<e.length;t++)if(e[t]!==this.visibleElements[t])return!0;return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return(new h.CssClassBuilder).append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||!!this.panel.originalPage&&!this.panel.survey.isShowingPreview).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.rowCounter=100,m([Object(o.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(s.Base),v=function(e){function t(n){void 0===n&&(n="");var r=e.call(this,n)||this;return r.isQuestionsReady=!1,r.questionsValue=new Array,r.isRandomizing=!1,r.createNewArray("rows"),r.elementsValue=r.createNewArray("elements",r.onAddElement.bind(r),r.onRemoveElement.bind(r)),r.id=t.getPanelId(),r.addExpressionProperty("visibleIf",(function(e,t){r.visible=!0===t}),(function(e){return!r.areInvisibleElementsShowing})),r.addExpressionProperty("enableIf",(function(e,t){r.readOnly=!1===t})),r.addExpressionProperty("requiredIf",(function(e,t){r.isRequired=!0===t})),r.createLocalizableString("requiredErrorText",r),r.registerPropertyChangedHandlers(["questionTitleLocation"],(function(){r.onVisibleChanged.bind(r),r.updateElementCss(!0)})),r.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],(function(){r.updateVisibleIndexes()})),r.dragDropPanelHelper=new f.DragDropPanelHelperV1(r),r}return g(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(t,n)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle()&&this.title.length>0||this.showTitle&&this.isDesignMode&&p.settings.allowShowEmptyTitleInDesignMode},enumerable:!1,configurable:!0}),t.prototype.canShowTitle=function(){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&p.settings.allowShowEmptyTitleInDesignMode&&p.settings.allowShowEmptyDescriptionInDesignMode},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&"initial"!==this.questionsOrder||"random"===this.questionsOrder},t.prototype.randomizeElements=function(e){if(this.canRandomize(e)&&!this.isRandomizing){this.isRandomizing=!0;for(var t=[],n=this.elements,r=0;r<n.length;r++)t.push(n[r]);var o=i.Helpers.randomizeArray(t);this.setArrayPropertyDirectly("elements",o,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={panel:{},error:{},row:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.panel,e.panel),this.copyCssClasses(t.error,e.error),e.pageRow&&(t.pageRow=e.pageRow),e.rowCompact&&(t.rowCompact=e.rowCompact),e.row&&(t.row=e.row),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,t),t},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var n=t.questions,r=0;r<n.length;r++)this.questionsValue.push(n[r]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e?e.trim():e},t.prototype.getQuestionByName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].name==e)return t[n];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.name==e)return r;var o=r.getPanel();if(o){var i=o.getElementByName(e);if(i)return i}}return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].getValueName()==e)return t[n];return null},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),e},t.prototype.collectValues=function(e,t){var n=this.elements;0===t&&(n=this.questions);for(var r=0;r<n.length;r++){var o=n[r];if(o.isPanel||o.isPage){var i={};o.collectValues(i,t-1)&&(e[o.name]=i)}else{var a=o;if(!a.isEmpty()){var l=a.getValueName();if(e[l]=a.value,this.data){var u=this.data.getComment(l);u&&(e[l+s.Base.commentSuffix]=u)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var t={},n=this.questions,r=0;r<n.length;r++){var o=n[r];o.isEmpty()||(t[e?o.title:o.getValueName()]=o.getDisplayValue(e))}return t},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],o=this.data.getComment(r.getValueName());o&&(e[r.getValueName()]=o)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];if(n==e)return!0;var r=n.getPanel();if(r&&r.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(t,n){e.prototype.searchText.call(this,t,n);for(var r=0;r<this.elements.length;r++)this.elements[r].searchText(t,n)},t.prototype.hasErrors=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),!this.validate(e,t,n)},t.prototype.validate=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),!0!==(n=n||{fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1}).result&&(n.result=!1),this.hasErrorsCore(n),n.firstErrorQuestion&&n.firstErrorQuestion.focus(!0),!n.result},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.survey){var n=this.survey.validatePanel(this);n&&(t.push(n),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,t),this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){var n=[];if(this.addQuestionsToList(n,!0),0!=n.length){for(var r=0;r<n.length;r++)if(!n[r].isEmpty())return;e.result=!0,t.push(new c.OneAnswerRequiredError(this.requiredErrorText,this)),e.focuseOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=n[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,n=null,r=0;r<t.length;r++)if((n=t[r]).isVisible)if(n.isPanel)n.hasErrorsCore(e);else{var o=n;if(o.isReadOnly)continue;o.validate(e.fireCallback,e)||(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=o),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.elements,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue("isVisible",t.isVisible),t.isPanel&&t.updateElementVisibility()}},t.prototype.getFirstQuestionToFocus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),!e&&!t&&this.isCollapsed)return null;for(var n=this.elements,r=0;r<n.length;r++){var o=n[r];if(o.isVisible&&(t||!o.isCollapsed))if(o.isPanel){var i=o.getFirstQuestionToFocus(e,t);if(i)return i}else{var s=o.getFirstQuestionToFocus(e);if(s)return s}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!1)},t.prototype.addPanelsIntoList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!0)},t.prototype.addElementsToList=function(e,t,n,r){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,n,r)},t.prototype.addElementsToListCore=function(e,t,n,r,o){for(var i=0;i<t.length;i++){var s=t[i];n&&!s.visible||((o&&s.isPanel||!o&&!s.isPanel)&&e.push(s),s.isPanel?s.addElementsToListCore(e,s.elements,n,r,o):r&&this.addElementsToListCore(e,s.getElementsInDesign(!1),n,r,o))}},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return a.SurveyElement.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRowAndSetLazy=function(e){var t=this.createRow();return t.setIsLazyRendering(this.isLazyRenderInRow(e)),t},t.prototype.createRow=function(){return new y(this)},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this)},t.prototype.onFirstRendering=function(){e.prototype.onFirstRendering.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].onFirstRendering();this.onRowsChanged()},t.prototype.updateRows=function(){if(!this.isLoadingFromJson){for(var e=0;e<this.elements.length;e++)this.elements[e].isPanel&&this.elements[e].updateRows();this.onRowsChanged()}},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach((function(e){e.ensureVisibility()}))},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||this.setArrayPropertyDirectly("rows",this.buildRows())},t.prototype.onAddElement=function(e,t){var n=this;if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()){var r=p.settings.supportCreatorV2?this.getDragDropInfo():void 0;this.dragDropPanelHelper.updateRowsOnElementAdded(e,t,r,this)}if(e.isPanel){var o=e;this.survey&&this.survey.panelAdded(o,t,this,this.root)}else if(this.survey){var i=e;this.survey.questionAdded(i,t,this,this.root)}this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],(function(){n.onElementVisibilityChanged(e)}),this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],(function(){n.onElementStartWithNewLineChanged(e)}),this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),this.isRandomizing||(e.isPanel?this.survey&&this.survey.panelRemoved(e):this.survey&&this.survey.questionRemoved(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||this.isRandomizing||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.onRowsChanged()},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,n=0;n<t.length;n++){var r=t[n];if(r.elements.indexOf(e)>-1){r.updateVisible(),r.visible&&!r.isNeedRender&&(r.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,t=0;t<this.elements.length;t++){var n=this.elements[t],r=0==t||n.startWithNewLine,o=r?this.createRowAndSetLazy(e.length):e[e.length-1];r&&e.push(o),o.addElement(n)}for(t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.isLazyRenderInRow=function(e){return!(!this.survey||!this.survey.isLazyRendering)&&(e>=p.settings.lazyRowsRenderingStartRow||!this.canRenderFirstRows())},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e))},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(t&&t.panel){var n=t.elements.indexOf(e);n<0||(t.elements.splice(n,1),t.elements.length>0?(t.elements[0].startWithNewLine=!0,t.updateVisible()):t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.findRowByElement=function(e){for(var t=this.rows,n=0;n<t.length;n++)if(t[n].elements.indexOf(e)>-1)return t[n];return null},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&this.survey.isClearValueOnHiddenContainer&&!this.isLoadingFromJson))for(var e=this.questions,t=0;t<e.length;t++)this.isVisible?e[t].updateValueWithDefaults():e[t].clearValueIfInvisible()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsPageVisible=function(e){if(!this.visible)return!1;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var t=e;e+=this.beforeSetVisibleIndex(e);for(var n=this.getPanelStartIndex(e),r=n,o=0;o<this.elements.length;o++)r+=this.elements[o].setVisibleIndex(r);return this.isContinueNumbering()&&(e+=r-n),e-t},t.prototype.updateVisibleIndexes=function(){void 0!==this.lastVisibleIndex&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];n.setPropertyValue("isReadOnly",n.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.elements.length;n++)this.elements[n].updateElementCss(t)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),!0)},t.prototype.insertElementAfter=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n+1)},t.prototype.insertElementBefore=function(e,t){var n=this.elements.indexOf(t);n>=0&&this.addElement(e,n)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=-1);var r=u.QuestionFactory.Instance.createQuestion(e,t);return this.addQuestion(r,n)?r:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var t=o.Serializer.createClass("panel");return t.name=e,t},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var n=0;n<this.elements.length;n++)if(this.elements[n].removeElement(e))return!0;return!1}return this.elements.splice(t,1),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode&&!this.isLoadingFromJson){for(var n=this.elements.slice(),r=0;r<n.length;r++)n[r].runCondition(e,t);this.runConditionCore(e,t)}},t.prototype.onAnyValueChanged=function(e){for(var t=this.elements,n=0;n<t.length;n++)t[n].onAnyValueChanged(e)},t.prototype.checkBindings=function(e,t){for(var n=this.elements,r=0;r<n.length;r++)n[r].checkBindings(e,t)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,t,n){this.dragDropPanelHelper.dragDropMoveElement(e,t,n)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),this.rows.forEach((function(t){t.elements.length>1&&(e=!0)})),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){if(e.prototype.dispose.call(this),this.rows){for(var t=0;t<this.rows.length;t++)this.rows[t].dispose();this.rows.splice(0,this.rows.length)}for(t=0;t<this.elements.length;t++)this.elements[t].dispose();this.elements.splice(0,this.elements.length)},t.panelCounter=100,m([Object(o.property)({defaultValue:!0})],t.prototype,"showTitle",void 0),m([Object(o.property)({defaultValue:!0})],t.prototype,"showDescription",void 0),t}(a.SurveyElement),b=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return n.createNewArray("footerActions"),n.registerPropertyChangedHandlers(["width"],(function(){n.parent&&n.parent.elementWidthChanged(n)})),n.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],(function(){n.onIndentChanged()})),n}return g(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:e.prototype.getSurvey.call(this,t)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.onIndentChanged()},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no","")},enumerable:!1,configurable:!0}),t.prototype.setNo=function(e){this.setPropertyValue("no",i.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex()))},t.prototype.beforeSetVisibleIndex=function(e){var t=-1;return!this.showNumber||!this.isDesignMode&&this.locTitle.isEmpty||(t=e),this.setPropertyValue("visibleIndex",t),this.setNo(t),t<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"==this.showQuestionNumbers?-1:"onpanel"==this.showQuestionNumbers?0:e},t.prototype.isContinueNumbering=function(){return"off"!=this.showQuestionNumbers&&"onpanel"!=this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null==this.survey||this.isLoadingFromJson||this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.hasErrorsCore=function(t){e.prototype.hasErrorsCore.call(this,t),this.isCollapsed&&t.result&&t.fireCallback&&this.expand()},t.prototype.getRenderedTitle=function(t){if(!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.getSurvey()&&(this.innerPaddingLeft=this.getIndentSize(this.innerIndent),this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent))},t.prototype.getIndentSize=function(e){if(e<1)return"";var t=this.survey.css;return t&&t.question.indent?e*t.question.indent+"px":""},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach((function(e){(e instanceof l.Question||e instanceof t)&&e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbarCss",{get:function(){var e;return this.footerToolbarCssValue||(null===(e=this.cssClasses.panel)||void 0===e?void 0:e.footer)},set:function(e){this.footerToolbarCssValue=e},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e,t=this;if(!this.footerToolbarValue){var n=this.footerActions;this.hasEditButton&&n.push({id:"cancel-preview",title:this.survey.editText,innerCss:this.survey.cssNavigationEdit,action:function(){t.cancelPreview()}}),n=this.onGetFooterActionsCallback?this.onGetFooterActionsCallback():null===(e=this.survey)||void 0===e?void 0:e.getUpdatedPanelFooterActions(this,n),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions),this.footerToolbarValue.containerCss=this.footerToolbarCss,this.footerToolbarValue.setItems(n)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!(!this.survey||"preview"!==this.survey.state)&&1===this.depth},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssTitle(this.cssClasses.panel)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){var t=this.isDefaultV2Theme,n=(new h.CssClassBuilder).append(this.cssClasses.error.root).append(this.cssClasses.error.outsideQuestion,t).append(this.cssClasses.error.aboveQuestion,t);return n.append("panel-error-root",n.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return!this.startWithNewLine||e.prototype.needResponsiveWidth.call(this)},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return e.prototype.getHasFrameV2.call(this)&&(!this.originalPage||this.survey.isShowingPreview)},t.prototype.getIsNested=function(){return e.prototype.getIsNested.call(this)&&void 0!==this.parent},t.prototype.getCssRoot=function(t){return(new h.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.container).append(t.asPage,!!this.originalPage&&!this.survey.isShowingPreview).append(t.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t}(v);o.Serializer.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0},"visibleIf:condition","enableIf:condition","requiredIf:condition","readOnly:boolean",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]}],(function(){return new v})),o.Serializer.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},"isRequired:switch",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},"width",{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return p.settings.maxWidth}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},"showNumber:boolean",{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},"questionStartIndex",{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],(function(){return new b}),"panelbase"),u.ElementFactory.Instance.registerElement("panel",(function(e){return new b(e)}))},"./src/popup-dropdown-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupDropdownViewModel",(function(){return p}));var r,o=n("./src/jsonobject.ts"),i=n("./src/utils/popup.ts"),s=n("./src/popup-view-model.ts"),a=n("./src/utils/devices.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.targetElement=n,r.scrollEventCallBack=function(e){if(r.isOverlay&&a.IsTouch)return e.stopPropagation(),void e.preventDefault();r.hidePopup()},r.resizeEventCallback=function(){var e=window.visualViewport;document.documentElement.style.setProperty("--sv-popup-overlay-height",e.height*e.scale+"px")},r.resizeWindowCallback=function(){r.isOverlay||r.updatePosition(!0,!1)},r.clientY=0,r.isTablet=!1,r.touchStartEventCallback=function(e){r.clientY=e.touches[0].clientY},r.touchMoveEventCallback=function(e){for(var t=e.target;t!==r.container;){if("auto"===window.getComputedStyle(t).overflowY&&t.scrollHeight!==t.offsetHeight){var n=t.scrollHeight,o=t.scrollTop,i=t.clientHeight,s=r.clientY-e.changedTouches[0].clientY;if(!(s>0&&Math.abs(n-i-o)<1||s<0&&o<=0))return}t=t.parentElement}e.preventDefault()},r.model.onRecalculatePosition.add((function(e,t){r.isOverlay||r.updatePosition(t.isResetHeight)})),r}return u(t,e),t.prototype.calculateIsTablet=function(e,n){var r=Math.min(e,n);this.isTablet=r>=t.tabletSizeBreakpoint},t.prototype._updatePosition=function(){if(this.targetElement){var e=this.targetElement.getBoundingClientRect(),t=this.container.children[0];if(t){var n=t.children[0];if(n){var r=n.querySelector(".sv-popup__scrolling-content"),o=window.getComputedStyle(n),s=parseFloat(o.marginLeft)||0,a=parseFloat(o.marginRight)||0,l=n.offsetHeight-r.offsetHeight+r.scrollHeight,u=n.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=e.width+"px");var c=this.model.verticalPosition,p=this.getActualHorizontalPosition();window&&(l=Math.ceil(Math.min(l,.9*window.innerHeight,window.visualViewport.height)),c=i.PopupUtils.updateVerticalPosition(e,l,this.model.verticalPosition,this.model.showPointer,window.innerHeight)),this.popupDirection=i.PopupUtils.calculatePopupDirection(c,p);var d=i.PopupUtils.calculatePosition(e,l,u+s+a,c,p,this.showHeader,this.model.positionMode);if(window){var h=i.PopupUtils.updateVerticalDimensions(d.top,l,window.innerHeight);h&&(this.height=h.height+"px",d.top=h.top);var f=i.PopupUtils.updateHorizontalDimensions(d.left,u,window.innerWidth,p,this.model.positionMode,{left:s,right:a});f&&(this.width=f.width?f.width+"px":void 0,d.left=f.left)}this.left=d.left+"px",this.top=d.top+"px",this.showHeader&&(this.pointerTarget=i.PopupUtils.calculatePointerTarget(e,d.top,d.left,c,p,s,a)),this.pointerTarget.top+="px",this.pointerTarget.left+="px"}}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;return!!document&&"rtl"==document.defaultView.getComputedStyle(document.body).direction&&("left"===this.model.horizontalPosition?e="right":"right"===this.model.horizontalPosition&&(e="left")),e},t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--tablet",this.isTablet&&this.isOverlay).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&this.showHeader)},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.updateOnShowing=function(){var e=l.settings.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),window.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(window.visualViewport.addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(window.innerWidth,window.innerHeight),this.resizeEventCallback()),window.addEventListener("scroll",this.scrollEventCallBack)},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!window.visualViewport&&this.isOverlay&&a.IsTouch},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,t){var n=this;void 0===t&&(t=!0),e&&(this.height="auto"),t?setTimeout((function(){n._updatePosition()}),1):this._updatePosition()},t.prototype.updateOnHiding=function(){e.prototype.updateOnHiding.call(this),window.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(window.visualViewport.removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),window.removeEventListener("scroll",this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},t.tabletSizeBreakpoint=600,c([Object(o.property)()],t.prototype,"isTablet",void 0),c([Object(o.property)({defaultValue:"left"})],t.prototype,"popupDirection",void 0),c([Object(o.property)({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(s.PopupBaseViewModel)},"./src/popup-modal-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupModalViewModel",(function(){return s}));var r,o=n("./src/popup-view-model.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var t=this;e.prototype.createFooterActionBar.call(this),this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){t.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(t){"Escape"!==t.key&&27!==t.keyCode||this.model.onCancel(),e.prototype.onKeyDown.call(this,t)},t}(o.PopupBaseViewModel)},"./src/popup-survey.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupSurveyModel",(function(){return l})),n.d(t,"SurveyWindowModel",(function(){return u}));var r,o=n("./src/base.ts"),i=n("./src/survey.ts"),s=n("./src/jsonobject.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.closeOnCompleteTimeout=0,r.surveyValue=n||r.createSurvey(t),r.surveyValue.showTitle=!1,"undefined"!=typeof document&&(r.windowElement=document.createElement("div")),r.survey.onComplete.add((function(e,t){r.onSurveyComplete()})),r.registerPropertyChangedHandlers(["isShowing"],(function(){r.showingChangedCallback&&r.showingChangedCallback()})),r.registerPropertyChangedHandlers(["isExpanded"],(function(){r.onExpandedChanged()})),r.width=new o.ComputedUpdater((function(){return r.survey.width})),r.width=r.survey.width,r.updateCss(),r.onCreating(),r}return a(t,e),t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.setPropertyValue("isExpanded",e)},enumerable:!1,configurable:!0}),t.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.isExpanded=!0},t.prototype.collapse=function(){this.isExpanded=!1},t.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderTitle",{get:function(){return this.getPropertyValue("cssHeaderTitle","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e+="px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(this.css&&this.css.window){var e=this.css.window;this.setPropertyValue("cssRoot",e.root),this.setPropertyValue("cssBody",e.body);var t=e.header;t&&(this.setPropertyValue("cssHeaderRoot",t.root),this.setPropertyValue("cssHeaderTitle",t.title),this.updateCssButton())}},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new i.SurveyModel(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.hide();else{var e=this,t=null;t="undefined"!=typeof window?window.setInterval((function(){e.hide(),"undefined"!=typeof window&&window.clearInterval(t)}),1e3*this.closeOnCompleteTimeout):0}},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(s.property)()],t.prototype,"width",void 0),t}(o.Base),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(l)},"./src/popup-utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"createPopupModalViewModel",(function(){return s})),n.d(t,"createPopupViewModel",(function(){return a}));var r=n("./src/popup.ts"),o=n("./src/popup-dropdown-view-model.ts"),i=n("./src/popup-modal-view-model.ts");function s(e){var t=new r.PopupModel(e.componentName,e.data,"top","left",!1,!0,e.onCancel,e.onApply,e.onHide,e.onShow,e.cssClass,e.title);t.displayMode=e.displayMode||"popup";var n=new i.PopupModalViewModel(t);return n.initializePopupContainer(),n}function a(e,t){return e.isModal?new i.PopupModalViewModel(e):new o.PopupDropdownViewModel(e,t)}},"./src/popup-view-model.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"FOCUS_INPUT_SELECTOR",(function(){return d})),n.d(t,"PopupBaseViewModel",(function(){return h}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/actions/container.ts"),l=n("./src/settings.ts"),u=n("./src/utils/utils.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},d='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',h=function(e){function t(t){var n=e.call(this)||this;return n.model=t,n}return c(t,e),t.prototype.getLocale=function(){return this.locale?this.locale:e.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return(new s.CssClassBuilder).append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new a.ActionContainer,this.footerToolbar.updateCallback=function(t){e.footerToolbarValue.actions.forEach((function(e){return e.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}}))};var t=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];t=this.model.updateFooterActions(t),this.footerToolbarValue.setItems(t)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){var e="inherit";this.top=e,this.left=e,this.height=e,this.width=e,this.minWidth=e},t.prototype.setupModel=function(e){var t=this;this.model&&this.model.unregisterPropertyChangedHandlers(["isVisible"],"PopupBaseViewModel"),this._model=e;var n=function(){e.isVisible||t.updateOnHiding(),t.isVisible=e.isVisible};e.registerPropertyChangedHandlers(["isVisible"],n,"PopupBaseViewModel"),n()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return"overlay"===this.model.displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){"Tab"===e.key||9===e.keyCode?this.trapFocus(e):"Escape"!==e.key&&27!==e.keyCode||this.hidePopup()},t.prototype.trapFocus=function(e){var t=this.container.querySelectorAll(d),n=t[0],r=t[t.length-1];e.shiftKey?l.settings.environment.root.activeElement===n&&(r.focus(),e.preventDefault()):l.settings.environment.root.activeElement===r&&(n.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent&&this.focusFirstInput()},t.prototype.updateOnShowing=function(){this.prevActiveElement=l.settings.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus()},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus()},t.prototype.focusFirstInput=function(){var e=this;setTimeout((function(){if(e.container){var t=e.container.querySelector(e.model.focusFirstInputSelector||d);t?t.focus():e.container.children[0].focus()}}),100)},t.prototype.clickOutside=function(){this.hidePopup()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.unmountPopupContainer(),this.container=void 0,this.footerToolbarValue&&this.footerToolbarValue.dispose()},t.prototype.initializePopupContainer=function(){if(!this.createdContainer){var e=document.createElement("div");this.container=this.createdContainer=e}Object(u.getElement)(l.settings.environment.popupMountContainer).appendChild(this.container)},t.prototype.unmountPopupContainer=function(){this.createdContainer.remove()},p([Object(i.property)({defaultValue:"0px"})],t.prototype,"top",void 0),p([Object(i.property)({defaultValue:"0px"})],t.prototype,"left",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"height",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"width",void 0),p([Object(i.property)({defaultValue:"auto"})],t.prototype,"minWidth",void 0),p([Object(i.property)({defaultValue:!1})],t.prototype,"isVisible",void 0),p([Object(i.property)()],t.prototype,"locale",void 0),t}(o.Base)},"./src/popup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupModel",(function(){return l})),n.d(t,"createDialogOptions",(function(){return u}));var r,o=n("./src/base.ts"),i=n("./src/jsonobject.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},l=function(e){function t(t,n,r,o,i,s,a,l,u,c,p,d){void 0===r&&(r="bottom"),void 0===o&&(o="left"),void 0===i&&(i=!0),void 0===s&&(s=!1),void 0===a&&(a=function(){}),void 0===l&&(l=function(){return!0}),void 0===u&&(u=function(){}),void 0===c&&(c=function(){}),void 0===p&&(p=""),void 0===d&&(d="");var h=e.call(this)||this;return h.focusFirstInputSelector="",h.onVisibilityChanged=h.addEvent(),h.onFooterActionsCreated=h.addEvent(),h.onRecalculatePosition=h.addEvent(),h.contentComponentName=t,h.contentComponentData=n,h.verticalPosition=r,h.horizontalPosition=o,h.showPointer=i,h.isModal=s,h.onCancel=a,h.onApply=l,h.onHide=u,h.onShow=c,h.cssClass=p,h.title=d,h}return s(t,e),t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}),this.refreshInnerModel(),this.isVisible?this.onShow():this.onHide())},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var t={actions:e};return this.onFooterActionsCreated.fire(this,t),t.actions},a([Object(i.property)()],t.prototype,"contentComponentName",void 0),a([Object(i.property)()],t.prototype,"contentComponentData",void 0),a([Object(i.property)({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),a([Object(i.property)({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),a([Object(i.property)({defaultValue:!1})],t.prototype,"showPointer",void 0),a([Object(i.property)({defaultValue:!1})],t.prototype,"isModal",void 0),a([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onCancel",void 0),a([Object(i.property)({defaultValue:function(){return!0}})],t.prototype,"onApply",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onHide",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onShow",void 0),a([Object(i.property)({defaultValue:""})],t.prototype,"cssClass",void 0),a([Object(i.property)({defaultValue:""})],t.prototype,"title",void 0),a([Object(i.property)({defaultValue:"popup"})],t.prototype,"displayMode",void 0),a([Object(i.property)({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(o.Base);function u(e,t,n,r,o,i,s,a,l){return void 0===o&&(o=function(){}),void 0===i&&(i=function(){}),void 0===l&&(l="popup"),{componentName:e,data:t,onApply:n,onCancel:r,onHide:o,onShow:i,cssClass:s,title:a,displayMode:l}}},"./src/question.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Question",(function(){return v}));var r,o=n("./src/helpers.ts"),i=n("./src/jsonobject.ts"),s=n("./src/survey-element.ts"),a=n("./src/error.ts"),l=n("./src/validator.ts"),u=n("./src/localizablestring.ts"),c=n("./src/conditions.ts"),p=n("./src/questionCustomWidgets.ts"),d=n("./src/settings.ts"),h=n("./src/rendererFactory.ts"),f=n("./src/utils/cssClassBuilder.ts"),g=n("./src/utils/utils.ts"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},v=function(e){function t(n){var r=e.call(this,n)||this;return r.customWidgetData={isNeedRender:!0},r.isReadyValue=!0,r.onReadyChanged=r.addEvent(),r.isRunningValidatorsValue=!1,r.isValueChangedInSurvey=!1,r.allowNotifyValueChanged=!0,r.id=t.getQuestionId(),r.onCreating(),r.createNewArray("validators",(function(e){e.errorOwner=r})),r.addExpressionProperty("visibleIf",(function(e,t){r.visible=!0===t}),(function(e){return!r.areInvisibleElementsShowing})),r.addExpressionProperty("enableIf",(function(e,t){r.readOnly=!1===t})),r.addExpressionProperty("requiredIf",(function(e,t){r.isRequired=!0===t})),r.createLocalizableString("commentText",r,!0,"otherItemText"),r.locTitle.onGetDefaultTextCallback=function(){return r.name},r.locTitle.storeDefaultText=!0,r.createLocalizableString("requiredErrorText",r),r.registerPropertyChangedHandlers(["width"],(function(){r.updateQuestionCss(),r.parent&&r.parent.elementWidthChanged(r)})),r.registerPropertyChangedHandlers(["isRequired"],(function(){!r.isRequired&&r.errors.length>0&&r.validate(),r.locTitle.strChanged(),r.clearCssClasses()})),r.registerPropertyChangedHandlers(["indent","rightIndent"],(function(){r.onIndentChanged()})),r.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],(function(){r.initCommentFromSurvey()})),r.registerFunctionOnPropertiesValueChanged(["no","readOnly"],(function(){r.updateQuestionCss()})),r.registerPropertyChangedHandlers(["isMobile"],(function(){r.onMobileChanged()})),r}return m(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===d.settings.readOnlyCommentRenderMode},t.prototype.setIsMobile=function(e){},t.prototype.createLocTitleProperty=function(){var t=this,n=e.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(e){return e||(e=t.name),t.survey?t.survey.getUpdatedQuestionTitle(t,e):e},this.locProcessedTitle=new u.LocalizableString(this,!0),this.locProcessedTitle.sharedData=n,n},t.prototype.getSurvey=function(t){return void 0===t&&(t=!1),t?this.parent?this.parent.getSurvey(t):null:this.onGetSurvey?this.onGetSurvey():e.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.errors.length>0?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(!!this.areInvisibleElementsShowing||this.isVisibleCore())},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:e.prototype.getProgressInfo.call(this)},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t),this.survey&&(this.survey.questionCreated(this),!0!==n&&this.runConditions())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.delete(),this.setPropertyValue("parent",e),this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),t&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return"hidden"===this.titleLocation},t.prototype.notifySurveyVisibilityChanged=function(){this.survey&&!this.isLoadingFromJson&&(this.survey.questionVisibilityChanged(this,this.isVisible),this.isClearValueOnHidden&&(this.visible||this.clearValueIfInvisible(),this.isVisible&&this.updateValueWithDefaults()))},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return d.settings.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return e.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var t=this;if(e.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout((function(){t.focus()}),1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=p.CustomWidgetCollection.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){if(this.autoGrowComment&&Array.isArray(this.commentElements))for(var e=0;e<this.commentElements.length;e++){var t=this.commentElements[e];t&&Object(g.increaseHeightByContent)(t)}},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var t=this;this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach((function(e){var n=d.settings.environment.root.getElementById(e);n&&t.commentElements.push(n)})),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locProcessedTitle.textOrHtml||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),this.survey&&this.survey.updateQuestionCssClasses(this,t),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(t),t},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(t){return(new f.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(this.isFlowLayout&&!this.isDesignMode?t.flowRoot:t.mainRoot).append(t.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(t.hasError,this.errors.length>0).append(t.small,!this.width).append(t.answered,this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return(new f.CssClassBuilder).append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return(new f.CssClassBuilder).append(e.content).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(t){return(new f.CssClassBuilder).append(e.prototype.getCssTitle.call(this,t)).append(t.titleOnAnswer,!this.containsErrors&&this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return(new f.CssClassBuilder).append(e.description,this.hasDescriptionUnderTitle).append(e.descriptionUnderInput,this.hasDescriptionUnderInput).toString()},t.prototype.getIsErrorsModeTooltip=function(){return e.prototype.getIsErrorsModeTooltip.call(this)&&!this.customWidget},t.prototype.showErrorOnCore=function(e){return!this.isErrorsModeTooltip&&!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.errorLocation===e},Object.defineProperty(t.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsTooltipErrorSupportedByParent=function(){return this.parentQuestion?this.parentQuestion.getIsTooltipErrorInsideSupported():e.prototype.getIsTooltipErrorSupportedByParent.call(this)},Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme&&!(this.hasParent&&this.getIsTooltipErrorSupportedByParent())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"top"===this.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"bottom"===this.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return(new f.CssClassBuilder).append(e.error.root).append(e.error.outsideQuestion,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.error.belowQuestion,this.showErrorsBelowQuestion).append(e.error.aboveQuestion,this.showErrorsAboveQuestion).append(e.error.tooltip,this.isErrorsModeTooltip).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(this.cssRoot).append(this.cssClasses.disabled,this.isReadOnly).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),t&&this.updateQuestionCss(!0),this.onIndentChanged()},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||!0!==e&&!this.cssClassesValue||this.updateElementCssCore(this.cssClasses)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){var n=t[this.getCssType()],r=(new f.CssClassBuilder).append(e.title).append(t.question.titleRequired,this.isRequired);e.title=r.toString();var o=(new f.CssClassBuilder).append(e.root).append(n,this.isRequired&&!!t.question.required);if(null==n)e.root=o.toString();else if("string"==typeof n||n instanceof String)e.root=o.append(n.toString()).toString();else for(var i in e.root=o.toString(),n)e[i]=n[i]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e){if(void 0===e&&(e=!1),!this.isDesignMode){this.survey&&(this.expandAllParents(this),this.survey.scrollElementToTop(this,this,null,this.id));var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();s.SurveyElement.FocusElement(t)&&this.fireCallback(this.focusCallback)}},t.prototype.expandAllParents=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParents(e.parent),this.expandAllParents(e.parentQuestion))},t.prototype.focusIn=function(){this.survey&&this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(n)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[n]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){this.supportOther()&&this.showOtherItem!=e&&(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.parentQuestion&&this.parentQuestion.isReadOnly,n=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||n||t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){if(void 0!==this.forceIsInputReadOnly)return this.forceIsInputReadOnly;var e=d.settings.supportCreatorV2&&this.isDesignMode;return this.isReadOnly||e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),e.prototype.onReadOnlyChanged.call(this)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,t){this.isDesignMode||(t||(t={}),t.question=this,this.runConditionCore(e,t),this.isValueChangedDirectly||(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,t)))},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){if(!this.hasTitle||this.hideNumber)return"";var e=o.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedQuestionNo(this,e)),e},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey(),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.onIndentChanged(),this.updateQuestionCss(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());o.Helpers.isValueEmpty(e)&&this.isLoadingFromJson||this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(this.survey&&e)return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.survey&&this.survey.allowResizeComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValue("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueToDataCallback?this.valueToDataCallback(this.value):this.value},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(){void 0!==this.value&&(this.value=void 0),this.comment&&(this.comment=void 0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:o.Helpers.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return!!e&&(Array.isArray(e)?e.length>0&&this.isValueSurveyElement(e[0]):!!e.getType&&!!e.onPropertyChanged)},t.prototype.canClearValueAsInvisible=function(){return!(this.isVisible&&this.isParentVisible||this.page&&this.page.isStartPage||this.survey&&this.valueName&&this.survey.hasVisibleQuestionByValueName(this.valueName))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){void 0===e&&(e="onHidden"),"none"!==this.clearIfInvisible&&("onHidden"===e&&"onComplete"===this.clearIfInvisible||("none"!==e||"default"!==this.clearIfInvisible&&"none"!==this.clearIfInvisible)&&this.clearValueIfInvisibleCore())},t.prototype.clearValueIfInvisibleCore=function(){this.canClearValueAsInvisible()&&this.clearValue()},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,t){void 0===t&&(t=void 0);var n=this.calcDisplayValue(e,t);return this.survey&&(n=this.survey.getQuestionDisplayValue(this,n)),this.displayValueCallback?this.displayValueCallback(n):n},t.prototype.calcDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var n=this.customWidget.getDisplayValue(this,t);if(n)return n}return t=null==t?this.createValueCopy():t,this.isValueEmpty(t)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.isValueExpression(e)?this.defaultValueExpression=e.substring(1):(this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var n={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(n.questionType=this.getType()),(e.calculations||[]).forEach((function(e){n[e.propertyName]=t[e.propertyName]})),this.hasComment&&(n.isNode=!0,n.data=[{name:0,isComment:!0,title:"Comment",value:d.settings.commentSuffix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),n}},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=this.isTwoValueEquals(this.value,this.correctAnswer,!d.settings.comparator.caseSensitive,!0),t={result:e,correctAnswer:e?1:0};return this.survey&&this.survey.onCorrectQuestionAnswer(this,t),t.result},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||(this.isDesignMode||this.isEmpty())&&(this.isEmpty()&&this.isDefaultValueEmpty()||this.isClearValueOnHidden&&!this.isVisible||this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue())},Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){return"none"!==this.clearIfInvisible&&"onComplete"!==this.clearIfInvisible&&("onHidden"===this.clearIfInvisible||!!this.survey&&this.survey.isClearValueOnHidden)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue)},t.prototype.getDefaultRunner=function(e,t){return!e&&t&&(e=new c.ExpressionRunner(t)),e&&(e.expression=t),e},t.prototype.setDefaultValue=function(){var e=this;this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),(function(t){o.Helpers.isTwoValueEquals(e.value,t)||(e.value=t)}))},t.prototype.isValueExpression=function(e){return!!e&&"string"==typeof e&&e.length>0&&"="==e[0]},t.prototype.setValueAndRunExpression=function(e,t,n,r,o){var i=this;void 0===r&&(r=null),void 0===o&&(o=null);var s=function(e){i.runExpressionSetValue(e,n)};this.runDefaultValueExpression(e,r,o,s)||s(t)},t.prototype.convertFuncValuetoQuestionValue=function(e){return o.Helpers.convertValToQuestionVal(e)},t.prototype.runExpressionSetValue=function(e,t){t(this.convertFuncValuetoQuestionValue(e))},t.prototype.runDefaultValueExpression=function(e,t,n,r){var i=this;return void 0===t&&(t=null),void 0===n&&(n=null),!(!e||!this.data||(r||(r=function(e){i.runExpressionSetValue(e,(function(e){o.Helpers.isTwoValueEquals(i.value,e)||(i.value=e)}))}),t||(t=this.data.getFilteredValues()),n||(n=this.data.getFilteredProperties()),e&&e.canRun&&(e.onRunComplete=function(e){null==e&&(e=i.defaultValue),i.isChangingViaDefaultValue=!0,r(e),i.isChangingViaDefaultValue=!1},e.run(t,n)),0))},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var t=e.toString().trim();t!==e&&(e=t)===this.comment&&this.setPropertyValueDirectly("comment",e)}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return void 0===e&&(e=!1),(new f.CssClassBuilder).append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],t=this.getType();t;){var n=d.settings.supportedValidators[t];if(n)for(var r=n.length-1;r>=0;r--)e.splice(0,0,n[r]);t=i.Serializer.findClass(t).parentName}return e},t.prototype.addSupportedValidators=function(e,t){},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getValueName(),text:this.processedTitle,question:this})},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var n=(new i.JsonObject).toJsonObject(this);return n.type=this.getType(),n},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var n=this.errors.length>0,r=this.checkForErrors(!!t&&!0===t.isOnValueChanged);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,r),this.errors=r),this.updateContainsErrors(),n!=r.length>0&&this.updateQuestionCss(),this.isCollapsed&&t&&e&&r.length>0&&this.expand(),r.length>0},t.prototype.validate=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!this.hasErrors(e,t)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var t;t="string"==typeof e||e instanceof String?new a.CustomError(e,this.survey):e,this.errors.push(t)}},t.prototype.removeError=function(e){var t=this.errors,n=t.indexOf(e);-1!==n&&t.splice(n,1)},t.prototype.checkForErrors=function(e){var t=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(t,e),t},t.prototype.canCollectErrors=function(){return!this.isReadOnly},t.prototype.collectErrors=function(e,t){if(this.onCheckForErrors(e,t),!(e.length>0)&&this.canRunValidators(t)){var n=this.runValidators();if(n.length>0){e.length=0;for(var r=0;r<n.length;r++)e.push(n[r])}if(this.survey&&0==e.length){var o=this.fireSurveyValidation();o&&e.push(o)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t){var n=this;if(!t&&this.hasRequiredError()){var r=new a.AnswerRequiredError(this.requiredErrorText,this);r.onUpdateErrorTextCallback=function(e){e.text=n.requiredErrorText},e.push(r)}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new l.ValidatorRunner,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){var t=this.isAnswered;this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isAnswered!=t&&this.updateQuestionCss()},t.prototype.isTextValue=function(){return!1},Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.isSurveyInputTextUpdate&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged))},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.setNewComment=function(e){this.questionComment!==e&&(this.questionComment=e,null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.isSurveyInputTextUpdate&&"text"))},t.prototype.getValidName=function(e){return b(e)},t.prototype.updateValueFromSurvey=function(e){e=this.getUnbindValue(e),this.valueFromDataCallback&&(e=this.valueFromDataCallback(e)),this.setQuestionValue(this.valueFromData(e)),this.updateIsAnswered()},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(){this.isValueChangedDirectly=!0},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0);var n=this.isTwoValueEquals(this.questionValue,e);n||this.isChangingViaDefaultValue||this.setValueChangedDirectly(),this.questionValue=e,n||this.onChangeQuestionValue(e),!n&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!d.settings.setQuestionVisibleIndexForHiddenTitle||this.hideNumber&&!d.settings.setQuestionVisibleIndexForHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.checkBindings=function(e,t){if(!this.bindings.isEmpty()&&this.data)for(var n=this.bindings.getPropertiesByValueName(e),r=0;r<n.length;r++){var i=n[r];this.isValueEmpty(t)&&o.Helpers.isNumber(this[i])&&(t=0),this[i]=t}},t.prototype.getComponentName=function(){return h.RendererFactory.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||"default"===this.renderAs||"default"===this.getComponentName()},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var t=this;this.needResponsiveness()&&(this.isCollapsed?this.registerPropertyChangedHandlers(["state"],(function(){t.isExpanded&&(t.initResponsiveness(e),t.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))}),"for-responsiveness"):this.initResponsiveness(e))},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.initResponsiveness=function(e){var t=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var n=this.getObservedElementSelector();if(!n)return;if(!e.querySelector(n))return;var r=!1,o=void 0;this.resizeObserver=new ResizeObserver((function(){var i=e.querySelector(n);!o&&t.isDefaultRendering()&&(o=i.scrollWidth),r=!(r||!Object(g.isContainerVisible)(i))&&t.processResponsiveness(o,Object(g.getElementWidth)(i))})),this.onMobileChangedCallback=function(){setTimeout((function(){var r=e.querySelector(n);t.processResponsiveness(o,Object(g.getElementWidth)(r))}),0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.processResponsiveness=function(e,t){if(t=Math.round(t),Math.abs(e-t)>2){var n=this.renderAs;return this.renderAs=e>t?this.getCompactRenderAs():this.getDesktopRenderAs(),n!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.destroyResizeObserver()},t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,y([Object(i.property)({defaultValue:!1,onSet:function(e,t){t.setIsMobile(e)}})],t.prototype,"isMobile",void 0),y([Object(i.property)()],t.prototype,"forceIsInputReadOnly",void 0),y([Object(i.property)({localizable:!0})],t.prototype,"commentPlaceholder",void 0),y([Object(i.property)()],t.prototype,"renderAs",void 0),y([Object(i.property)({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(s.SurveyElement);function b(e){if(!e)return e;for(e=e.trim().replace(/[\{\}]+/g,"");e&&e[0]===d.settings.expressionDisableConversionChar;)e=e.substring(1);return e}i.Serializer.addClass("question",[{name:"!name",onSettingValue:function(e,t){return b(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return d.settings.minWidth}},{name:"maxWidth",defaultFunc:function(){return d.settings.maxWidth}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map((function(e){return{value:e.name,text:e.title}})):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(t&&"off"===t.showQuestionNumbers)return!1;var n=e?e.survey:null;return!n||"off"!==n.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},{name:"valueName",onSettingValue:function(e,t){return b(t)}},"enableIf:condition","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden"]},"isRequired:switch","requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:switch",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(e){return e.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(e){return e.showCommentArea},serializationProperty:"locCommentText",layout:"row"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment}}]),i.Serializer.addAlterNativeClassName("question","questionbase")},"./src/questionCustomWidgets.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCustomWidget",(function(){return o})),n.d(t,"CustomWidgetCollection",(function(){return i}));var r=n("./src/base.ts"),o=function(){function e(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var n=this;this.widgetJson.afterRender&&(e.localeChangedCallback=function(){n.widgetJson.willUnmount&&n.widgetJson.willUnmount(e,t),n.widgetJson.afterRender(e,t)},this.widgetJson.afterRender(e,t))},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return void 0===t&&(t=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e,t):null},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},Object.defineProperty(e.prototype,"canShowInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox&&"customtype"==i.Instance.getActivatedBy(this.name)&&(!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox},set:function(e){this.widgetJson.showInToolbox=e},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),e}(),i=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new r.Event}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var n=e.name;n||(n="widget_"+this.widgets.length+1);var r=new o(n,e);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=t,r.activatedByChanged(t),this.onCustomWidgetAdded.fire(r,null),r},e.prototype.getActivatedBy=function(e){return this.widgetsActivatedBy[e]||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var n=this.getCustomWidgetByName(e);n&&(this.widgetsActivatedBy[e]=t,n.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}()},"./src/question_baseselect.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionSelectBase",(function(){return v})),n.d(t,"QuestionCheckboxBase",(function(){return b}));var r,o=n("./src/jsonobject.ts"),i=n("./src/survey.ts"),s=n("./src/question.ts"),a=n("./src/itemvalue.ts"),l=n("./src/surveyStrings.ts"),u=n("./src/error.ts"),c=n("./src/choicesRestful.ts"),p=n("./src/conditions.ts"),d=n("./src/helpers.ts"),h=n("./src/settings.ts"),f=n("./src/utils/cssClassBuilder.ts"),g=n("./src/utils/utils.ts"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},v=function(e){function t(t){var n=e.call(this,t)||this;n.otherItemValue=new a.ItemValue("other"),n.dependedQuestions=[],n.noneItemValue=new a.ItemValue(h.settings.noneItemValue),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1,n.prevIsOtherSelected=!1;var r=n.createLocalizableString("noneText",n.noneItemValue,!0,"noneItemText");n.noneItemValue.locOwner=n,n.noneItemValue.setLocText(r),n.createItemValues("choices"),n.registerPropertyChangedHandlers(["choices"],(function(){n.filterItems()||n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","showNoneItem"],(function(){n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],(function(){n.onVisibleChanged()})),n.createNewArray("visibleChoices"),n.setNewRestfulProperty();var o=n.createLocalizableString("otherText",n.otherItemValue,!0,"otherItemText");return n.createLocalizableString("otherErrorText",n,!0,"otherRequiredError"),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(o),n.choicesByUrl.createItemValue=function(e){return n.createItemValue(e)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(e){n.onLoadChoicesFromUrl(e)},n.choicesByUrl.updateResultCallback=function(e,t){return n.survey?n.survey.updateChoicesFromServer(n,e,t):e},n}return m(t,e),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0;t<this.dependedQuestions.length;t++)this.dependedQuestions[t].choicesFromQuestion="";this.removeFromDependedQuestion(this.getQuestionWithChoices())},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,t){var n=o.Serializer.createClass(this.getItemValueType(),e);return t&&(n.text=t),n},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),"none"!==this.choicesOrder&&this.updateVisibleChoices()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(a.ItemValue.locStrsChanged(this.choicesFromUrl),a.ItemValue.locStrsChanged(this.visibleChoices))},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(e){this.showCommentArea?this.setOtherValueInternally(e):this.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherValueCore",{get:function(){return this.getPropertyValue("otherValue")},set:function(e){this.setPropertyValue("otherValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoneSelected",{get:function(){return this.hasNone&&this.getIsItemValue(this.renderedValue,this.noneItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNoneItem",{get:function(){return this.getPropertyValue("showNoneItem")},set:function(e){this.setPropertyValue("showNoneItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.showNoneItem},set:function(e){this.showNoneItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText")},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.isUsingCarrayForward||(this.runItemsEnableCondition(t,n),this.runItemsCondition(t,n))},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0,e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||null==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var n=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),n&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),n},t.prototype.runItemsEnableCondition=function(e,t){var n=this;this.setConditionalEnableChoicesRunner(),a.ItemValue.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t,(function(e,t){return t&&n.onEnableItemCallBack(e)}))&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var t=a.ItemValue.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(t),t||e||this.updateSelectedItemValues(),t||e||(this.isOtherSelected?this.otherItem:this.createItemValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.ConditionRunner(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p.ConditionRunner(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisisbility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(t,n){return e.survey.getChoiceItemVisibility(e,t,n)}:null},t.prototype.runConditionsForItems=function(e,t){this.filteredChoicesValue=[];var n=this.changeItemVisisbility();return a.ItemValue.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t,!this.survey||!this.survey.areInvisibleElementsShowing,(function(e,t){return n?n(e,t):t}))},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,t){return e===t.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new c.ChoicesRestful},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?e.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(t){this.showCommentArea?e.prototype.setQuestionComment.call(this,t):(this.onUpdateCommentOnAutoOtherMode(t),this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.setOtherValueInternally(t),this.updateChoicesDependedQuestions())},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var t=this.isOtherSelected;(!t&&e||t&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){this.isSettingComment||e==this.otherValueCore||(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.prevOtherValue=void 0},t.prototype.updateCommentFromSurvey=function(t){e.prototype.updateCommentFromSurvey.call(this,t),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.setPropertyValue("renderedValue",e),e=this.rendredValueToData(e),this.isTwoValueEquals(e,this.value)||(this.value=e)},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(t,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=!0),!this.isLoadingFromJson&&!this.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),this.updateChoicesDependedQuestions(),!this.hasComment&&r)){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var i=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=i}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.otherValue="")}},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var n=a.ItemValue.getItemByValue(this.activeChoices,t);return n?n.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!!e&&!!(e=e.trim())&&this.hasUnknownValue(e,!0,!1)},t.prototype.updateSelectedItemValues=function(){this.waitingGetChoiceDisplayValueResponse||(this.getIsMultipleValue()?this.updateMultipleSelectedItemValues():this.updateSingleSelectedItemValues())},t.prototype.updateSingleSelectedItemValues=function(){var e=this;!this.survey||this.isEmpty()||a.ItemValue.getItemByValue(this.choices,this.value)||(this.waitingGetChoiceDisplayValueResponse=!0,this.survey.getChoiceDisplayValue({question:this,values:[this.value],setItems:function(t){e.waitingGetChoiceDisplayValueResponse=!1,t&&t.length&&(e.selectedItemValues=e.createItemValue(e.value,t[0]))}}))},t.prototype.updateMultipleSelectedItemValues=function(){var e=this,t=this.value,n=t.some((function(t){return!a.ItemValue.getItemByValue(e.choices,t)}));this.survey&&!this.isEmpty()&&n&&(this.waitingGetChoiceDisplayValueResponse=!0,this.survey.getChoiceDisplayValue({question:this,values:t,setItems:function(t){e.waitingGetChoiceDisplayValueResponse=!1,t&&t.length&&(e.selectedItemValues=t.map((function(t,n){return e.createItemValue(e.value[n],t)})))}}))},t.prototype.hasUnknownValue=function(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!1),!r&&this.isValueEmpty(e))return!1;if(t&&e==this.otherItem.value)return!1;if(this.hasNone&&e==this.noneItem.value)return!1;var o=n?this.getFilteredChoices():this.activeChoices;return null==a.ItemValue.getItemByValue(o,e)},t.prototype.isValueDisabled=function(e){var t=a.ItemValue.getItemByValue(this.getFilteredChoices(),e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var t=this.getQuestionWithChoices();t&&t.removeFromDependedQuestion(this),this.setPropertyValue("choicesFromQuestion",e)},enumerable:!1,configurable:!0}),t.prototype.addIntoDependedQuestion=function(e){!e||e.dependedQuestions.indexOf(this)>-1||e.dependedQuestions.push(this)},t.prototype.removeFromDependedQuestion=function(e){if(e){var t=e.dependedQuestions.indexOf(this);t>-1&&e.dependedQuestions.splice(t,1)}},Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++)t[n].isEnabled&&e.push(t[n]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson){var e=new Array,t=this.calcVisibleChoices();t||(t=[]);for(var n=0;n<t.length;n++)e.push(t[n]);this.setPropertyValue("visibleChoices",e)}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!this.isAddDefaultItems&&!this.hasNone&&!this.hasOther&&"none"==this.choicesOrder},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,t){t&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem")),this.canShowOptionItem(this.newItemValue,t,!1)&&e.push(this.newItemValue)),this.supportNone()&&this.canShowOptionItem(this.noneItem,t,this.hasNone)&&e.push(this.noneItem),this.supportOther()&&this.canShowOptionItem(this.otherItem,t,this.hasOther)&&e.push(this.otherItem)},t.prototype.canShowOptionItem=function(e,t,n){var r=t&&(!this.canShowOptionItemCallback||this.canShowOptionItemCallback(e))||n;return this.canSurveyChangeItemVisibility()?this.changeItemVisisbility()(e,r):r},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.hasNone:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return h.settings.supportCreatorV2&&h.settings.showDefaultItemsInCreatorV2&&this.isDesignMode&&!this.customWidget&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var r=e.prototype.getPlainData.call(this,t);if(r){var o=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(o.map((function(e,r){var o=a.ItemValue.getItemByValue(n.visibleChoices,e),i={name:r,title:"Choice",value:e,displayValue:n.getChoicesDisplayValue(n.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return o&&(t.calculations||[]).forEach((function(e){i[e.propertyName]=o[e.propertyName]})),n.isOtherSelected&&n.otherItemValue===o&&(i.isOther=!0,i.displayValue=n.otherValue),i})))}return r},t.prototype.getDisplayValueCore=function(e,t){return this.getChoicesDisplayValue(this.visibleChoices,t)},t.prototype.getDisplayValueEmpty=function(){return a.ItemValue.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var n=a.ItemValue.getTextOrHtmlByValue(e,t);return""==n&&t?t:n},t.prototype.getDisplayArrayValue=function(e,t,n){for(var r=this.visibleChoices,o=[],i=0;i<t.length;i++){var s=n?n(i):t[i],a=this.getChoicesDisplayValue(r,s);a&&o.push(a)}return o.join(", ")},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getQuestionWithChoices();return this.isUsingCarrayForward=!!e,this.isUsingCarrayForward?(this.addIntoDependedQuestion(e),this.getChoicesFromQuestion(e)):this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),t.prototype.getQuestionWithChoices=function(){if(!this.choicesFromQuestion||!this.data)return null;var e=this.data.findQuestionByName(this.choicesFromQuestion);return e&&e.visibleChoices&&Array.isArray(e.dependedQuestions)&&e!==this?e:null},t.prototype.getChoicesFromQuestion=function(e){for(var t=[],n="selected"==this.choicesFromQuestionMode||"unselected"!=this.choicesFromQuestionMode&&void 0,r=e.visibleChoices,o=0;o<r.length;o++)if(!this.isBuiltInChoice(r[o],e))if(void 0!==n){var i=e.isItemSelected(r[o]);(i&&n||!i&&!n)&&t.push(this.copyChoiceItem(r[o]))}else t.push(this.copyChoiceItem(r[o]));return"selected"===this.choicesFromQuestionMode&&e.isOtherSelected&&e.comment&&t.push(this.createItemValue(e.otherItem.value,e.comment)),t},t.prototype.copyChoiceItem=function(e){var t=this.createItemValue(e.value);return t.setData(e),t},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;e&&0!=e.length||(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var t=0;t<e.length;t++)if(!this.isBuiltInChoice(e[t],this))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isHeadChoice=function(e,t){return!1},t.prototype.isFootChoice=function(e,t){return e===t.noneItem||e===t.otherItem||e===t.newItemValue},t.prototype.isBuiltInChoice=function(e,t){return this.isHeadChoice(e,t)||this.isFootChoice(e,t)},t.prototype.getChoices=function(){return this.choices},t.prototype.supportOther=function(){return this.isSupportProperty("showOtherItem")},t.prototype.supportNone=function(){return this.isSupportProperty("showNoneItem")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(t,n){var r=this;if(e.prototype.onCheckForErrors.call(this,t,n),this.hasOther&&this.isOtherSelected&&!this.otherValue){var o=new u.OtherEmptyError(this.otherErrorText,this);o.onUpdateErrorTextCallback=function(e){e.text=r.otherErrorText},t.push(o)}},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(t){e.prototype.setSurveyCore.call(this,t),t&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&!this.showCommentArea&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||!this.choicesByUrl.isEmpty&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),e.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),t!=this.getValueName()&&this.runChoicesByUrl(),t&&t==this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(t){var n="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(t)&&!this.getHasOther(t)?(n=this.getCommentFromValue(t),t=this.setOtherValueIntoValue(t)):n=this.data.getComment(this.getValueName())),e.prototype.updateValueFromSurvey.call(this,t),n&&this.setNewComment(n)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.onOtherValueInput=function(e){this.isInputTextUpdate?e.target&&(this.otherValue=e.target.value):this.updateCommentElements()},t.prototype.onOtherValueChange=function(e){this.otherValue=e.target.value,this.otherValue!==e.target.value&&(e.target.value=this.otherValue)},t.prototype.runChoicesByUrl=function(){if(this.choicesByUrl&&!this.isLoadingFromJson&&!this.isRunningChoices){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.isReadyValue=this.isChoicesLoaded||this.choicesByUrl.isEmpty,this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){!0!==h.settings.disableOnGettingChoicesFromWeb||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){if(this.enableOnLoadingChoices&&(this.readOnly=!1),!this.isReadOnly){var t=[];this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error),this.errors=t}var n=null,r=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,r=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value),this.isFirstLoadChoicesFromUrl=!1;var o=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,r);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(n=new Array,a.ItemValue.setData(n,e)),n)for(var i=0;i<n.length;i++)n[i].locOwner=this;if(this.choicesFromUrl=n,this.filterItems(),this.onVisibleChoicesChanged(),n){var s=this.updateCachedValueForUrlRequests(o,n);if(s&&!this.isReadOnly){var l=!this.isTwoValueEquals(this.value,s.value);try{this.isValueEmpty(s.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=l,l?this.value=s.value:this.setQuestionValue(s.value)}finally{this.allowNotifyValueChanged=!0}}}this.choicesLoaded()},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++)n.push(this.createCachedValueForUrlRequests(e[r],!0));return n}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++){var o=this.updateCachedValueForUrlRequests(e[r],t);if(o&&!this.isValueEmpty(o.value)){var i=o.value;(s=a.ItemValue.getItemByValue(t,o.value))&&(i=s.value),n.push(i)}}return{value:n}}var s,l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value;return(s=a.ItemValue.getItemByValue(t,l))&&(l=s.value),{value:l}},t.prototype.updateChoicesDependedQuestions=function(){if(!this.isLoadingFromJson&&!this.isUpdatingChoicesDependedQuestions){this.isUpdatingChoicesDependedQuestions=!0;for(var e=0;e<this.dependedQuestions.length;e++){var t=this.dependedQuestions[e];t.onVisibleChoicesChanged(),t.clearIncorrectValuesCore()}this.isUpdatingChoicesDependedQuestions=!1}},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var t=e.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!t)return t;var n=this.getFilteredChoices();return!n||n.length>0},t.prototype.sortVisibleChoices=function(e){var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort((function(e,n){return d.Helpers.compareStrings(e.calculatedText,n.calculatedText)*t}))},t.prototype.randomizeArray=function(e){return d.Helpers.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){this.hasValueToClearIncorrectValues()&&(this.survey&&this.survey.questionCountByValueName(this.getValueName())>1||(!this.choicesByUrl||this.choicesByUrl.isEmpty||this.choicesFromUrl&&0!=this.choicesFromUrl.length)&&(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore()))},t.prototype.hasValueToClearIncorrectValues=function(){return!(this.survey&&this.survey.keepIncorrectValues||this.keepIncorrectValues||this.isEmpty())},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknow(e)&&this.clearValue()},t.prototype.canClearValueAnUnknow=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),this.showCommentArea||this.getStoreOthersAsComment()||this.isOtherSelected||(this.comment="")},t.prototype.getColumnClass=function(){return(new f.CssClassBuilder).append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var t={item:e},n=this.getItemClassCore(e,t);return t.css=n,this.survey&&this.survey.updateChoiceItemCss(this,t),t.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,t){var n=(new f.CssClassBuilder).append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&0===this.colCount).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&0!==this.colCount).append(this.cssClasses.itemOnError,this.errors.length>0),r=this.isReadOnly||!e.isEnabled,o=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,i=!(r||o||this.survey&&this.survey.isDesignMode),s=e===this.noneItem;return t.isDisabled=r,t.isChecked=o,t.isNone=s,n.append(this.cssClasses.itemDisabled,r).append(this.cssClasses.itemChecked,o).append(this.cssClasses.itemHover,i).append(this.cssClasses.itemNone,s).toString()},t.prototype.getLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return(new f.CssClassBuilder).append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},Object.defineProperty(t.prototype,"headItems",{get:function(){var e=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter((function(t){return e.isHeadChoice(t,e)})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){var e=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter((function(t){return e.isFootChoice(t,e)})):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.visibleChoices.filter((function(t){return!e.isBuiltInChoice(t,e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.visibleChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.getCurrentColCount();if(this.hasColumns&&this.visibleChoices.length>0){var n=this.separateSpecialChoices||this.isDesignMode?this.dataChoices:this.visibleChoices;if("column"==h.settings.showItemsInOrder)for(var r=0,o=n.length%t,i=0;i<t;i++){for(var s=[],a=r;a<r+Math.floor(n.length/t);a++)s.push(n[a]);o>0&&(o--,s.push(n[a]),a++),r=a,e.push(s)}else for(i=0;i<t;i++){for(s=[],a=i;a<n.length;a+=t)s.push(n[a]);e.push(s)}}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return 0==this.getCurrentColCount()&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return 0==this.getCurrentColCount()&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0;var e=this.isReadyValue;this.isReadyValue=!0,this.onReadyChanged&&this.onReadyChanged.fire(this,{question:this,isReady:!0,oldIsReady:e}),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentName(e,this):i.SurveyModel.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootRow,this.rowLayout).toString()},t.prototype.getAriaItemLabel=function(e){return e.locText.renderedHtml},t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.getItemEnabled=function(e){return!this.isInputReadOnly&&e.isEnabled},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.rootElement=t},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.rootElement=void 0},t.prototype.focusOtherComment=function(){var e=this;this.rootElement&&setTimeout((function(){var t=e.rootElement.querySelector("textarea");t&&t.focus()}),10)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.isDesignMode||this.prevIsOtherSelected||!this.isOtherSelected||this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,n){if(e.prototype.updateCssClasses.call(this,t,n),this.dropdownListModel){var r={};Object(g.mergeValues)(n.list,r),Object(g.mergeValues)(t.list,r),t.list=r}},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},y([Object(o.property)({onSet:function(e,t){t.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),y([Object(o.property)()],t.prototype,"separateSpecialChoices",void 0),y([Object(o.property)({localizable:!0})],t.prototype,"otherPlaceholder",void 0),t}(s.Question),b=function(e){function t(t){return e.call(this,t)||this}return m(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:1)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e,t){var n=[].concat(this.renderedValue||[]),r=n.indexOf(e.value);t?r<0&&n.push(e.value):r>-1&&n.splice(r,1),this.renderedValue=n},t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(v);o.Serializer.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_selectbase",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return l.surveyLocalization.getString("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!!e.choicesFromQuestion}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean",{name:"choicesVisibleIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(e){return e.hasNone}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),o.Serializer.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},"./src/question_boolean.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionBooleanModel",(function(){return p}));var r,o=n("./src/questionfactory.ts"),i=n("./src/jsonobject.ts"),s=n("./src/question.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/utils/utils.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("labelFalse",n,!0,"booleanUncheckedLabel"),n.createLocalizableString("labelTrue",n,!0,"booleanCheckedLabel"),n}return u(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return"checkbox"!==this.renderAs},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.setBooleanValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(e){this.booleanValue=e},enumerable:!1,configurable:!0}),t.prototype.setBooleanValue=function(e){this.isValueEmpty(e)?(this.value=null,this.booleanValueRendered=null):(this.value=1==e?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),void 0===e&&(e="indeterminate"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){return"indeterminate"==this.defaultValue||void 0===this.defaultValue?null:"true"==this.defaultValue?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){var e=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(e.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelRenderedAriaID",{get:function(){return this.isLabelRendered?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return"hidden"===this.titleLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return null!==this.booleanValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return void 0===this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return void 0!==this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1),"indeterminate"==this.defaultValue&&this.setBooleanValue(null)},t.prototype.isDefaultValueSet=function(e,t){return this.defaultValue==e||void 0!==t&&this.defaultValue===t},t.prototype.getDisplayValueCore=function(e,t){return t==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return(new a.CssClassBuilder).append(e.item).append(e.itemOnError,this.errors.length>0).append(e.itemDisabled,this.isReadOnly).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemIndeterminate,null===this.booleanValue).toString()},t.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},t.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return(new a.CssClassBuilder).append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isReadOnly).toString()},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:null===this.booleanValue&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){return!0===this.booleanValue?this.locLabelTrue:!1===this.booleanValue?this.locLabelFalse:void 0},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),"true"===t&&"true"!==this.valueTrue&&(t=!0),"false"===t&&"false"!==this.valueFalse&&(t=!1),"indeterminate"===t&&(t=null),e.prototype.setQuestionValue.call(this,t,n)},t.prototype.onLabelClick=function(e,t){return this.allowClick&&(Object(l.preventDefaults)(e),this.booleanValue=t),!0},t.prototype.calculateBooleanValueByEvent=function(e,t){var n="rtl"==document.defaultView.getComputedStyle(e.target).direction;this.booleanValue=n?!t:t},t.prototype.onSwitchClickModel=function(e){if(!this.allowClick)return!0;Object(l.preventDefaults)(e);var t=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,t)},t.prototype.onKeyDownCore=function(e){return"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(Object(l.preventDefaults)(e),void this.calculateBooleanValueByEvent(e,"ArrowRight"===e.key))},t.prototype.getRadioItemClass=function(e,t){var n=void 0;return e.radioItem&&(n=e.radioItem),e.radioItemChecked&&t===this.booleanValue&&(n=(n?n+" ":"")+e.radioItemChecked),n},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(t){return e.prototype.createActionContainer.call(this,"checkbox"!==this.renderAs)},c([Object(i.property)()],t.prototype,"booleanValueRendered",void 0),c([Object(i.property)()],t.prototype,"showTitle",void 0),c([Object(i.property)({localizable:!0})],t.prototype,"label",void 0),c([Object(i.property)()],t.prototype,"valueTrue",void 0),c([Object(i.property)()],t.prototype,"valueFalse",void 0),t}(s.Question);i.Serializer.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"renderAs",default:"default",visible:!1}],(function(){return new p("")}),"question"),o.QuestionFactory.Instance.registerQuestion("boolean",(function(e){return new p(e)}))},"./src/question_buttongroup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ButtonGroupItemValue",(function(){return c})),n.d(t,"QuestionButtonGroupModel",(function(){return p})),n.d(t,"ButtonGroupItemModel",(function(){return d}));var r,o=n("./src/jsonobject.ts"),i=n("./src/itemvalue.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="buttongroupitemvalue");var o=e.call(this,t,n,r)||this;return o.typeName=r,o}return l(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},u([Object(o.property)()],t.prototype,"iconName",void 0),u([Object(o.property)()],t.prototype,"iconSize",void 0),u([Object(o.property)()],t.prototype,"showCaption",void 0),t}(i.ItemValue),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(s.QuestionCheckboxBase);o.Serializer.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],(function(){return new p("")}),"checkboxbase"),o.Serializer.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],(function(e){return new c(e)}),"itemvalue");var d=function(){function e(e,t,n){this.question=e,this.item=t,this.index=n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showCaption",{get:function(){return this.item.showCaption||void 0===this.item.showCaption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelClass",{get:function(){return(new a.CssClassBuilder).append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),e.prototype.onChange=function(){this.question.renderedValue=this.item.value},e}()},"./src/question_checkbox.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCheckboxModel",(function(){return p}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/helpers.ts"),l=n("./src/itemvalue.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){var n=e.call(this,t)||this;n.selectAllItemValue=new l.ItemValue("selectall"),n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1;var r=n.createLocalizableString("selectAllText",n.selectAllItem,!0,"selectAllItemText");return n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(r),n.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],(function(){n.onVisibleChoicesChanged()})),n}return c(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"listbox"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){if(e&&e===this.valuePropertyName){var n=this.value;if(Array.isArray(n)&&t<n.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){var e=this.value;if(!e||!Array.isArray(e))return!1;if(this.isItemSelected(this.noneItem))return!1;var t=this.visibleChoices.length;this.hasOther&&t--,this.hasNone&&t--,this.hasSelectAll&&t--;var n=e.length;return this.isOtherSelected&&n--,n===t},set:function(e){e?this.selectAll():this.clearValue()},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.selectAll=function(){for(var e=[],t=0;t<this.visibleChoices.length;t++){var n=this.visibleChoices[t];n!==this.noneItem&&n!==this.otherItem&&n!==this.selectAllItem&&e.push(n.value)}this.renderedValue=e},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(this.isTwoValueEquals(t[n],e.value))return!0;return!1},t.prototype.getRealValue=function(e){return e&&this.valuePropertyName?e[this.valuePropertyName]:e},Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){if(this.isEmpty())return[];var e=this.renderedValue,t=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,this.visibleChoices):this.visibleChoices,n=e.map((function(e){return l.ItemValue.getItemByValue(t,e)})).filter((function(e){return!!e}));return n.length||this.selectedItemValues||this.updateSelectedItemValues(),this.validateItemValues(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),t.prototype.validateItemValues=function(e){if(e.length)return e;var t=this.selectedItemValues;return t&&t.length?(this.defaultSelectedItemValues=[].concat(t),t):this.renderedValue.map((function(e){return new l.ItemValue(e)}))},t.prototype.onEnableItemCallBack=function(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)},t.prototype.onAfterRunItemsEnableCondition=function(){if(this.maxSelectedChoices<1)return this.selectAllItem.setIsEnabled(!0),void this.otherItem.setIsEnabled(!0);this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.maxSelectedChoices>=this.activeChoices.length),this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices},t.prototype.getItemClassCore=function(t,n){return this.value,n.isSelectAllItem=t===this.selectAllItem,(new u.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(t){e.prototype.updateValueFromSurvey.call(this,t),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){e.prototype.setDefaultValue.call(this);var t=this.defaultValue;if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=this.getRealValue(t[n]);this.canClearValueAnUnknow(r)&&this.addIntoInvisibleOldValues(r)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return e.prototype.hasValueToClearIncorrectValues.call(this)||!a.Helpers.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(t){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),t=this.valueFromData(t);var n=this.value;if(t||(t=[]),n||(n=[]),!this.isTwoValueEquals(n,t)){if(this.hasNone){var r=this.noneIndexInArray(n),o=this.noneIndexInArray(t);r>-1?o>-1&&t.length>1&&t.splice(o,1):o>-1&&(t.splice(0,t.length),t.push(this.noneItem.value))}e.prototype.setNewValue.call(this,t)}},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?"":e[t]},t.prototype.setOtherValueIntoValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0||e.splice(t,1,this.otherItem.value),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var t=0;t<e.length;t++)if(this.hasUnknownValue(e[t],!1,!1))return t;return-1},t.prototype.noneIndexInArray=function(e){if(!e||!Array.isArray(e))return-1;for(var t=this.noneItem.value,n=0;n<e.length;n++)if(e[n]==t)return n;return-1},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addToVisibleChoices=function(t,n){this.supportSelectAll()&&this.canShowOptionItem(this.selectAllItem,n,this.hasSelectAll)&&t.unshift(this.selectAllItem),e.prototype.addToVisibleChoices.call(this,t,n)},t.prototype.isHeadChoice=function(e,t){return e===t.selectAllItem},t.prototype.isItemInList=function(t){return t==this.selectAllItem?this.hasSelectAll:e.prototype.isItemInList.call(this,t)},t.prototype.getDisplayValueCore=function(t,n){if(!Array.isArray(n))return e.prototype.getDisplayValueCore.call(this,t,n);var r=this.valuePropertyName;return this.getDisplayArrayValue(t,n,(function(e){var t=n[e];return r&&t[r]&&(t=t[r]),t}))},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,n=!1,r=this.restoreValuesFromInvisible();if(t||0!=r.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue()),this.isChangingValueOnClearIncorrect=!1,0==r.length)return;t=[]}for(var o=[],i=0;i<t.length;i++){var s=this.getRealValue(t[i]),a=this.canClearValueAnUnknow(s);!e&&!a||e&&!this.isValueDisabled(s)?o.push(t[i]):(n=!0,a&&this.addIntoInvisibleOldValues(t[i]))}for(i=0;i<r.length;i++)o.push(r[i]),n=!0;n&&(this.isChangingValueOnClearIncorrect=!0,0==o.length?this.clearValue():this.value=o,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++){var r=t[n].value;a.Helpers.isTwoValueEquals(r,this.invisibleOldValues[r])&&(this.isItemSelected(t[n])||e.push(r),delete this.invisibleOldValues[r])}return e},t.prototype.getConditionJson=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.prototype.getConditionJson.call(this);return"contains"!=t&&"notcontains"!=t||(r.type="radiogroup"),r.maxSelectedChoices=0,r},t.prototype.isAnswerCorrect=function(){return a.Helpers.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,t){return!(!e||!Array.isArray(e))&&e.indexOf(t.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var n=[],r=0;r<t.length;r++){var o=l.ItemValue.getItemByValue(this.activeChoices,t[r]);o?n.push(o.value):n.push(t[r])}return n},t.prototype.rendredValueFromData=function(t){return t=this.convertValueFromObject(t),e.prototype.rendredValueFromData.call(this,t)},t.prototype.rendredValueToData=function(t){return t=e.prototype.rendredValueToData.call(this,t),this.convertValueToObject(t)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?a.Helpers.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var t=void 0;return this.survey&&this.survey.questionCountByValueName(this.getValueName())>1&&(t=this.data.getValue(this.getValueName())),a.Helpers.convertArrayValueToObject(e,this.valuePropertyName,t)},t.prototype.renderedValueFromDataCore=function(e){if(e&&Array.isArray(e)||(e=[]),!this.hasActiveChoices)return e;for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValue(e[t],!0,!1)){this.otherValue=e[t];var n=e.slice();return n[t]=this.otherItem.value,n}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var n=e.slice();return n[t]=this.otherValue,n}return e},t.prototype.selectOtherValueFromComment=function(e){var t=[],n=this.renderedValue;if(Array.isArray(n))for(var r=0;r<n.length;r++)n[r]!==this.otherItem.value&&t.push(n[r]);e&&t.push(this.otherItem.value),this.value=t},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),t}(s.QuestionCheckboxBase);o.Serializer.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(e){return e.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],(function(){return new p("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("checkbox",(function(e){var t=new p(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_comment.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionCommentModel",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_textbase.ts"),a=n("./src/utils/utils.ts"),l=n("./src/settings.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")||this.survey&&this.survey.autoGrowComment},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")&&this.survey&&this.survey.allowResizeComment},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResize?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(t){var n=l.settings.environment.root;this.element=n.getElementById(this.inputId)||t,this.updateElement(),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.updateElement=function(){var e=this;this.element&&this.autoGrow&&setTimeout((function(){return Object(a.increaseHeightByContent)(e.element)}),1)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate?this.value=e.target.value:this.updateElement(),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onKeyDown=function(e){this.acceptCarriageReturn||"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),e.stopPropagation())},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.updateElement()},t.prototype.setNewValue=function(t){!this.acceptCarriageReturn&&t&&(t=t.replace(new RegExp("(\r\n|\n|\r)","gm"),"")),e.prototype.setNewValue.call(this,t)},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(s.QuestionTextBase);o.Serializer.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean"},{name:"allowResize:boolean",default:!0},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],(function(){return new c("")}),"textbase"),i.QuestionFactory.Instance.registerQuestion("comment",(function(e){return new c(e)}))},"./src/question_custom.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ComponentQuestionJSON",(function(){return p})),n.d(t,"ComponentCollection",(function(){return d})),n.d(t,"QuestionCustomModelBase",(function(){return h})),n.d(t,"QuestionCustomModel",(function(){return f})),n.d(t,"QuestionCompositeModel",(function(){return m}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/survey-element.ts"),a=n("./src/helpers.ts"),l=n("./src/textPreProcessor.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(){function e(e,t){this.name=e,this.json=t;var n=this;i.Serializer.addClass(e,[],(function(e){return d.Instance.createQuestion(e?e.name:"",n)}),"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,n)},e.prototype.onUpdateQuestionCssClasses=function(e,t,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(e,t,n)},e.prototype.onPropertyChanged=function(e,t,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,n)},e.prototype.onValueChanged=function(e,t,n){this.json.onValueChanged&&this.json.onValueChanged(e,t,n)},e.prototype.onValueChanging=function(e,t,n){return this.json.onValueChanging?this.json.onValueChanging(e,t,n):n},e.prototype.onItemValuePropertyChanged=function(e,t,n,r,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:n,name:r,newValue:o})},e.prototype.getDisplayValue=function(e,t,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(e,t)},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e}(),d=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(i.Serializer.findClass(t))throw"There is already class with name '"+t+"'";var n=new p(t,e);this.onAddingJson&&this.onAddingJson(t,n.isComposite),this.customQuestionValues.push(n)}},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name==e)return this.customQuestionValues[t];return null},e.prototype.clear=function(){for(var e=0;e<this.customQuestionValues.length;e++)i.Serializer.removeClass(this.customQuestionValues[e].name);this.customQuestionValues=[]},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new m(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new f(e,t)},e.Instance=new e,e}(),h=function(e){function t(t,n){var r=e.call(this,t)||this;return r.customQuestion=n,i.CustomPropertiesCollection.createProperties(r),s.SurveyElement.CreateDisabledDesignElements=!0,r.createWrapper(),s.SurveyElement.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return c(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,r)},t.prototype.itemValuePropertyChanged=function(t,n,r,o){e.prototype.itemValuePropertyChanged.call(this,t,n,r,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,n,o)},t.prototype.onFirstRendering=function(){var t=this.getElement();t&&t.onFirstRendering(),e.prototype.onFirstRendering.call(this)},t.prototype.getProgressInfo=function(){var t=e.prototype.getProgressInfo.call(this);return this.getElement()&&(t=this.getElement().getProgressInfo()),this.isRequired&&0==t.requiredQuestionCount&&(t.requiredQuestionCount=1,this.isEmpty()||(t.answeredQuestionCount=1)),t},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.initElement(this.getElement())},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.onUpdateQuestionCssClasses=function(e,t){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateElementCss()},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,n,r){if(this.data){var o=this.convertDataName(e),i=this.convertDataValue(e,t);this.valueToDataCallback&&(i=this.valueToDataCallback(i)),this.data.setValue(o,i,n,r),this.updateIsAnswered(),this.updateElementCss(),this.customQuestion&&this.customQuestion.onValueChanged(this,e,t)}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,t){if(this.customQuestion){var n=t;if(t=this.customQuestion.onValueChanging(this,e,t),!a.Helpers.isTwoValueEquals(t,n)){var r=this.getQuestionByName(e);if(r)return r.value=t,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,n){this.data&&this.data.setComment(this.getValueName(),t,n)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.getContentDisplayValueCore=function(t,n,r){return r?this.customQuestion.getDisplayValue(t,n,r):e.prototype.getDisplayValueCore.call(this,t,n)},t}(o.Question),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.createWrapper=function(){this.questionWrapper=this.createQuestion()},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(t)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.setValue=function(t,n,r,o){this.isValueChanging(t,n)||e.prototype.setValue.call(this,t,n,r,o)},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(t,n);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return r||(r=e.prototype.hasErrors.call(this,t,n)),this.updateElementCss(),r},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.call(this,t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,t=this.customQuestion.json,n=null;if(t.questionJSON){var r=t.questionJSON.type;if(!r||!i.Serializer.findClass(r))throw"type attribute in questionJSON is empty or incorrect";n=i.Serializer.createClass(r),this.initElement(n),n.fromJSON(t.questionJSON)}else t.createQuestion&&(n=t.createQuestion(),this.initElement(n));return n&&(n.isContentElement=!0,n.name||(n.name="question"),n.onUpdateCssClassesCallback=function(t){e.onUpdateQuestionCssClasses(n,t)}),n},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.contentQuestion.value)},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.contentQuestion&&this.contentQuestion.runCondition(t,n)},t.prototype.convertDataName=function(t){if(!this.contentQuestion)return e.prototype.convertDataName.call(this,t);var n=t.replace(this.contentQuestion.getValueName(),this.getValueName());return 0==n.indexOf(this.getValueName())?n:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,n){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.contentQuestion.value:n},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.isLoadingFromJson||!this.contentQuestion||this.isTwoValueEquals(this.contentQuestion.value,t)||(this.contentQuestion.value=this.getUnbindValue(t))},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.getValueCore=function(){return this.contentQuestion?this.contentQuestion.value:e.prototype.getValueCore.call(this)},t.prototype.initElement=function(t){var n=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,e,t)})},t.prototype.updateElementCss=function(t){this.contentQuestion&&this.questionWrapper.updateElementCss(t),e.prototype.updateElementCss.call(this,t)},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentQuestion)},t}(h),g=function(e){function t(t,n){var r=e.call(this,n)||this;return r.composite=t,r.variableName=n,r}return c(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(l.QuestionTextProcessor),m=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.customQuestion=r,o.settingNewValue=!1,o.textProcessing=new g(o,t.ItemVariableName),o}return c(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(t){return(new u.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=e.prototype.hasErrors.call(this,t,n);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,n)||r},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),this.contentPanel&&this.contentPanel.updateElementCss(t)},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(t){return this.getQuestionByName(t)||e.prototype.findQuestionByName.call(this,t)},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this);for(var t=this.contentPanel.questions,n=0;n<t.length;n++)t[n].clearValueIfInvisible()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(t)},t.prototype.createPanel=function(){var e=this,t=i.Serializer.createClass("panel");t.showQuestionNumbers="off",t.renderWidth="100%";var n=this.customQuestion.json;return n.elementsJSON&&t.fromJSON({elements:n.elementsJSON}),n.createElements&&n.createElements(t,this),this.initElement(t),t.readOnly=this.isReadOnly,t.questions.forEach((function(t){return t.onUpdateCssClassesCallback=function(n){e.onUpdateQuestionCssClasses(t,n)}})),this.setAfterRenderCallbacks(t),t},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){if(this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this),this.contentPanel){var t=this.contentPanel.getValue();a.Helpers.isValueEmpty(t)||(this.value=t)}},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,n=0;n<t.length;n++){var r=t[n];r.isPanel?this.setIsContentElement(r):r.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var n=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(t)),n},t.prototype.runCondition=function(n,r){if(e.prototype.runCondition.call(this,n,r),this.contentPanel){var o=n[t.ItemVariableName];n[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(n,r),delete n[t.ItemVariableName],o&&(n[t.ItemVariableName]=o)}},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(t,n,r,o){if(!this.settingNewValue&&!this.isValueChanging(t,n)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel){var i=this.contentPanel.getValue();this.isTwoValueEquals(this.getValueCore(),i)||this.setValueCore(i)}this.setNewValueIntoQuestion(t,n),e.prototype.setValue.call(this,t,n,r,o),this.settingNewValue=!1}},t.prototype.setNewValueIntoQuestion=function(e,t){var n=this.getQuestionByName(e);n&&!this.isTwoValueEquals(t,n.value)&&(n.value=t)},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel)for(var n=this.contentPanel.questions,r=this.name,o=this.title,i=0;i<n.length;i++)e.push({name:r+"."+n[i].name,text:o+"."+n[i].title,question:n[i]})},t.prototype.convertDataValue=function(e,t){var n=this.value;return n||(n={}),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete n[e]:n[e]=t,n},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),this.setValuesIntoQuestions(t),!this.isEditingSurveyElement&&this.contentPanel&&(t=this.contentPanel.getValue()),e.prototype.setQuestionValue.call(this,t,n)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel){this.settingNewValue=!0;for(var t=this.contentPanel.questions,n=0;n<t.length;n++){var r=t[n].getValueName(),o=e?e[r]:void 0,i=t[n];this.isTwoValueEquals(i.value,o)||(i.value=o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.settingNewValue=!1}},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var n=e.questions,r=0;r<n.length;r++)n[r].afterRenderQuestionCallback=function(e,n){t.customQuestion.onAfterRenderContentElement(t,e,n)}},t.ItemVariableName="composite",t}(h)},"./src/question_dropdown.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionDropdownModel",(function(){return h}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/itemvalue.ts"),l=n("./src/utils/cssClassBuilder.ts"),u=n("./src/dropdownListModel.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h=function(e){function t(t){var n=e.call(this,t)||this;return n.lastSelectedItemValue=null,n.minMaxChoices=[],n.onOpened=n.addEvent(),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],(function(){n.onVisibleChoicesChanged()})),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices"],(function(){n.updateReadOnlyText()})),n.updateReadOnlyText(),n}return p(t,e),t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;"select"==this.renderAs&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),t.prototype.onGetSingleSelectedItem=function(e){e&&(this.lastSelectedItemValue=e)},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var n=[],r=0;r<t.length;r++)n.push(t[r]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1)for(this.minMaxChoices=[],r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(new a.ItemValue(r));return n.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new l.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return null==e?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return"select"===this.renderAs||this.dropdownListModelValue||(this.dropdownListModelValue=new u.DropdownListModel(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(e){var t;null===(t=this.dropdownListModel)||void 0===t||t.setInputStringFromSelectedItem(e)},t.prototype.hasUnknownValue=function(t,n,r,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,n=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!n&&e.prototype.hasUnknownValue.call(this,n,!0,!1)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(){var t;e.prototype.clearValue.call(this),this.lastSelectedItemValue=null,null===(t=this.dropdownListModel)||void 0===t||t.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){46===(e.which||e.keyCode)&&(this.clearValue(),e.preventDefault(),e.stopPropagation())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},d([Object(o.property)()],t.prototype,"allowClear",void 0),d([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"inputHasValue",void 0),d([Object(o.property)({defaultValue:""})],t.prototype,"readOnlyText",void 0),d([Object(o.property)()],t.prototype,"choicesLazyLoadEnabled",void 0),d([Object(o.property)({defaultValue:25})],t.prototype,"choicesLazyLoadPageSize",void 0),d([Object(o.property)()],t.prototype,"suggestedItem",void 0),t}(s.QuestionSelectBase);o.Serializer.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],(function(){return new h("")}),"selectbase"),i.QuestionFactory.Instance.registerQuestion("dropdown",(function(e){var t=new h(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_empty.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionEmptyModel",(function(){return a}));var r,o=n("./src/jsonobject.ts"),i=n("./src/question.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"empty"},t}(i.Question);o.Serializer.addClass("empty",[],(function(){return new a("")}),"question")},"./src/question_expression.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionExpressionModel",(function(){return c})),n.d(t,"getCurrecyCodes",(function(){return p}));var r,o=n("./src/helpers.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/questionfactory.ts"),l=n("./src/conditions.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("format",n),n.registerPropertyChangedHandlers(["expression"],(function(){n.expressionRunner&&(n.expressionRunner=new l.ExpressionRunner(n.expression))})),n.registerPropertyChangedHandlers(["format","currency","displayStyle"],(function(){n.updateFormatedValue()})),n}return u(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,n){var r=this;e.prototype.runCondition.call(this,t,n),!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly||(this.locCalculation(),this.expressionRunner||(this.expressionRunner=new l.ExpressionRunner(this.expression)),this.expressionRunner.onRunComplete=function(e){o.Helpers.isTwoValueEquals(e,r.value)||(r.value=e),r.unlocCalculation()},this.expressionRunner.run(t,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return!0===this.runIfReadOnlyValue},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(t){e.prototype.updateValueFromSurvey.call(this,t),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,t){var n=this.isValueEmpty(t)?this.defaultValue:t,r="";if(!this.isValueEmpty(n)){var o=this.getValueAsStr(n);r=this.format?this.format.format(o):o}return this.survey&&(r=this.survey.getExpressionDisplayValue(this,n,r)),r},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"].indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=new Date(e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&o.Helpers.isNumber(e)){var n=this.getLocale();n||(n="en");var r={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(r.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(r.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(n,r)}return e.toString()},t}(i.Question);function p(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}s.Serializer.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],(function(){return new c("")}),"question"),a.QuestionFactory.Instance.registerQuestion("expression",(function(e){return new c(e)}))},"./src/question_file.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionFileModel",(function(){return g})),n.d(t,"FileLoader",(function(){return m}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=n("./src/error.ts"),l=n("./src/utils/cssClassBuilder.ts"),u=n("./src/utils/utils.ts"),c=n("./src/actions/container.ts"),p=n("./src/actions/action.ts"),d=n("./src/helpers.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},g=function(e){function t(t){var n=e.call(this,t)||this;return n.isUploading=!1,n.isDragging=!1,n.onUploadStateChanged=n.addEvent(),n.onStateChanged=n.addEvent(),n.mobileFileNavigator=new c.ActionContainer,n.dragCounter=0,n.onDragEnter=function(e){n.isInputReadOnly||(e.preventDefault(),n.isDragging=!0,n.dragCounter++)},n.onDragOver=function(e){if(n.isInputReadOnly)return e.returnValue=!1,!1;e.dataTransfer.dropEffect="copy",e.preventDefault()},n.onDrop=function(e){if(!n.isInputReadOnly){n.isDragging=!1,n.dragCounter=0,e.preventDefault();var t=e.dataTransfer;n.onChange(t)}},n.onDragLeave=function(e){n.isInputReadOnly||(n.dragCounter--,0===n.dragCounter&&(n.isDragging=!1))},n.doChange=function(e){var t=e.target||e.srcElement;n.onChange(t)},n.doClean=function(e){e.currentTarget||e.srcElement,n.needConfirmRemoveFile&&!Object(u.confirmAction)(n.confirmRemoveAllMessage)||(n.rootElement&&(n.rootElement.querySelectorAll("input")[0].value=""),n.clear())},n.doDownloadFile=function(e,t){Object(u.detectIEOrEdge)()&&(e.preventDefault(),Object(u.loadFileFromBase64)(t.content,t.name))},n.fileIndexAction=new p.Action({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new p.Action({id:"prevPage",iconSize:16,action:function(){n.indexToShow=n.previewValue.length&&(n.indexToShow-1+n.previewValue.length)%n.previewValue.length||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.nextFileAction=new p.Action({id:"nextPage",iconSize:16,action:function(){n.indexToShow=n.previewValue.length&&(n.indexToShow+1)%n.previewValue.length||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.mobileFileNavigator.actions=[n.prevFileAction,n.fileIndexAction,n.nextFileAction],n}return h(t,e),Object.defineProperty(t.prototype,"mobileFileNavigatorVisible",{get:function(){return this.isMobile&&this.containsMultiplyFiles},enumerable:!1,configurable:!0}),t.prototype.updateElementCssCore=function(t){e.prototype.updateElementCssCore.call(this,t),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.previewValue.length)},t.prototype.isPreviewVisible=function(e){return!this.isMobile||e===this.indexToShow},t.prototype.getType=function(){return"file"},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,(function(){}))},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple")},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,(function(n,r){"success"===n&&(t.value=void 0,t.errors=[],e&&e(),t.indexToShow=0,t.fileIndexAction.title=t.getFileIndexCaption())})))},Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButtonBottom},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter((function(t){return t.name===e}))[0])},t.prototype.removeFileByContent=function(e){var t=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,(function(n,r){if("success"===n){var o=t.value;Array.isArray(o)?t.value=o.filter((function(t){return!d.Helpers.isTwoValueEquals(t,e,!0)})):t.value=void 0}}))},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){var n=function(){t.stateChanged("loading");var n=[];t.storeDataAsText?e.forEach((function(r){var o=new FileReader;o.onload=function(i){(n=n.concat([{name:r.name,type:r.type,content:o.result}])).length===e.length&&(t.value=(t.value||[]).concat(n))},o.readAsDataURL(r)})):t.survey&&t.survey.uploadFiles(t,t.name,e,(function(e,n){"error"===e&&t.stateChanged("error"),"success"===e&&(t.value=(t.value||[]).concat(n.map((function(e){return{name:e.file.name,type:e.file.type,content:e.content}}))))}))};this.allowMultiple?n():this.clear(n)}},t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var t=this;if(this.previewValue.splice(0,this.previewValue.length),this.showPreview&&e){var n=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?n.forEach((function(e){var n=e.content||e;t.previewValue.push({name:e.name,type:e.type,content:n})})):(this._previewLoader&&this._previewLoader.dispose(),this.isReadyValue=!1,this._previewLoader=new m(this,(function(e,n){"loaded"===e&&n.forEach((function(e){t.previewValue.push(e)})),t.isReadyValue=!0,t.onReadyChanged&&t.onReadyChanged.fire(t,{question:t,isReady:!0,oldIsReady:!1}),t._previewLoader.dispose(),t._previewLoader=void 0})),this._previewLoader.load(n)),this.indexToShow=this.previewValue.length>0&&this.indexToShow>0?this.indexToShow-1:0,this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1}},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),this.isUploading&&this.waitForUpload&&t.push(new a.UploadingFileError(this.getLocalizationString("uploadingFile"),this))},t.prototype.stateChanged=function(e){this.currentState!=e&&("loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),"error"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))},t.prototype.allFilesOk=function(e){var t=this,n=this.errors?this.errors.length:0;return(e||[]).forEach((function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new a.ExceedSizeError(t.maxSize,t))})),n===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var t=e.content&&e.content.substring(0,10);return"data:image"===(t=t&&t.toLowerCase())||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map((function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}}))}return n},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return(new l.CssClassBuilder).append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return(new l.CssClassBuilder).append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return(new l.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getFileDecoratorCss=function(){return(new l.CssClassBuilder).append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var t=[],n=this.allowMultiple?e.files.length:1,r=0;r<n;r++)t.push(e.files[r]);e.value="",this.loadFiles(t)}},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.stateChanged(this.isEmpty()?"empty":"loaded"),this.isLoadingFromJson||this.loadPreview(t)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.loadPreview(this.value)},t.prototype.afterRender=function(t){this.rootElement=t,e.prototype.afterRender.call(this,t)},t.prototype.doRemoveFile=function(e){if(!this.needConfirmRemoveFile||Object(u.confirmAction)(this.getConfirmRemoveMessage(e.name))){var t=this.previewValue.indexOf(e);this.removeFileByContent(-1===t?e:this.value[t])}},f([Object(i.property)()],t.prototype,"isDragging",void 0),f([Object(i.propertyArray)({})],t.prototype,"previewValue",void 0),f([Object(i.property)({defaultValue:"empty"})],t.prototype,"currentState",void 0),f([Object(i.property)({defaultValue:0})],t.prototype,"indexToShow",void 0),f([Object(i.property)({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),f([Object(i.property)({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),f([Object(i.property)({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),f([Object(i.property)({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"clearCaption"}})],t.prototype,"clearButtonCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),f([Object(i.property)({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),f([Object(i.property)({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),f([Object(i.property)({localizable:{defaultStr:"fileDragAreaPlaceholder"}})],t.prototype,"dragAreaPlaceholder",void 0),t}(o.Question);i.Serializer.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"}],(function(){return new g("")}),"question"),s.QuestionFactory.Instance.registerQuestion("file",(function(e){return new g(e)}));var m=function(){function e(e,t){this.fileQuestion=e,this.callback=t,this.loaded=[]}return e.prototype.load=function(e){var t=this;e.forEach((function(n){t.fileQuestion.survey&&t.fileQuestion.survey.downloadFile(t.fileQuestion,t.fileQuestion.name,n,(function(r,o){t.fileQuestion&&t.callback&&("success"===r?(t.loaded.push({content:o,name:n.name,type:n.type}),t.loaded.length===e.length&&t.callback("loaded",t.loaded)):t.callback("error",t.loaded))}))}))},e.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},e}()},"./src/question_html.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionHtmlModel",(function(){return l}));var r,o=n("./src/questionnonvalue.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("html",n).onGetTextCallback=function(e){return n.survey&&!n.ignoreHtmlProgressing?n.processHtml(e):e},n}return a(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(t){return this.ignoreHtmlProgressing?t:e.prototype.getProcessedText.call(this,t)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},t}(o.QuestionNonValue);i.Serializer.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],(function(){return new l("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("html",(function(e){return new l(e)}))},"./src/question_image.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionImageModel",(function(){return h}));var r,o=n("./src/questionnonvalue.ts"),i=n("./src/jsonobject.ts"),s=n("./src/questionfactory.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=["youtube.com","youtu.be"],c=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],p="embed";function d(e){if(!e)return!1;e=e.toLowerCase();for(var t=0;t<u.length;t++)if(-1!==e.indexOf(u[t]))return!0;return!1}var h=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("imageLink",n,!1).onGetTextCallback=function(e){return function(e){if(!e||!d(e))return e;if(e.toLocaleLowerCase().indexOf(p)>-1)return e;for(var t="",n=e.length-1;n>=0&&"="!==e[n]&&"/"!==e[n];n--)t=e[n]+t;return"https://www.youtube.com/embed/"+t}(e)},n.createLocalizableString("altText",n,!1),n.registerPropertyChangedHandlers(["contentMode","imageLink"],(function(){return n.calculateRenderedMode()})),n}return l(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),t.prototype.getRenderedSize=function(e){return isNaN(Number(e))?e:e+"px"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?this.getRenderedSize(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?this.getRenderedSize(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),t=this.getPropertyByName("imageWidth"),n=e.isDefaultValue(this.imageHeight)&&t.isDefaultValue(this.imageWidth);return(new a.CssClassBuilder).append(this.cssClasses.image).append(this.cssClasses.adaptive,n).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){"auto"!==this.contentMode?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return d(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var t=0;t<c.length;t++)if(e.endsWith(c[t]))return!0;return!1},function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(i.property)({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(o.QuestionNonValue);i.Serializer.addClass("image",[{name:"imageLink",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],(function(){return new h("")}),"nonvalue"),s.QuestionFactory.Instance.registerQuestion("image",(function(e){return new h(e)}))},"./src/question_imagepicker.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ImageItemValue",(function(){return f})),n.d(t,"QuestionImagePickerModel",(function(){return g}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/itemvalue.ts"),l=n("./src/helpers.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/settings.ts"),p=n("./src/utils/utils.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="imageitemvalue");var o=e.call(this,t,n,r)||this;return o.typeName=r,o.createLocalizableString("imageLink",o,!1),o}return d(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof g&&"video"==this.locOwner.contentMode?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof g&&"video"==this.locOwner.contentMode?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),h([Object(o.property)({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),h([Object(o.property)({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(a.ItemValue),g=function(e){function t(t){var n=e.call(this,t)||this;return n.isResponsiveValue=!1,n.onContentLoaded=function(e,t){e.contentNotLoaded=!1;var r=t.target;"video"==n.contentMode?e.aspectRatio=r.videoWidth/r.videoHeight:e.aspectRatio=r.naturalWidth/r.naturalHeight,n._width&&n.processResponsiveness(0,n._width)},n.colCount=0,n.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],(function(){n._width&&n.processResponsiveness(0,n._width)})),n.registerPropertyChangedHandlers(["imageWidth","imageHeight"],(function(){n.calcIsResponsive()})),n.calcIsResponsive(),n}return d(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?l.Helpers.isArrayContainsEqual(this.value,this.correctAnswer):e.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value,n=e;if(this.isValueEmpty(t))return!1;if(!n.imageLink||n.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.getItemEnabled=function(t){var n=t;return!(!n.imageLink||n.contentNotLoaded)&&e.prototype.getItemEnabled.call(this,t)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!t)return;if(!Array.isArray(t)||0==t.length)return void this.clearValue();for(var n=[],r=0;r<t.length;r++)this.hasUnknownValue(t[r],!0)||n.push(t[r]);if(n.length==t.length)return;0==n.length?this.clearValue():this.value=n}else e.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(t,n){return this.multiSelect||Array.isArray(n)?this.getDisplayArrayValue(t,n):e.prototype.getDisplayValueCore.call(this,t,n)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return this.multiSelect?this.isValueEmpty(e)||Array.isArray(e)?e:[e]:e},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){return((this.isResponsive?this.responsiveImageHeight:this.imageHeight)||150)+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){return((this.isResponsive?this.responsiveImageWidth:this.imageWidth)||200)+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isFootChoice=function(e,t){return!1},t.prototype.getSelectBaseRootCss=function(){return(new u.CssClassBuilder).append(e.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,1==this.getCurrentColCount()).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some((function(t){return void 0!==e[t]&&null!==e[t]}))},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return Object(p.classesToSelector)(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.getCurrentColCount=function(){return void 0===this.responsiveColCount||0===this.colCount?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,t){this._width=t=Math.floor(t);var n=function(e,t,n){var r=Math.floor(e/(t+n));return(r+1)*(t+n)-n<=e&&r++,r};if(this.isResponsive){var r,o=this.choices.length+(this.isDesignMode?1:0),i=this.gapBetweenItems||0,s=this.minImageWidth,a=this.maxImageWidth,l=this.maxImageHeight,u=this.minImageHeight,c=this.colCount;if(0===c)if((i+s)*o-i>t){var p=n(t,s,i);r=Math.floor((t-i*(p-1))/p)}else r=Math.floor((t-i*(o-1))/o);else{var d=n(t,s,i);d<c?(this.responsiveColCount=d>=1?d:1,c=this.responsiveColCount):this.responsiveColCount=c,r=Math.floor((t-i*(c-1))/c)}r=Math.max(s,Math.min(r,a));var h=Number.MIN_VALUE;this.choices.forEach((function(e){var t=r/e.aspectRatio;h=t>h?t:h})),h>l?h=l:h<u&&(h=u);var f=this.responsiveImageWidth,g=this.responsiveImageHeight;return this.responsiveImageWidth=r,this.responsiveImageHeight=h,f!==this.responsiveImageWidth||g!==this.responsiveImageHeight}return!1},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t);var n=this.survey.getCss().variables;n&&(this.gapBetweenItems=Number.parseInt(window.getComputedStyle(t).getPropertyValue(n.imagepickerGapBetweenItems))||0)},h([Object(o.property)({})],t.prototype,"responsiveImageHeight",void 0),h([Object(o.property)({})],t.prototype,"responsiveImageWidth",void 0),h([Object(o.property)({})],t.prototype,"isResponsiveValue",void 0),h([Object(o.property)({})],t.prototype,"maxImageWidth",void 0),h([Object(o.property)({})],t.prototype,"minImageWidth",void 0),h([Object(o.property)({})],t.prototype,"maxImageHeight",void 0),h([Object(o.property)({})],t.prototype,"minImageHeight",void 0),h([Object(o.property)({})],t.prototype,"responsiveColCount",void 0),t}(s.QuestionCheckboxBase);o.Serializer.addClass("imageitemvalue",[],(function(e){return new f(e)}),"itemvalue"),o.Serializer.addProperty("imageitemvalue",{name:"imageLink",serializationProperty:"locImageLink"}),o.Serializer.addClass("responsiveImageSize",[],void 0,"number"),o.Serializer.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}}],(function(){return new g("")}),"checkboxbase"),o.Serializer.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),o.Serializer.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),i.QuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return new g(e)}))},"./src/question_matrix.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixRowModel",(function(){return y})),n.d(t,"MatrixCells",(function(){return v})),n.d(t,"QuestionMatrixModel",(function(){return b}));var r,o=n("./src/helpers.ts"),i=n("./src/itemvalue.ts"),s=n("./src/martixBase.ts"),a=n("./src/jsonobject.ts"),l=n("./src/base.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/error.ts"),p=n("./src/questionfactory.ts"),d=n("./src/localizablestring.ts"),h=n("./src/question_dropdown.ts"),f=n("./src/settings.ts"),g=n("./src/utils/cssClassBuilder.ts"),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.fullName=n,i.item=t,i.data=r,i.value=o,i.cellClick=function(e){i.value=e.value},i.registerPropertyChangedHandlers(["value"],(function(){i.data&&i.data.onMatrixRowChanged(i)})),i}return m(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){e=this.data.getCorrectedRowValue(e),this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses,t=!!this.data.getErrorByType("requiredinallrowserror");return(new g.CssClassBuilder).append(e.row).append(e.rowError,t&&this.isValueEmpty(this.value)).toString()},enumerable:!1,configurable:!0}),t}(l.Base),v=function(){function e(e){this.cellsOwner=e,this.values={}}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!1,configurable:!0}),e.prototype.valuesChanged=function(){this.onValuesChanged&&this.onValuesChanged()},e.prototype.setCellText=function(e,t,n){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t){if(n)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=n;else if(this.values[e]&&this.values[e][t]){var r=this.values[e][t];r.text="",r.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}this.valuesChanged()}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(f.settings.matrixDefaultRowName,e,t)},e.prototype.getCellLocText=function(e,t){return e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t&&this.values[e]&&this.values[e][t]?this.values[e][t]:null},e.prototype.getDefaultCellLocText=function(e,t){return this.getCellLocText(f.settings.matrixDefaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var n=this.getCellLocText(e,t);return n&&!n.isEmpty||(n=this.getCellLocText(f.settings.matrixDefaultRowName,t))&&!n.isEmpty?n:("number"==typeof t&&(t=t>=0&&t<this.columns.length?this.columns[t]:null),t&&t.locText?t.locText:null)},e.prototype.getCellText=function(e,t){var n=this.getCellLocText(e,t);return n?n.calculatedText:null},e.prototype.getDefaultCellText=function(e){var t=this.getCellLocText(f.settings.matrixDefaultRowName,e);return t?t.calculatedText:null},e.prototype.getCellDisplayText=function(e,t){var n=this.getCellDisplayLocText(e,t);return n?n.calculatedText:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if(null==e)return null;if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},e.prototype.getJson=function(){if(this.isEmpty)return null;var e={};for(var t in this.values){var n={},r=this.values[t];for(var o in r)n[o]=r[o].getJson();e[t]=n}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var n=e[t];for(var r in this.values[t]={},n)if("pos"!=r){var o=this.createString();o.setJson(n[r]),this.values[t][r]=o}}this.valuesChanged()},e.prototype.locStrsChanged=function(){if(!this.isEmpty)for(var e in this.values){var t=this.values[e];for(var n in t)t[n].strChanged()}},e.prototype.createString=function(){return new d.LocalizableString(this.cellsOwner,!0)},e}(),b=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new d.LocalizableString(n),n.cellsValue=new v(n),n.cellsValue.onValuesChanged=function(){n.updateHasCellText(),n.propertyValueChanged("cells",n.cells,n.cells)},n.registerPropertyChangedHandlers(["columns"],(function(){n.onColumnsChanged()})),n.registerPropertyChangedHandlers(["rows"],(function(){n.filterItems()||n.onRowsChanged()})),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){n.updateVisibilityBasedOnRows()})),n}return m(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired")},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,t){var n=new i.ItemValue(e,t);return this.columns.push(n),n},t.prototype.getItemClass=function(e,t){var n=e.value==t.value,r=this.isReadOnly,o=!n&&!r;return(new g.CssClassBuilder).append(this.cssClasses.cell,this.hasCellText).append(this.hasCellText?this.cssClasses.cellText:this.cssClasses.label).append(this.cssClasses.itemOnError,!this.hasCellText&&this.errors.length>0).append(this.hasCellText?this.cssClasses.cellTextSelected:this.cssClasses.itemChecked,n).append(this.hasCellText?this.cssClasses.cellTextDisabled:this.cssClasses.itemDisabled,r).append(this.cssClasses.itemHover,o&&!this.hasCellText).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.isValueEmpty(this.correctAnswer[this.rows[t].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,n=0;n<this.rows.length;n++){var r=this.rows[n].value;!this.isValueEmpty(t[r])&&this.isTwoValueEquals(this.correctAnswer[r],t[r])&&e++}return e},t.prototype.getVisibleRows=function(){var e=new Array,t=this.value;t||(t={});for(var n=this.filteredRows?this.filteredRows:this.rows,r=0;r<n.length;r++){var o=n[r];this.isValueEmpty(o.value)||e.push(this.createMatrixRow(o,this.id+"_"+o.value.toString().replace(/\s/g,"_"),t[o.value]))}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return this.survey&&this.survey.isDesignMode?e:"random"===this.rowsOrder.toLowerCase()?o.Helpers.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,t,n){this.cells.setCellText(e,t,n)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){return this.cells.getCellDisplayLocText(e,t)||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),(!n||this.errors.length>0)&&this.hasErrorInRows()&&t.push(new c.RequiredInAllRowsError(null,this))},t.prototype.hasErrorInRows=function(){return!!this.isAllRowRequired&&!this.hasValuesInAllRows()},t.prototype.hasValuesInAllRows=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++)if(this.isValueEmpty(e[t].value))return!1;return!0},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,n){var r=new y(e,t,this,n);return this.onMatrixRowCreated(r),r},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(t,n){if(void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,this.isRowChanging||n),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var r=this.value;if(r||(r={}),0==this.rows.length)this.generatedVisibleRows[0].value=r;else for(var o=0;o<this.generatedVisibleRows.length;o++){var i=r[this.generatedVisibleRows[o].name];this.isValueEmpty(i)&&(i=null),this.generatedVisibleRows[o].value=i}this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var n={};for(var r in t){var o=e?i.ItemValue.getTextOrHtmlByValue(this.rows,r):r;o||(o=r);var s=i.ItemValue.getTextOrHtmlByValue(this.columns,t[r]);s||(s=t[r]),n[o]=s}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){var o=this.createValueCopy();r.isNode=!0,r.data=Object.keys(o||{}).map((function(e){var r=n.rows.filter((function(t){return t.value===e}))[0],s={name:e,title:r?r.text:"row",value:o[e],displayValue:i.ItemValue.getTextOrHtmlByValue(n.visibleColumns,o[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},a=i.ItemValue.getItemByValue(n.visibleColumns,o[e]);return a&&(t.calculations||[]).forEach((function(e){s[e.propertyName]=a[e.propertyName]})),s}))}return r},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.rows.length;n++){var r=this.rows[n];r.value&&e.push({name:this.getValueName()+"."+r.value,text:this.processedTitle+"."+r.calculatedText,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);var r=new h.QuestionDropdownModel(n);r.choices=this.columns;var o=(new a.JsonObject).toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this),this.hasRows&&this.clearInvisibleValuesInRows()},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var t=0;t<this.columns.length;t++)if(e===this.columns[t].value)return e;for(t=0;t<this.columns.length;t++)if(this.isTwoValueEquals(e,this.columns[t].value))return this.columns[t].value;return e},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(s.QuestionMatrixBaseModel);a.Serializer.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean","hideIfRowsEmpty:boolean"],(function(){return new b("")}),"matrixbase"),p.QuestionFactory.Instance.registerQuestion("matrix",(function(e){var t=new b(e);return t.rows=p.QuestionFactory.DefaultRows,t.columns=p.QuestionFactory.DefaultColums,t}))},"./src/question_matrixdropdown.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDropdownRowModel",(function(){return u})),n.d(t,"QuestionMatrixDropdownModel",(function(){return c}));var r,o=n("./src/question_matrixdropdownbase.ts"),i=n("./src/jsonobject.ts"),s=n("./src/itemvalue.ts"),a=n("./src/questionfactory.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n,r,o){var i=e.call(this,r,o)||this;return i.name=t,i.item=n,i.buildCells(o),i}return l(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t}(o.MatrixDropdownRowModelBase),c=function(e){function t(t){var n=e.call(this,t)||this;return n.createLocalizableString("totalText",n,!0),n.registerPropertyChangedHandlers(["rows"],(function(){n.clearGeneratedRows(),n.resetRenderedTable(),n.filterItems()||n.onRowsChanged(),n.clearIncorrectValues()})),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],(function(){n.updateVisibilityBasedOnRows()})),n}return l(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;var n=this.visibleRows,r={};if(!n)return r;for(var o=0;o<n.length;o++){var i=n[o].rowName,a=t[i];if(a){if(e){var l=s.ItemValue.getTextOrHtmlByValue(this.rows,i);l&&(i=l)}r[i]=this.getRowDisplayValue(e,n[o],a)}}return r},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(t);return e},t.prototype.setNewValue=function(t){t&&"object"!=typeof t||e.prototype.setNewValue.call(this,t)},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,o=this.filteredRows?this.filteredRows:this.rows;for(var i in t)s.ItemValue.getItemByValue(o,i)?(null==n&&(n={}),n[i]=t[i]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this),this.clearInvisibleValuesInRows()},t.prototype.generateRows=function(){var e=new Array,t=this.filteredRows?this.filteredRows:this.rows;if(!t||0===t.length)return e;var n=this.value;n||(n={});for(var r=0;r<t.length;r++)t[r].value&&e.push(this.createMatrixRow(t[r],n[t[r].value]));return e},t.prototype.createMatrixRow=function(e,t){return new u(e.value,e,this,t)},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var t=this.value;t||(t={});for(var n=0;n<this.rows.length;n++){var r=t[this.rows[n].value];this.updateProgressInfoByRow(e,r||{})}},t}(o.QuestionMatrixDropdownModelBase);i.Serializer.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],(function(){return new c("")}),"matrixdropdownbase"),a.QuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){var t=new c(e);return t.choices=[1,2,3,4,5],t.rows=a.QuestionFactory.DefaultRows,o.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_matrixdropdownbase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDropdownCell",(function(){return b})),n.d(t,"MatrixDropdownTotalCell",(function(){return C})),n.d(t,"MatrixDropdownRowModelBase",(function(){return x})),n.d(t,"MatrixDropdownTotalRowModel",(function(){return P})),n.d(t,"QuestionMatrixDropdownModelBase",(function(){return _}));var r,o=n("./src/jsonobject.ts"),i=n("./src/martixBase.ts"),s=n("./src/helpers.ts"),a=n("./src/base.ts"),l=n("./src/survey-element.ts"),u=n("./src/textPreProcessor.ts"),c=n("./src/itemvalue.ts"),p=n("./src/questionfactory.ts"),d=n("./src/functionsfactory.ts"),h=n("./src/settings.ts"),f=n("./src/error.ts"),g=n("./src/utils/cssClassBuilder.ts"),m=n("./src/question_matrixdropdowncolumn.ts"),y=n("./src/question_matrixdropdownrendered.ts"),v=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(){function e(e,t,n){this.column=e,this.row=t,this.data=n,this.questionValue=this.createQuestion(e,t,n),this.questionValue.updateCustomWidget()}return e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,n){var r=n.createQuestion(this.row,this.column);return r.validateValueCallback=function(){return n.validateCell(t,e.name,t.value)},o.CustomPropertiesCollection.getProperties(e.getType()).forEach((function(t){var n=t.name;void 0!==e[n]&&(r[n]=e[n])})),r},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!1,configurable:!0}),e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),C=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.column=t,o.row=n,o.data=r,o.updateCellQuestion(),o}return v(t,e),t.prototype.createQuestion=function(e,t,n){var r=o.Serializer.createClass("expression");return r.setSurveyImpl(t),r},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,(function(e){delete e.defaultValue})),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"''";var e=this.column.totalType+"InArray";return d.FunctionFactory.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(b),w=function(e){function t(t,n,r){var o=e.call(this,n)||this;return o.row=t,o.variableName=n,o.parentTextProcessor=r,o}return v(t,e),t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==x.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):e.name==x.RowValueVariableName&&(e.isExists=!0,e.value=this.row.rowName,!0)},t}(u.QuestionTextProcessor),x=function(){function e(t,n){var r=this;this.isSettingValue=!1,this.detailPanelValue=null,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(n),this.textPreProcessor=new w(this,e.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(r.getSurvey().isDesignMode)return!0;r.showHideDetailPanel()},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=this.questions,n=0;n<t.length;n++){var r=t[n];r.isEmpty()||(e[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(e[r.getValueName()+a.Base.commentSuffix]=r.comment)}return e},set:function(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],o=this.getCellValue(e,r.getValueName()),i=r.comment,s=e?e[r.getValueName()+a.Base.commentSuffix]:"";null==s&&(s=""),r.updateValueFromSurvey(o),(s||this.isTwoValueEquals(i,r.comment))&&r.updateCommentFromSurvey(s),r.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.data&&this.data.hasDetailPanel(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDetailPanelShowing",{get:function(){return!!this.data&&this.data.getIsDetailPanelShowing(this)},enumerable:!1,configurable:!0}),e.prototype.setIsDetailPanelShowing=function(e){this.data&&this.data.setIsDetailPanelShowing(this,e),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},e.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},e.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},e.prototype.hideDetailPanel=function(e){void 0===e&&(e=!1),this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)},e.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!this.detailPanelValue&&this.hasPanel&&this.data){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.data.getRowValue(this.data.getRowIndex(this));if(!s.Helpers.isValueEmpty(t))for(var n=0;n<e.length;n++){var r=e[n].getValueName();s.Helpers.isValueEmpty(t[r])||(e[n].value=t[r])}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.getAllValues(),t={row:e};for(var n in e)t[n]=e[n];return t},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.runCondition=function(t,n){this.data&&(t[e.OwnerVariableName]=this.data.value),t[e.IndexVariableName]=this.rowIndex,t[e.RowValueVariableName]=this.rowName,n||(n={}),n[e.RowVariableName]=this;for(var r=0;r<this.cells.length;r++)t[e.RowVariableName]=this.value,this.cells[r].runCondition(t,n);this.detailPanel&&this.detailPanel.runCondition(t,n)},e.prototype.clearValue=function(){for(var e=this.questions,t=0;t<e.length;t++)e[t].clearValue()},e.prototype.onAnyValueChanged=function(e){for(var t=this.questions,n=0;n<t.length;n++)t[n].onAnyValueChanged(e)},e.prototype.getDataValueCore=function(e,t){var n=this.getSurvey();return n?n.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByName(e);return t?t.value:null},e.prototype.setValue=function(e,t){this.setValueCore(e,t,!1)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getQuestionByName(e);return t?t.comment:""},e.prototype.setComment=function(e,t,n){this.setValueCore(e,t,!0)},e.prototype.findQuestionByName=function(t){if(t){var n=e.RowVariableName+".";if(0===t.indexOf(n))return this.getQuestionByName(t.substring(n.length));var r=this.getSurvey();return r?r.getQuestionByName(t):null}},e.prototype.setValueCore=function(t,n,r){if(!this.isSettingValue){this.updateQuestionsValue(t,n,r);var o=this.value,i=r?t+a.Base.commentSuffix:t,s=n,l=this.getQuestionByName(t),u=this.data.onRowChanging(this,i,o);if(l&&!this.isTwoValueEquals(u,s)&&(this.isSettingValue=!0,r?l.comment=u:l.value=u,this.isSettingValue=!1,o=this.value),!this.data.isValidateOnValueChanging||!this.hasQuestonError(l)){var c=null==n&&!l||r&&!n&&!!l&&l.autoOtherMode;this.data.onRowChanged(this,i,o,c),this.onAnyValueChanged(e.RowVariableName)}}},e.prototype.updateQuestionsValue=function(e,t,n){if(this.detailPanel){var r=this.getQuestionByColumnName(e),o=this.detailPanel.getQuestionByName(e);if(r&&o){var i=this.isTwoValueEquals(t,n?r.comment:r.value)?o:r;this.isSettingValue=!0,n?i.comment=t:i.value=t,this.isSettingValue=!1}}},e.prototype.hasQuestonError=function(e){if(!e)return!1;if(e.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(e.isEmpty())return!1;var t=this.getCellByColumnName(e.name);return!!(t&&t.column&&t.column.isUnique)&&this.data.checkIfValueInRowDuplicated(this,e)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.Helpers.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!1,configurable:!0}),e.prototype.getQuestionByColumn=function(e){var t=this.getCellByColumn(e);return t?t.question:null},e.prototype.getCellByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t];return null},e.prototype.getCellByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t];return null},e.prototype.getQuestionByColumnName=function(e){var t=this.getCellByColumnName(e);return t?t.question:null},Object.defineProperty(e.prototype,"questions",{get:function(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);var n=this.detailPanel?this.detailPanel.questions:[];for(t=0;t<n.length;t++)e.push(n[t]);return e},enumerable:!1,configurable:!0}),e.prototype.getQuestionByName=function(e){return this.getQuestionByColumnName(e)||(this.detailPanel?this.detailPanel.getQuestionByName(e):null)},e.prototype.getQuestionsByName=function(e){var t=[],n=this.getQuestionByColumnName(e);return n&&t.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(e))&&t.push(n),t},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var n=this.getQuestionByName(t);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(t,n.value)}else!this.getSharedQuestionByName(t)&&t.indexOf(h.settings.matrixTotalValuePostFix)<0&&this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e,t){return this.data?this.data.getMarkdownHtml(e,t):void 0},e.prototype.getRenderer=function(e){return this.data?this.data.getRenderer(e):null},e.prototype.getRendererContext=function(e){return this.data?this.data.getRendererContext(e):e},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,n){var r=this.getCellByColumn(e);r&&this.updateCellOnColumnChanged(r,t,n)},e.prototype.updateCellQuestionOnColumnItemValueChanged=function(e,t,n,r,o,i){var s=this.getCellByColumn(e);s&&this.updateCellOnColumnItemValueChanged(s,t,n,r,o,i)},e.prototype.onQuestionReadOnlyChanged=function(e){for(var t=this.questions,n=0;n<t.length;n++){var r=t[n];r.setPropertyValue("isReadOnly",r.isReadOnly)}this.detailPanel&&(this.detailPanel.readOnly=e)},e.prototype.hasErrors=function(e,t,n){var r=!1,o=this.cells;if(!o)return r;for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;s&&s.visible&&(s.onCompletedAsyncValidators=function(e){n()},t&&!0===t.isOnValueChanged&&s.isEmpty()||(r=s.hasErrors(e,t)||r))}if(this.hasPanel){this.ensureDetailPanel();var a=this.detailPanel.hasErrors(e,!1,t);!t.hideErroredPanel&&a&&e&&(t.isSingleDetailPanel&&(t.hideErroredPanel=!0),this.showDetailPanel()),r=a||r}return r},e.prototype.updateCellOnColumnChanged=function(e,t,n){e.question[t]=n},e.prototype.updateCellOnColumnItemValueChanged=function(e,t,n,r,o,i){var s=e.question[t];if(Array.isArray(s)){var a="value"===r?i:n.value,l=c.ItemValue.getItemByValue(s,a);l&&(l[r]=o)}},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,n=0;n<t.length;n++){var r=t[n];if(r.isVisible){var o=this.createCell(r);this.cells.push(o);var i=this.getCellValue(e,r.name);if(!s.Helpers.isValueEmpty(i)){o.question.value=i;var l=r.name+a.Base.commentSuffix;e&&!s.Helpers.isValueEmpty(e[l])&&(o.question.comment=e[l])}}}this.isSettingValue=!1},e.prototype.isTwoValueEquals=function(e,t){return s.Helpers.isTwoValueEquals(e,t,!1,!0,!1)},e.prototype.getCellValue=function(e,t){return this.editingObj?o.Serializer.getObjPropertyValue(this.editingObj,t):e?e[t]:void 0},e.prototype.createCell=function(e){return new b(e,this,this.data)},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},e.prototype.subscribeToChanges=function(e){var t=this;e&&e.getType&&e.onPropertyChanged&&e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=function(e,n){t.updateOnSetValue(n.name,n.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},e.prototype.updateOnSetValue=function(e,t){this.isSettingValue=!0;for(var n=this.getQuestionsByName(e),r=0;r<n.length;r++)n[r].value=t;this.isSettingValue=!1},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.RowValueVariableName="rowValue",e.idCounter=1,e}(),P=function(e){function t(t){var n=e.call(this,t,null)||this;return n.buildCells(null),n}return v(t,e),t.prototype.createCell=function(e){return new C(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,n){var r,o=0;do{r=s.Helpers.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,n),o++}while(!s.Helpers.isTwoValueEquals(r,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,t,n){e.updateCellQuestion()},t}(x),_=function(e){function t(t){var n=e.call(this,t)||this;return n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1,n.createItemValues("choices"),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.detailPanelValue=n.createNewDetailPanel(),n.detailPanel.selectedElementInDesign=n,n.detailPanel.renderWidth="100%",n.detailPanel.isInteractiveDesignElement=!1,n.detailPanel.showTitle=!1,n.registerPropertyChangedHandlers(["columns","cellType"],(function(){n.updateColumnsAndRows()})),n.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],(function(){n.clearRowsAndResetRenderedTable()})),n.registerPropertyChangedHandlers(["columnLayout","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode"],(function(){n.resetRenderedTable()})),n.registerPropertyChangedHandlers(["isMobile"],(function(){"vertical"===n.columnLayout&&n.resetRenderedTable()})),n}return v(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return h.settings.matrixDefaultCellType},set:function(e){h.settings.matrixDefaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var t=p.QuestionFactory.DefaultColums,n=0;n<t.length;n++)e.addColumn(t[n])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",(function(t){t.colOwner=e,e.onAddColumn&&e.onAddColumn(t),e.survey&&e.survey.matrixColumnAdded(e,t)}),(function(t){t.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(t)}))},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(t,n,r,o){e.prototype.itemValuePropertyChanged.call(this,t,n,r,o),"choices"===t.ownerPropertyName&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.getPropertyValue("columnLayout")},set:function(e){this.setPropertyValue("columnLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return!!this.isMobile||"vertical"!=this.columnLayout},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return void 0!==this.isUniqueCaseSensitiveValue?this.isUniqueCaseSensitiveValue:h.settings.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return o.Serializer.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,t){},t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly()},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,this.renderedTable)if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isUpdateLocked||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].dispose();e.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new y.QuestionMatrixDropdownRenderedTable(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},n=0;n<this.visibleColumns.length;n++){t.column=this.visibleColumns[n],t.columnName=t.column.name;var r=e.cells[n];t.cell=r,t.cellQuestion=r.question,t.value=r.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",h.settings.matrixDefaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,t,n){if(this.updateHasFooter(),this.generatedVisibleRows){for(var r=0;r<this.generatedVisibleRows.length;r++)this.generatedVisibleRows[r].updateCellQuestionOnColumnChanged(e,t,n);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,n),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,t,n,r,o,i){if(this.generatedVisibleRows)for(var s=0;s<this.generatedVisibleRows.length;s++)this.generatedVisibleRows[s].updateCellQuestionOnColumnItemValueChanged(e,t,n,r,o,i)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.onColumnCellTypeChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,t,n){if(!this.survey)return n;var r={rowValue:t.value,row:t,column:e,columnName:e.name,cellType:n};return this.survey.matrixCellCreating(this,r),r.cellType},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);for(var r="",o=n.length-1;o>=0&&"."!=n[o];o--)r=n[o]+r;var i=this.getColumnByName(r);if(!i)return null;var s=i.createCellQuestion(null);return s?s.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){var e=this.visibleRows;if(e)for(var t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this),this.runFuncForCellQuestions((function(e){e.clearErrors()}))},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.runFuncForCellQuestions((function(e){e.localeChanged()}))},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t],r=0;r<n.cells.length;r++)e(n.cells[r].question)},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n);var r,o=0;do{r=s.Helpers.getUnbindValue(this.totalValue),this.runCellsCondition(t,n),this.runTotalsCondition(t,n),o++}while(!s.Helpers.isTwoValueEquals(r,this.totalValue)&&o<3)},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){for(var n=this.getRowConditionValues(e),r=this.generatedVisibleRows,o=0;o<r.length;o++)r[o].runCondition(n,t);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()}},t.prototype.checkColumnsVisibility=function(){for(var e=!1,t=0;t<this.visibleColumns.length;t++)this.visibleColumns[t].visibleIf&&(e=this.isColumnVisibilityChanged(this.visibleColumns[t])||e);e&&this.resetRenderedTable()},t.prototype.checkColumnsRenderedRequired=function(){for(var e=this.generatedVisibleRows,t=0;t<this.visibleColumns.length;t++){var n=this.visibleColumns[t];if(n.requiredIf){for(var r=e.length>0,o=0;o<e.length;o++)if(!e[o].cells[t].question.isRequired){r=!1;break}n.updateIsRenderedRequired(r)}}},t.prototype.isColumnVisibilityChanged=function(e){for(var t=e.hasVisibleCell,n=!1,r=this.generatedVisibleRows,o=0;o<r.length;o++){var i=r[o].cells[e.index];if(i&&i.question&&i.question.isVisible){n=!0;break}}return t!=n&&(e.hasVisibleCell=n),t!=n},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t=e;t||(t={});var n={};return this.isValueEmpty(this.totalValue)||(n=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=n,t},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.columns,n=0;n<t.length;n++)t[n].locStrsChanged();var r=this.generatedVisibleRows;if(r){for(n=0;n<r.length;n++)r[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var t;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:(null===(t=h.settings.matrix.columnWidthsByType[e.cellType])||void 0===t?void 0:t.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return!!this.survey&&this.survey.storeOthersAsComment},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var n=new m.MatrixDropdownColumn(e,t);return this.columns.push(n),n},t.prototype.getVisibleRows=function(){var e=this;return this.isUpdateLocked?null:(this.generatedVisibleRows||(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach((function(t){return e.onMatrixRowCreated(t)})),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()),this.generatedVisibleRows)},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),n=this.createNewValue(),r=0;r<e.length;r++){var o=e[r];if(!o.editingObj){var i=this.getRowValue(r),s=o.value;this.isTwoValueEquals(i,s)||(n=this.getNewValueOnRowChanged(o,"",s,!1,n).value)}}this.isTwoValueEquals(t,n)||(this.isRowChanging=!0,this.setNewValue(n),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var n=this.createNewValue();return this.getRowValueCore(t[e],n)},t.prototype.checkIfValueInRowDuplicated=function(e,t){if(!this.generatedVisibleRows)return!1;for(var n=!1,r=0;r<this.generatedVisibleRows.length;r++){var o=this.generatedVisibleRows[r];if(e!==o&&s.Helpers.isTwoValueEquals(o.getValue(t.name),t.value,!0,this.isUniqueCaseSensitive)){n=!0;break}}return n?this.addDuplicationError(t):t.clearErrors(),n},t.prototype.setRowValue=function(e,t){if(e<0)return null;var n=this.visibleRows;if(e>=n.length)return null;n[e].value=t,this.onRowChanged(n[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new P(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,n){void 0===n&&(n=!1);var r=t&&t[e.rowName]?t[e.rowName]:null;return!r&&n&&(r={},t&&(t[e.rowName]=r)),r},t.prototype.getRowObj=function(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null},t.prototype.getRowDisplayValue=function(e,t,n){if(!n)return n;if(t.editingObj)return n;for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o],s=t.getQuestionByName(i);if(s||(s=this.getSharedQuestionByName(i,t)),s){var a=s.getDisplayValue(e,n[i]);e&&s.title&&s.title!==i?(n[s.title]=a,delete n[i]):n[i]=a}}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);return r&&(r.isNode=!0,r.data=this.visibleRows.map((function(e){var r={name:e.rowName,title:e.text,value:e.value,displayValue:n.getRowDisplayValue(!1,e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map((function(e){return e.question.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){r[t.propertyName]=e[t.propertyName]})),r}))),r},t.prototype.addConditionObjectsByContext=function(e,t){var n=!!t&&(!0===t||this.columns.indexOf(t)>-1),r=this.getConditionObjectsRowIndeces();n&&r.push(-1);for(var o=0;o<r.length;o++){var i=r[o],s=i>-1?this.getConditionObjectRowName(i):"row";if(s)for(var a=i>-1?this.getConditionObjectRowText(i):"row",l=i>-1||!0===t,u=l&&-1===i?".":"",c=(l?this.getValueName():"")+u+s+".",p=(l?this.processedTitle:"")+u+a+".",d=0;d<this.columns.length;d++){var h=this.columns[d];if(-1!==i||t!==h){var f={name:c+h.name,text:p+h.fullTitle,question:this};-1===i&&!0===t&&(f.context=this),e.push(f)}}}},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return l.SurveyElement.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=a.Base.createProgressInfo();return this.updateProgressInfoByValues(e),0===e.requiredQuestionCount&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,t){for(var n=0;n<this.columns.length;n++){var r=this.columns[n];if(r.templateQuestion.hasInput){e.questionCount+=1,e.requiredQuestionCount+=r.isRequired;var o=!s.Helpers.isValueEmpty(t[r.name]);e.answeredQuestionCount+=o?1:0,e.requiredAnsweredQuestionCount+=o&&r.isRequired?1:0}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions((function(t){e.push(t)})),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(n,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++){var o=n[r].question;if(o&&(!o.supportGoNextPageAutomatic()||!o.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors((function(e){return e.containsErrors}),!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors((function(e){return e.isAnswered}),!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var n=this.generatedVisibleRows;if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r].cells;if(o)for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;if(s&&s.isVisible)if(e(s)){if(!t)return!0}else if(t)return!1}}return!!t},t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var r=this.hasErrorInRows(t,n),o=this.isValueDuplicated();return e.prototype.hasErrors.call(this,t,n)||r||o},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++)if(n[r]){var o=n[r].question;if(o&&o.isRunningValidators)return!0}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(null===n)return t;for(var r=0;r<n.length;r++)for(var o=n[r],i=0;i<o.cells.length;i++){var s=o.cells[i].question.getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.hasErrorInRows=function(e,t){var n=this,r=this.generatedVisibleRows;this.generatedVisibleRows||(r=this.visibleRows);var o=!1;if(t||(t={}),!r)return t;t.isSingleDetailPanel="underRowSingle"===this.detailPanelMode;for(var i=0;i<r.length;i++)o=r[i].hasErrors(e,t,(function(){n.raiseOnCompletedAsyncValidators()}))||o;return o},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumns(),t=!1,n=0;n<e.length;n++)t=this.isValueInColumnDuplicated(e[n])||t;return t},t.prototype.isValueInColumnDuplicated=function(e){for(var t=[],n=!1,r=0;r<this.generatedVisibleRows.length;r++)n=this.isValueDuplicatedInRow(this.generatedVisibleRows[r],e,t)||n;return n},t.prototype.getUniqueColumns=function(){for(var e=new Array,t=0;t<this.columns.length;t++)this.columns[t].isUnique&&e.push(this.columns[t]);return e},t.prototype.isValueDuplicatedInRow=function(e,t,n){var r=e.getQuestionByColumn(t);if(!r||r.isEmpty())return!1;for(var o=r.value,i=0;i<n.length;i++)if(s.Helpers.isTwoValueEquals(o,n[i],!0,this.isUniqueCaseSensitive))return this.addDuplicationError(r),!0;return n.push(o),!1},t.prototype.addDuplicationError=function(e){e.addError(new f.KeyDuplicationError(this.keyDuplicationError,this))},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t].cells,r=0;r<n.length;r++){if(!e)return n[r].question;if(n[r].question.currentErrorCount>0)return n[r].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged(this.isReadOnly)},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var n=t.createCellQuestion(e);return n.setSurveyImpl(e),n.setParentQuestion(this),n.inMatrixMode=!0,n},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e){if(!this.isUpdateLocked&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var t=this.visibleRows,n=0;n<t.length;n++)t[n].onAnyValueChanged(e);var r=this.visibleTotalRow;r&&r.onAnyValueChanged(e),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,n){return{row:e,columnName:t,rowValue:n,value:n?n[t]:null,getCellQuestion:function(t){for(var n=0;n<e.cells.length;n++){var r=e.cells[n].column;if(r&&r.name===t)return e.cells[n].question}return null}}},t.prototype.onCellValueChanged=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(r),this.survey.matrixCellValueChanged(this,r)}},t.prototype.validateCell=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);return this.survey.matrixCellValidate(this,r)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return!!this.survey&&this.survey.isValidateOnValueChanging},enumerable:!1,configurable:!0}),t.prototype.onRowChanging=function(e,t,n){if(!this.survey&&!this.cellValueChangingCallback)return n?n[t]:null;var r=this.getOnCellValueChangedOptions(e,t,n),o=this.getRowValueCore(e,this.createNewValue(),!0);return r.oldValue=o?o[t]:null,this.cellValueChangingCallback&&(r.value=this.cellValueChangingCallback(e,t,r.value,r.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,r),r.value},t.prototype.onRowChanged=function(e,t,n,r){var o=t?this.getRowObj(e):null;if(o){var i=null;n&&!r&&(i=n[t]),this.isRowChanging=!0,o[t]=i,this.isRowChanging=!1,this.onCellValueChanged(e,t,o)}else{var s=this.createNewValue(!0),a=this.getNewValueOnRowChanged(e,t,n,r,this.createNewValue());if(this.isTwoValueEquals(s,a.value))return;this.isRowChanging=!0,this.setNewValue(a.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,a.rowValue)}},t.prototype.getNewValueOnRowChanged=function(e,t,n,r,o){var i=this.getRowValueCore(e,o,!0);r&&delete i[t];for(var s=0;s<e.cells.length;s++)delete i[a=e.cells[s].question.getValueName()];if(n)for(var a in n=JSON.parse(JSON.stringify(n)))this.isValueEmpty(n[a])||(i[a]=n[a]);return this.isObject(i)&&0===Object.keys(i).length&&(o=this.deleteRowValue(o,e)),{value:o,rowValue:i}},t.prototype.getRowIndex=function(e){return this.generatedVisibleRows?this.visibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(t){var n;return void 0===t&&(t=!1),n="none"==this.detailPanelMode?e.prototype.getElementsInDesign.call(this,t):t?[this.detailPanel]:this.detailElements,this.columns.concat(n)},t.prototype.hasDetailPanel=function(e){return"none"!=this.detailPanelMode&&(!!this.isDesignMode||(this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0))},t.prototype.getIsDetailPanelShowing=function(e){if("none"==this.detailPanelMode)return!1;if(this.isDesignMode){var t=0==this.visibleRows.indexOf(e);return t&&(e.detailPanel||e.showDetailPanel()),t}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,t){if(t!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),t&&"underRowSingle"===this.detailPanelMode))for(var n=this.visibleRows,r=0;r<n.length;r++)n[r].id!==e.id&&n[r].isDetailPanelShowing&&n[r].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var t=(new g.CssClassBuilder).append(this.getPropertyValue("detailButtonCss"+e.id));return t.append(this.cssClasses.detailButton,""===t.toString()).toString()},t.prototype.getDetailPanelIconCss=function(e){var t=(new g.CssClassBuilder).append(this.getPropertyValue("detailIconCss"+e.id));return t.append(this.cssClasses.detailIcon,""===t.toString()).toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var t=this.cssClasses,n=this.getIsDetailPanelShowing(e),r=(new g.CssClassBuilder).append(t.detailIcon).append(t.detailIconExpanded,n);this.setPropertyValue("detailIconCss"+e.id,r.toString());var o=(new g.CssClassBuilder).append(t.detailButton).append(t.detailButtonExpanded,n);this.setPropertyValue("detailButtonCss"+e.id,o.toString())},t.prototype.createRowDetailPanel=function(e){if(this.isDesignMode)return this.detailPanel;var t=this.createNewDetailPanel();t.readOnly=this.isReadOnly;var n=this.detailPanel.toJSON();return(new o.JsonObject).toObject(n,t),t.renderWidth="100%",t.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,t),t},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var n=this.getRowIndex(t);return n<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,n)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+h.settings.matrixTotalValuePostFix,this.totalValue,!1)},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof P?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new g.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!0},t}(i.QuestionMatrixBaseModel);o.Serializer.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},{name:"detailElements",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},"horizontalScroll:boolean",{name:"choices:itemvalue[]",uniqueProperty:"value"},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return m.MatrixDropdownColumn.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],(function(){return new _("")}),"matrixbase")},"./src/question_matrixdropdowncolumn.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"matrixDropdownColumnTypes",(function(){return c})),n.d(t,"MatrixDropdownColumn",(function(){return p}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/question_expression.ts"),a=n("./src/settings.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function u(e,t,n,r){e.storeOthersAsComment=!!n&&n.storeOthersAsComment,e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=n.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(r.getTextProcessor())}var c={dropdown:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.locPlaceholder&&e.locPlaceholder.isEmpty&&!n.locPlaceholder.isEmpty&&(e.optionsCaption=n.optionsCaption)}},checkbox:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},radiogroup:{onCellQuestionUpdate:function(e,t,n,r){u(e,0,n,r),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},tagbox:{},text:{},comment:{},boolean:{onCellQuestionUpdate:function(e,t,n,r){e.renderAs=t.renderAs}},expression:{},rating:{}},p=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.colOwnerValue=null,r.indexValue=-1,r._isVisible=!0,r._hasVisibleCell=!0,r.previousChoicesId=void 0,r.createLocalizableString("totalFormat",r),r.createLocalizableString("cellHint",r),r.registerPropertyChangedHandlers(["showInMultipleColumns"],(function(){r.doShowInMultipleColumnsChanged()})),r.updateTemplateQuestion(),r.name=t,n?r.title=n:r.templateQuestion.locTitle.strChanged(),r}return l(t,e),t.getColumnTypes=function(){var e=[];for(var t in c)e.push(t);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return"default"===this.cellType?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this._isVisible=e},Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(e){this.setPropertyValue("isRenderedRequired",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsRenderedRequired=function(e){this.isRenderedRequired=e||this.isRequired},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){Object(s.getCurrecyCodes)().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.colOwner?this.colOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(e),n=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(n,e),n},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&!t.cellType&&t.choices&&(t.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,t,n){void 0===n&&(n=null),this.setQuestionProperties(e,n)},t.prototype.callOnCellQuestionUpdate=function(e,t){var n=e.getType(),r=c[n];r&&r.onCellQuestionUpdate&&r.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var t=this.getDefaultCellQuestionType();return e&&this.colOwner&&(t=this.colOwner.getCustomCellType(this,e,t)),t},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),"default"!==e?e:this.colOwner?this.colOwner.getCellType():a.settings.matrixDefaultCellType},t.prototype.updateTemplateQuestion=function(e){var t=this,n=this.getDefaultCellQuestionType(e),r=this.templateQuestion?this.templateQuestion.getType():"";n!==r&&(this.templateQuestion&&this.removeProperties(r),this.templateQuestionValue=this.createNewQuestion(n),this.templateQuestion.locOwner=this,this.addProperties(n),this.templateQuestion.onPropertyChanged.add((function(e,n){t.propertyValueChanged(n.name,n.oldValue,n.newValue)})),this.templateQuestion.onItemValuePropertyChanged.add((function(e,n){t.doItemValuePropertyChanged(n.propertyName,n.obj,n.name,n.newValue,n.oldValue)})),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var t=o.Serializer.createClass(e);return t||(t=o.Serializer.createClass("text")),t.loadingOwner=this,t.isEditableTemplateElement=!0,t.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(t),this.setParentQuestionToTemplate(t),t},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,t){var n=this;if(void 0===t&&(t=null),this.templateQuestion){var r=(new o.JsonObject).toJsonObject(this.templateQuestion,!0);t&&t(r),r.type=e.getType(),"default"===this.cellType&&this.colOwner&&this.colOwner.hasChoices()&&delete r.choices,delete r.itemComponent,(new o.JsonObject).toObject(r,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(n.isShowInMultipleColumns&&(!n.previousChoicesId||n.previousChoicesId===e.id)){n.previousChoicesId=e.id;var t=e.visibleChoices;n.templateQuestion.choices=t,n.propertyValueChanged("choices",t,t)}}}},t.prototype.propertyValueChanged=function(t,n,r){e.prototype.propertyValueChanged.call(this,t,n,r),"isRequired"===t&&this.updateIsRenderedRequired(r),this.colOwner&&!this.isLoadingFromJson&&(this.isShowInMultipleColumns&&["visibleChoices","choices"].indexOf(t)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this),o.Serializer.hasOriginalProperty(this,t)&&this.colOwner.onColumnPropertyChanged(this,t,r))},t.prototype.doItemValuePropertyChanged=function(e,t,n,r,i){o.Serializer.hasOriginalProperty(t,n)&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnItemValuePropertyChanged(this,e,t,n,r,i))},t.prototype.doShowInMultipleColumnsChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.getProperties=function(e){return o.Serializer.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),n=0;n<t.length;n++){var r=t[n];delete this[r.name],r.serializationProperty&&delete this[r.serializationProperty]}},t.prototype.addProperties=function(e){for(var t=this.templateQuestion,n=this.getProperties(e),r=0;r<n.length;r++){var o=n[r];this.addProperty(t,o.name,!1),o.serializationProperty&&this.addProperty(t,o.serializationProperty,!0),o.alternativeName&&this.addProperty(t,o.alternativeName,!1)}},t.prototype.addProperty=function(e,t,n){var r={configurable:!0,get:function(){return e[t]}};n||(r.set=function(n){e[t]=n}),Object.defineProperty(this,t,r)},t}(i.Base);o.Serializer.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var e=p.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(e,t){e&&t&&(t.value=e.minWidth)}},"width","visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return!!e&&e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",default:"none",choices:["none","sum","count","min","max","avg"]},"totalExpression:expression",{name:"totalFormat",serializationProperty:"locTotalFormat"},{name:"totalDisplayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"totalCurrency",choices:function(){return Object(s.getCurrecyCodes)()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1},{name:"renderAs",default:"default",visible:!1}],(function(){return new p("")}))},"./src/question_matrixdropdownrendered.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionMatrixDropdownRenderedCell",(function(){return f})),n.d(t,"QuestionMatrixDropdownRenderedRow",(function(){return g})),n.d(t,"QuestionMatrixDropdownRenderedTable",(function(){return m}));var r,o=n("./src/jsonobject.ts"),i=n("./src/base.ts"),s=n("./src/itemvalue.ts"),a=n("./src/actions/action.ts"),l=n("./src/actions/adaptive-container.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/actions/container.ts"),p=n("./src/settings.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(){function e(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isDragHandlerCell=!1,this.classNameValue="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),e.prototype.showErrorOnCore=function(e){return this.getShowErrorLocation(e)&&(!this.isChoice||this.isFirstChoice)},e.prototype.getShowErrorLocation=function(e){return this.hasQuestion&&this.question.showErrorOnCore(e)},Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){var e=(new u.CssClassBuilder).append(this.classNameValue);return this.hasQuestion&&e.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),e.toString()},set:function(e){this.classNameValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(" "===this.cell.column.cellHint)return"";if(this.cell.column.cellHint)return this.cell.column.locCellHint.renderedHtml;if(this.cell.column.isShowInMultipleColumns)return this.item?this.item.locText.renderedHtml:""}return this.question&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),e.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},e.prototype.calculateFinalClassName=function(e){var t=this.cell.question.cssClasses,n=(new u.CssClassBuilder).append(t.itemValue,!!t).append(t.asCell,!!t);return n.append(e.cell,n.isEmpty()&&!!e).append(e.choiceCell,this.isChoice).toString()},e.counter=1,e}(),g=function(e){function t(n,r){void 0===r&&(r=!1);var o=e.call(this)||this;return o.cssClasses=n,o.isDetailRow=r,o.cells=[],o.idValue=t.counter++,o}return d(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.counter=1,h([Object(o.property)({defaultValue:!1})],t.prototype,"isGhostRow",void 0),h([Object(o.property)({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),t}(i.Base),m=function(e){function t(t){var n=e.call(this)||this;return n.matrix=t,n.renderedRowsChangedCallback=function(){},n.hasActionCellInRowsValues={},n.build(),n}return d(t,e),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.matrix.allowRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var t=this.matrix.canAddRow&&e,n=t,r=t;n&&(n="default"===this.matrix.getAddRowLocation()?!this.matrix.isColumnLayoutHorizontal:"bottom"!==this.matrix.getAddRowLocation()),r&&"topBottom"!==this.matrix.getAddRowLocation()&&(r=!n),this.setPropertyValue("showAddRowOnTop",n),this.setPropertyValue("showAddRowOnBottom",r)},t.prototype.onAddedRow=function(e,t){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var n=this.getRenderedRowIndexByIndex(t);this.rowsActions.splice(t,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,1==this.matrix.visibleRows.length&&!this.matrix.showHeader,n),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var t=0,n=0,r=0;r<this.rows.length;r++){if(n===e){this.rows[r].isDetailRow&&t++;break}t++,this.rows[r].isDetailRow||n++}return n<e?this.rows.length:t},t.prototype.getRenderedDataRowCount=function(){for(var e=0,t=0;t<this.rows.length;t++)this.rows[t].isDetailRow||e++;return e},t.prototype.onRemovedRow=function(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){this.rowsActions.splice(t,1);var n=1;t<this.rows.length-1&&this.rows[t+1].isDetailRow&&n++,this.rows.splice(t,n),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,t){var n=this.getRenderedRowIndex(e);if(!(n<0)){var r=n<this.rows.length-1&&this.rows[n+1].isDetailRow?n+1:-1;if(!(t&&r>-1||!t&&r<0))if(t){var o=this.createDetailPanelRow(e,this.rows[n]);this.rows.splice(n+1,0,o)}else this.rows.splice(r,1)}},t.prototype.getRenderedRowIndex=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)this.rowsActions.push(this.buildRowActions(e[t]))},t.prototype.createRenderedRow=function(e,t){return void 0===t&&(t=!1),new g(e,t)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",e),e){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.allowRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.visibleColumns.length;t++){var n=this.matrix.visibleColumns[t];n.hasVisibleCell&&(n.isShowInMultipleColumns?this.createMutlipleColumnsHeader(n):this.headerRow.cells.push(this.createHeaderCell(n)))}else{var r=this.matrix.visibleRows;for(t=0;t<r.length;t++){var o=this.createTextCell(r[t].locText);o.row=r[t],this.headerRow.cells.push(o)}this.matrix.hasFooter&&this.headerRow.cells.push(this.createTextCell(this.matrix.getFooterText()))}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildFooter=function(){if(this.showFooter){this.footerRowValue=this.createRenderedRow(this.cssClasses),this.allowRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.footerRow.cells.push(this.createTextCell(this.matrix.getFooterText()));for(var e=this.matrix.visibleTotalRow.cells,t=0;t<e.length;t++){var n=e[t];if(n.column.hasVisibleCell)if(n.column.isShowInMultipleColumns)this.createMutlipleColumnsFooter(this.footerRow,n);else{var r=this.createEditCell(n);n.column&&this.setHeaderCellWidth(n.column,r),this.footerRow.cells.push(r)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildRows=function(){var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e},t.prototype.hasActionCellInRows=function(e){return void 0===this.hasActionCellInRowsValues[e]&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var t=this;return!("end"!=e||!this.hasRemoveRows)||this.matrix.visibleRows.some((function(n,r){return!t.isValueEmpty(t.getRowActions(r,e))}))},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],n=0;n<e.length;n++)this.addHorizontalRow(t,e[n],0==n&&!this.matrix.showHeader);return t},t.prototype.addHorizontalRow=function(e,t,n,r){void 0===r&&(r=-1);var o=this.createHorizontalRow(t,n);o.row=t,r<0&&(r=e.length),e.splice(r,0,o),t.isDetailPanelShowing&&e.splice(r+1,0,this.createDetailPanelRow(t,o))},t.prototype.getRowDragCell=function(e){var t=new f;return t.isDragHandlerCell=!0,t.className=this.getActionsCellClassName(),t.row=this.matrix.visibleRows[e],t},t.prototype.getActionsCellClassName=function(){return(new u.CssClassBuilder).append(this.cssClasses.actionsCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal).toString()},t.prototype.getRowActionsCell=function(e,t){var n=this.getRowActions(e,t);if(!this.isValueEmpty(n)){var r=new f,o=this.matrix.allowAdaptiveActions?new l.AdaptiveActionContainer:new c.ActionContainer;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(o.cssClasses=this.matrix.survey.getCss().actionBar),o.setItems(n);var i=new s.ItemValue(o);return r.item=i,r.isActionsCell=!0,r.className=this.getActionsCellClassName(),r.row=this.matrix.visibleRows[e],r}return null},t.prototype.getRowActions=function(e,t){var n=this.rowsActions[e];return Array.isArray(n)?n.filter((function(e){return e.location||(e.location="start"),e.location===t})):[]},t.prototype.buildRowActions=function(e){var t=[];return this.setDefaultRowActions(e,t),this.matrix.survey&&(t=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,t)),t},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return p.settings.matrixRenderRemoveAsIcon&&this.matrix.survey&&"sd-root-modern"===this.matrix.survey.css.root},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,t){var n=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?t.push(new a.Action({id:"remove-row",iconName:"icon-delete",component:"sv-action-bar-item",innerCss:(new u.CssClassBuilder).append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:n.removeRowText,enabled:!n.isInputReadOnly,data:{row:e,question:n},action:function(){n.removeRowUI(e)}})):t.push(new a.Action({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&t.push(new a.Action({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}}))},t.prototype.createHorizontalRow=function(e,t){var n=this.createRenderedRow(this.cssClasses);if(this.allowRowsDragAndDrop){var r=this.matrix.visibleRows.indexOf(e);n.cells.push(this.getRowDragCell(r))}this.addRowActionsCell(e,n,"start"),this.matrix.hasRowText&&((s=this.createTextCell(e.locText)).row=e,n.cells.push(s),t&&this.setHeaderCellWidth(null,s),s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.detailRowText,e.hasPanel).toString());for(var o=0;o<e.cells.length;o++){var i=e.cells[o];if(i.column.hasVisibleCell)if(i.column.isShowInMultipleColumns)this.createMutlipleEditCells(n,i);else{var s=this.createEditCell(i);n.cells.push(s),t&&this.setHeaderCellWidth(i.column,s)}}return this.addRowActionsCell(e,n,"end"),n},t.prototype.addRowActionsCell=function(e,t,n){var r=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(n)){var o=this.getRowActionsCell(r,n);if(o)t.cells.push(o);else{var i=new f;i.isEmpty=!0,t.cells.push(i)}}},t.prototype.createDetailPanelRow=function(e,t){var n=this.matrix.isDesignMode,r=this.createRenderedRow(this.cssClasses,!0);r.row=e;var o=new f;this.matrix.hasRowText&&(o.colSpans=2),o.isEmpty=!0,n||r.cells.push(o);var i=null;this.hasActionCellInRows("end")&&((i=new f).isEmpty=!0);var s=new f;return s.panel=e.detailPanel,s.colSpans=t.cells.length-(n?0:o.colSpans)-(i?i.colSpans:0),s.className=this.cssClasses.detailPanelCell,r.cells.push(s),i&&r.cells.push(i),"function"==typeof this.matrix.onCreateDetailPanelRenderedRowCallback&&this.matrix.onCreateDetailPanelRenderedRowCallback(r),r},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],n=0;n<e.length;n++){var r=e[n];r.isVisible&&r.hasVisibleCell&&(r.isShowInMultipleColumns?this.createMutlipleVerticalRows(t,r,n):t.push(this.createVerticalRow(r,n)))}return this.hasActionCellInRows("end")&&t.push(this.createEndVerticalActionRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,n){var r=this.getMultipleColumnChoices(t);if(r)for(var o=0;o<r.length;o++)e.push(this.createVerticalRow(t,n,r[o],o))},t.prototype.createVerticalRow=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=-1);var o=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var i=n?n.locText:e.locTitle,s=this.createTextCell(i);s.column=e,s.className=(new u.CssClassBuilder).append(s.className).append(this.cssClasses.rowTextCell).toString(),n||this.setRequriedToHeaderCell(e,s),o.cells.push(s)}for(var a=this.matrix.visibleRows,l=0;l<a.length;l++){var c=n,p=r>=0?r:l,d=a[l].cells[t],h=n?d.question.visibleChoices:void 0;h&&p<h.length&&(c=h[p]);var f=this.createEditCell(d,c);f.item=c,f.choiceIndex=p,o.cells.push(f)}return this.matrix.hasTotal&&o.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),o},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var t=this.matrix.visibleRows,n=0;n<t.length;n++)e.cells.push(this.getRowActionsCell(n,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,t,n){void 0===n&&(n=!1);var r=n?this.getMultipleColumnChoices(t.column):t.question.visibleChoices;if(r)for(var o=0;o<r.length;o++){var i=this.createEditCell(t,n?void 0:r[o]);n||(this.setItemCellCssClasses(i),i.choiceIndex=o),e.cells.push(i)}},t.prototype.setItemCellCssClasses=function(e){e.className=(new u.CssClassBuilder).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,t){void 0===t&&(t=void 0);var n=new f;return n.cell=e,n.row=e.row,n.question=e.question,n.matrix=this.matrix,n.item=t,n.isOtherChoice=!!t&&!!e.question&&e.question.otherItem===t,n.className=n.calculateFinalClassName(this.cssClasses),n},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var n=0;n<t.length;n++){var r=this.createTextCell(t[n].locText);this.setHeaderCell(e,r),this.setHeaderCellCssClasses(r),this.headerRow.cells.push(r)}},t.prototype.getMultipleColumnChoices=function(e){var t=e.templateQuestion.choices;return t&&Array.isArray(t)&&0==t.length?this.matrix.choices:(t=e.templateQuestion.visibleChoices)&&Array.isArray(t)?t:null},t.prototype.setHeaderCellCssClasses=function(e,t){e.className=(new u.CssClassBuilder).append(this.cssClasses.headerCell).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+t,!!t).toString()},t.prototype.createHeaderCell=function(e){var t=e?this.createTextCell(e.locTitle):this.createEmptyCell();t.column=e,this.setHeaderCell(e,t);var n=e&&"default"!==e.cellType?e.cellType:this.matrix.cellType;return this.setHeaderCellCssClasses(t,n),t},t.prototype.setHeaderCell=function(e,t){this.setHeaderCellWidth(e,t),this.setRequriedToHeaderCell(e,t)},t.prototype.setHeaderCellWidth=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),t.width=null!=e?e.width:this.matrix.getRowTitleWidth()},t.prototype.setRequriedToHeaderCell=function(e,t){e&&e.isRequired&&this.matrix.survey&&(t.requiredText=this.matrix.survey.requiredText)},t.prototype.createRemoveRowCell=function(e){var t=new f;return t.row=e,t.isRemoveRow=this.canRemoveRow(e),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createTextCell=function(e){var t=new f;return t.locTitle=e,e&&e.strChanged(),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createEmptyCell=function(){var e=this.createTextCell(null);return e.isEmpty=!0,e},h([Object(o.propertyArray)({onPush:function(e,t,n){n.renderedRowsChangedCallback()}})],t.prototype,"rows",void 0),t}(i.Base)},"./src/question_matrixdynamic.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixDynamicRowModel",(function(){return g})),n.d(t,"QuestionMatrixDynamicModel",(function(){return m}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_matrixdropdownbase.ts"),a=n("./src/error.ts"),l=n("./src/settings.ts"),u=n("./src/utils/utils.ts"),c=n("./src/dragdrop/matrix-rows.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/question_matrixdropdownrendered.ts"),h=n("./src/utils/dragOrClickHelper.ts"),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(t,n,r){var o=e.call(this,n,r)||this;return o.index=t,o.buildCells(r),o}return f(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data.visibleRows.indexOf(this)+1,t=this.cells.length>1?this.cells[1].questionValue:void 0,n=this.cells.length>0?this.cells[0].questionValue:void 0;return t&&t.value||n&&n.value||""+e},enumerable:!1,configurable:!0}),t}(s.MatrixDropdownRowModelBase),m=function(e){function t(t){var n=e.call(this,t)||this;return n.rowCounter=0,n.initialRowCount=2,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(e,t){n.dragDropMatrixRows.startDrag(e,n.draggedRow,n,e.target)},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("addRowText",n).onGetTextCallback=function(e){return e||n.defaultAddRowText},n.createLocalizableString("removeRowText",n,!1,"removeRow"),n.createLocalizableString("emptyRowsText",n,!1,!0),n.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],(function(){n.updateShowTableAndAddRow()})),n.registerPropertyChangedHandlers(["allowRowsDragAndDrop"],(function(){n.clearRowsAndResetRenderedTable()})),n.dragOrClickHelper=new h.DragOrClickHelper(n.startDragMatrixRow),n}return f(t,e),t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.dragDropMatrixRows=new c.DragDropMatrixRows(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var t=e.target;return"true"===t.getAttribute("contenteditable")||"INPUT"===t.nodeName},t.prototype.onPointerDown=function(e,t){t&&this.allowRowsDragAndDrop&&(this.isBanStartDrag(e)||t.isDetailPanelShowing||(this.draggedRow=t,this.dragOrClickHelper.onPointerDown(e)))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(t){if(this.minRowCount<1)return e.prototype.valueFromData.call(this,t);Array.isArray(t)||(t=[]);for(var n=t.length;n<this.minRowCount;n++)t.push({});return t},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultRowValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.rowCount){for(var t=[],n=0;n<this.rowCount;n++)t.push(this.defaultRowValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.moveRowByIndex=function(e,t){var n=this.createNewValue();if(Array.isArray(n)||!(Math.max(e,t)>=n.length)){var r=n[e];n.splice(e,1),n.splice(t,0,r),this.value=n}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>l.settings.matrixMaximumRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var n=this.value;n.splice(e),this.value=n}if(this.isUpdateLocked)this.initialRowCount=e;else{if(this.generatedVisibleRows||0==t){this.generatedVisibleRows||(this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var r=t;r<e;r++){var o=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}}},enumerable:!1,configurable:!0}),t.prototype.updateProgressInfoByValues=function(e){var t=this.value;Array.isArray(t)||(t=[]);for(var n=0;n<this.rowCount;n++){var r=n<t.length?t[n]:{};this.updateProgressInfoByRow(e,r)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return!this.readOnly&&this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new y(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>l.settings.matrixMaximumRowCount&&(e=l.settings.matrixMaximumRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!this.survey||this.survey.matrixAllowRemoveRow(this,e.index,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){for(var e=this.visibleRows[this.visibleRows.length-1],t=0;t<e.cells.length;t++){var n=e.cells[t].question;if(n&&n.isVisible&&!n.isReadOnly)return n}return null},t.prototype.addRow=function(e){var t=this.rowCount,n={question:this,canAddRow:this.canAddRow};if(this.survey&&this.survey.matrixBeforeRowAdded(n),n.canAddRow&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&t!==this.rowCount)){var r=this.getQuestionToFocusOnAddingRow();r&&r.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,e.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(t){return this.isEditingSurveyElement||e.prototype.isValueSurveyElement.call(this,t)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),n=null;if(this.isValueEmpty(t)||(n=this.createNewValue()).length==this.rowCount&&(n[n.length-1]=t,this.value=n),this.data&&(this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.isValueEmpty(t))){var r=this.visibleRows[this.rowCount-1];this.isValueEmpty(r.value)||(n||(n=this.createNewValue()),this.isValueSurveyElement(n)||this.isTwoValueEquals(n[n.length-1],r.value)||(n[n.length-1]=r.value,this.value=n))}this.survey&&e+1==this.rowCount&&(this.survey.matrixRowAdded(this,this.visibleRows[this.visibleRows.length-1]),this.onRowsChanged())},t.prototype.getDefaultRowValue=function(e){for(var t=null,n=0;n<this.columns.length;n++){var r=this.columns[n].templateQuestion;r&&!this.isValueEmpty(r.getDefaultValue())&&((t=t||{})[this.columns[n].name]=r.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var o in this.defaultRowValue)(t=t||{})[o]=this.defaultRowValue[o];if(e&&this.defaultValueFromLastRow){var i=this.value;if(i&&Array.isArray(i)&&i.length>=this.rowCount-1){var s=i[this.rowCount-2];for(var o in s)(t=t||{})[o]=s[o]}}return t},t.prototype.removeRowUI=function(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}this.removeRow(e)},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete)return!1;if(e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!(this.isValueEmpty(t)||!Array.isArray(t)||e>=t.length||this.isValueEmpty(t[e]))},t.prototype.removeRow=function(e,t){if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var n=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;void 0===t&&(t=this.isRequireConfirmOnRowDelete(e)),t&&!Object(u.confirmAction)(this.confirmDeleteText)||n&&this.survey&&!this.survey.matrixRowRemoving(this,e,n)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(n))}},t.prototype.removeRowCore=function(e){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var n=[];(n=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue()).splice(e,1),n=this.deleteRowValue(n,null),this.isRowChanging=!0,this.value=n,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,t)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t||!Array.isArray(t))return t;for(var n=this.getUnbindValue(t),r=this.visibleRows,o=0;o<r.length&&o<n.length;o++){var i=n[o];i&&(n[o]=this.getRowDisplayValue(e,r[o],i))}return n},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=Math.max(this.rowCount,1),n=0;n<Math.min(l.settings.matrixMaxRowCountInCondition,t);n++)e.push(n);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,n){e.prototype.onCheckForErrors.call(this,t,n),!n&&this.hasErrorInMinRows()&&t.push(new a.MinRowCountError(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].isEmpty||e++;return e<this.minRowCount},t.prototype.getUniqueColumns=function(){var t=e.prototype.getUniqueColumns.call(this);if(this.keyName){var n=this.getColumnByName(this.keyName);n&&t.indexOf(n)<0&&t.push(n)}return t},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(),n=0;n<this.rowCount;n++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,n)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new g(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(t[r]!==e[r].editingObj)return r;return n},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var t=this.lastDeletedRow;this.lastDeletedRow=void 0;var n=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(n.length-e.length)>1)return!1;var r=this.getInsertedDeletedIndex(n,e);if(n.length>e.length){this.lastDeletedRow=n[r];var o=n[r];n.splice(r,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(o)}else{var i;i=t&&t.editingObj===e[r]?t:this.createMatrixRow(e[r]),n.splice(r,0,i),t||this.onMatrixRowCreated(i),this.isRendredTableCreated&&this.renderedTable.onAddedRow(i,r)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.onBeforeValueChanged=function(e){if(e&&Array.isArray(e)){var t=e.length;if(t!=this.rowCount&&(this.setRowCountValueFromData||!(t<this.initialRowCount))&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows)){if(t==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var n=this.getRowValueByIndex(e,t-1),r=this.createMatrixRow(n);this.generatedVisibleRows.push(r),this.onMatrixRowCreated(r),this.onEndRowAdding()}else this.clearGeneratedRows(),this.generatedVisibleRows=this.visibleRows,this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var n=e.length;n<this.rowCount;n++)e.push(this.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){for(var n=!0,r=0;r<e.length;r++)if(this.isObject(e[r])&&Object.keys(e[r]).length>0){n=!1;break}return n?null:e},t.prototype.getRowValueByIndex=function(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,n){if(void 0===n&&(n=!1),!this.generatedVisibleRows)return{};var r=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!r&&n&&(r={}),r},t.prototype.getAddRowButtonCss=function(e){return void 0===e&&(e=!1),(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var t;return(new p.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(null===(t=this.renderedTable)||void 0===t?void 0:t.showTable)).toString()},t}(s.QuestionMatrixDropdownModelBase),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.setDefaultRowActions=function(t,n){e.prototype.setDefaultRowActions.call(this,t,n)},t}(d.QuestionMatrixDropdownRenderedTable);o.Serializer.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:l.settings.matrixMaximumRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(e){return!e||e.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(e){return"none"!==e.detailPanelMode}},"allowRowsDragAndDrop:switch"],(function(){return new m("")}),"matrixdropdownbase"),i.QuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){var t=new m(e);return t.choices=[1,2,3,4,5],s.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t}))},"./src/question_multipletext.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"MultipleTextEditorModel",(function(){return f})),n.d(t,"MultipleTextItemModel",(function(){return g})),n.d(t,"QuestionMultipleTextModel",(function(){return m}));var r,o=n("./src/base.ts"),i=n("./src/survey-element.ts"),s=n("./src/question.ts"),a=n("./src/question_text.ts"),l=n("./src/jsonobject.ts"),u=n("./src/questionfactory.ts"),c=n("./src/helpers.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=n("./src/settings.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(a.QuestionTextModel),g=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.editorValue=r.createEditor(t),r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r}return h(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new f(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e)},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return c.Helpers.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,t){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var t=this.getSurvey();return t?t.getQuestionByName(e):null},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(o.Base),m=function(e){function t(t){var n=e.call(this,t)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",(function(e){e.setData(n),n.survey&&n.survey.multipleTextItemAdded(n,e)})),n.registerPropertyChangedHandlers(["items","colCount"],(function(){n.fireCallback(n.colCountChangedCallback)})),n.registerPropertyChangedHandlers(["itemSize"],(function(){n.updateItemsSize()})),n}return h(t,e),t.addDefaultItems=function(e){for(var t=u.QuestionFactory.DefaultMutlipleTextItems,n=0;n<t.length;n++)e.addItem(t[n])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var t;null===(t=this.items)||void 0===t||t.map((function(t,n){return t.editor.id=e+"_"+n})),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),this.fireCallback(this.colCountChangedCallback)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.performForEveryEditor((function(e){e.editor.updateValueFromSurvey(e.value)})),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.performForEveryEditor((function(e){e.editor.onSurveyValueChanged(e.value)}))},t.prototype.updateItemsSize=function(){this.performForEveryEditor((function(e){e.editor.updateInputSize()}))},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor((function(e){e.editor.onSurveyLoad()}))},t.prototype.performForEveryEditor=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];n.editor&&e(n)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var n=this.createTextItem(e,t);return this.items.push(n),n},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.items.length;n++){var r=this.items[n];e.push({name:this.getValueName()+"."+r.name,text:this.processedTitle+"."+r.fullTitle,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);var r=this.getItemByName(n);if(!r)return null;var o=(new l.JsonObject).toJsonObject(r);return o.type="text",o},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].localeChanged()},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){for(var e=this.colCount,t=this.items,n=[],r=0,o=0;o<t.length;o++)0==r&&n.push([]),n[n.length-1].push(t[o]),++r>=e&&(r=0);return n},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new g(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null);for(var o=!1,i=0;i<this.items.length;i++)this.items[i].editor.onCompletedAsyncValidators=function(e){r.raiseOnCompletedAsyncValidators()},n&&!0===n.isOnValueChanged&&this.items[i].editor.isEmpty()||(o=this.items[i].editor.hasErrors(t,n)||o);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(t=t.concat(r))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.items,r=0;r<n.length;r++)if(n[r].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var n=this.items[t].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return i.SurveyElement.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;for(var n={},r=0;r<this.items.length;r++){var o=this.items[r],i=t[o.name];if(!c.Helpers.isValueEmpty(i)){var s=o.name;e&&o.title&&(s=o.title),n[s]=o.editor.getDisplayValue(e,i)}}return n},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0,this.isValueEmpty(t)&&(t=void 0);var n=this.value;n||(n={}),n[e]=t,this.setNewValue(n),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.getItemLabelCss=function(e){return(new p.CssClassBuilder).append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).toString()},t.prototype.getItemCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return(new p.CssClassBuilder).append(this.cssClasses.itemTitle).toString()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!0},t}(s.Question);l.Serializer.addClass("multipletextitem",["name","isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:d.settings.questions.inputTypes},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],(function(){return new g("")})),l.Serializer.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",minValue:0},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],(function(){return new m("")}),"question"),u.QuestionFactory.Instance.registerQuestion("multipletext",(function(e){var t=new m(e);return m.addDefaultItems(t),t}))},"./src/question_paneldynamic.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionPanelDynamicItem",(function(){return C})),n.d(t,"QuestionPanelDynamicTemplateSurveyImpl",(function(){return w})),n.d(t,"QuestionPanelDynamicModel",(function(){return x}));var r,o=n("./src/helpers.ts"),i=n("./src/survey-element.ts"),s=n("./src/localizablestring.ts"),a=n("./src/textPreProcessor.ts"),l=n("./src/question.ts"),u=n("./src/jsonobject.ts"),c=n("./src/questionfactory.ts"),p=n("./src/error.ts"),d=n("./src/settings.ts"),h=n("./src/utils/utils.ts"),f=n("./src/utils/cssClassBuilder.ts"),g=n("./src/actions/action.ts"),m=n("./src/base.ts"),y=n("./src/actions/adaptive-container.ts"),v=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(e){function t(t,n,r){var o=e.call(this,r)||this;return o.data=t,o.panelItem=n,o.variableName=r,o.sharedQuestions={},o}return v(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(t){var n=e.prototype.getQuestionByName.call(this,t);if(n)return n;var r=this.panelIndex,o=(n=r>-1?this.data.getSharedQuestionFromArray(t,r):void 0)?n.name:t;return this.sharedQuestions[o]=t,n},t.prototype.getQuestionDisplayText=function(t){var n=this.sharedQuestions[t.name];if(!n)return e.prototype.getQuestionDisplayText.call(this,t);var r=this.panelItem.getValue(n);return t.getDisplayValue(!0,r)},t.prototype.onCustomProcessText=function(e){var n;if(e.name==C.IndexVariableName&&(n=this.panelIndex)>-1)return e.isExists=!0,e.value=n+1,!0;if(e.name==C.VisibleIndexVariableName&&(n=this.visiblePanelIndex)>-1)return e.isExists=!0,e.value=n+1,!0;if(0==e.name.toLowerCase().indexOf(C.ParentItemVariableName+".")){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,C.ItemVariableName),i=C.ItemVariableName+e.name.substring(C.ParentItemVariableName.length),s=o.processValue(i,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(a.QuestionTextProcessor),C=function(){function e(t,n){this.data=t,this.panelValue=n,this.textPreProcessor=new b(t,this,e.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(e,t){var n=this.data.getPanelItemData(this),r=n?n[e]:void 0;if(!o.Helpers.isTwoValueEquals(t,r)){this.data.setPanelItemData(this,e,o.Helpers.getUnbindValue(t));for(var i=this.panel.questions,s=0;s<i.length;s++)i[s].getValueName()!==e&&i[s].checkBindings(e,t)}},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){return this.getValue(e+d.settings.commentSuffix)||""},e.prototype.setComment=function(e,t,n){this.setValue(e+d.settings.commentSuffix,t)},e.prototype.findQuestionByName=function(t){if(t){var n=e.ItemVariableName+".";if(0===t.indexOf(n))return this.panel.getQuestionByName(t.substring(n.length));var r=this.getSurvey();return r?r.getQuestionByName(t):null}},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},n=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var r in n)t[r]=n[r];if(t[e.ItemVariableName]=this.getAllValues(),this.data){var o=e.IndexVariableName,i=e.VisibleIndexVariableName;delete t[o],delete t[i],t[o.toLowerCase()]=this.data.getItemIndex(this),t[i.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[e.ParentItemVariableName]=s.parent.getValue())}return t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},e.ItemVariableName="panel",e.ParentItemVariableName="parentpanel",e.IndexVariableName="panelIndex",e.VisibleIndexVariableName="visiblePanelIndex",e}(),w=function(){function e(e){this.data=e}return e.prototype.getSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),x=function(e){function t(t){var n=e.call(this,t)||this;return n.isAddingNewPanels=!1,n.onReadyChangedCallback=function(){n.recalculateIsReadyValue()},n.isSetPanelItemData={},n.createNewArray("panels",(function(e){n.onPanelAdded(e)}),(function(e){n.onPanelRemoved(e)})),n.createNewArray("visiblePanels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(e){n.addOnPropertyChangedCallback(e),n.rebuildPanels()},n.template.removeElementCallback=function(){n.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.createLocalizableString("panelAddText",n,!1,"addPanel"),n.createLocalizableString("panelRemoveText",n,!1,"removePanel"),n.createLocalizableString("panelPrevText",n,!1,"pagePrevText"),n.createLocalizableString("panelNextText",n,!1,"pageNextText"),n.createLocalizableString("noEntriesText",n,!1,"noEntriesText"),n.createLocalizableString("templateTabTitle",n,!0,"panelDynamicTabTextFormat"),n.registerPropertyChangedHandlers(["panelsState"],(function(){n.setPanelsState()})),n.registerPropertyChangedHandlers(["isMobile"],(function(){n.updateFooterActions()})),n.registerPropertyChangedHandlers(["allowAddPanel"],(function(){n.updateNoEntriesTextDefaultLoc()})),n}return v(t,e),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var t=0;t<this.visiblePanels.length;t++){var n=this.visiblePanels[t].getFirstQuestionToFocus(e);if(n)return n}return null},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add((function(e,n){t.onTemplateElementPropertyChanged(e,n)})),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.useTemplatePanel&&0!=this.panels.length&&u.Serializer.findProperty(e.getType(),t.name))for(var n=this.panels,r=0;r<n.length;r++){var o=n[r].getQuestionByName(e.name);o&&o[t.name]!==t.newValue&&(o[t.name]=t.newValue)}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.clearOnDeletingContainer=function(){this.panels.forEach((function(e){e.clearOnDeletingContainer()}))},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTabTitle",{get:function(){return this.locTemplateTabTitle.text},set:function(e){this.locTemplateTabTitle.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTabTitle",{get:function(){return this.getLocalizableString("templateTabTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateVisibleIf",{get:function(){return this.template.visibleIf},set:function(e){this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panels.length;t++)e.push(this.panels[t].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),e.visible){for(var t=0,n=this.panels,r=0;r<n.length&&n[r]!==e;r++)n[r].visible&&t++;this.visiblePanels.splice(t,0,e),this.addTabFromToolbar(e,t),this.currentPanel||(this.currentPanel=e)}},t.prototype.onPanelRemoved=function(e){var t=this.onPanelRemovedCore(e);if(this.currentPanel===e){var n=this.visiblePanels;t>=n.length&&(t=n.length-1),this.currentPanel=t>=0?n[t]:null}},t.prototype.onPanelRemovedCore=function(e){var t=this.visiblePanels,n=t.indexOf(e);return n>-1&&(t.splice(n,1),this.removeTabFromToolbar(e)),n},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanels.indexOf(this.currentPanel)},set:function(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanels[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){if(this.isDesignMode)return this.template;if(this.isRenderModeList||this.useTemplatePanel)return null;var e=this.getPropertyValue("currentPanel",null);return!e&&this.visiblePanelCount>0&&(e=this.visiblePanels[0],this.currentPanel=e),e},set:function(e){this.isRenderModeList||this.useTemplatePanel||e&&this.visiblePanels.indexOf(e)<0||e===this.getPropertyValue("currentPanel")||(this.setPropertyValue("currentPanel",e),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},t.prototype.setIsMobile=function(e){(this.panels||[]).forEach((function(t){return t.elements.forEach((function(t){t instanceof l.Question&&(t.isMobile=e)}))}))},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.useTemplatePanel?this.getPropertyValue("panelCount"):this.panels.length},set:function(e){if(!(e<0))if(this.isLoadingFromJson||this.useTemplatePanel)this.setPropertyValue("panelCount",e);else if(e!=this.panels.length&&!this.useTemplatePanel){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var n=this.createNewPanel();this.panels.push(n),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?n.expand():n.title&&n.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelCount",{get:function(){return this.visiblePanels.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new w(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panels.length;e++){var t=this.panels[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.useTemplatePanel&&"list"==this.renderMode&&this.templateTitle)for(var e=0;e<this.panels.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panels[e].state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++)e.push({});e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),e!=this.minPanelCount&&(this.setPropertyValue("minPanelCount",e),e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>d.settings.panelMaximumPanelCount&&(e=d.settings.panelMaximumPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress")},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.updateFooterActions(),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(e){this.setPropertyValue("renderMode",e),this.updateFooterActions(),this.fireCallback(this.renderModeChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.additionalTitleToolbar.containerCss=this.getAdditionalTitleToolbarCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return"tab"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(this.isRenderModeTab&&this.visiblePanelCount>0)return!0;if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var n="onSurvey"==this.showQuestionNumbers?t:0,r=0;r<this.visiblePanels.length;r++){var o=this.setPanelVisibleIndex(this.visiblePanels[r],n,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(n+=o)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:n-t},t.prototype.setPanelVisibleIndex=function(e,t,n){return n?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return!this.isDesignMode&&!(this.isDefaultV2Theme&&!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1)&&this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return!this.isDesignMode&&this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.useTemplatePanel)new C(this,this.template),t.push(this.template);else for(var n=0;n<this.panelCount;n++)this.createNewPanel(),t.push(this.createNewPanel());(e=this.panels).splice.apply(e,function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}([0,this.panels.length],t)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(!this.isValueEmpty(this.defaultPanelValue)&&this.isValueEmpty(this.defaultValue)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.getProgressInfo=function(){return i.SurveyElement.getProgressInfoByElements(this.visiblePanels,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;if(!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),e},t.prototype.addPanel=function(){this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1);var e=this.value,t=!1;return this.isValueEmpty(this.defaultPanelValue)||e&&Array.isArray(e)&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],this.defaultPanelValue)),this.defaultValueFromLastPanel&&e&&Array.isArray(e)&&e.length>1&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],e[e.length-2])),t&&(this.value=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panels[this.panelCount-1]},t.prototype.canLeaveCurrentPanel=function(){return!("list"!==this.renderMode&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,t){for(var n in t)e[n]=t[n]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!Object(h.confirmAction)(this.confirmDeleteText)||this.removePanel(e))},t.prototype.goToNextPanel=function(){return!(this.currentIndex<0||!this.canLeaveCurrentPanel()||(this.currentIndex++,0))},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getVisualPanelIndex(e);if(!(t<0||t>=this.visiblePanelCount)){var n=this.visiblePanels[t],r=this.panels.indexOf(n);r<0||this.survey&&!this.survey.dynamicPanelRemoving(this,r,n)||(this.panels.splice(r,1),this.updateBindings("panelCount",this.panelCount),!(e=this.value)||!Array.isArray(e)||r>=e.length||(this.isValueChangingInternally=!0,e.splice(r,1),this.value=e,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,r,n),this.isValueChangingInternally=!1))}},t.prototype.getVisualPanelIndex=function(e){if(o.Helpers.isNumber(e))return e;for(var t=this.visiblePanels,n=0;n<t.length;n++)if(t[n]===e||t[n].data===e)return n;return-1},t.prototype.getPanelIndexById=function(e){for(var t=0;t<this.panels.length;t++)if(this.panels[t].id===e)return t;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,n=0;n<t.length;n++)t[n].locStrsChanged();this.additionalTitleToolbar&&this.additionalTitleToolbar.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panels.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t>=this.panelCount?null:this.panels[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panels[e];t.clearIncorrectValues();var n=this.value,r=n&&e<n.length?n[e]:null;if(r){var o=!1;for(var i in r)this.getSharedQuestionFromArray(i,e)||t.getQuestionByName(i)||this.iscorrectValueWithPostPrefix(t,i,d.settings.commentSuffix)||this.iscorrectValueWithPostPrefix(t,i,d.settings.matrixTotalValuePostFix)||(delete r[i],o=!0);o&&(n[e]=r,this.value=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,n){return t.indexOf(n)===t.length-n.length&&!!e.getQuestionByName(t.substring(0,t.indexOf(n)))},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&(!0===t||this.template.questions.indexOf(t)>-1),r=new Array,o=this.template.questions,i=0;i<o.length;i++)o[i].addConditionObjectsByContext(r,t);for(var s=0;s<d.settings.panelDynamicMaxPanelCountInCondition;s++){var a="["+s+"].",l=this.getValueName()+a,u=this.processedTitle+a;for(i=0;i<r.length;i++)e.push({name:l+r[i].name,text:u+r[i].text,question:r[i].question})}if(n)for(l=!0===t?this.getValueName()+".":"",u=!0===t?this.processedTitle+".":"",i=0;i<r.length;i++)if(r[i].question!=t){var c={name:l+"panel."+r[i].name,text:u+"panel."+r[i].text,question:r[i].question};!0===t&&(c.context=this),e.push(c)}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t,n);var r=n,o=n.indexOf(".");o>-1&&(r=n.substring(0,o),n=n.substring(o+1));var i=this.template.getQuestionByName(r);return i?i.getConditionJson(t,n):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var n=0;n<this.panels.length;n++)this.panels[n].readOnly=t;this.updateNoEntriesTextDefaultLoc(),e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText",e.strChanged())},t.prototype.onSurveyLoad=function(){if(this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var t=0;t<this.panelCount;t++)this.survey.dynamicPanelAdded(this);this.recalculateIsReadyValue(),!this.isReadOnly&&this.allowAddPanel||this.updateNoEntriesTextDefaultLoc(),e.prototype.onSurveyLoad.call(this)},t.prototype.onFirstRendering=function(){this.template.onFirstRendering();for(var t=0;t<this.panels.length;t++)this.panels[t].onFirstRendering();e.prototype.onFirstRendering.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].localeChanged()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runPanelsCondition(t,n)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var n={};e&&e instanceof Object&&(n=JSON.parse(JSON.stringify(e))),this.parentQuestion&&this.parent&&(n[C.ParentItemVariableName]=this.parent.getValue());for(var r=0;r<this.panels.length;r++){var i=this.getPanelItemData(this.panels[r].data),s=o.Helpers.createCopy(n);s[C.ItemVariableName.toLowerCase()]=i,s[C.IndexVariableName.toLowerCase()]=r,this.panels[r].runCondition(s,t)}},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panels[n].onAnyValueChanged(t),this.panels[n].onAnyValueChanged(C.ItemVariableName)},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var n,r=[],o=0;o<this.panels.length;o++)n=this.isValueDuplicated(this.panels[o],r,t,e)||n;return n},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),this.isValueChangingInternally)return!1;var r=!1;if(this.changingValueQuestion)return r=this.changingValueQuestion.hasErrors(t,n),r=this.hasKeysDuplicated(t,n)||r,this.updatePanelsContainsErrors(),r;var o=this.hasErrorInPanels(t,n);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.panels,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.visiblePanels,n=0;n<t.length;n++){var r=[];t[n].addQuestionsToList(r,!0);for(var o=0;o<r.length;o++)if(!r[o].isAnswered)return!1}return!0},t.prototype.clearValueIfInvisibleCore=function(){for(var t=0;t<this.panels.length;t++){var n=this.panels[t].questions;this.isSetPanelItemData={};for(var r=0;r<n.length;r++){var o=n[r];o.clearValueIfInvisible(),this.isSetPanelItemData[o.getValueName()]=this.maxCheckCount+1}}this.isSetPanelItemData={},e.prototype.clearValueIfInvisibleCore.call(this)},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panels.length;t++)for(var n=this.panels[t].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=this.visiblePanels,r=0;r<n.length;r++)for(var o=n[r].questions,i=0;i<o.length;i++){var s=o[i].getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.getDisplayValueCore=function(e,t){var n=this.getUnbindValue(t);if(!n||!Array.isArray(n))return n;for(var r=0;r<this.panels.length&&r<n.length;r++){var o=n[r];o&&(n[r]=this.getPanelDisplayValue(r,o,e))}return n},t.prototype.getPanelDisplayValue=function(e,t,n){if(!t)return t;for(var r=this.panels[e],o=Object.keys(t),i=0;i<o.length;i++){var s=o[i],a=r.getQuestionByValueName(s);if(a||(a=this.getSharedQuestionFromArray(s,e)),a){var l=a.getDisplayValue(n,t[s]);t[s]=l,n&&a.title&&a.title!==s&&(t[a.title]=l,delete t[s])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var n=!1,r=this.visiblePanels,o=[],i=0;i<r.length;i++)this.setOnCompleteAsyncInPanel(r[i]);for(i=0;i<r.length;i++){var s=r[i].hasErrors(e,!!t&&t.focuseOnFirstError,t);s=this.isValueDuplicated(r[i],o,t,e)||s,this.isRenderModeList||!s||n||(this.currentIndex=i),n=s||n}return n},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,n=e.questions,r=0;r<n.length;r++)n[r].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,n,r){if(!this.keyName)return!1;var o=e.getQuestionByValueName(this.keyName);if(!o||o.isEmpty())return!1;var i=o.value;this.changingValueQuestion&&o!=this.changingValueQuestion&&o.hasErrors(r,n);for(var s=0;s<t.length;s++)if(i==t[s])return r&&o.addError(new p.KeyDuplicationError(this.keyDuplicationError,this)),n&&!n.firstErrorQuestion&&(n.firstErrorQuestion=o),!0;return t.push(i),!1},t.prototype.getPanelActions=function(e){var t=this,n=e.footerActions;return"right"!==this.panelRemoveButtonLocation&&n.push(new g.Action({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new m.ComputedUpdater((function(){return[t.canRemovePanel,"collapsed"!==e.state,"right"!==t.panelRemoveButtonLocation].every((function(e){return!0===e}))})),data:{question:this,panel:e}})),this.survey&&(n=this.survey.getUpdatedPanelFooterActions(e,n,this)),n},t.prototype.createNewPanel=function(){var e=this,t=this.createAndSetupNewPanelObject(),n=this.template.toJSON();(new u.JsonObject).toObject(n,t),t.renderWidth="100%",t.updateCustomWidgets(),new C(this,t),t.onFirstRendering();for(var r=t.questions,o=0;o<r.length;o++)r[o].setParentQuestion(this);return t.locStrsChanged(),t.onGetFooterActionsCallback=function(){return e.getPanelActions(t)},t.footerToolbarCss=this.cssClasses.panelFooter,t.registerPropertyChangedHandlers(["visible"],(function(){t.visible?e.onPanelAdded(t):e.onPanelRemoved(t),e.updateFooterActions()})),t},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject();e.isInteractiveDesignElement=!1,e.setParentQuestion(this);var t=this;return e.onGetQuestionTitleLocation=function(){return t.getTemplateQuestionTitleLocation()},e},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.createNewPanelObject=function(){return u.Serializer.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.useTemplatePanel){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.getPropertyValue("panelCount")>0&&(t=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=t,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(t){if(!this.settingPanelCountBasedOnValue){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panels.length;n++)this.panelUpdateValueFromSurvey(this.panels[n]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(t){if(void 0!==t||!this.isAllPanelsEmpty()){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panelSurveyValueChanged(this.panels[n]);void 0===t&&this.setValueBasedOnPanelCount(),this.recalculateIsReadyValue()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panels.length;e++)if(!o.Helpers.isValueEmpty(this.panels[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.updateValueFromSurvey(n[o.getValueName()]),o.updateCommentFromSurvey(n[o.getValueName()+d.settings.commentSuffix])}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var o=t[r];o.onSurveyValueChanged(n[o.getValueName()])}},t.prototype.recalculateIsReadyValue=function(){var e=this,t=this.isReadyValue,n=!0;this.panels.forEach((function(t){t.questions.forEach((function(t){t.isReady?t.onReadyChanged.remove(e.onReadyChangedCallback):(n=!1,t.onReadyChanged.add(e.onReadyChangedCallback))}))})),this.isReadyValue=n,t!=this.isReadyValue&&this.onReadyChanged.fire(this,{question:this,oldIsReady:t,isReady:this.isReadyValue})},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.getItemIndex=function(e){var t=this.items.indexOf(e);return t>-1?t:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var t=this.visiblePanels,n=0;n<t.length;n++)if(t[n].data===e)return n;return t.length},t.prototype.getPanelItemData=function(e){var t=this.items,n=t.indexOf(e),r=this.value;return n<0&&Array.isArray(r)&&r.length>t.length&&(n=t.length),n<0||!r||!Array.isArray(r)||r.length<=n?{}:r[n]},t.prototype.setPanelItemData=function(e,t,n){if(!(this.isSetPanelItemData[t]>this.maxCheckCount)){this.isSetPanelItemData[t]||(this.isSetPanelItemData[t]=0),this.isSetPanelItemData[t]++;var r=this.items,o=r.indexOf(e);o<0&&(o=r.length);var i=this.getUnbindValue(this.value);if(i&&Array.isArray(i)||(i=[]),i.length<=o)for(var s=i.length;s<=o;s++)i.push({});if(i[o]||(i[o]={}),this.isValueEmpty(n)?delete i[o][t]:i[o][t]=n,o>=0&&o<this.panels.length&&(this.changingValueQuestion=this.panels[o].getQuestionByValueName(t)),this.value=i,this.changingValueQuestion=null,this.survey){var a={question:this,panel:e.panel,name:t,itemIndex:o,itemValue:i[o],value:n};this.survey.dynamicPanelItemValueChanged(this,a)}this.isSetPanelItemData[t]--,this.isSetPanelItemData[t]-1&&delete this.isSetPanelItemData[t]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);return n&&(n.isNode=!0,n.data=this.panels.map((function(e,n){var r={name:e.name||n,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map((function(e){return e.getPlainData(t)})).filter((function(e){return!!e}))};return(t.calculations||[]).forEach((function(t){r[t.propertyName]=e[t.propertyName]})),r}))),n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.panels.length;n++)this.panels[n].updateElementCss(t)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new f.CssClassBuilder).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var e=this.isRenderModeTab&&!!this.panelCount;return(new f.CssClassBuilder).append(this.cssClasses.header).append(this.cssClasses.headerTop,this.hasTitleOnTop||e).append(this.cssClasses.headerTab,e).toString()},enumerable:!1,configurable:!0}),t.prototype.getPanelWrapperCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.panelWrapper).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.renderMode).toString()},t.prototype.getPrevButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return(new f.CssClassBuilder).append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&0===this.visiblePanelCount},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!(!e||!e.needResponsiveWidth())},t.prototype.getAdditionalTitleToolbar=function(){return this.isRenderModeTab?(this.additionalTitleToolbarValue||(this.additionalTitleToolbarValue=new y.AdaptiveActionContainer,this.additionalTitleToolbarValue.containerCss=this.getAdditionalTitleToolbarCss(),this.additionalTitleToolbarValue.cssClasses={item:"sv-tab-item",itemPressed:"sv-tab-item--pressed",itemAsIcon:"sv-tab-item--icon",itemIcon:"sv-tab-item__icon",itemTitle:"sv-tab-item__title"}),this.additionalTitleToolbarValue):null},Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var t=[],n=new g.Action({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),r=new g.Action({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),o=new g.Action({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),i=new g.Action({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),s=new g.Action({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),a=new g.Action({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});t.push(n,r,o,i,s,a),this.updateFooterActionsCallback=function(){var t=e.legacyNavigation,l=e.isRenderModeList,u=e.isMobile,c=!t&&!l;n.visible=c&&e.currentIndex>0,r.visible=c&&e.currentIndex<e.visiblePanelCount-1,r.needSpace=u&&r.visible&&n.visible,o.visible=e.canAddPanel,o.needSpace=e.isMobile&&!r.visible&&n.visible,s.visible=!e.isRenderModeList&&!u,s.needSpace=!t&&!e.isMobile;var p=t&&!l;i.visible=p,a.visible=p,i.needSpace=p},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(t)},t.prototype.createTabByPanel=function(e){var t=this;if(this.isRenderModeTab){var n=new s.LocalizableString(e,!0);n.sharedData=this.locTemplateTabTitle;var r=new g.Action({id:e.id,css:"sv-tab-item__root",pressed:this.getPanelIndexById(e.id)===this.currentIndex,locTitle:n,action:function(){t.currentIndex=t.getPanelIndexById(r.id),t.updateTabToolbarItemsPressedState()}});return r}},t.prototype.getAdditionalTitleToolbarCss=function(){return(new f.CssClassBuilder).append("sv-tabs-toolbar").append("sv-tabs-toolbar--left","left"===this.tabAlign).append("sv-tabs-toolbar--right","right"===this.tabAlign).append("sv-tabs-toolbar--center","center"===this.tabAlign).toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanels[this.currentIndex];this.additionalTitleToolbar.renderedActions.forEach((function(t){return t.pressed=t.id===e.id}))}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){var t=[];this.visiblePanels.forEach((function(n){return t.push(e.createTabByPanel(n))})),this.additionalTitleToolbar.setItems(t)}},t.prototype.addTabFromToolbar=function(e,t){if(this.isRenderModeTab){var n=this.createTabByPanel(e);this.additionalTitleToolbar.actions.splice(t,0,n),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var t=this.additionalTitleToolbar.getActionById(e.id);t&&(this.additionalTitleToolbar.actions.splice(this.additionalTitleToolbar.actions.indexOf(t),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.visiblePanelCount-1},t.maxCheckCount=3,function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);i>3&&s&&Object.defineProperty(t,n,s)}([Object(u.property)({defaultValue:!1,onSet:function(e,t){t.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(l.Question);u.Serializer.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(e){return"tab"===e.renderMode}},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"noEntriesText:text",serializationProperty:"locNoEntriesText"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",default:d.settings.panelMaximumPanelCount},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"]},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"panelAddText",serializationProperty:"locPanelAddText"},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText"},{name:"panelPrevText",serializationProperty:"locPanelPrevText"},{name:"panelNextText",serializationProperty:"locPanelNextText"},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom","tab"]},{name:"tabAlign",default:"center",choices:["center","left","right"],visibleIf:function(e){return"tab"===e.renderMode}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"]}],(function(){return new x("")}),"question"),c.QuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return new x(e)}))},"./src/question_radiogroup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRadiogroupModel",(function(){return c}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question_baseselect.ts"),a=n("./src/actions/action.ts"),l=n("./src/base.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){this.renderedValue=e.value},t.prototype.getDefaultTitleActions=function(){var e=this,t=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var n=new a.Action({title:this.clearButtonCaption,id:"sv-clr-btn-"+this.id,action:function(){e.clearValue()},innerCss:this.cssClasses.clearButton,visible:new l.ComputedUpdater((function(){return e.canShowClearButton}))});t.push(n)}return t},t}(s.QuestionCheckboxBase);o.Serializer.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],(function(){return new c("")}),"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("radiogroup",(function(e){var t=new c(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_ranking.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionRankingModel",(function(){return g}));var r,o=n("./src/dragdrop/ranking-choices.ts"),i=n("./src/itemvalue.ts"),s=n("./src/jsonobject.ts"),a=n("./src/questionfactory.ts"),l=n("./src/question_checkbox.ts"),u=n("./src/utils/cssClassBuilder.ts"),c=n("./src/utils/devices.ts"),p=n("./src/helpers.ts"),d=n("./src/settings.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},g=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=null,n.onVisibleChoicesChanged=function(){if(e.prototype.onVisibleChoicesChanged.call(n),1===n.visibleChoices.length)return n.value=[],void n.updateRankingChoices();n.isEmpty()||(n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices()),n.updateRankingChoices()},n.localeChanged=function(){e.prototype.localeChanged.call(n),n.updateRankingChoices()},n.handlePointerDown=function(e,t,r){var o=e.target;n.isDragStartNodeValid(o)&&n.allowStartDrag&&n.dragDropRankingChoices.startDrag(e,t,n,r)},n.handleKeydown=function(e,t){if(!n.isDesignMode){var r=e.key,o=n.rankingChoices.indexOf(t);"ArrowUp"===r&&o&&(n.handleArrowUp(o,t),e.preventDefault()),"ArrowDown"===r&&o!==n.rankingChoices.length-1&&(n.handleArrowDown(o,t),e.preventDefault())}},n.handleArrowUp=function(e,t){var r=n.rankingChoices;r.splice(e,1),r.splice(e-1,0,t),n.setValue(),setTimeout((function(){n.focusItem(e-1)}),1)},n.handleArrowDown=function(e,t){var r=n.rankingChoices;r.splice(e,1),r.splice(e+1,0,t),n.setValue(),setTimeout((function(){n.focusItem(e+1)}),1)},n.focusItem=function(e){n.domNode.querySelectorAll("."+n.cssClasses.item)[e].focus()},n.setValue=function(){var e=[];n.rankingChoices.forEach((function(t){e.push(t.value)})),n.value=e},n.createNewArray("rankingChoices"),n}return h(t,e),t.prototype.getDefaultItemComponent=function(){return""},t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){return this.isDesignMode?void 0:0},Object.defineProperty(t.prototype,"rootClass",{get:function(){return(new u.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,c.IsMobile).append(this.cssClasses.rootDisabled,this.isReadOnly).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.errors.length>0).append(this.cssClasses.rootDragHandleAreaIcon,"icon"===d.settings.rankingDragHandleArea).toString()},enumerable:!1,configurable:!0}),t.prototype.getItemClassCore=function(t,n){var r=this.rankingChoices.indexOf(t),o=this.rankingChoices.indexOf(this.currentDropTarget);return(new u.CssClassBuilder).append(e.prototype.getItemClassCore.call(this,t,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===t).append("sv-dragdrop-movedown",r===o+1&&"down"===this.dropTargetNodeMove).append("sv-dragdrop-moveup",r===o-1&&"up"===this.dropTargetNodeMove).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return"top"===this.ghostPosition?this.cssClasses.dragDropGhostPositionTop:"bottom"===this.ghostPosition?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,this.isEmpty()).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),this.updateRankingChoices()},t.prototype.isAnswerCorrect=function(){return p.Helpers.isArraysEqual(this.value,this.correctAnswer,!1)},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.isLoadingFromJson||this.updateRankingChoices()},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach((function(t){-1===e.indexOf(t.value)&&e.push(t.value)})),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),t=this.visibleChoices,n=this.value.length-1;n>=0;n--)i.ItemValue.getItemByValue(t,this.value[n])||e.splice(n,1);this.value=e},Object.defineProperty(t.prototype,"rankingChoices",{get:function(){return this.getPropertyValue("rankingChoices",[])},enumerable:!1,configurable:!0}),t.prototype.updateRankingChoices=function(e){var t=this;void 0===e&&(e=!1);var n=[];1!==this.visibleChoices.length?(e&&this.setPropertyValue("rankingChoices",[]),this.isEmpty()?this.setPropertyValue("rankingChoices",this.visibleChoices):(this.value.forEach((function(e){t.visibleChoices.forEach((function(t){t.value===e&&n.push(t)}))})),this.setPropertyValue("rankingChoices",n))):this.setPropertyValue("rankingChoices",n)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.dragDropRankingChoices=new o.DragDropRankingChoices(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return"icon"!==d.settings.rankingDragHandleArea||e.classList.contains(this.cssClasses.itemIconHoverMod)},Object.defineProperty(t.prototype,"allowStartDrag",{get:function(){return!this.isReadOnly&&!this.isDesignMode},enumerable:!1,configurable:!0}),t.prototype.afterRenderQuestionElement=function(t){this.domNode=t,e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.getIconHoverCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return(new u.CssClassBuilder).append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),f([Object(s.property)({defaultValue:null})],t.prototype,"currentDropTarget",void 0),f([Object(s.property)({defaultValue:null})],t.prototype,"dropTargetNodeMove",void 0),t}(l.QuestionCheckboxModel);s.Serializer.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"maxSelectedChoices",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"itemComponent",visible:!1,default:""}],(function(){return new g("")}),"checkbox"),a.QuestionFactory.Instance.registerQuestion("ranking",(function(e){var t=new g(e);return t.choices=a.QuestionFactory.DefaultChoices,t}))},"./src/question_rating.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"RenderedRatingItem",(function(){return g})),n.d(t,"QuestionRatingModel",(function(){return m}));var r,o=n("./src/itemvalue.ts"),i=n("./src/question.ts"),s=n("./src/jsonobject.ts"),a=n("./src/questionfactory.ts"),l=n("./src/settings.ts"),u=n("./src/surveyStrings.ts"),c=n("./src/utils/cssClassBuilder.ts"),p=n("./src/base.ts"),d=n("./src/utils/utils.ts"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},g=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;return r.itemValue=t,r.locString=n,r.locText.onStringChanged.add(r.onStringChangedCallback.bind(r)),r.onStringChangedCallback(),r}return h(t,e),t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),f([Object(s.property)({defaultValue:""})],t.prototype,"highlight",void 0),f([Object(s.property)({defaultValue:""})],t.prototype,"text",void 0),f([Object(s.property)()],t.prototype,"style",void 0),t}(p.Base),m=function(e){function t(t){var n=e.call(this,t)||this;return n._syncPropertiesChanging=!1,n.initColors(),n.createItemValues("rateValues"),n.createRenderedRateItems(),n.createLocalizableString("ratingOptionsCaption",n,!1,!0),n.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],(function(){return n.createRenderedRateItems()})),n.registerFunctionOnPropertiesValueChanged(["rateType"],(function(){n.setIconsToRateValues(),n.createRenderedRateItems(),n.updateRateCount()})),n.registerFunctionOnPropertiesValueChanged(["rateValues"],(function(){n.autoGenerate=!1,n.setIconsToRateValues(),n.createRenderedRateItems()})),n.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],(function(){n.initColors()})),n.registerFunctionOnPropertiesValueChanged(["autoGenerate"],(function(){n.autoGenerate||0!==n.rateValues.length||n.setPropertyValue("rateValues",n.visibleRateValues),n.autoGenerate&&(n.rateValues.length=0,n.updateRateMax()),n.createRenderedRateItems()})),n.createLocalizableString("minRateDescription",n,!0),n.createLocalizableString("maxRateDescription",n,!0),n.initPropertyDependencies(),n}return h(t,e),t.prototype.setIconsToRateValues=function(){var e=this;"smileys"==this.rateType&&this.rateValues.map((function(t){return t.icon=e.getItemSmiley(t)}))},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),this.jsonObj=t},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.initColors(),this.hasMinRateDescription=!!this.minRateDescription,this.hasMaxRateDescription=!!this.maxRateDescription,void 0!==this.jsonObj.rateMin&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMax&&this.updateRateMax(),void 0!==this.jsonObj.rateMax&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMin&&this.updateRateMin(),void 0===this.jsonObj.autoGenerate&&void 0!==this.jsonObj.rateValues&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues(),this.createRenderedRateItems()},t.prototype.registerSychProperties=function(e,t){var n=this;this.registerFunctionOnPropertiesValueChanged(e,(function(){n._syncPropertiesChanging||(n._syncPropertiesChanging=!0,t(),n._syncPropertiesChanging=!1)}))},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;(e=this.useRateValues()?this.rateValues.length:Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1)>10&&"smileys"==this.rateDisplayMode&&(e=10),this.rateCount=e,this.rateValues.length>e&&(this.rateValues.length=e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],(function(){if(e.useRateValues())if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&"smileys"==e.rateDisplayMode)return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var t=e.rateValues.length;t<e.rateCount;t++)e.rateValues.push(new o.ItemValue(u.surveyLocalization.getString("choices_Item")+(t+1)));else e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1)})),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],(function(){e.updateRateCount()}))},Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e),this.createRenderedRateItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.initColors=function(){function e(e){var t=getComputedStyle(document.documentElement),n=t.getPropertyValue&&t.getPropertyValue(e);if(!n)return null;var r=document.createElement("canvas").getContext("2d");r.fillStyle=n;var o=r.fillStyle;if(o.startsWith("rgba"))return o.substring(5,o.length-1).split(",").map((function(e){return+e.trim()}));var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(o);return i?[parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16),1]:null}"monochrome"!==this.colorMode&&document&&(t.badColor&&t.normalColor&&t.goodColor||(t.badColor=e("--sd-rating-bad-color"),t.normalColor=e("--sd-rating-normal-color"),t.goodColor=e("--sd-rating-good-color"),t.badColorLight=e("--sd-rating-bad-color-light"),t.normalColorLight=e("--sd-rating-normal-color-light"),t.goodColorLight=e("--sd-rating-good-color-light")))},t.prototype.getDisplayValueCore=function(e,t){return o.ItemValue.getTextOrHtmlByValue(this.visibleRateValues,t)||t},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map((function(e){return e.itemValue}))},enumerable:!1,configurable:!0}),t.prototype.itemValuePropertyChanged=function(t,n,r,o){this.useRateValues()||void 0===o||(this.autoGenerate=!1),e.prototype.itemValuePropertyChanged.call(this,t,n,r,o)},t.prototype.createRenderedRateItems=function(){var e=this,t=[];if(this.useRateValues())t=this.rateValues;else{for(var n=[],r=this.rateMin,i=this.rateStep;r<=this.rateMax&&n.length<l.settings.ratingMaximumRateValueCount;){var s=new o.ItemValue(r);s.locOwner=this,s.ownerPropertyName="rateValues",n.push(s),r=this.correctValue(r+i,i)}t=n}"smileys"==this.rateType&&t.length>10&&(t=t.slice(0,10)),this.renderedRateItems=t.map((function(n,r){var o=null;return e.displayRateDescriptionsAsExtremeItems&&(0==r&&(o=new g(n,e.minRateDescription&&e.locMinRateDescription||n.locText)),r==t.length-1&&(o=new g(n,e.maxRateDescription&&e.locMaxRateDescription||n.locText))),o||(o=new g(n)),o}))},t.prototype.correctValue=function(e,t){if(!e)return e;if(Math.round(e)==e)return e;for(var n=0;Math.round(t)!=t;)t*=10,n++;return parseFloat(e.toFixed(n))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e),this.hasMinRateDescription=!!this.minRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e),this.hasMaxRateDescription=!!this.maxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return"stars"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return"smileys"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponentName",{get:function(){return this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var t=o.ItemValue.getItemByValue(this.rateValues,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){this.value===parseFloat(e)?this.clearValue():this.value=e;for(var t=0;t<this.renderedRateItems.length;t++)this.renderedRateItems[t].highlight="none"},t.prototype.onItemMouseIn=function(e){if(!this.isReadOnly&&e.itemValue.isEnabled&&!this.isDesignMode){var t=!0,n=null!=this.value;if("stars"===this.rateType)for(var r=0;r<this.renderedRateItems.length;r++)this.renderedRateItems[r].highlight=(t&&!n?"highlighted":!t&&n&&"unhighlighted")||"none",this.renderedRateItems[r]==e&&(t=!1),this.renderedRateItems[r].itemValue.value==this.value&&(n=!1);else e.highlight="highlighted"}},t.prototype.onItemMouseOut=function(e){this.renderedRateItems.forEach((function(e){return e.highlight="none"}))},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&"small"==l.settings.matrix.rateSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=("buttons"==this.displayMode||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:this.cssClasses.root;return(new c.CssClassBuilder).append(e).append(this.cssClasses.itemSmall,this.itemSmallMode&&"labels"!=this.rateType).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var t=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,n=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"].slice(0,t),r=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"].filter((function(e){return-1!=n.indexOf(e)}));return this.useRateValues()?r[this.rateValues.indexOf(e)]:r[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,t){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,n){var r=n?t.badColorLight:t.badColor,o=n?t.goodColorLight:t.goodColor,i=(this.rateCount-1)/2,s=n?t.normalColorLight:t.normalColor;if(e<i?o=s:(r=s,e-=i),!r||!o)return null;for(var a=[0,0,0,0],l=0;l<4;l++)a[l]=r[l]+(o[l]-r[l])*e/i,l<3&&(a[l]=Math.trunc(a[l]));return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},t.prototype.getItemStyle=function(e,t){if(void 0===t&&(t="none"),"monochrome"===this.scaleColorMode&&"default"==this.rateColorMode)return{borderColor:null,fill:null,backgroundColor:null};var n=this.visibleRateValues.indexOf(e),r=this.getRenderedItemColor(n,!1);if(this.value!=this.renderedRateItems[n].value){var o=this.getRenderedItemColor(n,!0);return"highlighted"==t&&"colored"===this.scaleColorMode?{borderColor:r,fill:r,backgroundColor:o}:"colored"===this.scaleColorMode&&0==this.errors.length?{borderColor:r,fill:r,backgroundColor:null}:{borderColor:null,fill:null,backgroundColor:null}}return{borderColor:r,fill:null,backgroundColor:r}},t.prototype.getItemClass=function(e,t){var n=this;void 0===t&&(t="none");var r=this.value==e.value;this.isStar&&(r=this.useRateValues()?this.rateValues.indexOf(this.rateValues.filter((function(e){return e.value==n.value}))[0])>=this.rateValues.indexOf(e):this.value>=e.value);var o=!(this.isReadOnly||!e.isEnabled||this.value==e.value||this.survey&&this.survey.isDesignMode),i=this.renderedRateItems.filter((function(t){return t.itemValue==e}))[0],s=this.isStar&&"highlighted"==(null==i?void 0:i.highlight),a=this.isStar&&"unhighlighted"==(null==i?void 0:i.highlight),l=this.cssClasses.item,u=this.cssClasses.selected,p=this.cssClasses.itemDisabled,d=this.cssClasses.itemHover,h=this.cssClasses.itemOnError,f=null,g=null,m=null,y=null,v=null;this.isStar&&(l=this.cssClasses.itemStar,u=this.cssClasses.itemStarSelected,p=this.cssClasses.itemStarDisabled,d=this.cssClasses.itemStarHover,h=this.cssClasses.itemStarOnError,f=this.cssClasses.itemStarHighlighted,g=this.cssClasses.itemStarUnhighlighted,v=this.cssClasses.itemStarSmall),this.isSmiley&&(l=this.cssClasses.itemSmiley,u=this.cssClasses.itemSmileySelected,p=this.cssClasses.itemSmileyDisabled,d=this.cssClasses.itemSmileyHover,h=this.cssClasses.itemSmileyOnError,f=this.cssClasses.itemSmileyHighlighted,m=this.cssClasses.itemSmileyScaleColored,y=this.cssClasses.itemSmileyRateColored,v=this.cssClasses.itemSmileySmall);var b=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return(new c.CssClassBuilder).append(l).append(u,r).append(p,this.isReadOnly).append(d,o).append(f,s).append(m,"colored"==this.scaleColorMode).append(y,"scale"==this.rateColorMode&&r).append(g,a).append(h,this.errors.length>0).append(v,this.itemSmallMode).append(this.cssClasses.itemFixedSize,b).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),(new c.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.visibleRateValues},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.displayValue||this.placeholder},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),t=this.getPropertyValue("rateMax"),n=this.getPropertyValue("rateMin");return"dropdown"!=this.displayMode&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(t-n)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"buttons"==this.displayMode?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return"dropdown"==this.displayMode?"dropdown":"default"},Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e,t=null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel;return t?t.isVisible?"true":"false":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,n){if(e.prototype.updateCssClasses.call(this,t,n),this.dropdownListModel){var r={};Object(d.mergeValues)(n.list,r),Object(d.mergeValues)(t.list,r),t.list=r}},t.prototype.calcCssClasses=function(t){var n=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},f([Object(s.property)({defaultValue:!0})],t.prototype,"autoGenerate",void 0),f([Object(s.property)({defaultValue:5})],t.prototype,"rateCount",void 0),f([Object(s.propertyArray)()],t.prototype,"renderedRateItems",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),f([Object(s.property)({defaultValue:!1})],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),f([Object(s.property)({defaultValue:"auto",onSet:function(e,t){t.isDesignMode||(t.renderAs="dropdown"===e?"dropdown":"default")}})],t.prototype,"displayMode",void 0),f([Object(s.property)({defaultValue:"labels"})],t.prototype,"rateType",void 0),f([Object(s.property)({defaultValue:"monochrome"})],t.prototype,"scaleColorMode",void 0),f([Object(s.property)({defaultValue:"scale"})],t.prototype,"rateColorMode",void 0),t}(i.Question);s.Serializer.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:0},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(e){return"smileys"==e.rateDisplayMode},visibleIndex:1},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(e){return"smileys"==e.rateDisplayMode&&"monochrome"==e.scaleColorMode},visibleIndex:2},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:4},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:3,onSettingValue:function(e,t){return t<2?2:t>l.settings.ratingMaximumRateValueCount&&t>e.rateValues.length?l.settings.ratingMaximumRateValueCount:t>10&&"smileys"==e.rateDisplayMode?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return u.surveyLocalization.getString("choices_Item")},category:"rateValues",visibleIf:function(e){return!e.autoGenerate},visibleIndex:5},{name:"rateMin:number",default:1,onSettingValue:function(e,t){return t>e.rateMax-e.rateStep?e.rateMax-e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:6},{name:"rateMax:number",default:5,onSettingValue:function(e,t){return t<e.rateMin+e.rateStep?e.rateMin+e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:7},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(e,t){return t<=0&&(t=1),t>e.rateMax-e.rateMin&&(t=e.rateMax-e.rateMin),t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:8},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:17},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:18},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:19,visibleIf:function(e){return"labels"==e.rateType}},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:20}],(function(){return new m("")}),"question"),a.QuestionFactory.Instance.registerQuestion("rating",(function(e){return new m(e)}))},"./src/question_signaturepad.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionSignaturePadModel",(function(){return p}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/question.ts"),a=n("./node_modules/signature_pad/dist/signature_pad.mjs"),l=n("./src/utils/cssClassBuilder.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getCssRoot=function(t){return(new l.CssClassBuilder).append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.signatureWidth.toString()).toString()},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.dataFormat);this.value=e}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&this.initSignaturePad(t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.initSignaturePad=function(e){var t=this,n=e.getElementsByTagName("canvas")[0],r=new a.default(n,{backgroundColor:"#ffffff"});this.isInputReadOnly&&r.off(),this.readOnlyChangedCallback=function(){t.isInputReadOnly?r.off():r.on()},r.penColor=this.penColor,r.backgroundColor=this.backgroundColor,r.onBegin=function(){t.isDrawingValue=!0,n.focus()},r.onEnd=function(){t.isDrawingValue=!1,t.updateValue()};var o=function(){var e=t.value;n.width=t.signatureWidth||300,n.height=t.signatureHeight||200,function(e){var t=e.getContext("2d"),n=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),r=e.width,o=e.height;e.width=r*n,e.height=o*n,e.style.width=r+"px",e.style.height=o+"px",t.scale(n,n)}(n),e?r.fromDataURL(e):r.clear()};o(),this.readOnlyChangedCallback(),this.signaturePad=r;var i=function(e,t){"signatureWidth"!==t.name&&"signatureHeight"!==t.name&&"value"!==t.name||o()};this.onPropertyChanged.add(i),this.signaturePad.propertyChangedHandler=i},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(e){this.setPropertyValue("signatureWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(e){this.setPropertyValue("signatureHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return!this.isInputReadOnly&&this.allowClear},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.needShowPlaceholder=function(){return!this.isDrawingValue&&this.isEmpty()},Object.defineProperty(t.prototype,"placeHolderText",{get:function(){return this.getLocalizationString("signaturePlaceHolder")},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),300===this.signatureWidth&&this.width&&"number"==typeof this.width&&this.width&&(console.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),200===this.signatureHeight&&this.height&&(console.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},c([Object(o.property)({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),c([Object(o.property)({defaultValue:""})],t.prototype,"dataFormat",void 0),t}(s.Question);o.Serializer.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"penColor:color",category:"general",default:"#1ab394"},{name:"backgroundColor:color",category:"general",default:"#ffffff"},{name:"dataFormat",category:"general",default:"",choices:[{value:"",text:"PNG"},{value:"image/jpeg",text:"JPEG"},{value:"image/svg+xml",text:"SVG"}]},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1}],(function(){return new p("")}),"question"),i.QuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return new p(e)}))},"./src/question_tagbox.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionTagboxModel",(function(){return h}));var r,o=n("./src/jsonobject.ts"),i=n("./src/questionfactory.ts"),s=n("./src/utils/cssClassBuilder.ts"),a=n("./src/question_checkbox.ts"),l=n("./src/dropdownMultiSelectListModel.ts"),u=n("./src/settings.ts"),c=n("./src/itemvalue.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},h=function(e){function t(t){var n=e.call(this,t)||this;return n.itemDisplayNameMap={},n.onOpened=n.addEvent(),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n}return p(t,e),t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.displayValue||this.placeholder},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.dropdownListModel||(this.dropdownListModel=new l.DropdownMultiSelectListModel(this))},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null===(e=this.dropdownListModel)||void 0===e?void 0:e.popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){var e=this.popupModel;return e&&e.isVisible?"true":"false"},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return(new s.CssClassBuilder).append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(t,n,r,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,n=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!n&&e.prototype.hasUnknownValue.call(this,n,!0,!1)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.validateItemValues=function(e){var t=this;this.updateItemDisplayNameMap();var n=this.renderedValue;if(e.length&&e.length===n.length)return e;var r=this.selectedItemValues;if(!e.length&&r&&r.length)return this.defaultSelectedItemValues=[].concat(r),r;var o=e.map((function(e){return e.value}));return n.filter((function(e){return-1===o.indexOf(e)})).forEach((function(n){e.push(new c.ItemValue(n,t.itemDisplayNameMap[n]))})),e.sort((function(e,t){return n.indexOf(e.value)-n.indexOf(t.value)})),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,t=function(t){e.itemDisplayNameMap[t.value]=t.text};(this.defaultSelectedItemValues||[]).forEach(t),(this.selectedItemValues||[]).forEach(t),this.visibleChoices.forEach(t)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&this.dropdownListModelValue.dispose()},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.dropdownListModel.clear()},d([Object(o.property)()],t.prototype,"allowClear",void 0),d([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),d([Object(o.property)()],t.prototype,"choicesLazyLoadEnabled",void 0),d([Object(o.property)({defaultValue:25})],t.prototype,"choicesLazyLoadPageSize",void 0),d([Object(o.property)({getDefaultValue:function(){return u.settings.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),t}(a.QuestionCheckboxModel);o.Serializer.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean"},{name:"itemComponent",visible:!1,default:""}],(function(){return new h("")}),"checkbox"),i.QuestionFactory.Instance.registerQuestion("tagbox",(function(e){var t=new h(e);return t.choices=i.QuestionFactory.DefaultChoices,t}))},"./src/question_text.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionTextModel",(function(){return h}));var r,o=n("./src/questionfactory.ts"),i=n("./src/jsonobject.ts"),s=n("./src/localizablestring.ts"),a=n("./src/helpers.ts"),l=n("./src/validator.ts"),u=n("./src/error.ts"),c=n("./src/settings.ts"),p=n("./src/question_textbase.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n._isWaitingForEnter=!1,n.onCompositionUpdate=function(e){n.isInputTextUpdate&&setTimeout((function(){n.updateValueOnEvent(e)}),1),n.updateRemainingCharacterCounter(e.target.value)},n.onKeyUp=function(e){n.isInputTextUpdate?n._isWaitingForEnter&&13!==e.keyCode||(n.updateValueOnEvent(e),n._isWaitingForEnter=!1):13===e.keyCode&&n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onKeyDown=function(e){n.isInputTextUpdate&&(n._isWaitingForEnter=229===e.keyCode),13===e.keyCode&&n.survey.questionEditFinishCallback(n,e)},n.onChange=function(e){e.target===c.settings.environment.root.activeElement?n.isInputTextUpdate&&n.updateValueOnEvent(e):n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onBlur=function(e){n.updateValueOnEvent(e),n.updateRemainingCharacterCounter(e.target.value)},n.onFocus=function(e){n.updateRemainingCharacterCounter(e.target.value)},n.createLocalizableString("minErrorText",n,!0,"minError"),n.createLocalizableString("maxErrorText",n,!0,"maxError"),n.locDataListValue=new s.LocalizableStrings(n),n.locDataListValue.onValueChanged=function(e,t){n.propertyValueChanged("dataList",e,t)},n.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],(function(){n.setRenderedMinMax()})),n.registerPropertyChangedHandlers(["inputType","size"],(function(){n.updateInputSize(),n.calcRenderedPlaceholder()})),n}return d(t,e),t.prototype.isTextValue=function(){return["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){"datetime_local"!==(e=e.toLowerCase())&&"datetime"!==e||(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0)},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(t,n)},t.prototype.getValidators=function(){var t=e.prototype.getValidators.call(this);return"email"!==this.inputType||this.validators.some((function(e){return"emailvalidator"===e.getType()}))||t.push(new l.EmailValidator),t},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){this.isValueExpression(e)?this.minValueExpression=e.substring(1):this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){this.isValueExpression(e)?this.maxValueExpression=e.substring(1):this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return g(this)},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,n){var r=this;if(e.prototype.onCheckForErrors.call(this,t,n),!n){if(this.isValueLessMin){var o=new u.CustomError(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);o.onUpdateErrorTextCallback=function(e){e.text=r.getMinMaxErrorText(r.minErrorText,r.getCalculatedMinMax(r.renderedMin))},t.push(o)}if(this.isValueGreaterMax){var i=new u.CustomError(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);i.onUpdateErrorTextCallback=function(e){e.text=r.getMinMaxErrorText(r.maxErrorText,r.getCalculatedMinMax(r.renderedMax))},t.push(i)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return"number"===this.inputType&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){return a.Helpers.convertValToQuestionVal(e,this.inputType)},t.prototype.getMinMaxErrorText=function(e,t){if(a.Helpers.isValueEmpty(t))return e;var n=t.toString();return"date"===this.inputType&&t.toDateString&&(n=t.toDateString()),e.replace("{0}",n)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return"date"===this.inputType||"datetime-local"===this.inputType},enumerable:!1,configurable:!0}),t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?new Date(e):e},t.prototype.setRenderedMinMax=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,(function(e){!e&&n.isDateInputType&&c.settings.minDate&&(e=c.settings.minDate),n.setPropertyValue("renderedMin",e)}),e,t),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,(function(e){!e&&n.isDateInputType&&(e=c.settings.maxDate?c.settings.maxDate:"2999-12-31"),n.setPropertyValue("renderedMax",e)}),e,t)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?"number"!==this.inputType?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return["date","datetime-local"].indexOf(this.inputType)<0},t.prototype.supportGoNextPageError=function(){return["date","datetime-local"].indexOf(this.inputType)<0},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.canRunValidators=function(e){return this.errors.length>0||!e||this.supportGoNextPageError()},t.prototype.setNewValue=function(t){t=this.correctValueType(t),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){return!e||"number"!=this.inputType&&"range"!=this.inputType?e:a.Helpers.isNumber(e)?a.Helpers.getNumber(e):""},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly&&"range"!==this.inputType},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===c.settings.readOnlyTextRenderMode},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,e},enumerable:!1,configurable:!0}),t.prototype.updateValueOnEvent=function(e){var t=e.target.value;a.Helpers.isTwoValueEquals(this.value,t)||(this.value=t)},t}(p.QuestionTextBase),f=["number","range","date","datetime-local","month","time","week"];function g(e){var t=e?e.inputType:"";return!!t&&f.indexOf(t)>-1}function m(e,t){var n=e.split(t);return 2!==n.length?-1:a.Helpers.isNumber(n[0])&&a.Helpers.isNumber(n[1])?60*parseFloat(n[0])+parseFloat(n[1]):-1}function y(e,t,n,r){var o=r?n:t;if(!g(e))return o;if(a.Helpers.isValueEmpty(t)||a.Helpers.isValueEmpty(n))return o;if(0===e.inputType.indexOf("date")||"month"===e.inputType){var i="month"===e.inputType,s=new Date(i?t+"-1":t),l=new Date(i?n+"-1":n);if(!s||!l)return o;if(s>l)return r?t:n}if("week"===e.inputType||"time"===e.inputType)return function(e,t,n){var r=m(e,n),o=m(t,n);return!(r<0||o<0)&&r>o}(t,n,"week"===e.inputType?"-W":":")?r?t:n:o;if("number"===e.inputType){if(!a.Helpers.isNumber(t)||!a.Helpers.isNumber(n))return o;if(a.Helpers.getNumber(t)>a.Helpers.getNumber(n))return r?t:n}return"string"==typeof t||"string"==typeof n?o:t>n?r?t:n:o}function v(e,t){e&&e.inputType&&(t.inputType="range"!==e.inputType?e.inputType:"number",t.textUpdateMode="onBlur")}i.Serializer.addClass("text",[{name:"inputType",default:"text",choices:c.settings.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(e){return g(e)},onPropertyEditorUpdate:function(e,t){v(e,t)},onSettingValue:function(e,t){return y(e,t,e.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(e){return g(e)},onSettingValue:function(e,t){return y(e,e.min,t,!0)},onPropertyEditorUpdate:function(e,t){v(e,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return g(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return g(e)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(e){return g(e)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(e){return g(e)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&("number"===e.inputType||"range"===e.inputType)}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"===e.inputType}}],(function(){return new h("")}),"textbase"),o.QuestionFactory.Instance.registerQuestion("text",(function(e){return new h(e)}))},"./src/question_textbase.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterCounter",(function(){return p})),n.d(t,"QuestionTextBase",(function(){return d}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=n("./src/helpers.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=n("./src/base.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.updateRemainingCharacterCounter=function(e,t){this.remainingCharacterCounter=s.Helpers.getRemainingCharacterCounterText(e,t)},c([Object(i.property)()],t.prototype,"remainingCharacterCounter",void 0),t}(l.Base),d=function(e){function t(t){var n=e.call(this,t)||this;return n.characterCounter=new p,n}return u(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return s.Helpers.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return"default"==this.textUpdateMode?!!this.survey&&this.survey.isUpdateValueTextOnTyping:"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){return this.getPropertyValue("renderedPlaceholder")},enumerable:!1,configurable:!0}),t.prototype.setRenderedPlaceholder=function(e){this.setPropertyValue("renderedPlaceholder",e)},t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.onSurveyLoad=function(){this.calcRenderedPlaceholder(),e.prototype.onSurveyLoad.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.calcRenderedPlaceholder=function(){var e=this.placeHolder;e&&!this.hasPlaceHolder()&&(e=void 0),this.setRenderedPlaceholder(e)},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateRemainingCharacterCounter(t)},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.updateRemainingCharacterCounter(t)},t.prototype.getControlClass=function(){return(new a.CssClassBuilder).append(this.cssClasses.root).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaInvalid",{get:function(){return this.errors.length>0?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.hasTitle?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return this.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),c([Object(i.property)({localizable:!0,onSet:function(e,t){return t.calcRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(o.Question);i.Serializer.addClass("textbase",[],(function(){return new d("")}),"question")},"./src/questionfactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionFactory",(function(){return i})),n.d(t,"ElementFactory",(function(){return s}));var r=n("./src/surveyStrings.ts"),o=n("./src/jsonobject.ts"),i=function(){function e(){}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[r.surveyLocalization.getString("choices_Item")+"1",r.surveyLocalization.getString("choices_Item")+"2",r.surveyLocalization.getString("choices_Item")+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=r.surveyLocalization.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=r.surveyLocalization.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultMutlipleTextItems",{get:function(){var e=r.surveyLocalization.getString("multipletext_itemname");return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),e.prototype.registerQuestion=function(e,t){s.Instance.registerElement(e,t)},e.prototype.registerCustomQuestion=function(e){s.Instance.registerCustomQuestion(e)},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),s.Instance.unregisterElement(e,t)},e.prototype.clear=function(){s.Instance.clear()},e.prototype.getAllTypes=function(){return s.Instance.getAllTypes()},e.prototype.createQuestion=function(e,t){return s.Instance.createElement(e,t)},e.Instance=new e,e}(),s=function(){function e(){var e=this;this.creatorHash={},this.registerCustomQuestion=function(t){e.registerElement(t,(function(e){var n=o.Serializer.createClass(t);return n&&(n.name=e),n}))}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],t&&o.Serializer.removeClass(e)},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return n?n(t):null},e.Instance=new e,e}()},"./src/questionnonvalue.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"QuestionNonValue",(function(){return a}));var r,o=n("./src/question.ts"),i=n("./src/jsonobject.ts"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},t}(o.Question);i.Serializer.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],(function(){return new a("")}),"question")},"./src/rendererFactory.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"RendererFactory",(function(){return r}));var r=function(){function e(){this.renderersHash={}}return e.prototype.unregisterRenderer=function(e,t){delete this.renderersHash[e][t]},e.prototype.registerRenderer=function(e,t,n){this.renderersHash[e]||(this.renderersHash[e]={}),this.renderersHash[e][t]=n},e.prototype.getRenderer=function(e,t){return this.renderersHash[e]&&this.renderersHash[e][t]||"default"},e.prototype.getRendererByQuestion=function(e){return this.getRenderer(e.getType(),e.renderAs)},e.prototype.clear=function(){this.renderersHash={}},e.Instance=new e,e}()},"./src/settings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"settings",(function(){return o}));var r=globalThis.document,o={enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1},expressionDisableConversionChar:"#",useLocalTimeZone:!0,get commentPrefix(){return o.commentSuffix},set commentPrefix(e){o.commentSuffix=e},commentSuffix:"-Comment",webserviceEncodeParameters:!0,useCachingForChoicesRestful:!0,get useCachingForChoicesRestfull(){return o.useCachingForChoicesRestful},set useCachingForChoicesRestfull(e){o.useCachingForChoicesRestful=e},surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey",itemValueSeparator:"|",itemValueAlwaysSerializeAsObject:!1,itemValueAlwaysSerializeText:!1,defaultLocaleName:"default",storeDuplicatedTranslations:!1,matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,matrixMaxRowCountInCondition:1,panelDynamicMaxPanelCountInCondition:1,matrixRenderRemoveAsIcon:!0,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,disableOnGettingChoicesFromWeb:!1,serializeLocalizableStringAsObject:!1,allowShowEmptyTitleInDesignMode:!0,allowShowEmptyDescriptionInDesignMode:!0,executeCompleteTriggerOnValueChanged:!1,changeNavigationButtonsOnCompleteTrigger:!0,executeSkipTriggerOnValueChanged:!0,readOnlyCommentRenderMode:"textarea",readOnlyTextRenderMode:"input",confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"100%",maximumConditionRunCountOnValueChanged:10,setQuestionVisibleIndexForHiddenTitle:!1,setQuestionVisibleIndexForHiddenNumber:!1,lazyRowsRendering:!1,lazyRowsRenderingStartRow:3,notifications:{lifetime:2e3},showItemsInOrder:"default",noneItemValue:"none",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:r?{root:r,_rootElement:r.body,get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:r.body},set rootElement(e){this._rootElement=e},_popupMountContainer:r.body,get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:r.body},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:r.head,stylesSheetsMountContainer:r.head}:void 0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},matrix:{columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"}}},"./src/stylesmanager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"modernThemeColors",(function(){return s})),n.d(t,"defaultThemeColors",(function(){return a})),n.d(t,"orangeThemeColors",(function(){return l})),n.d(t,"darkblueThemeColors",(function(){return u})),n.d(t,"darkroseThemeColors",(function(){return c})),n.d(t,"stoneThemeColors",(function(){return p})),n.d(t,"winterThemeColors",(function(){return d})),n.d(t,"winterstoneThemeColors",(function(){return h})),n.d(t,"StylesManager",(function(){return f}));var r=n("./src/defaultCss/defaultV2Css.ts"),o=n("./src/settings.ts"),i=n("./src/utils/utils.ts"),s={"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$checkmark-color":"#fff","$progress-buttons-color":"#8dd9ca","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$font-family":"Raleway"},a={"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},l={"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},u={"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},c={"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},p={"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},d={"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},h={"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"},f=function(){function e(){e.autoApplyTheme()}return e.autoApplyTheme=function(){if("bootstrap"!==r.surveyCss.currentType&&"bootstrapmaterial"!==r.surveyCss.currentType){var t=e.getIncludedThemeCss();1===t.length&&e.applyTheme(t[0].name)}},e.getAvailableThemes=function(){return r.surveyCss.getAvailableThemes().filter((function(e){return-1!==["defaultV2","default","modern"].indexOf(e)})).map((function(e){return{name:e,theme:r.surveyCss[e]}}))},e.getIncludedThemeCss=function(){var t=o.settings.environment.rootElement,n=e.getAvailableThemes(),r=Object(i.isShadowDOM)(t)?t.host:t;if(r){var s=getComputedStyle(r);if(s.length)return n.filter((function(e){return e.theme.variables&&s.getPropertyValue(e.theme.variables.themeMark)}))}return[]},e.findSheet=function(e){if(void 0===o.settings.environment)return null;for(var t=o.settings.environment.root.styleSheets,n=0;n<t.length;n++)if(t[n].ownerNode&&t[n].ownerNode.id===e)return t[n];return null},e.createSheet=function(t){var n=o.settings.environment.stylesSheetsMountContainer,r=document.createElement("style");return r.id=t,r.appendChild(document.createTextNode("")),Object(i.getElement)(n).appendChild(r),e.Logger&&e.Logger.log("style sheet "+t+" created"),r.sheet},e.applyTheme=function(t,n){void 0===t&&(t="default");var s=o.settings.environment.rootElement,a=Object(i.isShadowDOM)(s)?s.host:s;if(r.surveyCss.currentType=t,e.Enabled){if("bootstrap"!==t&&"bootstrapmaterial"!==t)return function(e,t){Object.keys(e||{}).forEach((function(n){var r=n.substring(1);t.style.setProperty("--"+r,e[n])}))}(e.ThemeColors[t],a),void(e.Logger&&e.Logger.log("apply theme "+t+" completed"));var l=e.ThemeCss[t];if(!l)return void(r.surveyCss.currentType="defaultV2");e.insertStylesRulesIntoDocument();var u=n||e.ThemeSelector[t]||e.ThemeSelector.default,c=(t+u).trim(),p=e.findSheet(c);if(!p){p=e.createSheet(c);var d=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(l).forEach((function(e){var t=l[e];Object.keys(d||{}).forEach((function(e){return t=t.replace(new RegExp("\\"+e,"g"),d[e])}));try{0===e.indexOf("body")?p.insertRule(e+" { "+t+" }",0):p.insertRule(u+e+" { "+t+" }",0)}catch(e){}}))}}e.Logger&&e.Logger.log("apply theme "+t+" completed")},e.insertStylesRulesIntoDocument=function(){if(e.Enabled){var t=e.findSheet(e.SurveyJSStylesSheetId);t||(t=e.createSheet(e.SurveyJSStylesSheetId)),Object.keys(e.Styles).length&&Object.keys(e.Styles).forEach((function(n){try{t.insertRule(n+" { "+e.Styles[n]+" }",0)}catch(e){}})),Object.keys(e.Media).length&&Object.keys(e.Media).forEach((function(n){try{t.insertRule(e.Media[n].media+" { "+n+" { "+e.Media[n].style+" } }",0)}catch(e){}}))}},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={},e.Media={},e.ThemeColors={modern:s,default:a,orange:l,darkblue:u,darkrose:c,stone:p,winter:d,winterstone:h},e.ThemeCss={},e.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},e.Enabled=!0,e}()},"./src/survey-element.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementCore",(function(){return f})),n.d(t,"DragTypeOverMeEnum",(function(){return o})),n.d(t,"SurveyElement",(function(){return g}));var r,o,i=n("./src/jsonobject.ts"),s=n("./src/base.ts"),a=n("./src/actions/adaptive-container.ts"),l=n("./src/helpers.ts"),u=n("./src/settings.ts"),c=n("./src/actions/container.ts"),p=n("./src/utils/cssClassBuilder.ts"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},f=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t}return d(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.updateDescriptionVisibility=function(e){this.hasDescription=!!e},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return u.settings.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},h([Object(i.property)()],t.prototype,"hasDescription",void 0),h([Object(i.property)({localizable:!0,onSet:function(e,t){t.updateDescriptionVisibility(t,e)}})],t.prototype,"description",void 0),t}(s.Base);!function(e){e[e.InsideEmptyPanel=1]="InsideEmptyPanel",e[e.MultilineRight=2]="MultilineRight",e[e.MultilineLeft=3]="MultilineLeft",e[e.Top=4]="Top",e[e.Right=5]="Right",e[e.Bottom=6]="Bottom",e[e.Left=7]="Left"}(o||(o={}));var g=function(e){function t(n){var r=e.call(this)||this;return r.selectedElementInDesignValue=r,r.disableDesignActions=t.CreateDisabledDesignElements,r.parentQuestionValue=null,r.isContentElement=!1,r.isEditableTemplateElement=!1,r.isInteractiveDesignElement=!0,r.isSingleInRow=!0,r.name=n,r.createNewArray("errors"),r.createNewArray("titleActions"),r.registerPropertyChangedHandlers(["isReadOnly"],(function(){r.onReadOnlyChanged()})),r.registerPropertyChangedHandlers(["errors"],(function(){r.updateVisibleErrors()})),r.registerPropertyChangedHandlers(["isSingleInRow"],(function(){r.updateElementCss(!1)})),r}return d(t,e),t.getProgressInfoByElements=function(e,t){for(var n=s.Base.createProgressInfo(),r=0;r<e.length;r++)if(e[r].isVisible){var o=e[r].getProgressInfo();n.questionCount+=o.questionCount,n.answeredQuestionCount+=o.answeredQuestionCount,n.requiredQuestionCount+=o.requiredQuestionCount,n.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return t&&n.questionCount>0&&(0==n.requiredQuestionCount&&(n.requiredQuestionCount=1),n.answeredQuestionCount>0&&(n.requiredAnsweredQuestionCount=1)),n},t.ScrollElementToTop=function(e){var t=u.settings.environment.root;if(!e||void 0===t)return!1;var n=t.getElementById(e);if(!n||!n.scrollIntoView)return!1;var r=n.getBoundingClientRect().top;return r<0&&n.scrollIntoView(),r<0},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var n=e[0];"#text"===n.nodeName&&(n.data=""),"#text"===(n=e[e.length-1]).nodeName&&(n.data="")}for(var r=0;r<e.length;r++)if("#text"!=e[r].nodeName&&"#comment"!=e[r].nodeName)return e[r];return null},t.FocusElement=function(e){if(!e||"undefined"==typeof document)return!1;var n=t.focusElementCore(e);return n||setTimeout((function(){t.focusElementCore(e)}),10),n},t.focusElementCore=function(e){var t=u.settings.environment.root;if(!t)return!1;var n=t.getElementById(e);return!(!n||n.disabled||(n.focus(),0))},t.prototype.onPropertyValueChanged=function(t,n,r){e.prototype.onPropertyValueChanged.call(this,t,n,r),"state"===t&&(this.updateElementCss(!1),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.notifyStateChanged()},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){if(!this.isDesignMode)return"collapsed"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var t=e?new a.AdaptiveActionContainer:new c.ActionContainer;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return void 0!==this.state&&"default"!==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!this.isPage&&"default"!==this.state)return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&this.clearCssClasses()},t.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():null},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){u.settings.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||(this.cssClassesValue=this.calcCssClasses(this.css),this.updateElementCssCore(this.cssClassesValue))},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.cssClassesValue=void 0},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.survey&&this.survey.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},t.prototype.onFirstRendering=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad()},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.delete=function(){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,n){if(void 0===n&&(n=null),!t)return!1;e.removeElement(this);var r=-1;return l.Helpers.isNumber(n)&&(r=parseInt(n)),-1==r&&n&&n.getType&&(r=t.indexOf(n)),t.addElement(this,r),!0},t.prototype.setPage=function(e,t){var n=this.getPage(e);"string"==typeof t&&this.getSurvey().pages.forEach((function(e){t===e.name&&(t=e)})),n!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&"sd-root-modern"==this.survey.getCss().root},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isErrorsModeTooltip",{get:function(){return this.getIsErrorsModeTooltip()},enumerable:!1,configurable:!0}),t.prototype.getIsErrorsModeTooltip=function(){return this.isDefaultV2Theme&&this.hasParent&&this.getIsTooltipErrorSupportedByParent()},t.prototype.getIsTooltipErrorSupportedByParent=function(){var e;return null===(e=this.parent)||void 0===e?void 0:e.getIsTooltipErrorInsideSupported()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!1},Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage&&(!this.parent.originalPage||this.survey.isShowingPreview)||void 0===this.parent},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&!this.hasParent&&this.isSingleInRow},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&(this.hasParent||!this.isSingleInRow)},t.prototype.getCssRoot=function(e){return(new p.CssClassBuilder).append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expanded,!!this.isExpanded).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDescriptionVisible",{get:function(){return!!this.description||this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootStyle",{get:function(){var e={};return this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=this.minWidth,e.maxWidth=this.maxWidth),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(){return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return"default"!==this.state},t.prototype.processTitleClick=function(){"default"!==this.state&&this.toggleState()},Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){var t="default"!==this.state;return(new p.CssClassBuilder).append(e.title).append(e.titleNumInline,(this.no||"").length>4||t).append(e.titleExpandable,t).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach((function(e){e.updateText()}))},t.CreateDisabledDesignElements=!1,h([Object(i.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),h([Object(i.property)({defaultValue:!1})],t.prototype,"isDragMe",void 0),h([Object(i.property)()],t.prototype,"cssClassesValue",void 0),h([Object(i.property)({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),h([Object(i.property)({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),h([Object(i.property)({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),t}(f)},"./src/survey-error.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyError",(function(){return i}));var r=n("./src/localizablestring.ts"),o=n("./src/surveyStrings.ts"),i=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return e.prototype.equalsTo=function(e){return!(!e||!e.getErrorType)&&this.getErrorType()===e.getErrorType()&&this.text===e.text&&this.visible===e.visible},Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new r.LocalizableString(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},e.prototype.getLocalizationString=function(e){return o.surveyLocalization.getString(e,this.getLocale())},e.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},e}()},"./src/survey.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyModel",(function(){return V}));var r,o=n("./src/helpers.ts"),i=n("./src/jsonobject.ts"),s=n("./src/base.ts"),a=n("./src/survey-element.ts"),l=n("./src/defaultCss/defaultV2Css.ts"),u=n("./src/textPreProcessor.ts"),c=n("./src/conditionProcessValue.ts"),p=n("./src/dxSurveyService.ts"),d=n("./src/surveyStrings.ts"),h=n("./src/error.ts"),f=n("./src/localizablestring.ts"),g=n("./src/stylesmanager.ts"),m=n("./src/surveyTimerModel.ts"),y=n("./src/conditions.ts"),v=n("./src/settings.ts"),b=n("./src/utils/utils.ts"),C=n("./src/actions/action.ts"),w=n("./src/actions/container.ts"),x=n("./src/utils/cssClassBuilder.ts"),P=n("./src/notifier.ts"),_=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},V=function(e){function t(n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=e.call(this)||this;o.valuesHash={},o.variablesHash={},o.onTriggerExecuted=o.addEvent(),o.onCompleting=o.addEvent(),o.onComplete=o.addEvent(),o.onShowingPreview=o.addEvent(),o.onNavigateToUrl=o.addEvent(),o.onStarted=o.addEvent(),o.onPartialSend=o.addEvent(),o.onCurrentPageChanging=o.addEvent(),o.onCurrentPageChanged=o.addEvent(),o.onValueChanging=o.addEvent(),o.onValueChanged=o.addEvent(),o.onVariableChanged=o.addEvent(),o.onQuestionVisibleChanged=o.addEvent(),o.onVisibleChanged=o.onQuestionVisibleChanged,o.onPageVisibleChanged=o.addEvent(),o.onPanelVisibleChanged=o.addEvent(),o.onQuestionCreated=o.addEvent(),o.onQuestionAdded=o.addEvent(),o.onQuestionRemoved=o.addEvent(),o.onPanelAdded=o.addEvent(),o.onPanelRemoved=o.addEvent(),o.onPageAdded=o.addEvent(),o.onValidateQuestion=o.addEvent(),o.onSettingQuestionErrors=o.addEvent(),o.onServerValidateQuestions=o.addEvent(),o.onValidatePanel=o.addEvent(),o.onErrorCustomText=o.addEvent(),o.onValidatedErrorsOnCurrentPage=o.addEvent(),o.onProcessHtml=o.addEvent(),o.onGetQuestionDisplayValue=o.addEvent(),o.onGetQuestionTitle=o.addEvent(),o.onGetTitleTagName=o.addEvent(),o.onGetQuestionNo=o.addEvent(),o.onProgressText=o.addEvent(),o.onTextMarkdown=o.addEvent(),o.onTextRenderAs=o.addEvent(),o.onSendResult=o.addEvent(),o.onGetResult=o.addEvent(),o.onUploadFiles=o.addEvent(),o.onDownloadFile=o.addEvent(),o.onClearFiles=o.addEvent(),o.onLoadChoicesFromServer=o.addEvent(),o.onLoadedSurveyFromService=o.addEvent(),o.onProcessTextValue=o.addEvent(),o.onUpdateQuestionCssClasses=o.addEvent(),o.onUpdatePanelCssClasses=o.addEvent(),o.onUpdatePageCssClasses=o.addEvent(),o.onUpdateChoiceItemCss=o.addEvent(),o.onAfterRenderSurvey=o.addEvent(),o.onAfterRenderHeader=o.addEvent(),o.onAfterRenderPage=o.addEvent(),o.onAfterRenderQuestion=o.addEvent(),o.onAfterRenderQuestionInput=o.addEvent(),o.onAfterRenderPanel=o.addEvent(),o.onFocusInQuestion=o.addEvent(),o.onFocusInPanel=o.addEvent(),o.onShowingChoiceItem=o.addEvent(),o.onChoicesLazyLoad=o.addEvent(),o.onGetChoiceDisplayValue=o.addEvent(),o.onMatrixRowAdded=o.addEvent(),o.onMatrixBeforeRowAdded=o.addEvent(),o.onMatrixRowRemoving=o.addEvent(),o.onMatrixRowRemoved=o.addEvent(),o.onMatrixAllowRemoveRow=o.addEvent(),o.onMatrixCellCreating=o.addEvent(),o.onMatrixCellCreated=o.addEvent(),o.onMatrixAfterCellRender=o.addEvent(),o.onMatrixCellValueChanged=o.addEvent(),o.onMatrixCellValueChanging=o.addEvent(),o.onMatrixCellValidate=o.addEvent(),o.onMatrixColumnAdded=o.addEvent(),o.onMultipleTextItemAdded=o.addEvent(),o.onDynamicPanelAdded=o.addEvent(),o.onDynamicPanelRemoved=o.addEvent(),o.onDynamicPanelRemoving=o.addEvent(),o.onTimer=o.addEvent(),o.onTimerPanelInfoText=o.addEvent(),o.onDynamicPanelItemValueChanged=o.addEvent(),o.onIsAnswerCorrect=o.addEvent(),o.onDragDropAllow=o.addEvent(),o.onScrollingElementToTop=o.addEvent(),o.onLocaleChangedEvent=o.addEvent(),o.onGetQuestionTitleActions=o.addEvent(),o.onGetPanelTitleActions=o.addEvent(),o.onGetPageTitleActions=o.addEvent(),o.onGetPanelFooterActions=o.addEvent(),o.onGetMatrixRowActions=o.addEvent(),o.onElementContentVisibilityChanged=o.addEvent(),o.onGetExpressionDisplayValue=o.addEvent(),o.jsonErrors=null,o.cssValue=null,o.hideRequiredErrors=!1,o._isMobile=!1,o._isCompact=!1,o._isDesignMode=!1,o.ignoreValidation=!1,o.isNavigationButtonPressed=!1,o.mouseDownPage=null,o.isCalculatingProgressText=!1,o.isFirstPageRendering=!0,o.isCurrentPageRendering=!0,o.isTriggerIsRunning=!1,o.triggerValues=null,o.triggerKeys=null,o.conditionValues=null,o.isValueChangedOnRunningCondition=!1,o.conditionRunnerCounter=0,o.conditionUpdateVisibleIndexes=!1,o.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,o.isEndLoadingFromJson=null,o.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},o.afterRenderPageTasks=[],o.needRenderIcons=!0,o.skippedPages=[],o.skeletonComponentName="sv-skeleton","undefined"!=typeof document&&(t.stylesManager=new g.StylesManager);var i=function(e){return"<h3>"+e+"</h3>"};return o.createHtmlLocString("completedHtml","completingSurvey",i),o.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",i),o.createHtmlLocString("loadingHtml","loadingSurvey",i),o.createLocalizableString("logo",o,!1),o.createLocalizableString("backgroundImage",o,!1),o.createLocalizableString("startSurveyText",o,!1,!0),o.createLocalizableString("pagePrevText",o,!1,!0),o.createLocalizableString("pageNextText",o,!1,!0),o.createLocalizableString("completeText",o,!1,!0),o.createLocalizableString("previewText",o,!1,!0),o.createLocalizableString("editText",o,!1,!0),o.createLocalizableString("questionTitleTemplate",o,!0),o.textPreProcessor=new u.TextPreProcessor,o.textPreProcessor.onProcess=function(e){o.getProcessedTextValue(e)},o.timerModelValue=new m.SurveyTimerModel(o),o.timerModelValue.onTimer=function(e){o.doTimer(e)},o.createNewArray("pages",(function(e){o.doOnPageAdded(e)}),(function(e){o.doOnPageRemoved(e)})),o.createNewArray("triggers",(function(e){e.setOwner(o)})),o.createNewArray("calculatedValues",(function(e){e.setOwner(o)})),o.createNewArray("completedHtmlOnCondition",(function(e){e.locOwner=o})),o.createNewArray("navigateToUrlOnCondition",(function(e){e.locOwner=o})),o.registerPropertyChangedHandlers(["locale"],(function(){o.onSurveyLocaleChanged()})),o.registerPropertyChangedHandlers(["firstPageIsStarted"],(function(){o.onFirstPageIsStartedChanged()})),o.registerPropertyChangedHandlers(["mode"],(function(){o.onModeChanged()})),o.registerPropertyChangedHandlers(["progressBarType"],(function(){o.updateProgressText()})),o.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],(function(){o.resetVisibleIndexes()})),o.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage"],(function(){o.updateState()})),o.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],(function(){o.onStateAndCurrentPageChanged()})),o.registerPropertyChangedHandlers(["logo","logoPosition"],(function(){o.updateHasLogo()})),o.registerPropertyChangedHandlers(["backgroundImage"],(function(){o.updateRenderBackgroundImage()})),o.onGetQuestionNo.onCallbacksChanged=function(){o.resetVisibleIndexes()},o.onProgressText.onCallbacksChanged=function(){o.updateProgressText()},o.onTextMarkdown.onCallbacksChanged=function(){o.locStrsChanged()},o.onProcessHtml.onCallbacksChanged=function(){o.locStrsChanged()},o.onGetQuestionTitle.onCallbacksChanged=function(){o.locStrsChanged()},o.onUpdatePageCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdatePanelCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdateQuestionCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onShowingChoiceItem.onCallbacksChanged=function(){o.rebuildQuestionChoices()},o.navigationBarValue=o.createNavigationBar(),o.navigationBar.locOwner=o,o.onBeforeCreating(),n&&(("string"==typeof n||n instanceof String)&&(n=JSON.parse(n)),n&&n.clientId&&(o.clientId=n.clientId),o.fromJSON(n),o.surveyId&&o.loadSurveyFromService(o.surveyId,o.clientId)),o.onCreating(),r&&o.render(r),o.updateCss(),o.setCalculatedWidthModeUpdater(),o.notifier=new P.Notifier(o.css.saveData),o.notifier.addAction(o.createTryAgainAction(),"error"),o.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:o.timerModel}),o.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:o}),o.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:o}),o.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:o}),o.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:o}),o.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:o}),o.addLayoutElement({id:"toc-navigation",component:"sv-progress-toc",data:o}),o.layoutElements.push({id:"navigationbuttons",component:"sv-action-bar",data:o.navigationBar}),o}return _(t,e),Object.defineProperty(t,"cssType",{get:function(){return l.surveyCss.currentType},set:function(e){g.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return v.settings.commentSuffix},set:function(e){v.settings.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,t,n){this.createLocalizableString(e,this,!1,t).onGetLocalizationTextCallback=n},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,n){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){void 0===e&&(e=null),this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,t){var n=function(){if("model"==o||"children"==o)return"continue";if(0==o.indexOf("on")&&r[o]&&r[o].add){var t=e[o];r[o].add((function(e,n){t(e,n)}))}else r[o]=e[o]},r=this;for(var o in e)n();e&&e.data&&this.onValueChanged.add((function(t,n){e.data[n.name]=n.value}))},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=(new x.CssClassBuilder).append(this.css.body).append(this.css.completedPage).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,l.surveyCss.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,t){void 0===t&&(t=!0),t?this.mergeValues(e,this.css):this.cssValue=e,this.updateCss(),this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return(new x.CssClassBuilder).append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return(new x.CssClassBuilder).append(this.css.body).append(this.css.bodyWithTimer,"none"!=this.showTimerPanel&&"running"===this.state).append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.getNavigationCss=function(e,t){return(new x.CssClassBuilder).append(e).append(t).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return!0===this.lazyRenderingValue},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var t=this.currentPage;t&&t.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||v.settings.lazyRowsRendering},enumerable:!1,configurable:!0}),t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&Object(b.scrollElementByChildId)(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){!0!==e&&void 0!==e||(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!1)),t},t.prototype.navigateTo=function(){var e={url:this.getNavigateToUrl(),allow:!0};this.onNavigateToUrl.fire(this,e),e.url&&e.allow&&Object(b.navigateToUrl)(e.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t),this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},t.prototype.beforeSettingPanelErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t)},t.prototype.maakeRequiredErrorsInvisibgle=function(e){if(this.hideRequiredErrors)for(var t=0;t<e.length;t++){var n=e[t].getErrorType();"required"!=n&&"requireoneanswer"!=n||(e[t].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic",!0)},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){void 0===e&&(e=!1);for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var n=this.data,r=!1;for(var o in n)if(!this.getQuestionByValueName(o)&&!this.iscorrectValueWithPostPrefix(o,v.settings.commentSuffix)&&!this.iscorrectValueWithPostPrefix(o,v.settings.matrixTotalValuePostFix)){var i=this.getCalculatedValueByName(o);i&&i.includeIntoResult||(r=!0,delete n[o])}r&&(this.data=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substring(0,e.indexOf(t)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValue("locale",d.surveyLocalization.currentLocale)},set:function(e){e!==d.surveyLocalization.defaultLocale||d.surveyLocalization.currentLocale||(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var n=d.surveyLocalization.defaultLocale,r=e.indexOf(n);r>-1&&e.splice(r,1),t=e.indexOf("default"),e[t]=n}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(e.prototype.locStrsChanged.call(this),this.currentPage){this.isShowStartingPage||this.updateProgressText();var t=this.activePage;t&&t.locStrsChanged();for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].navigationLocStrChanged();this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,t){return this.getSurveyMarkdownHtml(this,e,t)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,t){var n={element:e,name:t,renderAs:this.getBuiltInRendererForString(e,t)};return this.onTextRenderAs.fire(this,n),n.renderAs},t.prototype.getRendererContextForString=function(e,t){return t},t.prototype.getExpressionDisplayValue=function(e,t,n){var r={question:e,value:t,displayValue:n};return this.onGetExpressionDisplayValue.fire(this,r),r.displayValue},t.prototype.getBuiltInRendererForString=function(e,t){if(this.isDesignMode)return f.LocalizableString.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,t){return this.getSurveyErrorCustomText(this,e,t)},t.prototype.getSurveyErrorCustomText=function(e,t,n){var r={text:t,name:n.getErrorType(),obj:e,error:n};return this.onErrorCustomText.fire(this,r),r.text},t.prototype.getQuestionDisplayValue=function(e,t){var n={question:e,displayValue:t};return this.onGetQuestionDisplayValue.fire(this,n),n.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizationString("emptySurvey")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){var e=this.getPropertyValue("logoWidth");return Object(b.getSize)(e)},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){var e=this.getPropertyValue("logoHeight");return Object(b.getSize)(e)},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&"none"!==this.logoPosition)},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return!this.isDesignMode&&this.renderedHasLogo&&("left"===this.logoPosition||"top"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){return(new x.CssClassBuilder).append(this.css.logo).append({left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"}[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.locTitle.isEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){void 0===e&&(e=!0),this.isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().map((function(t){return t.isMobile=e})))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this._isCompact},set:function(e){e!==this._isCompact&&(this._isCompact=e,this.updateElementCss())},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(Object(b.isMobile)()||this.isMobile||this.isValueEmpty(this.isLogoImageChoosen())||v.settings.supportCreatorV2)){var e=this.logoWidth;if("left"===this.logoPosition||"right"===this.logoPosition)return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getLocalizableStringText("backgroundImage")},set:function(e){this.setLocalizableStringText("backgroundImage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locBackgroundImage",{get:function(){return this.getLocalizableString("backgroundImage")},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){this.renderBackgroundImage=["url(",this.getLocalizableString("backgroundImage").renderedHtml,")"].join("")},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderBackgroundOpacity",{get:function(){return this.getPropertyByName("backgroundOpacity").isDefaultValue(this.backgroundOpacity)?"":["rgba(255, 255, 255, ",1-this.backgroundOpacity,")"].join("")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new y.ExpressionRunner(e).run(t,n)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new y.ConditionRunner(e).run(t,n)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),n=this.getFilteredProperties(),r=0;r<e.length;r++)if(e[r].runCondition(t,n))return e[r];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,t){if(this.onGetTitleTagName.isEmpty)return t;var n={element:e,tagName:t};return this.onGetTitleTagName.fire(this,n),n.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,t=this.getLocalizationString("questionTitlePatternText"),n=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:n+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:n+" "+this.requiredText+" "+t}),e.push({value:"requireNumTitle",text:this.requiredText+" "+n+" "+t}),e.push({value:"numTitle",text:n+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){var n=(e=e.substring(e.indexOf("{")+1)).indexOf("}");if(n<0)break;t.push(e.substring(0,n)),e=e.substring(n+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(t.indexOf("require")<0)return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,n,r){if(t="{"+t+"}",!e||e.indexOf(t)<0)return n;for(var o=e.indexOf(t),i="",s="",a=o-1;a>=0&&"}"!=e[a];a--);for(a<o-1&&(i=e.substring(a+1,o)),a=o+=t.length;a<e.length&&"{"!=e[a];a++);for(a>o&&(s=e.substring(o,a)),a=0;a<i.length&&i.charCodeAt(a)<33;)a++;for(i=i.substring(a),a=s.length-1;a>=0&&s.charCodeAt(a)<33;)a--;return s=s.substring(0,a+1),i||s?i+(n||r)+s:n},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var n={question:e,title:t};return this.onGetQuestionTitle.fire(this,n),n.title},t.prototype.getUpdatedQuestionNo=function(e,t){if(this.onGetQuestionNo.isEmpty)return t;var n={question:e,no:t};return this.onGetQuestionNo.fire(this,n),n.no},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){!0===e&&(e="on"),!1===e&&(e="off"),(e="onpage"===(e=e.toLowerCase())?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){"correctquestion"===e&&(e="correctQuestion"),"requiredquestion"===e&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return!!this.canShowProresBar()&&("top"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return!!this.canShowProresBar()&&("bottom"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),t.prototype.getProgressCssClasses=function(){return(new x.CssClassBuilder).append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop).append(this.css.progressBottom,this.isShowProgressBarOnBottom).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||"showAllQuestions"!=this.showPreviewBeforeComplete},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var t=this.visiblePages,n=0;n<t.length;n++)t[n].updateElementCss(e)},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n],o=this.getDataValueCore(this.valuesHash,r);void 0!==o&&(e[r]=o)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var t=this.data;this.mergeValues(e,t),this.setDataCore(t)}},t.prototype.setDataCore=function(e){if(e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]);this.updateAllQuestionsValue(),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue()},t.prototype.getStructuredData=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=-1),0===t)return this.data;var n={};return this.pages.forEach((function(r){if(e){var o={};r.collectValues(o,t-1)&&(n[r.name]=o)}else r.collectValues(n,t)})),n},t.prototype.setStructuredData=function(e,t){if(void 0===t&&(t=!1),e){var n={};for(var r in e)if(this.getQuestionByValueName(r))n[r]=e[r];else{var o=this.getPageByName(r);o||(o=this.getPanelByName(r)),o&&this.collectDataFromPanel(o,n,e[r])}t?this.mergeData(n):this.data=n}},t.prototype.collectDataFromPanel=function(e,t,n){for(var r in n){var o=e.getElementByName(r);o&&(o.isPanel?this.collectDataFromPanel(o,t,n[r]):t[r]=n[r])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var t=this;if(this.editingObj!=e&&(this.editingObj&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(e,n){i.Serializer.hasOriginalProperty(t.editingObj,n.name)&&t.updateOnSetValue(n.name,t.editingObj[n.name],n.oldValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var n=this.calculatedValues[t];n.includeIntoResult&&n.name&&void 0!==this.getVariable(n.name)&&(e[n.name]=this.getVariable(n.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var t=[],n=[];if(this.getAllQuestions().forEach((function(r){var o=r.getPlainData(e);o&&(t.push(o),n.push(r.valueName||r.name))})),e.includeValues)for(var r=this.getValuesKeys(),o=0;o<r.length;o++){var i=r[o];if(-1==n.indexOf(i)){var s=this.getDataValueCore(this.valuesHash,i);s&&t.push({name:i,title:i,value:s,displayValue:s,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}})}}return t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];this.addCalculatedValuesIntoFilteredValues(e);for(var n=this.getValuesKeys(),r=0;r<n.length;r++)e[t=n[r]]=this.getDataValueCore(this.valuesHash,t);return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var t=this.calculatedValues,n=0;n<t.length;n++)e[t[n].name]=t[n].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=i.Serializer.getPropertiesByObj(this.editingObj),t=[],n=0;n<e.length;n++)t.push(e[n].name);return t},t.prototype.getDataValueCore=function(e,t){return this.editingObj?i.Serializer.getObjPropertyValue(this.editingObj,t):this.getDataFromValueHash(e,t)},t.prototype.setDataValueCore=function(e,t,n){this.editingObj?i.Serializer.setObjPropertyValue(this.editingObj,t,n):this.setDataToValueHash(e,t,n)},t.prototype.deleteDataValueCore=function(e,t){this.editingObj?this.editingObj[t]=null:this.deleteDataFromValueHash(e,t)},t.prototype.getDataFromValueHash=function(e,t){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,t):e[t]},t.prototype.setDataToValueHash=function(e,t,n){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,t,n):e[t]=n},t.prototype.deleteDataFromValueHash=function(e,t){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,t):delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},t=this.getValuesKeys(),n=0;n<t.length;n++){var r=t[n];r.indexOf(this.commentSuffix)>0&&(e[r]=this.getDataValueCore(this.valuesHash,r))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=new Array,t=0;t<this.pages.length;t++)this.isPageInVisibleList(this.pages[t])&&e.push(this.pages[t]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(!this.isLoadingFromJson){var t=this.getPageByObject(e);if((!e||t)&&(t||!this.isCurrentPageAvailable)){var n=this.visiblePages;if(!(null!=t&&n.indexOf(t)<0)&&t!=this.currentPage){var r=this.currentPage;this.currentPageChanging(t,r)&&(this.setPropertyValue("currentPage",t),t&&(t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.currentPageChanged(t,r))}}}},enumerable:!1,configurable:!0}),t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1||!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return"starting"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return"running"==this.state||"preview"==this.state||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),n=this.visiblePages;return e<0||e>=n.length?null:n[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.isFocusingQuestion){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){void 0===e&&(e=!0);var t=this.activePage;t&&(e&&t.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.isFocusingQuestion&&(t.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.setPropertyValue("completedState",e),t||("saving"==e&&(t=this.getLocalizationString("savingData")),"error"==e&&(t=this.getLocalizationString("savingDataError")),"success"==e&&(t=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",t),"completed"===this.state&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState)},t.prototype.notify=function(e,t){this.notifier.notify(e,t,"error"===t)},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,e&&(this.data=null,this.variablesHash={}),this.timerModel.spent=0;for(var n=0;n<this.pages.length;n++)this.pages[n].timeSpent=0,this.pages[n].setWasShown(!1),this.pages[n].passed=!1;this.onFirstPageIsStartedChanged(),t&&(this.currentPage=this.firstVisiblePage),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){Object(b.mergeValues)(e,t)},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,n=0;n<t.length;n++)t[n].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){var n=this.createPageChangeEventOptions(e,t);n.allow=!0,n.allowChanging=!0,this.onCurrentPageChanging.fire(this,n);var r=n.allowChanging&&n.allow;return r&&(this.isCurrentPageRendering=!0),r},t.prototype.currentPageChanged=function(e,t){var n=this.createPageChangeEventOptions(e,t);n.isNextPage&&(t.passed=!0),this.onCurrentPageChanged.fire(this,n)},t.prototype.createPageChangeEventOptions=function(e,t){var n=e&&t?e.visibleIndex-t.visibleIndex:0;return{oldCurrentPage:t,newCurrentPage:e,isNextPage:1===n,isPrevPage:-1===n,isGoingForward:n>0,isGoingBackward:n<0}},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("pages"!==this.progressBarType){var e=this.getProgressInfo();return"requiredQuestions"===this.progressBarType?e.requiredQuestionCount>=1?Math.ceil(100*e.requiredAnsweredQuestionCount/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(100*e.answeredQuestionCount/e.questionCount):100}var t=this.visiblePages,n=t.indexOf(this.currentPage)+1;return Math.ceil(100*n/t.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"none"===this.showNavigationButtons?"bottom":this.showNavigationButtons:"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var t=this.isNavigationButtonsShowing;return"both"==t||t==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode||"preview"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.isLoadingFromJson||(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];n.updateElementVisibility(),e.indexOf(n)>-1!=n.isVisible&&this.onPageVisibleChanged.fire(this,{page:n,visible:n.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName||"undefined"==typeof document)return!1;var e=document.cookie;return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&"undefined"!=typeof document&&(document.cookie=this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=;")},t.prototype.nextPage=function(){return!this.isLastPage&&this.doCurrentPageComplete(!1)},t.prototype.hasErrorsOnNavigate=function(e){var t=this;if(this.ignoreValidation||!this.isEditMode)return!1;var n=function(n){n||t.doCurrentPageCompleteCore(e)};return"onComplete"===this.checkErrorsMode?!!this.isLastPage&&!0!==this.validate(!0,!0,n):!0!==this.validateCurrentPage(n)},t.prototype.checkForAsyncQuestionValidation=function(e,t){var n=this;this.clearAsyncValidationQuesitons();for(var r=function(){if(e[i].isRunningValidators){var r=e[i];r.onCompletedAsyncValidators=function(e){n.onCompletedAsyncQuestionValidators(r,t,e)},o.asyncValidationQuesitons.push(e[i])}},o=this,i=0;i<e.length;i++)r();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t,n){if(n){if(this.clearAsyncValidationQuesitons(),t(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var r=this.currentPage.questions,o=0;o<r.length;o++)if(r[o]!==e&&r[o].errors.length>0)return;e.focus(!0)}}else{for(var i=this.asyncValidationQuesitons,s=0;s<i.length;s++)if(i[s].isRunningValidators)return;t(!1)}},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,t){var n=this.validatePage(e,t);return void 0===n?n:!n},t.prototype.validatePage=function(e,t){return e||(e=this.activePage),!e||!this.checkIsPageHasErrors(e)&&(!t||!this.checkForAsyncQuestionValidation(e.questions,(function(e){return t(e)}))||void 0)},t.prototype.hasErrors=function(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!1);var r=this.validate(e,t,n);return void 0===r?r:!r},t.prototype.validate=function(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!1),n&&(e=!0);for(var r=this.visiblePages,o=null,i=!0,s=0;s<r.length;s++)r[s].validate(e,!1)||(o||(o=r[s]),i=!1);if(t&&o){this.currentPage=o;var a=o.questions;for(s=0;s<a.length;s++)if(a[s].errors.length>0){a[s].focus(!0);break}}return i&&n?!this.checkForAsyncQuestionValidation(this.getAllQuestions(),(function(e){return n(e)}))||void 0:i},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,n=0;n<t.length;n++)this.ensureUniqueNames(t[n]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPageByName(e)}))},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getPanelByName(e)}))},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,(function(e){return t.getQuestionByName(e)}))},t.prototype.ensureUniqueElementName=function(e,t){var n=t(e.name);if(n&&n!=e){for(var r=this.getNewName(e.name);t(r);)r=this.getNewName(e.name);e.name=r}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var n=e.substring(0,t),r=0;return t<e.length&&(r=parseInt(e.substring(t))),n+ ++r},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var n=!e.validate(!0,t);return this.fireValidatedErrorsOnPage(e),n},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=e.questions,n=new Array,r=new Array,o=0;o<t.length;o++){var i=t[o];if(i.errors.length>0){n.push(i);for(var s=0;s<i.errors.length;s++)r.push(i.errors[s])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:n,errors:r,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.isFirstPage||"starting"===this.state)return!1;this.resetNavigationButton();var t=this.skippedPages.find((function(t){return t.to==e.currentPage}));if(t)this.currentPage=t.from,this.skippedPages.splice(this.skippedPages.indexOf(t),1);else{var n=this.visiblePages,r=n.indexOf(this.currentPage);this.currentPage=n[r-1]}return!0},t.prototype.completeLastPage=function(){var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){if(!this.mouseDownPage||this.mouseDownPage===this.activePage)return this.mouseDownPage=null,this.nextPage()},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){return this.resetNavigationButton(),!this.hasErrorsOnNavigate(!0)&&!this.doServerValidation(!0,!0)&&(this.showPreviewCore(),!0)},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){void 0===e&&(e=null),this.isShowingPreview&&(this.isShowingPreview=!1,o.Helpers.isValueEmpty(e)&&this.visiblePageCount>0&&(e=this.visiblePageCount-1),null!==e&&(this.currentPage=e))},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e.originalPage)},t.prototype.doCurrentPageComplete=function(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e))},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation(e)&&(e?(this.currentPage.passed=!0,this.doComplete()):(this.doNextPage(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){this.isDesignMode||(this.isShowingPreview?(this.runningPages=this.pages.slice(0,this.pages.length),this.setupPagesForPageModes(!0)):(this.runningPages&&this.restoreOrigionalPages(this.runningPages),this.runningPages=void 0),this.runConditions(),this.updateAllElementsVisibility(this.pages),this.updateVisibleIndexes(),this.currentPageNo=0)},t.prototype.onQuestionsOnPageModeChanged=function(e){this.isShowingPreview||("standard"==this.questionsOnPageMode||this.isDesignMode?(this.origionalPages&&this.restoreOrigionalPages(this.origionalPages),this.origionalPages=void 0):(e&&"standard"!=e||(this.origionalPages=this.pages.slice(0,this.pages.length)),this.setupPagesForPageModes(this.isSinglePage)),this.runConditions(),this.updateVisibleIndexes())},t.prototype.restoreOrigionalPages=function(e){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<e.length;t++)this.pages.push(e[t])},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},t.prototype.setupPagesForPageModes=function(t){this.questionHashesClear();var n=this.getPageStartIndex();e.prototype.startLoadingFromJson.call(this);var r=this.createPagesForQuestionOnPageMode(t,n),o=this.pages.length-n;this.pages.splice(n,o);for(var i=0;i<r.length;i++)this.pages.push(r[i]);for(e.prototype.endLoadingFromJson.call(this),i=0;i<r.length;i++)r[i].setSurveyImpl(this,!0);this.doElementsOnLoad(),this.updateCurrentPage()},t.prototype.createPagesForQuestionOnPageMode=function(e,t){return e?[this.createSinglePage(t)]:this.createPagesForEveryQuestion(t)},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var n=e;n<this.pages.length;n++){var r=this.pages[n],o=i.Serializer.createClass("panel");o.originalPage=r,t.addPanel(o);var s=(new i.JsonObject).toJsonObject(r);(new i.JsonObject).toObject(s,o),this.showPageTitles||(o.title="")}return t},t.prototype.createPagesForEveryQuestion=function(e){for(var t=[],n=e;n<this.pages.length;n++){var r=this.pages[n];r.setWasShown(!0);for(var o=0;o<r.elements.length;o++){var s=r.elements[o],a=i.Serializer.createClass(s.getType());if(a){var l=new i.JsonObject;l.lightSerializing=!0;var u=l.toJsonObject(r),c=i.Serializer.createClass(r.getType());c.fromJSON(u),c.name=s.name,c.setSurveyImpl(this),t.push(c);var p=(new i.JsonObject).toJsonObject(s);c.addElement(a),(new i.JsonObject).toObject(p,a);for(var d=0;d<c.questions.length;d++)this.questionHashesAdded(c.questions[d])}}}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage)},t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPage||!this.showPrevButton||"running"!==this.state)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},t.prototype.calcIsShowNextButton=function(){return"running"===this.state&&!this.isLastPage&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&("running"===this.state&&(this.isLastPage&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||"preview"===e)},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state&&this.isLastPage},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){for(var e=this.pages,t=0;t<e.length;t++)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){for(var e=this.pages,t=e.length-1;t>=0;t--)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e){if(void 0===e&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e){var t=this;void 0===e&&(e=!1);var n=this.hasCookie,r=function(e){a=!0,t.setCompletedState("saving",e)},o=function(e){t.setCompletedState("error",e)},i=function(e){t.setCompletedState("success",e),t.navigateTo()},s=function(e){t.setCompletedState("","")},a=!1,l={isCompleteOnTrigger:e,showSaveInProgress:r,showSaveError:o,showSaveSuccess:i,clearSaveMessages:s,showDataSaving:r,showDataSavingError:o,showDataSavingSuccess:i,showDataSavingClear:s};this.onComplete.fire(this,l),!n&&this.surveyPostId&&this.sendResult(),a||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e){var t={allowComplete:!0,allow:!0,isCompleteOnTrigger:e};return this.onCompleting.fire(this,t),t.allowComplete&&t.allow},t.prototype.start=function(){return!!this.firstPageIsStarted&&!this.checkIsPageHasErrors(this.startedPage,!0)&&(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0)},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,t){var n=this,r={data:{},errors:{},survey:this,complete:function(){n.completeServerValidation(r,t)}};if(e&&"onComplete"===this.checkErrorsMode)r.data=this.data;else for(var o=this.activePage.questions,i=0;i<o.length;i++){var s=o[i];if(s.visible){var a=this.getValue(s.getValueName());this.isValueEmpty(a)||(r.data[s.getValueName()]=a)}}return r},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,t){var n=this;if(void 0===t&&(t=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty)return!1;if(!e&&"onComplete"===this.checkErrorsMode)return!1;this.setIsValidatingOnServer(!0);var r="function"==typeof this.onServerValidateQuestions;return this.serverValidationEventCount=r?1:this.onServerValidateQuestions.length,r?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,t)):this.onServerValidateQuestions.fireByCreatingOptions(this,(function(){return n.createServerValidationOptions(e,t)})),!0},t.prototype.completeServerValidation=function(e,t){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&0===Object.keys(e.errors).length))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),e||e.survey)){var n=e.survey,r=!1;if(e.errors){var o=this.focusOnFirstError;for(var i in e.errors){var s=n.getQuestionByName(i);s&&s.errors&&(r=!0,s.addError(new h.CustomError(e.errors[i],this)),o&&(o=!1,s.page&&(this.currentPage=s.page),s.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}r||(t?this.showPreviewCore():n.isLastPage?n.doComplete():n.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var t=this.visiblePages,n=t.indexOf(this.currentPage);this.currentPage=t[n+1]}},t.prototype.setCompleted=function(){this.doComplete(!0)},t.prototype.canBeCompleted=function(e,t){if(v.settings.changeNavigationButtonsOnCompleteTrigger){var n=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),t?this.completedByTriggers[e.id]=!0:delete this.completedByTriggers[e.id],n!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){return!!this.completedByTriggers&&Object.keys(this.completedByTriggers).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.processHtml(this.completedBeforeHtml,"completed-before")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.processHtml(this.loadingHtml,"loading")},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return a.SurveyElement.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){void 0===e&&(e=!1),this.isCalculatingProgressText||e&&"pages"==this.progressBarType&&this.onProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1)},t.prototype.getProgressText=function(){if(!this.isDesignMode&&null==this.currentPage)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},t=this.progressBarType.toLowerCase();if("questions"===t||"requiredquestions"===t||"correctquestions"===t||!this.onProgressText.isEmpty){var n=this.getProgressInfo();e.questionCount=n.questionCount,e.answeredQuestionCount=n.answeredQuestionCount,e.requiredQuestionCount=n.requiredQuestionCount,e.requiredAnsweredQuestionCount=n.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var t=this.progressBarType.toLowerCase();if("questions"===t)return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if("requiredquestions"===t)return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if("correctquestions"===t){var n=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",n,e.questionCount)}var r=this.isDesignMode?this.pages:this.visiblePages,o=r.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",o,r.length)},t.prototype.getRootCss=function(){return(new x.CssClassBuilder).append(this.css.root).append(this.css.rootMobile,this.isMobile).append(this.css.rootReadOnly,"display"===this.mode).toString()},t.prototype.afterRenderSurvey=function(e){var t=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=a.SurveyElement.GetFirstNonTextElement(e));var n=e,r=this.css.variables;if(r){var o=Number.parseFloat(window.getComputedStyle(n).getPropertyValue(r.mobileWidth));if(o){var i=!1;this.resizeObserver=new ResizeObserver((function(){i=!(i||!Object(b.isContainerVisible)(n))&&t.processResponsiveness(n.offsetWidth,o)})),this.resizeObserver.observe(n)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e})},t.prototype.processResponsiveness=function(e,t){var n=e<t;return this.isMobile!==n&&(this.setIsMobile(n),!0)},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.updateChoiceItemCss=function(e,t){t.question=e,this.onUpdateChoiceItemCss.fire(this,t)},t.prototype.afterRenderPage=function(e){var t=this;for(this.isDesignMode||this.isFocusingQuestion||setTimeout((function(){return t.scrollToTopOnPageChange(!t.isFirstPageRendering)}),1);this.afterRenderPageTasks.length>0;)this.afterRenderPageTasks.shift()();this.isFirstPageRendering=!1,this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var n=e.inputId,r=v.settings.environment.root;if(n&&t.id!==n&&void 0!==r){var o=r.getElementById(n);o&&(t=o)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach((function(e){return e.surveyChoiceItemVisibilityChange()}))},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,t,n){var r={question:e,item:t,visible:n};return this.onShowingChoiceItem.fire(this,r),r.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixBeforeRowAdded.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.matrixColumnAdded=function(e,t){this.onMatrixColumnAdded.fire(this,{question:e,column:t})},t.prototype.multipleTextItemAdded=function(e,t){this.onMultipleTextItemAdded.fire(this,{question:e,item:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,n){var r=this.getQuestionsByValueName(e);if(r){for(var o=0;o<r.length;o++){var i=r[o].getQuestionFromArray(t,n);if(i)return i}return null}},t.prototype.matrixRowRemoved=function(e,t,n){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:n})},t.prototype.matrixRowRemoving=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixRowRemoving.fire(this,r),r.allow},t.prototype.matrixAllowRemoveRow=function(e,t,n){var r={question:e,rowIndex:t,row:n,allow:!0};return this.onMatrixAllowRemoveRow.fire(this,r),r.allow},t.prototype.matrixCellCreating=function(e,t){t.question=e,this.onMatrixCellCreating.fire(this,t)},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onMatrixAfterCellRender.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return"onValueChanging"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return"onValueChanged"===this.checkErrorsMode},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.dynamicPanelAdded=function(e,t,n){if(this.isLoadingFromJson||this.updateVisibleIndexes(),!this.onDynamicPanelAdded.isEmpty){var r=e.panels;void 0===t&&(n=r[t=r.length-1]),this.onDynamicPanelAdded.fire(this,{question:e,panel:n,panelIndex:t})}},t.prototype.dynamicPanelRemoved=function(e,t,n){for(var r=n?n.questions:[],o=0;o<r.length;o++)r[o].clearOnDeletingContainer();this.updateVisibleIndexes(),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:n})},t.prototype.dynamicPanelRemoving=function(e,t,n){var r={question:e,panelIndex:t,panel:n,allow:!0};return this.onDynamicPanelRemoving.fire(this,r),r.allow},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,t.panelIndex=t.itemIndex,t.panelData=t.itemValue,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,t,n){var r={question:n,panel:e,actions:t};return this.onGetPanelFooterActions.fire(this,r),r.actions},t.prototype.getUpdatedElementTitleActions=function(e,t){return e.isPage?this.getUpdatedPageTitleActions(e,t):e.isPanel?this.getUpdatedPanelTitleActions(e,t):this.getUpdatedQuestionTitleActions(e,t)},t.prototype.getUpdatedQuestionTitleActions=function(e,t){var n={question:e,titleActions:t};return this.onGetQuestionTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedPanelTitleActions=function(e,t){var n={panel:e,titleActions:t};return this.onGetPanelTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedPageTitleActions=function(e,t){var n={page:e,titleActions:t};return this.onGetPageTitleActions.fire(this,n),n.titleActions},t.prototype.getUpdatedMatrixRowActions=function(e,t,n){var r={question:e,actions:n,row:t};return this.onGetMatrixRowActions.fire(this,r),r.actions},t.prototype.scrollElementToTop=function(e,t,n,r){var o={element:e,question:t,page:n,elementId:r,cancel:!1};this.onScrollingElementToTop.fire(this,o),o.cancel||a.SurveyElement.ScrollElementToTop(o.elementId)},t.prototype.uploadFiles=function(e,t,n,r){this.onUploadFiles.isEmpty?r("error",n):this.onUploadFiles.fire(this,{question:e,name:t,files:n||[],callback:r}),this.surveyPostId&&this.uploadFilesCore(t,n,r)},t.prototype.downloadFile=function(e,t,n,r){this.onDownloadFile.isEmpty&&r&&r("success",n.content||n),this.onDownloadFile.fire(this,{question:e,name:t,content:n.content||n,fileValue:n,callback:r})},t.prototype.clearFiles=function(e,t,n,r,o){this.onClearFiles.isEmpty&&o&&o("success",n),this.onClearFiles.fire(this,{question:e,name:t,value:n,fileName:r,callback:o})},t.prototype.updateChoicesFromServer=function(e,t,n){var r={question:e,choices:t,serverResult:n};return this.onLoadChoicesFromServer.fire(this,r),r.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new p.dxSurveyService},t.prototype.uploadFilesCore=function(e,t,n){var r=this,o=[];t.forEach((function(e){n&&n("uploading",e),r.createSurveyService().sendFile(r.surveyPostId,e,(function(r,i){r?(o.push({content:i,file:e}),o.length===t.length&&n&&n("success",o)):n&&n("error",{response:i,file:e})}))}))},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))},t.prototype.addNewPage=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1);var n=this.createNewPage(e);return this.addPage(n,t),n},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var n=(t?this.questionHashes.namesInsensitive:this.questionHashes.names)[e];return n?n[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var n=this.getQuestionsByValueName(e,t);return n?n[0]:null},t.prototype.getQuestionsByValueName=function(e,t){return void 0===t&&(t=!1),(t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames)[e]||null},t.prototype.getCalculatedValueByName=function(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var o=this.getQuestionByName(e[r],t);o&&n.push(o)}return n},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];if(n.containsElement(e))return n}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var n=0;n<e.length;n++)if(e[n]){var r=this.getPageByName(e[n]);r&&t.push(r)}return t},t.prototype.getAllQuestions=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,r=0;r<this.pages.length;r++)this.pages[r].addQuestionsToList(n,e,t);return n},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.getPageStartIndex();t<this.pages.length;t++)if(this.pages[t].isVisible)for(var n=this.pages[t].questions,r=0;r<n.length;r++){var o=n[r];o.quizQuestionCount>0&&e.push(o)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var n=this.getAllPanels();t&&(e=e.toLowerCase());for(var r=0;r<n.length;r++){var o=n[r].name;if(t&&(o=o.toLowerCase()),o==e)return n[r]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,r=0;r<this.pages.length;r++)this.pages[r].addPanelsIntoList(n,e,t);return n},t.prototype.createNewPage=function(e){var t=i.Serializer.createClass("page");return t.name=e,t},t.prototype.questionOnValueChanging=function(e,t){if(this.editingObj){var n=i.Serializer.findProperty(this.editingObj.getType(),e);n&&(t=n.settingValue(this.editingObj,t))}if(this.onValueChanging.isEmpty)return t;var r={name:e,question:this.getQuestionByValueName(e),value:this.getUnbindValue(t),oldValue:this.getValue(e)};return this.onValueChanging.fire(this,r),r.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var r=0;r<n.length;r++){var o=n[r].value;(o===t&&Array.isArray(o)&&this.editingObj||!this.isTwoValueEquals(o,t))&&n[r].updateValueFromSurvey(t)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&("onValueChanged"===this.checkErrorsMode||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var t=e.getAllErrors().length,n=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging}),r=this.checkErrorsMode.indexOf("Value")>-1;return e.page&&r&&(t>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),n},t.prototype.checkErrorsOnValueChanging=function(e,t){if(this.isLoadingFromJson)return!1;var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var r=!1,o=0;o<n.length;o++){var i=n[o];this.isTwoValueEquals(i.valueForSurvey,t)||(i.value=t),this.checkQuestionErrorOnValueChangedCore(i)&&(r=!0),r=r||i.errors.length>0}return r},t.prototype.notifyQuestionOnValueChanged=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var r=0;r<n.length;r++){var o=n[r];this.checkQuestionErrorOnValueChanged(o),o.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:o,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});this.isDisposed||(this.checkElementsBindings(e,t),this.notifyElementsOnAnyValueOrVariableChanged(e))}},t.prototype.checkElementsBindings=function(e,t){this.isRunningElementsBindings=!0;for(var n=0;n<this.pages.length;n++)this.pages[n].checkBindings(e,t);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){if("processing"!==this.isEndLoadingFromJson)if(this.isRunningConditions)this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;else{for(var t=0;t<this.pages.length;t++)this.pages[t].onAnyValueChanged(e);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++){var n=e[t],r=n.getValueName();n.updateValueFromSurvey(this.getValue(r)),n.requireUpdateCommentValue&&n.updateCommentFromSurvey(this.getComment(r))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var t=this.getCurrentPageQuestions(!0),n={},r=0;r<t.length;r++){var o=t[r].getValueName();n[o]=this.getValue(o)}this.addCalculatedValuesIntoFilteredValues(n),this.checkTriggers(n,!0,e)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],n=this.currentPage;if(!n)return t;for(var r=0;r<n.questions.length;r++){var o=n.questions[r];(e||o.visible)&&o.name&&t.push(o)}return t},t.prototype.checkTriggers=function(e,t,n){if(void 0===n&&(n=!1),!this.isCompleted&&0!=this.triggers.length&&!this.isDisplayMode)if(this.isTriggerIsRunning)for(var r in this.triggerValues=this.getFilteredValues(),e)this.triggerKeys[r]=e[r];else{this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var o=this.getFilteredProperties(),i=this.canBeCompletedByTrigger,s=0;s<this.triggers.length;s++)this.triggers[s].checkExpression(t,n,this.triggerKeys,this.triggerValues,o);i!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!1,configurable:!0}),t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<v.settings.maximumConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.isRunningConditions?(this.conditionValues[e]=t,this.isValueChangedOnRunningCondition=!0):this.runConditions()},t.prototype.runConditionsCore=function(t){for(var n=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,t);for(e.prototype.runConditionCore.call(this,this.conditionValues,t),r=0;r<n.length;r++)n[r].runCondition(this.conditionValues,t)},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPage);if(!(t<=e+1))for(var n=e+1;n<t;n++)if(this.pages[n].isVisible){this.currentPage=this.pages[n];break}},t.prototype.sendResult=function(e,t,n){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isEditMode&&(n&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!n||this.clientId))){var r=this;this.surveyShowDataSaving&&this.setCompletedState("saving",""),this.createSurveyService().sendResult(e,this.data,(function(e,t,n){r.surveyShowDataSaving&&(e?r.setCompletedState("success",""):r.setCompletedState("error",t)),r.onSendResult.fire(r,{success:e,response:t,request:n})}),this.clientId,n)}},t.prototype.getResult=function(e,t){var n=this;this.createSurveyService().getResult(e,t,(function(e,t,r,o){n.onGetResult.fire(n,{success:e,data:t,dataList:r,response:o})}))},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var n=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,(function(e,t,r,o){n.isLoading=!1,e&&(n.isCompletedBefore="completed"==r,n.loadSurveyFromServiceJson(t))})):this.createSurveyService().loadSurvey(this.surveyId,(function(e,t,r){n.isLoading=!1,e&&n.loadSurveyFromServiceJson(t)}))},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)e[t].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(){if(!this.isLoadingFromJson&&!this.isEndLoadingFromJson)if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty)this.conditionUpdateVisibleIndexes=!0;else if(this.isRunningElementsBindings)this.updateVisibleIndexAfterBindings=!0;else{if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else{var n="on"==this.showQuestionNumbers?0:-1;for(t=0;t<this.pages.length;t++)n+=this.pages[t].setVisibleIndex(n)}this.updateProgressText(!0)}},t.prototype.updatePageVisibleIndexes=function(e){this.updateButtonsVisibility();for(var t=0,n=0;n<this.pages.length;n++){var r=this.pages[n],o=r.isVisible&&(n>0||!r.isStartPage);r.visibleIndex=o?t++:-1,r.num=o?r.visibleIndex+1:-1}},t.prototype.fromJSON=function(e){if(e){this.questionHashesClear(),this.jsonErrors=null;var t=new i.JsonObject;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors),this.onStateAndCurrentPageChanged(),this.updateState()}},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),this.onQuestionsOnPageModeChanged("standard"),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new w.ActionContainer;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,t="sv-nav-btn",n=new C.Action({id:"sv-nav-start",visible:new s.ComputedUpdater((function(){return e.isShowStartingPage})),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:t}),r=new C.Action({id:"sv-nav-prev",visible:new s.ComputedUpdater((function(){return e.isShowPrevButton})),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.prevPage()},component:t}),o=new C.Action({id:"sv-nav-next",visible:new s.ComputedUpdater((function(){return e.isShowNextButton})),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:t}),i=new C.Action({id:"sv-nav-preview",visible:new s.ComputedUpdater((function(){return e.isPreviewButtonVisible})),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:t}),a=new C.Action({id:"sv-nav-complete",visible:new s.ComputedUpdater((function(){return e.isCompleteButtonVisible})),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.completeLastPage()},component:t});return this.updateNavigationItemCssCallback=function(){n.innerCss=e.cssNavigationStart,r.innerCss=e.cssNavigationPrev,o.innerCss=e.cssNavigationNext,i.innerCss=e.cssNavigationPreview,a.innerCss=e.cssNavigationComplete},[n,r,o,i,a]},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if("pageno"===e){var t=this.currentPage;return null!=t?this.visiblePages.indexOf(t)+1:0}return"pagecount"===e?this.visiblePageCount:"correctedanswers"===e||"correctanswers"===e||"correctedanswercount"===e?this.getCorrectedAnswerCount():"incorrectedanswers"===e||"incorrectanswers"===e||"incorrectedanswercount"===e?this.getInCorrectedAnswerCount():"questioncount"===e?this.getQuizQuestionCount():void 0},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){var n=this.getBuiltInVariableValue(t);if(void 0!==n)return e.isExists=!0,void(e.value=n);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:d.surveyLocalization.defaultLocale);var r=this.getVariable(t);if(void 0!==r)return e.isExists=!0,void(e.value=r);var o=this.getFirstName(t);if(o){var i=o.useDisplayValuesInDynamicTexts;e.isExists=!0;var s=o.getValueName().toLowerCase();t=(t=s+t.substring(s.length)).toLocaleLowerCase();var a={};return a[s]=e.returnDisplayValue&&i?o.getDisplayValue(!1,void 0):o.value,void(e.value=(new c.ProcessValue).getValue(t,a))}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var t=this.getValue(e.name);if(void 0!==t)return e.isExists=!0,void(e.value=t);var n=new c.ProcessValue,r=n.getFirstName(e.name);if(r!==e.name){var i={},s=this.getValue(r);o.Helpers.isValueEmpty(s)&&(s=this.getVariable(r)),o.Helpers.isValueEmpty(s)||(i[r]=s,e.value=n.getValue(e.name,i),e.isExists=n.hasValue(e.name,i))}},t.prototype.getFirstName=function(e){var t;e=e.toLowerCase();do{t=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e)}while(!t&&e);return t},t.prototype.reduceFirstName=function(e){var t=e.lastIndexOf("."),n=e.lastIndexOf("[");if(t<0&&n<0)return"";var r=Math.max(t,n);return e.substring(0,r)},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();this.clearInvisibleQuestionValues()},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);if(!t)return!1;for(var n=0;n<t.length;n++){var r=t[n];if(r.isVisible&&r.isParentVisible&&!r.parentQuestion)return!0}return!1},t.prototype.questionCountByValueName=function(e){var t=this.getQuestionsByValueName(e);return t?t.length:0},t.prototype.clearInvisibleQuestionValues=function(){for(var e="none"===this.clearInvisibleValues?"none":"onComplete",t=this.getAllQuestions(),n=0;n<t.length;n++)t[n].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return this.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&(new c.ProcessValue).hasValue(e,this.variablesHash)?(new c.ProcessValue).getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){e&&(this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),this.runConditionOnValueChanged(e,t),this.onVariableChanged.fire(this,{name:e,value:t}))},t.prototype.getVariableNames=function(){var e=[];for(var t in this.variablesHash)e.push(t);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:o.Helpers.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!0);var o=t;if(r&&(o=this.questionOnValueChanging(e,t)),(!this.isValidateOnValueChanging||!this.checkErrorsOnValueChanging(e,o))&&(this.editingObj||!this.isValueEqual(e,o)||!this.isTwoValueEquals(o,t))){var i=this.getValue(e);this.isValueEmpty(o)?this.deleteDataValueCore(this.valuesHash,e):(o=this.getUnbindValue(o),this.setDataValueCore(this.valuesHash,e,o)),this.updateOnSetValue(e,o,i,n,r)}},t.prototype.updateOnSetValue=function(e,t,n,r,o){if(void 0===r&&(r=!1),void 0===o&&(o=!0),this.updateQuestionValue(e,t),!0!==r&&!this.isDisposed&&!this.isRunningElementsBindings){var i={};i[e]={newValue:t,oldValue:n},this.runConditionOnValueChanged(e,t),this.checkTriggers(i,!1),o&&this.notifyQuestionOnValueChanged(e,t),"text"!==r&&this.tryGoNextPageAutomatic(e)}},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var n=this.getValue(e);return""!==n&&void 0!==n||(n=null),null===t||null===n?t===n:this.isTwoValueEquals(t,n)},t.prototype.doOnPageAdded=function(e){e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var t={page:e};this.onPageAdded.fire(this,t)},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.generateNewName=function(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].name]=!0;for(var o=1;n[t+o];)o++;return t+o},t.prototype.tryGoNextPageAutomatic=function(e){if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var t=this.getQuestionByValueName(e);if(t&&(!t||t.visible&&t.supportGoNextPageAutomatic())&&(t.validate(!1)||t.supportGoNextPageError())){var n=this.getCurrentPageQuestions();if(!(n.indexOf(t)<0)){for(var r=0;r<n.length;r++)if(n[r].hasInput&&n[r].isEmpty())return;this.checkIsCurrentPageHasErrors(!1)||(this.isLastPage?!0===this.goNextPageAutomatic&&this.allowCompleteSurveyAutomatic&&(this.isShowPreviewBeforeComplete?this.showPreview():this.completeLastPage()):this.nextPage())}}}},t.prototype.getComment=function(e){return this.getValue(e+this.commentSuffix)||""},t.prototype.setComment=function(e,t,n){if(void 0===n&&(n=!1),t||(t=""),!this.isTwoValueEquals(t,this.getComment(e))){var r=e+this.commentSuffix;this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,r):this.setDataValueCore(this.valuesHash,r,t);var o=this.getQuestionsByValueName(e);if(o)for(var i=0;i<o.length;i++)o[i].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(o[i]);n||this.runConditionOnValueChanged(e,this.getValue(e)),"text"!==n&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByName(e);s&&this.onValueChanged.fire(this,{name:r,question:s,value:t})}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){return"onHidden"==this.clearInvisibleValues||this.isClearValueOnHiddenContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHiddenContainer",{get:function(){return"onHiddenContainer"==this.clearInvisibleValues&&!this.isShowingPreview&&!this.runningPages},enumerable:!1,configurable:!0}),t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:t})},t.prototype.pageVisibilityChanged=function(e,t){this.isLoadingFromJson||((t&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t}))},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(),this.setCalculatedWidthModeUpdater(),(!this.isMovingQuestion||this.isDesignMode&&!v.settings.supportCreatorV2)&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,t,n){this.questionHashesRemoved(e,t,n),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,n=0;n<t.length;n++)this.questionHashesAdded(t[n])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,n){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),n&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,n),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,n.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,n){var r;(r=e[n])?(r=e[n]).indexOf(t)<0&&r.push(t):e[n]=[t]},t.prototype.questionHashRemovedCore=function(e,t,n){var r=e[n];if(r){var o=r.indexOf(t);o>-1&&r.splice(o,1),0==r.length&&delete e[n]}},t.prototype.panelAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parent:n,page:r,parentPanel:n,rootPanel:r})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.processHtml=function(e,t){t||(t="");var n={html:e,reason:t};return this.onProcessHtml.fire(this,n),this.processText(n.html,!0)},t.prototype.processText=function(e,t){return this.processTextEx(e,t,!1).text},t.prototype.processTextEx=function(e,t,n){var r={text:this.processTextCore(e,t,n),hasAllValuesOnLastRun:!0};return r.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,r},t.prototype.processTextCore=function(e,t,n){return void 0===n&&(n=!1),this.isDesignMode?e:this.textPreProcessor.process(e,t,n)},t.prototype.getSurveyMarkdownHtml=function(e,t,n){var r={element:e,text:t,name:n,html:null};return this.onTextMarkdown.fire(this,r),r.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,n=0;n<e.length;n++)t+=e[n].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.getInCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,t){this.onIsAnswerCorrect.isEmpty||(t.question=e,this.onIsAnswerCorrect.fire(this,t))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),n=0,r={question:null,result:!1,correctAnswers:0,incorrectAnswers:0},o=0;o<t.length;o++){var i=t[o],s=i.quizQuestionCount;if(r.question=i,r.correctAnswers=i.correctAnswerCount,r.incorrectAnswers=s-r.correctAnswers,r.result=r.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,r),e){if(r.result||r.correctAnswers<s){var a=r.correctAnswers;0==a&&r.result&&(a=1),n+=a}}else(!r.result||r.incorrectAnswers<s)&&(n+=r.incorrectAnswers)}return n},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.getPropertyValue("showTimerPanel")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return"top"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return"bottom"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new s.ComputedUpdater((function(){return e.calculateWidthMode()})),this.calculatedWidthMode=this.calculatedWidthModeUpdater},t.prototype.calculateWidthMode=function(){if("auto"==this.widthMode){var e=!1;return this.pages.forEach((function(t){t.needResponsiveWidth()&&(e=!0)})),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width");return e&&!isNaN(e)&&(e+="px"),"static"==this.getPropertyValue("calculatedWidthMode")&&e||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){var e,t;if(this.currentPage){var n=this.getTimerInfo(),r=n.spent,o=n.limit,i=n.minorSpent,s=n.minorLimit;e=o>0?this.getDisplayClockTime(o-r):this.getDisplayClockTime(r),void 0!==i&&(t=s>0?this.getDisplayClockTime(s-i):this.getDisplayClockTime(i))}return{majorText:e,minorText:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new f.LocalizableString(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var t=e.timeSpent,n=this.timeSpent,r=this.getPageMaxTimeToFinish(e),o=this.maxTimeToFinish;return"page"==this.showTimerPanelMode?{spent:t,limit:r}:"survey"==this.showTimerPanelMode?{spent:n,limit:o}:r>0&&o>0?{spent:t,limit:r,minorSpent:n,minorLimit:o}:r>0?{spent:t,limit:r,minorSpent:n}:o>0?{spent:n,limit:o,minorSpent:t}:{spent:t,minorSpent:n}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),n=this.getDisplayTime(this.timeSpent),r=this.getPageMaxTimeToFinish(e),o=this.getDisplayTime(r),i=this.getDisplayTime(this.maxTimeToFinish);return"page"==this.showTimerPanelMode?this.getTimerInfoPageText(e,t,o):"survey"==this.showTimerPanelMode?this.getTimerInfoSurveyText(n,i):"all"==this.showTimerPanelMode?r<=0&&this.maxTimeToFinish<=0?this.getLocalizationFormatString("timerSpentAll",t,n):r>0&&this.maxTimeToFinish>0?this.getLocalizationFormatString("timerLimitAll",t,o,n,i):this.getTimerInfoPageText(e,t,o)+" "+this.getTimerInfoSurveyText(n,i):""},t.prototype.getTimerInfoPageText=function(e,t,n){return this.getPageMaxTimeToFinish(e)>0?this.getLocalizationFormatString("timerLimitPage",t,n):this.getLocalizationFormatString("timerSpentPage",t,n)},t.prototype.getTimerInfoSurveyText=function(e,t){var n=this.maxTimeToFinish>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(n,e,t)},t.prototype.getDisplayClockTime=function(e){var t=Math.floor(e/60),n=e%60,r=n.toString();return n<10&&(r="0"+r),t+":"+r},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),n=e%60,r="";return t>0&&(r+=t+" "+this.getLocalizationString("timerMin")),r&&0==n?r:(r&&(r+=" "),r+n+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.timerModel.start()},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!1,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(e){if(this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),e){var t=this.getPageMaxTimeToFinish(e);t>0&&t==e.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var n=[];return Array.prototype.push.apply(n,this.getPagesByNames(e)),Array.prototype.push.apply(n,this.getQuestionsByNames(t)),n},t.prototype.setTriggerValue=function(e,t,n){if(e)if(n)this.setVariable(e,t);else{var r=this.getQuestionByName(e);if(r)r.value=t;else{var o=new c.ProcessValue,i=o.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getQuestionByName(i))return;var s=this.getUnbindValue(this.getFilteredValues());o.setValue(s,e,t),this.setValue(i,s[i])}}}},t.prototype.copyTriggerValue=function(e,t){if(e&&t){var n=(new c.ProcessValue).getValue(t,this.getFilteredValues());this.setTriggerValue(e,n,!1)}},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},t.prototype.focusQuestion=function(e){var t=this,n=this.getQuestionByName(e,!0);if(!n||!n.isVisible||!n.page)return!1;this.isFocusingQuestion=!0,this.skippedPages.push({from:this.currentPage,to:n.page});var r=this.currentPage!==n.page,o=function(){n.focus(),t.isFocusingQuestion=!1,t.isCurrentPageRendering=!1};return this.afterRenderPageTasks.push(o),this.currentPage=n.page,r||(o(),this.afterRenderPageTasks.splice(this.afterRenderPageTasks.indexOf(o),1)),!0},t.prototype.questionEditFinishCallback=function(e,t){if("loseFocus"==v.settings.enterKeyAction&&t.target.blur(),"moveToNextEditor"==v.settings.enterKeyAction){var n=this.currentPage.questions,r=n.indexOf(e);r>-1&&r<n.length-1?n[r+1].focus():t.target.blur()}},t.prototype.getElementWrapperComponentName=function(e,n){return"logo-image"===n?"sv-logo-image":t.TemplateRendererComponentName},t.prototype.getQuestionContentWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getRowWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getElementWrapperComponentData=function(e,t){return e},t.prototype.getRowWrapperComponentData=function(e){return e},t.prototype.getItemValueWrapperComponentName=function(e,n){return t.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e,t){return e},t.prototype.getMatrixCellTemplateData=function(e){return e.question},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var t=[],n=0;n<this.pages.length;n++)this.pages[n].searchText(e,t);return t},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var t=this.removeLayoutElement(e.id);return this.layoutElements.push(e),t},t.prototype.removeLayoutElement=function(e){var t=this.layoutElements.filter((function(t){return t.id===e}))[0];if(t){var n=this.layoutElements.indexOf(t);this.layoutElements.splice(n,1)}return t},t.prototype.getContainerContent=function(e){for(var t=[],n=0,r=this.layoutElements;n<r.length;n++){var o=r[n];O(o.id,"timerpanel")?("header"===e&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&t.push(o),"footer"===e&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&t.push(o)):O(o.id,"progress-"+this.progressBarType)?("header"===e&&this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o),"contentBottom"===e&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&t.push(o)):O(o.id,"navigationbuttons")?("contentTop"===e&&-1!==["top","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o),"contentBottom"===e&&-1!==["bottom","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o)):"running"===this.state&&O(o.id,"toc-navigation")&&this.showTOC?("left"===e&&-1!==["left","both"].indexOf(this.tocLocation)&&t.push(o),"right"===e&&-1!==["right","both"].indexOf(this.tocLocation)&&t.push(o)):(Array.isArray(o.container)&&-1!==o.container.indexOf(e)||o.container===e)&&t.push(o)}return t},t.prototype.dispose=function(){if(this.currentPage=null,this.destroyResizeObserver(),e.prototype.dispose.call(this),this.editingObj=null,this.pages){for(var t=0;t<this.pages.length;t++)this.pages[t].setSurveyImpl(void 0),this.pages[t].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.TemplateRendererComponentName="sv-template-renderer",t.stylesManager=null,t.platform="unknown",S([Object(i.property)()],t.prototype,"completedCss",void 0),S([Object(i.property)()],t.prototype,"containerCss",void 0),S([Object(i.property)()],t.prototype,"showBrandInfo",void 0),S([Object(i.property)()],t.prototype,"_isMobile",void 0),S([Object(i.property)()],t.prototype,"_isCompact",void 0),S([Object(i.property)()],t.prototype,"renderBackgroundImage",void 0),S([Object(i.property)()],t.prototype,"backgroundImageFit",void 0),S([Object(i.property)()],t.prototype,"rootCss",void 0),S([Object(i.property)()],t.prototype,"calculatedWidthMode",void 0),S([Object(i.propertyArray)()],t.prototype,"layoutElements",void 0),t}(a.SurveyElementCore);function O(e,t){return!!e&&!!t&&e.toUpperCase()===t.toUpperCase()}i.Serializer.addClass("survey",[{name:"locale",choices:function(){return d.surveyLocalization.getLocales(!0)},onGetValue:function(e){return e.locale==d.surveyLocalization.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean",default:!0},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem"},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page"},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,n){e.pages.splice(0,e.pages.length);var r=e.addNewPage("");n.toObject({questions:t},r)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue"},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem"},{name:"questionsOrder",default:"initial",choices:["initial","random"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","top","bottom","both"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions","buttons"]},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"]},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(e,t){"autogonext"!==t&&(t=o.Helpers.isTwoValueEquals(t,!0)),e.setPropertyValue("goNextPageAutomatic",t)}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onValueChanging","onComplete"]},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"startSurveyText",serializationProperty:"locStartSurveyText"},{name:"pagePrevText",serializationProperty:"locPagePrevText"},{name:"pageNextText",serializationProperty:"locPageNextText"},{name:"completeText",serializationProperty:"locCompleteText"},{name:"previewText",serializationProperty:"locPreviewText"},{name:"editText",serializationProperty:"locEditText"},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["singlePage","standard","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"maxTimeToFinishPage:number",default:0,minValue:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["all","page","survey"]},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},"width",{name:"backgroundImage",serializationProperty:"locBackgroundImage",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}])},"./src/surveyProgress.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getProgressTextInBarCss=function(e){return(new r.CssClassBuilder).append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return(new r.CssClassBuilder).append(e.progressText).append(e.progressTextUnderBar).toString()},e}()},"./src/surveyProgressButtons.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressButtonsModel",(function(){return o}));var r=n("./src/utils/cssClassBuilder.ts"),o=function(){function e(e){this.survey=e}return e.prototype.isListElementClickable=function(e){return!(this.survey.onServerValidateQuestions&&!this.survey.onServerValidateQuestions.isEmpty&&"onComplete"!==this.survey.checkErrorsMode)||e<=this.survey.currentPageNo+1},e.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return(new r.CssClassBuilder).append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},e.prototype.getScrollButtonCss=function(e,t){return(new r.CssClassBuilder).append(this.survey.css.progressButtonsImageButtonLeft,t).append(this.survey.css.progressButtonsImageButtonRight,!t).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},e.prototype.clickListElement=function(e){if(!this.survey.isDesignMode)if(e<this.survey.currentPageNo)this.survey.currentPageNo=e;else if(e>this.survey.currentPageNo)for(var t=this.survey.currentPageNo;t<e&&this.survey.nextPage();t++);},e}()},"./src/surveyStrings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyLocalization",(function(){return o})),n.d(t,"surveyStrings",(function(){return i}));var r=n("./src/localization/english.ts"),o={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){"cz"===e&&(e="cs"),this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){"cz"===e&&(e="cs"),this.defaultLocaleValue=e},getLocaleStrings:function(e){return this.locales[e]},getString:function(e,t){var n=this;void 0===t&&(t=null);var r=new Array,o=function(e){var t=n.locales[e];t&&r.push(t)},i=function(e){if(e){o(e);var t=e.indexOf("-");t<1||(e=e.substring(0,t),o(e))}};i(t),i(this.currentLocale),i(this.defaultLocale),"en"!==this.defaultLocale&&o("en");for(var s=0;s<r.length;s++){var a=r[s][e];if(void 0!==a)return a}return this.onGetExternalString(e,t)},getLocales:function(e){void 0===e&&(e=!1);var t=[];t.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var i in n)e&&i==this.defaultLocale||t.push(i);var s=function(e){if(!e)return"";var t=o.localeNames[e];return t||(t=e),t.toLowerCase()};return t.sort((function(e,t){var n=s(e),r=s(t);return n===r?0:n<r?-1:1})),t},onGetExternalString:function(e,t){}},i=r.englishStrings;o.locales.en=r.englishStrings,o.localeNames.en="english"},"./src/surveyTimerModel.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyTimerModel",(function(){return c}));var r,o=n("./src/base.ts"),i=n("./src/surveytimer.ts"),s=n("./src/jsonobject.ts"),a=n("./src/utils/cssClassBuilder.ts"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},c=function(e){function t(t){var n=e.call(this)||this;return n.timerFunc=null,n.surveyValue=t,n.onCreating(),n}return l(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add((function(){e.update()})),this.timerFunc=function(){e.doTimer()},this.setIsRunning(!0),this.update(),i.SurveyTimer.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),i.SurveyTimer.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(){var e=this.survey.currentPage;e&&(e.timeSpent=e.timeSpent+1),this.spent=this.spent+1,this.update(),this.onTimer&&this.onTimer(e)},t.prototype.updateProgress=function(){var e=this,t=this.survey.timerInfo,n=t.spent,r=t.limit;r?0==n?(this.progress=0,setTimeout((function(){e.progress=Math.floor((n+1)/r*100)/100}),0)):n!==r&&(this.progress=Math.floor((n+1)/r*100)/100):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return void 0!==this.progress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return(new a.CssClassBuilder).append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),u([Object(s.property)()],t.prototype,"text",void 0),u([Object(s.property)()],t.prototype,"progress",void 0),u([Object(s.property)()],t.prototype,"clockMajorText",void 0),u([Object(s.property)()],t.prototype,"clockMinorText",void 0),u([Object(s.property)({defaultValue:0})],t.prototype,"spent",void 0),t}(o.Base)},"./src/surveyToc.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"tryNavigateToPage",(function(){return s})),n.d(t,"createTOCListModel",(function(){return a})),n.d(t,"getTocRootCss",(function(){return l}));var r=n("./src/actions/action.ts"),o=n("./src/base.ts"),i=n("./src/list.ts");function s(e,t){if(!e.isDesignMode){if(t<e.currentPageNo)e.currentPageNo=t;else if(t>e.currentPageNo)for(var n=e.currentPageNo;n<t;n++)if(!e.nextPageUIClick())return!1;return!0}}function a(e){var t=e.pages.map((function(t,n){return new r.Action({id:t.name,title:t.navigationTitle||t.title||t.name,action:function(){return void 0!==typeof document&&document.activeElement&&document.activeElement.blur&&document.activeElement.blur(),s(e,n)},visible:new o.ComputedUpdater((function(){return t.isVisible&&!t.isStartPage}))})})),n=new i.ListModel(t,(function(e){e.action()&&(n.selectedItem=e)}),!0,t.filter((function(t){return t.id===e.currentPage.name}))[0]);return n.allowSelection=!1,n.locOwner=e,e.onCurrentPageChanged.add((function(r,o){n.selectedItem=t.filter((function(t){return t.id===e.currentPage.name}))[0]})),n}function l(e){return"sv_progress-toc sv_progress-toc--"+(e.tocLocation||"").toLowerCase()}},"./src/surveytimer.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"surveyTimerFunctions",(function(){return o})),n.d(t,"SurveyTimer",(function(){return i}));var r=n("./src/base.ts"),o={setTimeout:function(e){return"undefined"==typeof window?0:window.setTimeout(e,1e3)},clearTimeout:function(e){"undefined"!=typeof window&&window.clearTimeout(e)}},i=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new r.Event}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!1,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0&&(this.timerId=o.setTimeout((function(){t.doTimer()}))),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(o.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;if((this.onTimer.isEmpty||0==this.listenerCounter)&&(this.timerId=-1),!(this.timerId<0)){var t=this.timerId;this.onTimer.fire(this,{}),t===this.timerId&&(this.timerId=o.setTimeout((function(){e.doTimer()})))}},e.instanceValue=null,e}()},"./src/svgbundle.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"SvgIconRegistry",(function(){return i})),n.d(t,"SvgRegistry",(function(){return s})),n.d(t,"SvgBundleViewModel",(function(){}));var r=n("./src/settings.ts"),o=n("./src/utils/utils.ts"),i=function(){function e(){this.icons={},this.iconPrefix="icon-"}return e.prototype.registerIconFromSymbol=function(e,t){this.icons[e]=t},e.prototype.registerIconFromSvgViaElement=function(e,t,n){void 0===n&&(n=this.iconPrefix);var r=document.createElement("div");r.innerHTML=t;var o=document.createElement("symbol"),i=r.querySelector("svg");o.innerHTML=i.innerHTML;for(var s=0;s<i.attributes.length;s++)o.setAttributeNS("http://www.w3.org/2000/svg",i.attributes[s].name,i.attributes[s].value);o.id=n+e,this.registerIconFromSymbol(e,o.outerHTML)},e.prototype.registerIconFromSvg=function(e,t,n){void 0===n&&(n=this.iconPrefix);var r=(t=t.trim()).toLowerCase();return"<svg "===r.substring(0,5)&&"</svg>"===r.substring(r.length-6,r.length)&&(this.registerIconFromSymbol(e,'<symbol id="'+n+e+'" '+t.substring(5,r.length-6)+"</symbol>"),!0)},e.prototype.registerIconsFromFolder=function(e){var t=this;e.keys().forEach((function(n){t.registerIconFromSvg(n.substring(2,n.length-4).toLowerCase(),e(n))}))},e.prototype.iconsRenderedHtml=function(){var e=this;return Object.keys(this.icons).map((function(t){return e.icons[t]})).join("")},e.prototype.renderIcons=function(){var e="sv-icon-holder-global-container";if(!r.settings.environment.root.getElementById(e)){var t=document.createElement("div");t.id=e,t.innerHTML="<svg>"+this.iconsRenderedHtml()+"</svg>",t.style.display="none",Object(o.getElement)(r.settings.environment.svgMountContainer).appendChild(t)}},e}(),s=new i,a=n("./src/images sync \\.svg$"),l=n("./src/images/smiley sync \\.svg$");s.registerIconsFromFolder(a),s.registerIconsFromFolder(l)},"./src/template-renderer.ts":function(e,t,n){"use strict";n.r(t)},"./src/textPreProcessor.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"TextPreProcessorItem",(function(){return i})),n.d(t,"TextPreProcessorValue",(function(){return s})),n.d(t,"TextPreProcessor",(function(){return a})),n.d(t,"QuestionTextProcessor",(function(){return l}));var r=n("./src/helpers.ts"),o=n("./src/conditionProcessValue.ts"),i=function(){},s=function(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0},a=function(){function e(){this._unObservableValues=[void 0]}return Object.defineProperty(e.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(e){this._unObservableValues[0]=e},enumerable:!1,configurable:!0}),e.prototype.process=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var o=this.getItems(e),i=o.length-1;i>=0;i--){var a=o[i],l=this.getName(e.substring(a.start+1,a.end));if(l){var u=new s(l,t);if(this.onProcess(u),u.isExists){r.Helpers.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=r.Helpers.isValueEmpty(u.value)?"":u.value;n&&(c=encodeURIComponent(c)),e=e.substring(0,a.start)+c+e.substring(a.end+1)}else u.canProcess&&(this.hasAllValuesOnLastRunValue=!1)}}return e},e.prototype.processValue=function(e,t){var n=new s(e,t);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],n=e.length,r=-1,o="",s=0;s<n;s++)if("{"==(o=e[s])&&(r=s),"}"==o){if(r>-1){var a=new i;a.start=r,a.end=s,t.push(a)}r=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}(),l=function(){function e(e){var t=this;this.variableName=e,this.textPreProcessor=new a,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return e.prototype.processValue=function(e,t){return this.textPreProcessor.processValue(e,t)},Object.defineProperty(e.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.panel?this.panel.getValue():null},e.prototype.getQuestionByName=function(e){return this.panel?this.panel.getQuestionByValueName(e):null},e.prototype.getParentTextProcessor=function(){return null},e.prototype.onCustomProcessText=function(e){return!1},e.prototype.getQuestionDisplayText=function(e){return e.displayValue},e.prototype.getProcessedTextValue=function(e){if(e&&!this.onCustomProcessText(e)){var t=(new o.ProcessValue).getFirstName(e.name);if(e.isExists=t==this.variableName,e.canProcess=e.isExists,e.canProcess){e.name=e.name.replace(this.variableName+".",""),t=(new o.ProcessValue).getFirstName(e.name);var n=this.getQuestionByName(t),r={};if(n)r[t]=e.returnDisplayValue?this.getQuestionDisplayText(n):n.value;else{var i=this.panel?this.getValues():null;i&&(r[t]=i[t])}e.value=(new o.ProcessValue).getValue(e.name,r)}}},e.prototype.processText=function(e,t){return this.survey&&this.survey.isDesignMode?e:(e=this.textPreProcessor.process(e,t),e=this.processTextCore(this.getParentTextProcessor(),e,t),this.processTextCore(this.survey,e,t))},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var n=this.textPreProcessor.hasAllValuesOnLastRun,r={hasAllValuesOnLastRun:!0,text:e};return this.survey&&(r=this.survey.processTextEx(e,t,!1)),r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&n,r},e.prototype.processTextCore=function(e,t,n){return e?e.processText(t,n):t},e}()},"./src/trigger.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"Trigger",(function(){return d})),n.d(t,"SurveyTrigger",(function(){return h})),n.d(t,"SurveyTriggerVisible",(function(){return f})),n.d(t,"SurveyTriggerComplete",(function(){return g})),n.d(t,"SurveyTriggerSetValue",(function(){return m})),n.d(t,"SurveyTriggerSkip",(function(){return y})),n.d(t,"SurveyTriggerRunExpression",(function(){return v})),n.d(t,"SurveyTriggerCopyValue",(function(){return b}));var r,o=n("./src/helpers.ts"),i=n("./src/base.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/expressions/expressions.ts"),u=n("./src/conditionProcessValue.ts"),c=n("./src/settings.ts"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var n=e.call(this)||this;return n.idValue=t.idCounter++,n.usedNames=[],n.registerPropertyChangedHandlers(["operator","value","name"],(function(){n.oldPropertiesChanged()})),n.registerPropertyChangedHandlers(["expression"],(function(){n.onExpressionChanged()})),n}return p(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue||(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}}),t.operatorsValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e,t,n,r,o){void 0===o&&(o=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(t&&!this.canBeExecutedOnComplete()||this.isCheckRequired(n)&&this.conditionRunner&&this.perform(r,o))},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},t.prototype.perform=function(e,t){var n=this;this.conditionRunner.onRunComplete=function(r){n.triggerResult(r,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,n){e?(this.onSuccess(t,n),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.usedNames=[],this.hasFunction=!1,this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+l.OperandMaker.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=new u.ProcessValue,n=0;n<this.usedNames.length;n++){var r=this.usedNames[n];if(e.hasOwnProperty(r))return!0;var o=t.getFirstName(r);if(e.hasOwnProperty(o)){if(r===o)return!0;var i=e[o];if(null!=i){if(!i.hasOwnProperty("oldValue")||!i.hasOwnProperty("newValue"))return!0;var s={};s[o]=i.oldValue;var a=t.getValue(r,s);s[o]=i.newValue;var l=t.getValue(r,s);if(!this.isTwoValueEquals(a,l))return!0}}}return!1},t.prototype.buildUsedNames=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new a.ConditionRunner(e),this.hasFunction=this.conditionRunner.hasFunction(),this.usedNames=this.conditionRunner.getVariables())}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(i.Base),h=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return p(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(d),f=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return p(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),n=0;n<t.length;n++)e(t[n])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(h),g=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"completetrigger"},t.prototype.isRealExecution=function(){return!c.settings.executeCompleteTriggerOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,t){this.owner&&(this.isRealExecution()?this.owner.setCompleted():this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(h),m=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(t,n,r){if(e.prototype.onPropertyValueChanged.call(this,t,n,r),"setToName"===t){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(h),y=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return e===!c.settings.executeSkipTriggerOnValueChanged},t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(h),v=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){var n=this;if(this.owner&&this.runExpression){var r=new a.ExpressionRunner(this.runExpression);r.canRun&&(r.onRunComplete=function(e){n.onCompleteRunExpression(e)},r.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,o.Helpers.convertValToQuestionVal(e),!1)},t}(h),b=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName)},t}(h);s.Serializer.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),s.Serializer.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),s.Serializer.addClass("visibletrigger",["pages:pages","questions:questions"],(function(){return new f}),"surveytrigger"),s.Serializer.addClass("completetrigger",[],(function(){return new g}),"surveytrigger"),s.Serializer.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],(function(){return new m}),"surveytrigger"),s.Serializer.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"}],(function(){return new b}),"surveytrigger"),s.Serializer.addClass("skiptrigger",[{name:"!gotoName:question"}],(function(){return new y}),"surveytrigger"),s.Serializer.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],(function(){return new v}),"surveytrigger")},"./src/utils/cssClassBuilder.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"CssClassBuilder",(function(){return r}));var r=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&("string"==typeof e&&(e=e.trim()),this.classes.push(e)),this},e.prototype.toString=function(){return this.classes.join(" ")},e}()},"./src/utils/devices.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"IsMobile",(function(){return s})),n.d(t,"IsTouch",(function(){return l})),n.d(t,"_setIsTouch",(function(){return u}));var r,o=!1,i=null;"undefined"!=typeof navigator&&"undefined"!=typeof window&&navigator&&window&&(i=navigator.userAgent||navigator.vendor||window.opera),(r=i)&&("MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(r.substring(0,4)))&&(o=!0);var s=o||!1,a=!1;"undefined"!=typeof window&&(a="ontouchstart"in window||navigator.maxTouchPoints>0);var l=s&&a;function u(e){l=e}},"./src/utils/dragOrClickHelper.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"DragOrClickHelper",(function(){return o}));var r=n("./src/entries/core.ts"),o=function(){function e(e){var t=this;this.dragHandler=e,this.onPointerUp=function(e){t.clearListeners()},this.tryToStartDrag=function(e){if(t.currentX=e.pageX,t.currentY=e.pageY,!t.isMicroMovement)return t.clearListeners(),t.dragHandler(t.pointerDownEvent,t.currentTarget,t.itemModel),!0}}return e.prototype.onPointerDown=function(e,t){r.IsTouch?this.dragHandler(e,e.currentTarget,t):(this.pointerDownEvent=e,this.currentTarget=e.currentTarget,this.startX=e.pageX,this.startY=e.pageY,document.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=t)},Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<10&&t<10},enumerable:!1,configurable:!0}),e.prototype.clearListeners=function(){this.pointerDownEvent&&(document.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},e}()},"./src/utils/popup.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupUtils",(function(){return r}));var r=function(){function e(){}return e.calculatePosition=function(e,t,n,r,o,i,s){void 0===s&&(s="flex");var a=e.left,l=e.top;return"flex"===s&&(a="center"==o?(e.left+e.right-n)/2:"left"==o?e.left-n:e.right),l="middle"==r?(e.top+e.bottom-t)/2:"top"==r?e.top-t:e.bottom,i&&"center"!=o&&"middle"!=r&&("top"==r?l+=e.height:l-=e.height),{left:Math.round(a),top:Math.round(l)}},e.updateVerticalDimensions=function(t,n,r){var o;return t<0?o={height:n+t,top:0}:n+t>r&&(o={height:Math.min(n,r-t-e.bottomIndent),top:t}),o},e.updateHorizontalDimensions=function(e,t,n,r,o,i){void 0===o&&(o="flex"),void 0===i&&(i={left:0,right:0}),t+=i.left+i.right;var s=void 0,a=e;return"center"===r&&("fixed"===o?(e+t>n&&(s=n-e),a-=i.left):e<0?(a=i.left,s=Math.min(t,n)):t+e>n&&(a=n-t,a=Math.max(a,i.left),s=Math.min(t,n))),"left"===r&&e<0&&(a=i.left,s=Math.min(t,n)),"right"===r&&t+e>n&&(s=n-e),{width:s-i.left-i.right,left:a}},e.updateVerticalPosition=function(e,t,n,r,o){var i=t-(e.top+(r?e.height:0)),s=t+e.bottom-(r?e.height:0)-o;return i>0&&s<=0&&"top"==n?n="bottom":s>0&&i<=0&&"bottom"==n?n="top":s>0&&i>0&&(n=i<s?"top":"bottom"),n},e.calculatePopupDirection=function(e,t){var n;return"center"==t&&"middle"!=e?n=e:"center"!=t&&(n=t),n},e.calculatePointerTarget=function(e,t,n,r,o,i,s){void 0===i&&(i=0),void 0===s&&(s=0);var a={};return"center"!=o?(a.top=e.top+e.height/2,a.left=e[o]):"middle"!=r&&(a.top=e[r],a.left=e.left+e.width/2),a.left=Math.round(a.left-n),a.top=Math.round(a.top-t),"left"==o&&(a.left-=i+s),"center"===o&&(a.left-=i),a},e.bottomIndent=16,e}()},"./src/utils/responsivity-manager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ResponsivityManager",(function(){return s})),n.d(t,"VerticalResponsivityManager",(function(){return a}));var r,o=n("./src/utils/utils.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){function e(e,t,n,r){var o=this;void 0===r&&(r=null),this.container=e,this.model=t,this.itemsSelector=n,this.dotsItemSize=r,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=window.getComputedStyle.bind(window),this.model.updateCallback=function(e){e?o.isInitialized=!1:setTimeout((function(){o.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return o.process()})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;this.container.querySelectorAll(this.itemsSelector).forEach((function(n,r){var o=t[r];e.calcActionDimensions(o,n)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(o.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||(this.model.setActionsMode("large"),this.calcItemsSizes(),this.isInitialized=!0);var t=this.dotsItemSize;if(!this.dotsItemSize){var n=null===(e=this.container)||void 0===e?void 0:e.querySelector(".sv-dots");t=n&&this.calcItemSize(n)||this.dotsSizeConst}this.model.fit(this.getAvailableSpace(),t)}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),a=function(e){function t(t,n,r,o,i){void 0===i&&(i=40);var s=e.call(this,t,n,r,o)||this;return s.minDimensionConst=i,s.recalcMinDimensionConst=!1,s}return i(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(s)},"./src/utils/tooltip.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"TooltipManager",(function(){return r}));var r=function(){function e(e){var t=this;this.tooltipElement=e,this.onMouseMoveCallback=function(e){t.tooltipElement.style.left=e.clientX+12+"px",t.tooltipElement.style.top=e.clientY+12+"px"},this.targetElement=e.parentElement,this.targetElement.addEventListener("mousemove",this.onMouseMoveCallback)}return e.prototype.dispose=function(){this.targetElement.removeEventListener("mousemove",this.onMouseMoveCallback)},e}()},"./src/utils/utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"unwrap",(function(){return v})),n.d(t,"getSize",(function(){return b})),n.d(t,"doKey2ClickBlur",(function(){return w})),n.d(t,"doKey2ClickUp",(function(){return x})),n.d(t,"doKey2ClickDown",(function(){return P})),n.d(t,"sanitizeEditableContent",(function(){return R})),n.d(t,"Logger",(function(){return j})),n.d(t,"mergeValues",(function(){return D})),n.d(t,"getElementWidth",(function(){return E})),n.d(t,"isContainerVisible",(function(){return T})),n.d(t,"classesToSelector",(function(){return O})),n.d(t,"compareVersions",(function(){return o})),n.d(t,"confirmAction",(function(){return i})),n.d(t,"detectIEOrEdge",(function(){return a})),n.d(t,"detectIEBrowser",(function(){return s})),n.d(t,"loadFileFromBase64",(function(){return l})),n.d(t,"isMobile",(function(){return u})),n.d(t,"isShadowDOM",(function(){return c})),n.d(t,"getElement",(function(){return p})),n.d(t,"isElementVisible",(function(){return d})),n.d(t,"findScrollableParent",(function(){return h})),n.d(t,"scrollElementByChildId",(function(){return f})),n.d(t,"navigateToUrl",(function(){return g})),n.d(t,"createSvg",(function(){return y})),n.d(t,"getIconNameFromProxy",(function(){return m})),n.d(t,"increaseHeightByContent",(function(){return _})),n.d(t,"getOriginalEvent",(function(){return S})),n.d(t,"preventDefaults",(function(){return V})),n.d(t,"findParentByClassNames",(function(){return I}));var r=n("./src/settings.ts");function o(e,t){for(var n=/(\.0+)+$/,r=e.replace(n,"").split("."),o=t.replace(n,"").split("."),i=Math.min(r.length,o.length),s=0;s<i;s++){var a=parseInt(r[s],10)-parseInt(o[s],10);if(a)return a}return r.length-o.length}function i(e){return r.settings&&r.settings.confirmActionFunc?r.settings.confirmActionFunc(e):confirm(e)}function s(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/");return t>-1||n>-1}function a(){if("undefined"==typeof window)return!1;if(void 0===a.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");a.isIEOrEdge=r>0||n>0||t>0}return a.isIEOrEdge}function l(e,t){try{for(var n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(n.length),i=new Uint8Array(o),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);var a=new Blob([o],{type:r});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function u(){return"undefined"!=typeof window&&void 0!==window.orientation}var c=function(e){return!!e&&!(!("host"in e)||!e.host)},p=function(e){var t=r.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function d(e,t){if(void 0===t&&(t=0),void 0===r.settings.environment)return!1;var n=r.settings.environment.root,o=c(n)?n.host.clientHeight:n.documentElement.clientHeight,i=e.getBoundingClientRect(),s=-t,a=Math.max(o,window.innerHeight)+t,l=i.top,u=i.bottom;return Math.max(s,l)<=Math.min(a,u)}function h(e){var t=r.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:h(e.parentElement):c(t)?t.host:t.documentElement}function f(e){var t=r.settings.environment;if(t){var n=t.root.getElementById(e);if(n){var o=h(n);o&&o.dispatchEvent(new CustomEvent("scroll"))}}}function g(e){e&&"undefined"!=typeof window&&window.location&&(window.location.href=e)}function m(e){return e&&r.settings.customIcons[e]||e}function y(e,t,n,r,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||n||16)+"px");var s=o.childNodes[0],a=m(r);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=o.getElementsByTagName("title")[0];i?(l||(l=document.createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(l)),l.textContent=i):l&&o.removeChild(l)}}function v(e){return"function"!=typeof e?e:e()}function b(e){if("number"==typeof e)return e+"px";if(e&&"string"==typeof e&&e.length>0){var t=e[e.length-1];if(t>="0"&&t<="9"||"."==t)try{return parseFloat(e)+"px"}catch(e){}}return e}var C="sv-focused--by-key";function w(e){var t=e.target;t&&t.classList&&t.classList.remove(C)}function x(e,t){if(!e.target||"true"!==e.target.contentEditable){var n=e.target;if(n){var r=e.which||e.keyCode;if(9!==r){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===r||32===r?n.click&&n.click():t&&!t.processEsc||27!==r||n.blur&&n.blur()}else n.classList&&!n.classList.contains(C)&&n.classList.add(C)}}}function P(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var n=e.which||e.keyCode,r=[13,32];t.processEsc&&r.push(27),-1!==r.indexOf(n)&&e.preventDefault()}}function _(e,t){if(e){t||(t=function(e){return window.getComputedStyle(e)});var n=t(e);e.style.height="auto",e.style.height=e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+"px"}}function S(e){return e.originalEvent||e}function V(e){e.preventDefault(),e.stopPropagation()}function O(e){return e.replace(/\s*?([\w-]+)\s*?/g,".$1")}function E(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function T(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function I(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:I(e.parentElement,t)}function R(e){if(window.getSelection&&document.createRange&&e.childNodes.length>0){var t=document.getSelection(),n=t.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(e.lastChild),t.removeAllRanges(),t.addRange(n);var r=t.toString().replace(/\n/g,"").length;e.innerText=e.innerText.replace(/\n/g,""),(n=document.createRange()).setStart(e.childNodes[0],e.innerText.length-r),n.collapse(!0),t.removeAllRanges(),t.addRange(n)}}function D(e,t){if(t&&e&&"object"==typeof t)for(var n in e){var r=e[n];!Array.isArray(r)&&r&&"object"==typeof r?(t[n]&&"object"==typeof t[n]||(t[n]={}),D(r,t[n])):t[n]=r}}var j=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}()},"./src/validator.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ValidatorResult",(function(){return c})),n.d(t,"SurveyValidator",(function(){return p})),n.d(t,"ValidatorRunner",(function(){return d})),n.d(t,"NumericValidator",(function(){return h})),n.d(t,"TextValidator",(function(){return f})),n.d(t,"AnswerCountValidator",(function(){return g})),n.d(t,"RegexValidator",(function(){return m})),n.d(t,"EmailValidator",(function(){return y})),n.d(t,"ExpressionValidator",(function(){return v}));var r,o=n("./src/base.ts"),i=n("./src/error.ts"),s=n("./src/jsonobject.ts"),a=n("./src/conditions.ts"),l=n("./src/helpers.ts"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e,t){void 0===t&&(t=null),this.value=e,this.error=t},p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return u(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var t=this,n=new i.CustomError(this.getErrorText(e),this.errorOwner);return n.onUpdateErrorTextCallback=function(n){return n.text=t.getErrorText(e)},n},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(o.Base),d=function(){function e(){}return e.prototype.run=function(e){var t=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var i=[],s=e.getValidators(),a=0;a<s.length;a++){var l=s[a];!r&&l.isValidateAllValues&&(r=e.getDataFilteredValues(),o=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&i.push(e.error),t.onAsyncCompleted){for(var n=0;n<t.asyncValidators.length;n++)if(t.asyncValidators[n].isRunning)return;t.onAsyncCompleted(i)}})}for(s=e.getValidators(),a=0;a<s.length;a++){var u=(l=s[a]).validate(e.validatedValue,e.getValidatorTitle(),r,o);u&&u.error&&n.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),h=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minValue=t,r.maxValue=n,r}return u(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.isValueEmpty(e))return null;if(!l.Helpers.isNumber(e))return new c(null,new i.RequreNumericError(null,this.errorOwner));var o=new c(l.Helpers.getNumber(e));return null!==this.minValue&&this.minValue>o.value||null!==this.maxValue&&this.maxValue<o.value?(o.error=this.createCustomError(t),o):"number"==typeof e?null:o},t.prototype.getDefaultErrorText=function(e){var t=e||this.getLocalizationString("value");return null!==this.minValue&&null!==this.maxValue?this.getLocalizationFormatString("numericMinMax",t,this.minValue,this.maxValue):null!==this.minValue?this.getLocalizationFormatString("numericMin",t,this.minValue):this.getLocalizationFormatString("numericMax",t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(p),f=function(e){function t(){return e.call(this)||this}return u(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),this.isValueEmpty(e)?null:this.allowDigits||/^[A-Za-z\s\.]*$/.test(e)?this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(t)):null:new c(null,this.createCustomError(t))},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(p),g=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minCount=t,r.maxCount=n,r}return u(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),null==e||e.constructor!=Array)return null;var o=e.length;return 0==o?null:this.minCount&&o<this.minCount?new c(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&o>this.maxCount?new c(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(p),m=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.regex=t,n}return u(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,n,r){if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.regex||this.isValueEmpty(e))return null;var o=new RegExp(this.regex);if(Array.isArray(e))for(var i=0;i<e.length;i++){var s=this.hasError(o,e[i],t);if(s)return s}return this.hasError(o,e,t)},t.prototype.hasError=function(e,t,n){return e.test(t)?null:new c(t,this.createCustomError(n))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),t}(p),y=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return u(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),e?this.re.test(e)?null:new c(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(p),v=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=t,n}return u(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner()&&this.conditionRunner.isAsync},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,t,n,r){var o=this;if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),!this.ensureConditionRunner())return null;this.conditionRunner.onRunComplete=function(n){o.isRunningValue=!1,o.onAsyncCompleted&&o.onAsyncCompleted(o.generateError(n,e,t))},this.isRunningValue=!0;var i=this.conditionRunner.run(n,r);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(i,e,t))},t.prototype.generateError=function(e,t,n){return e?null:new c(t,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):!!this.expression&&(this.conditionRunner=new a.ConditionRunner(this.expression),!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.Serializer.addClass("numericvalidator",["minValue:number","maxValue:number"],(function(){return new h}),"surveyvalidator"),s.Serializer.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],(function(){return new f}),"surveyvalidator"),s.Serializer.addClass("answercountvalidator",["minCount:number","maxCount:number"],(function(){return new g}),"surveyvalidator"),s.Serializer.addClass("regexvalidator",["regex"],(function(){return new m}),"surveyvalidator"),s.Serializer.addClass("emailvalidator",[],(function(){return new y}),"surveyvalidator"),s.Serializer.addClass("expressionvalidator",["expression:condition"],(function(){return new v}),"surveyvalidator")}})},e.exports=t()},352:function(e,t,n){var r;r=function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/entries/react-ui.ts")}({"./src/entries/core-export.ts":function(e,t,n){"use strict";n.r(t);var r=n("survey-core");n.d(t,"SurveyModel",(function(){return r.SurveyModel})),n.d(t,"SurveyWindowModel",(function(){return r.SurveyWindowModel})),n.d(t,"settings",(function(){return r.settings})),n.d(t,"surveyLocalization",(function(){return r.surveyLocalization})),n.d(t,"surveyStrings",(function(){return r.surveyStrings}))},"./src/entries/react-ui-model.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/react/reactSurvey.tsx");n.d(t,"Survey",(function(){return r.Survey})),n.d(t,"attachKey2click",(function(){return r.attachKey2click}));var o=n("./src/react/reactsurveymodel.tsx");n.d(t,"ReactSurveyElementsWrapper",(function(){return o.ReactSurveyElementsWrapper}));var i=n("./src/react/reactSurveyNavigationBase.tsx");n.d(t,"SurveyNavigationBase",(function(){return i.SurveyNavigationBase}));var s=n("./src/react/reacttimerpanel.tsx");n.d(t,"SurveyTimerPanel",(function(){return s.SurveyTimerPanel}));var a=n("./src/react/page.tsx");n.d(t,"SurveyPage",(function(){return a.SurveyPage}));var l=n("./src/react/row.tsx");n.d(t,"SurveyRow",(function(){return l.SurveyRow}));var u=n("./src/react/panel.tsx");n.d(t,"SurveyPanel",(function(){return u.SurveyPanel}));var c=n("./src/react/flow-panel.tsx");n.d(t,"SurveyFlowPanel",(function(){return c.SurveyFlowPanel}));var p=n("./src/react/reactquestion.tsx");n.d(t,"SurveyQuestion",(function(){return p.SurveyQuestion})),n.d(t,"SurveyElementErrors",(function(){return p.SurveyElementErrors})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return p.SurveyQuestionAndErrorsCell}));var d=n("./src/react/reactquestion_element.tsx");n.d(t,"ReactSurveyElement",(function(){return d.ReactSurveyElement})),n.d(t,"SurveyElementBase",(function(){return d.SurveyElementBase})),n.d(t,"SurveyQuestionElementBase",(function(){return d.SurveyQuestionElementBase}));var h=n("./src/react/reactquestion_comment.tsx");n.d(t,"SurveyQuestionCommentItem",(function(){return h.SurveyQuestionCommentItem})),n.d(t,"SurveyQuestionComment",(function(){return h.SurveyQuestionComment}));var f=n("./src/react/reactquestion_checkbox.tsx");n.d(t,"SurveyQuestionCheckbox",(function(){return f.SurveyQuestionCheckbox})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return f.SurveyQuestionCheckboxItem}));var g=n("./src/react/reactquestion_ranking.tsx");n.d(t,"SurveyQuestionRanking",(function(){return g.SurveyQuestionRanking})),n.d(t,"SurveyQuestionRankingItem",(function(){return g.SurveyQuestionRankingItem}));var m=n("./src/react/components/rating/rating-item.tsx");n.d(t,"RatingItem",(function(){return m.RatingItem}));var y=n("./src/react/components/rating/rating-item-star.tsx");n.d(t,"RatingItemStar",(function(){return y.RatingItemStar}));var v=n("./src/react/components/rating/rating-item-smiley.tsx");n.d(t,"RatingItemSmiley",(function(){return v.RatingItemSmiley}));var b=n("./src/react/tagbox-filter.tsx");n.d(t,"TagboxFilterString",(function(){return b.TagboxFilterString}));var C=n("./src/react/dropdown-item.tsx");n.d(t,"SurveyQuestionOptionItem",(function(){return C.SurveyQuestionOptionItem}));var w=n("./src/react/dropdown-base.tsx");n.d(t,"SurveyQuestionDropdownBase",(function(){return w.SurveyQuestionDropdownBase}));var x=n("./src/react/reactquestion_dropdown.tsx");n.d(t,"SurveyQuestionDropdown",(function(){return x.SurveyQuestionDropdown}));var P=n("./src/react/tagbox-item.tsx");n.d(t,"SurveyQuestionTagboxItem",(function(){return P.SurveyQuestionTagboxItem}));var _=n("./src/react/reactquestion_tagbox.tsx");n.d(t,"SurveyQuestionTagbox",(function(){return _.SurveyQuestionTagbox}));var S=n("./src/react/dropdown-select.tsx");n.d(t,"SurveyQuestionDropdownSelect",(function(){return S.SurveyQuestionDropdownSelect}));var V=n("./src/react/reactquestion_matrix.tsx");n.d(t,"SurveyQuestionMatrix",(function(){return V.SurveyQuestionMatrix})),n.d(t,"SurveyQuestionMatrixRow",(function(){return V.SurveyQuestionMatrixRow}));var O=n("./src/react/reactquestion_html.tsx");n.d(t,"SurveyQuestionHtml",(function(){return O.SurveyQuestionHtml}));var E=n("./src/react/reactquestion_file.tsx");n.d(t,"SurveyQuestionFile",(function(){return E.SurveyQuestionFile}));var T=n("./src/react/reactquestion_multipletext.tsx");n.d(t,"SurveyQuestionMultipleText",(function(){return T.SurveyQuestionMultipleText}));var I=n("./src/react/reactquestion_radiogroup.tsx");n.d(t,"SurveyQuestionRadiogroup",(function(){return I.SurveyQuestionRadiogroup})),n.d(t,"SurveyQuestionRadioItem",(function(){return I.SurveyQuestionRadioItem}));var R=n("./src/react/reactquestion_text.tsx");n.d(t,"SurveyQuestionText",(function(){return R.SurveyQuestionText}));var D=n("./src/react/boolean.tsx");n.d(t,"SurveyQuestionBoolean",(function(){return D.SurveyQuestionBoolean}));var j=n("./src/react/boolean-checkbox.tsx");n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return j.SurveyQuestionBooleanCheckbox}));var k=n("./src/react/boolean-radio.tsx");n.d(t,"SurveyQuestionBooleanRadio",(function(){return k.SurveyQuestionBooleanRadio}));var q=n("./src/react/reactquestion_empty.tsx");n.d(t,"SurveyQuestionEmpty",(function(){return q.SurveyQuestionEmpty}));var M=n("./src/react/reactquestion_matrixdropdownbase.tsx");n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return M.SurveyQuestionMatrixDropdownCell})),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return M.SurveyQuestionMatrixDropdownBase}));var L=n("./src/react/reactquestion_matrixdropdown.tsx");n.d(t,"SurveyQuestionMatrixDropdown",(function(){return L.SurveyQuestionMatrixDropdown}));var A=n("./src/react/reactquestion_matrixdynamic.tsx");n.d(t,"SurveyQuestionMatrixDynamic",(function(){return A.SurveyQuestionMatrixDynamic})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return A.SurveyQuestionMatrixDynamicAddButton}));var N=n("./src/react/reactquestion_paneldynamic.tsx");n.d(t,"SurveyQuestionPanelDynamic",(function(){return N.SurveyQuestionPanelDynamic}));var B=n("./src/react/reactSurveyProgress.tsx");n.d(t,"SurveyProgress",(function(){return B.SurveyProgress}));var F=n("./src/react/reactSurveyProgressButtons.tsx");n.d(t,"SurveyProgressButtons",(function(){return F.SurveyProgressButtons}));var Q=n("./src/react/reactSurveyProgressToc.tsx");n.d(t,"SurveyProgressToc",(function(){return Q.SurveyProgressToc}));var z=n("./src/react/reactquestion_rating.tsx");n.d(t,"SurveyQuestionRating",(function(){return z.SurveyQuestionRating}));var H=n("./src/react/rating-dropdown.tsx");n.d(t,"SurveyQuestionRatingDropdown",(function(){return H.SurveyQuestionRatingDropdown}));var U=n("./src/react/reactquestion_expression.tsx");n.d(t,"SurveyQuestionExpression",(function(){return U.SurveyQuestionExpression}));var W=n("./src/react/react-popup-survey.tsx");n.d(t,"PopupSurvey",(function(){return W.PopupSurvey})),n.d(t,"SurveyWindow",(function(){return W.SurveyWindow}));var J=n("./src/react/reactquestion_factory.tsx");n.d(t,"ReactQuestionFactory",(function(){return J.ReactQuestionFactory}));var G=n("./src/react/element-factory.tsx");n.d(t,"ReactElementFactory",(function(){return G.ReactElementFactory}));var $=n("./src/react/imagepicker.tsx");n.d(t,"SurveyQuestionImagePicker",(function(){return $.SurveyQuestionImagePicker}));var K=n("./src/react/image.tsx");n.d(t,"SurveyQuestionImage",(function(){return K.SurveyQuestionImage}));var Z=n("./src/react/signaturepad.tsx");n.d(t,"SurveyQuestionSignaturePad",(function(){return Z.SurveyQuestionSignaturePad}));var X=n("./src/react/reactquestion_buttongroup.tsx");n.d(t,"SurveyQuestionButtonGroup",(function(){return X.SurveyQuestionButtonGroup}));var Y=n("./src/react/reactquestion_custom.tsx");n.d(t,"SurveyQuestionCustom",(function(){return Y.SurveyQuestionCustom})),n.d(t,"SurveyQuestionComposite",(function(){return Y.SurveyQuestionComposite}));var ee=n("./src/react/components/popup/popup.tsx");n.d(t,"Popup",(function(){return ee.Popup}));var te=n("./src/react/components/list/list.tsx");n.d(t,"List",(function(){return te.List}));var ne=n("./src/react/components/title/title-actions.tsx");n.d(t,"TitleActions",(function(){return ne.TitleActions}));var re=n("./src/react/components/title/title-element.tsx");n.d(t,"TitleElement",(function(){return re.TitleElement}));var oe=n("./src/react/components/action-bar/action-bar.tsx");n.d(t,"SurveyActionBar",(function(){return oe.SurveyActionBar}));var ie=n("./src/react/components/survey-header/logo-image.tsx");n.d(t,"LogoImage",(function(){return ie.LogoImage}));var se=n("./src/react/components/survey-header/survey-header.tsx");n.d(t,"SurveyHeader",(function(){return se.SurveyHeader}));var ae=n("./src/react/components/svg-icon/svg-icon.tsx");n.d(t,"SvgIcon",(function(){return ae.SvgIcon}));var le=n("./src/react/components/matrix-actions/remove-button/remove-button.tsx");n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return le.SurveyQuestionMatrixDynamicRemoveButton}));var ue=n("./src/react/components/matrix-actions/detail-button/detail-button.tsx");n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return ue.SurveyQuestionMatrixDetailButton}));var ce=n("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx");n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return ce.SurveyQuestionMatrixDynamicDragDropIcon}));var pe=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return pe.SurveyQuestionPanelDynamicAddButton}));var de=n("./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return de.SurveyQuestionPanelDynamicRemoveButton}));var he=n("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return he.SurveyQuestionPanelDynamicPrevButton}));var fe=n("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx");n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return fe.SurveyQuestionPanelDynamicNextButton}));var ge=n("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx");n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return ge.SurveyQuestionPanelDynamicProgressText}));var me=n("./src/react/components/survey-actions/survey-nav-button.tsx");n.d(t,"SurveyNavigationButton",(function(){return me.SurveyNavigationButton}));var ye=n("./src/react/components/matrix/row.tsx");n.d(t,"MatrixRow",(function(){return ye.MatrixRow}));var ve=n("./src/react/components/skeleton.tsx");n.d(t,"Skeleton",(function(){return ve.Skeleton}));var be=n("./src/react/components/notifier.tsx");n.d(t,"NotifierComponent",(function(){return be.NotifierComponent}));var Ce=n("./src/react/components/components-container.tsx");n.d(t,"ComponentsContainer",(function(){return Ce.ComponentsContainer}));var we=n("./src/react/components/character-counter.tsx");n.d(t,"CharacterCounterComponent",(function(){return we.CharacterCounterComponent}));var xe=n("./src/react/string-viewer.tsx");n.d(t,"SurveyLocStringViewer",(function(){return xe.SurveyLocStringViewer}));var Pe=n("./src/react/string-editor.tsx");n.d(t,"SurveyLocStringEditor",(function(){return Pe.SurveyLocStringEditor}))},"./src/entries/react-ui.ts":function(e,t,n){"use strict";n.r(t);var r=n("./src/entries/react-ui-model.ts");n.d(t,"Survey",(function(){return r.Survey})),n.d(t,"attachKey2click",(function(){return r.attachKey2click})),n.d(t,"ReactSurveyElementsWrapper",(function(){return r.ReactSurveyElementsWrapper})),n.d(t,"SurveyNavigationBase",(function(){return r.SurveyNavigationBase})),n.d(t,"SurveyTimerPanel",(function(){return r.SurveyTimerPanel})),n.d(t,"SurveyPage",(function(){return r.SurveyPage})),n.d(t,"SurveyRow",(function(){return r.SurveyRow})),n.d(t,"SurveyPanel",(function(){return r.SurveyPanel})),n.d(t,"SurveyFlowPanel",(function(){return r.SurveyFlowPanel})),n.d(t,"SurveyQuestion",(function(){return r.SurveyQuestion})),n.d(t,"SurveyElementErrors",(function(){return r.SurveyElementErrors})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return r.SurveyQuestionAndErrorsCell})),n.d(t,"ReactSurveyElement",(function(){return r.ReactSurveyElement})),n.d(t,"SurveyElementBase",(function(){return r.SurveyElementBase})),n.d(t,"SurveyQuestionElementBase",(function(){return r.SurveyQuestionElementBase})),n.d(t,"SurveyQuestionCommentItem",(function(){return r.SurveyQuestionCommentItem})),n.d(t,"SurveyQuestionComment",(function(){return r.SurveyQuestionComment})),n.d(t,"SurveyQuestionCheckbox",(function(){return r.SurveyQuestionCheckbox})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return r.SurveyQuestionCheckboxItem})),n.d(t,"SurveyQuestionRanking",(function(){return r.SurveyQuestionRanking})),n.d(t,"SurveyQuestionRankingItem",(function(){return r.SurveyQuestionRankingItem})),n.d(t,"RatingItem",(function(){return r.RatingItem})),n.d(t,"RatingItemStar",(function(){return r.RatingItemStar})),n.d(t,"RatingItemSmiley",(function(){return r.RatingItemSmiley})),n.d(t,"TagboxFilterString",(function(){return r.TagboxFilterString})),n.d(t,"SurveyQuestionOptionItem",(function(){return r.SurveyQuestionOptionItem})),n.d(t,"SurveyQuestionDropdownBase",(function(){return r.SurveyQuestionDropdownBase})),n.d(t,"SurveyQuestionDropdown",(function(){return r.SurveyQuestionDropdown})),n.d(t,"SurveyQuestionTagboxItem",(function(){return r.SurveyQuestionTagboxItem})),n.d(t,"SurveyQuestionTagbox",(function(){return r.SurveyQuestionTagbox})),n.d(t,"SurveyQuestionDropdownSelect",(function(){return r.SurveyQuestionDropdownSelect})),n.d(t,"SurveyQuestionMatrix",(function(){return r.SurveyQuestionMatrix})),n.d(t,"SurveyQuestionMatrixRow",(function(){return r.SurveyQuestionMatrixRow})),n.d(t,"SurveyQuestionHtml",(function(){return r.SurveyQuestionHtml})),n.d(t,"SurveyQuestionFile",(function(){return r.SurveyQuestionFile})),n.d(t,"SurveyQuestionMultipleText",(function(){return r.SurveyQuestionMultipleText})),n.d(t,"SurveyQuestionRadiogroup",(function(){return r.SurveyQuestionRadiogroup})),n.d(t,"SurveyQuestionRadioItem",(function(){return r.SurveyQuestionRadioItem})),n.d(t,"SurveyQuestionText",(function(){return r.SurveyQuestionText})),n.d(t,"SurveyQuestionBoolean",(function(){return r.SurveyQuestionBoolean})),n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return r.SurveyQuestionBooleanCheckbox})),n.d(t,"SurveyQuestionBooleanRadio",(function(){return r.SurveyQuestionBooleanRadio})),n.d(t,"SurveyQuestionEmpty",(function(){return r.SurveyQuestionEmpty})),n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return r.SurveyQuestionMatrixDropdownCell})),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return r.SurveyQuestionMatrixDropdownBase})),n.d(t,"SurveyQuestionMatrixDropdown",(function(){return r.SurveyQuestionMatrixDropdown})),n.d(t,"SurveyQuestionMatrixDynamic",(function(){return r.SurveyQuestionMatrixDynamic})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return r.SurveyQuestionMatrixDynamicAddButton})),n.d(t,"SurveyQuestionPanelDynamic",(function(){return r.SurveyQuestionPanelDynamic})),n.d(t,"SurveyProgress",(function(){return r.SurveyProgress})),n.d(t,"SurveyProgressButtons",(function(){return r.SurveyProgressButtons})),n.d(t,"SurveyProgressToc",(function(){return r.SurveyProgressToc})),n.d(t,"SurveyQuestionRating",(function(){return r.SurveyQuestionRating})),n.d(t,"SurveyQuestionRatingDropdown",(function(){return r.SurveyQuestionRatingDropdown})),n.d(t,"SurveyQuestionExpression",(function(){return r.SurveyQuestionExpression})),n.d(t,"PopupSurvey",(function(){return r.PopupSurvey})),n.d(t,"SurveyWindow",(function(){return r.SurveyWindow})),n.d(t,"ReactQuestionFactory",(function(){return r.ReactQuestionFactory})),n.d(t,"ReactElementFactory",(function(){return r.ReactElementFactory})),n.d(t,"SurveyQuestionImagePicker",(function(){return r.SurveyQuestionImagePicker})),n.d(t,"SurveyQuestionImage",(function(){return r.SurveyQuestionImage})),n.d(t,"SurveyQuestionSignaturePad",(function(){return r.SurveyQuestionSignaturePad})),n.d(t,"SurveyQuestionButtonGroup",(function(){return r.SurveyQuestionButtonGroup})),n.d(t,"SurveyQuestionCustom",(function(){return r.SurveyQuestionCustom})),n.d(t,"SurveyQuestionComposite",(function(){return r.SurveyQuestionComposite})),n.d(t,"Popup",(function(){return r.Popup})),n.d(t,"List",(function(){return r.List})),n.d(t,"TitleActions",(function(){return r.TitleActions})),n.d(t,"TitleElement",(function(){return r.TitleElement})),n.d(t,"SurveyActionBar",(function(){return r.SurveyActionBar})),n.d(t,"LogoImage",(function(){return r.LogoImage})),n.d(t,"SurveyHeader",(function(){return r.SurveyHeader})),n.d(t,"SvgIcon",(function(){return r.SvgIcon})),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return r.SurveyQuestionMatrixDynamicRemoveButton})),n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return r.SurveyQuestionMatrixDetailButton})),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return r.SurveyQuestionMatrixDynamicDragDropIcon})),n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return r.SurveyQuestionPanelDynamicAddButton})),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return r.SurveyQuestionPanelDynamicRemoveButton})),n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return r.SurveyQuestionPanelDynamicPrevButton})),n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return r.SurveyQuestionPanelDynamicNextButton})),n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return r.SurveyQuestionPanelDynamicProgressText})),n.d(t,"SurveyNavigationButton",(function(){return r.SurveyNavigationButton})),n.d(t,"MatrixRow",(function(){return r.MatrixRow})),n.d(t,"Skeleton",(function(){return r.Skeleton})),n.d(t,"NotifierComponent",(function(){return r.NotifierComponent})),n.d(t,"ComponentsContainer",(function(){return r.ComponentsContainer})),n.d(t,"CharacterCounterComponent",(function(){return r.CharacterCounterComponent})),n.d(t,"SurveyLocStringViewer",(function(){return r.SurveyLocStringViewer})),n.d(t,"SurveyLocStringEditor",(function(){return r.SurveyLocStringEditor}));var o=n("./src/entries/core-export.ts");n.d(t,"SurveyModel",(function(){return o.SurveyModel})),n.d(t,"SurveyWindowModel",(function(){return o.SurveyWindowModel})),n.d(t,"settings",(function(){return o.settings})),n.d(t,"surveyLocalization",(function(){return o.surveyLocalization})),n.d(t,"surveyStrings",(function(){return o.surveyStrings}));var i=n("survey-core");n.d(t,"Model",(function(){return i.SurveyModel}));var s=n("./src/utils/responsivity-manager.ts");n.d(t,"ResponsivityManager",(function(){return s.ResponsivityManager})),n.d(t,"VerticalResponsivityManager",(function(){return s.VerticalResponsivityManager}));var a=n("./src/utils/utils.ts");n.d(t,"unwrap",(function(){return a.unwrap})),Object(i.checkLibraryVersion)("1.9.90","survey-react-ui")},"./src/react/boolean-checkbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return p}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/boolean.tsx"),l=n("./src/react/components/title/title-actions.tsx"),u=n("./src/react/reactquestion_element.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.getCheckboxItemCss(),n=this.question.canRenderLabelDescription?u.SurveyElementBase.renderQuestionDescription(this.question):null;return o.createElement("div",{className:e.rootCheckbox},o.createElement("div",{className:t},o.createElement("label",{className:e.checkboxLabel},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.controlCheckbox,disabled:this.isDisplayMode,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?o.createElement("svg",{className:e.checkboxItemDecorator},o.createElement("use",{xlinkHref:this.question.svgIcon})):null,o.createElement("span",{className:"check"})),this.question.isLabelRendered&&o.createElement("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},o.createElement(l.TitleActions,{element:this.question,cssClasses:this.question.cssClasses}))),n))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-checkbox",(function(e){return o.createElement(p,e)})),i.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox")},"./src/react/boolean-radio.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBooleanRadio",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/boolean.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.booleanValue="true"==e.nativeEvent.target.value},n}return l(t,e),t.prototype.renderRadioItem=function(e,t){var n=this.question.cssClasses;return o.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(n,e)},o.createElement("label",{className:n.radioLabel},o.createElement("input",{type:"radio",name:this.question.name,value:e,"aria-describedby":this.question.ariaDescribedBy,checked:e===this.question.booleanValueRendered,disabled:this.question.isInputReadOnly,className:n.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?o.createElement("span",{className:n.materialRadioDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:n.itemRadioDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o.createElement("span",{className:n.radioControlLabel},this.renderLocString(t))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("div",{className:e.rootRadio},o.createElement("fieldset",{role:"presentation",className:e.radioFieldset},this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue)))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-radio",(function(e){return o.createElement(u,e)})),i.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio")},"./src/react/boolean.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionBoolean",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnClick=n.handleOnClick.bind(n),n.handleOnLabelClick=n.handleOnLabelClick.bind(n),n.handleOnSwitchClick=n.handleOnSwitchClick.bind(n),n.handleOnKeyDown=n.handleOnKeyDown.bind(n),n.checkRef=o.createRef(),n}return a(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.doCheck=function(e){this.question.booleanValue=e},t.prototype.handleOnChange=function(e){this.doCheck(e.target.checked)},t.prototype.handleOnClick=function(e){this.question.onLabelClick(e,!0)},t.prototype.handleOnSwitchClick=function(e){this.question.onSwitchClickModel(e.nativeEvent)},t.prototype.handleOnLabelClick=function(e,t){this.question.onLabelClick(e,t)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var t=this.checkRef.current;t&&(t.indeterminate=this.question.isIndeterminate),this.setControl(t),e.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.getItemCss();return o.createElement("div",{className:t.root,onKeyDown:this.handleOnKeyDown},o.createElement("label",{className:n,onClick:this.handleOnClick},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.control,disabled:this.isDisplayMode,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!1)}},o.createElement("span",{className:this.question.getLabelCss(!1)},this.renderLocString(this.question.locLabelFalse))),o.createElement("div",{className:t.switch,onClick:this.handleOnSwitchClick},o.createElement("span",{className:t.slider},this.question.isDeterminated&&t.sliderText?o.createElement("span",{className:t.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),o.createElement("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!0)}},o.createElement("span",{className:this.question.getLabelCss(!0)},this.renderLocString(this.question.locLabelTrue)))))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("boolean",(function(e){return o.createElement(l,e)}))},"./src/react/components/action-bar/action-bar-item-dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBarItemDropdown",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/popup/popup.tsx"),u=n("./src/react/components/action-bar/action-bar-item.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){var n=e.call(this,t)||this;return n.viewModel=new s.ActionDropdownViewModel(n.item),n}return c(t,e),t.prototype.renderButtonContent=function(){var t=e.prototype.renderButtonContent.call(this);return i.a.createElement(i.a.Fragment,null,t,i.a.createElement(l.Popup,{model:this.item.popupModel}))},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}(u.SurveyActionBarItem);a.ReactElementFactory.Instance.registerElement("sv-action-bar-item-dropdown",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/action-bar/action-bar-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyAction",(function(){return d})),n.d(t,"SurveyActionBarItem",(function(){return h}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactSurvey.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=n("./src/react/components/action-bar/action-bar-separator.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e=this.item.getActionRootCss(),t=this.item.needSeparator?i.a.createElement(c.SurveyActionBarSeparator,null):null,n=s.ReactElementFactory.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return i.a.createElement("div",{className:e,id:this.item.id},i.a.createElement("div",{className:"sv-action__content"},t,n))},t}(a.SurveyElementBase),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return i.a.createElement(i.a.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return i.a.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),t=this.item.iconName?i.a.createElement(u.SvgIcon,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return i.a.createElement(i.a.Fragment,null,t,e)},t.prototype.renderInnerButton=function(){var e=this,t=this.item.getActionBarItemCss(),n=this.item.tooltip||this.item.title,r=this.renderButtonContent(),o=this.item.disableTabStop?-1:void 0;return Object(l.attachKey2click)(i.a.createElement("button",{className:t,type:"button",disabled:this.item.disabled,onClick:function(t){return e.item.action(e.item,e.item.getIsTrusted(t))},title:n,tabIndex:o,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},r),null,{processEsc:!1})},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-action-bar-item",(function(e){return i.a.createElement(h,e)}))},"./src/react/components/action-bar/action-bar-separator.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBarSeparator",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return i.a.createElement("div",{className:e})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-action-bar-separator",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/action-bar/action-bar.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyActionBar",(function(){return d}));var r=n("react"),o=n.n(r),i=n("./src/react/element-factory.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/components/action-bar/action-bar-item.tsx"),l=n("./src/react/components/action-bar/action-bar-item-dropdown.tsx");n.d(t,"SurveyActionBarItemDropdown",(function(){return l.SurveyActionBarItemDropdown}));var u=n("./src/react/components/action-bar/action-bar-separator.tsx");n.d(t,"SurveyActionBarSeparator",(function(){return u.SurveyActionBarSeparator}));var c,p=(c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},c(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.a.createRef(),n}return p(t,e),Object.defineProperty(t.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.model.hasActions){var t=this.rootRef.current;t&&this.model.initResponsivityManager(t)}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.hasActions&&this.model.resetResponsivityManager()},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return o.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(e){e.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map((function(e,t){return o.a.createElement(a.SurveyAction,{item:e,key:"item"+t})}))},t}(s.SurveyElementBase);i.ReactElementFactory.Instance.registerElement("sv-action-bar",(function(e){return o.a.createElement(d,e)}))},"./src/react/components/brand-info.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"BrandInfo",(function(){return a}));var r,o=n("react"),i=n.n(o),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return i.a.createElement("div",{className:"sv-brand-info"},i.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},i.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),i.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",i.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),i.a.createElement("div",{className:"sv-brand-info__terms"},i.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(i.a.Component)},"./src/react/components/character-counter.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"CharacterCounterComponent",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-character-counter",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/components-container.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ComponentsContainer",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e=this,t=this.props.survey.getContainerContent(this.props.container),n=!1!==this.props.needRenderWrapper;return 0==t.length?null:n?i.a.createElement("div",{className:"sv-components-column"},t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,key:t.id})}))):i.a.createElement(i.a.Fragment,null,t.map((function(t){return s.ReactElementFactory.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,key:t.id})})))},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-components-container",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/list/list-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ListItem",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactSurvey.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleKeydown=function(e){t.model.onKeyDown(e)},t}return c(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;if(!this.item)return null;var t={paddingInlineStart:this.model.getItemIndent(this.item)},n=this.model.getItemClass(this.item),r=[];if(this.item.component){var o=s.ReactElementFactory.Instance.createElement(this.item.component,{item:this.item,key:this.item.id});o&&r.push(o)}else{var a=this.renderLocString(this.item.locTitle,void 0,"locString");if(this.item.iconName){var c=i.a.createElement(u.SvgIcon,{key:1,className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:24,"aria-label":this.item.title});r.push(c),r.push(i.a.createElement("span",{key:2},a))}else r.push(a)}var p=i.a.createElement("div",{style:t,className:this.model.cssClasses.itemBody},r),d=this.item.needSeparator?i.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,h={display:this.model.isItemVisible(this.item)?null:"none"};return Object(l.attachKey2click)(i.a.createElement("li",{className:n,role:"option",style:h,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(t){e.model.onItemClick(e.item),t.stopPropagation()},onPointerDown:function(t){return e.model.onPointerDown(t,e.item)}},d,p))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list-item",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/list/list.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"List",(function(){return d}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=n("./src/react/components/svg-icon/svg-icon.tsx"),c=n("./src/react/components/list/list-item.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.handleMouseMove=function(e){n.model.onMouseMove(e)},n.state={filterString:n.model.filterString||""},n.listContainerRef=i.a.createRef(),n}return p(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},t.prototype.renderList=function(){if(!this.model.renderElements)return null;var e=this.renderItems(),t={display:this.model.isEmpty?"none":null};return i.a.createElement("ul",{className:this.model.cssClasses.itemsContainer,style:t,role:"listbox",id:this.model.elementId,onMouseDown:function(e){e.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var t=this.model.renderedActions;return t?t.map((function(t,n){return i.a.createElement(c.ListItem,{model:e.model,item:t,key:"item"+n})})):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var t=this.model.showSearchClearButton&&this.model.filterString?i.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(t){e.model.onClickSearchClearButton(t)}},i.a.createElement(u.SvgIcon,{iconName:"icon-searchclear",size:"auto"})):null;return i.a.createElement("div",{className:this.model.cssClasses.filter},i.a.createElement("div",{className:this.model.cssClasses.filterIcon},i.a.createElement(u.SvgIcon,{iconName:"icon-search",size:"auto"})),i.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(t){e.model.goToItems(t)},onChange:function(t){var n=s.settings.environment.root;t.target===n.activeElement&&(e.model.filterString=t.target.value)}}),t)}return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return i.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},i.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-list",(function(e){return i.a.createElement(d,e)}))},"./src/react/components/matrix-actions/detail-button/detail-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return u(t,e),t.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnShowHideClick=function(e){this.row.showHideDetailPanelClick()},t.prototype.renderElement=function(){var e=this.row.isDetailPanelShowing,t=e,n=e?this.row.detailPanelId:void 0;return i.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":t,"aria-controls":n},i.a.createElement(l.SvgIcon,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-detail-button",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return this.question.iconDragElement?i.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},i.a.createElement("use",{xlinkHref:this.question.iconDragElement})):i.a.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-drag-drop-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix-actions/remove-button/remove-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.row)},t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locRemoveRowText);return i.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-remove-button",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/matrix/row.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"MatrixRow",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onPointerDownHandler=function(e){n.parentMatrix.onPointerDown(e.nativeEvent,n.model.row)},n}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this,t=this.model;return i.a.createElement("tr",{className:t.className,"data-sv-drop-target-matrix-row":t.row&&t.row.id,onPointerDown:function(t){return e.onPointerDownHandler(t)}},this.props.children)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-matrix-row",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/notifier.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"NotifierComponent",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var e={visibility:this.notifier.active?"visible":"hidden"};return i.a.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},i.a.createElement("span",null,this.notifier.message),i.a.createElement(l.SurveyActionBar,{model:this.notifier.actionBar}))},t}(s.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("sv-notifier",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicAction",(function(){return u})),n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t}(a.ReactSurveyElement),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.addPanelUI()},t}return l(t,e),t.prototype.renderElement=function(){return this.question.canAddPanel?i.a.createElement("button",{type:"button",className:this.question.getAddButtonCss(),onClick:this.handleClick},i.a.createElement("span",{className:this.question.cssClasses.buttonAddText},this.question.panelAddText)):null},t}(u);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-add-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToNextPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-next-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToPrevPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-prev-btn",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-progress-text",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.removePanelUI(t.data.panel)},t}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("button",{className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},i.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},this.question.panelRemoveText),i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-remove-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/popup/popup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return h})),n.d(t,"PopupContainer",(function(){return f})),n.d(t,"PopupDropdownContainer",(function(){return g})),n.d(t,"showModal",(function(){return m})),n.d(t,"showDialog",(function(){return y}));var r,o=n("react-dom"),i=n.n(o),s=n("react"),a=n.n(s),l=n("survey-core"),u=n("./src/react/element-factory.tsx"),c=n("./src/react/reactquestion_element.tsx"),p=n("./src/react/components/action-bar/action-bar.tsx"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n.containerRef=a.a.createRef(),n.createModel(),n}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.createModel=function(){this.popup=Object(l.createPopupViewModel)(this.props.model,void 0),this.popup.initializePopupContainer()},t.prototype.setTargetElement=function(){if(this.containerRef.current&&!this.popup.isModal){var e=this.popup;if(!e)return;this.containerRef.current.parentElement&&(e.targetElement=this.containerRef.current.parentElement)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.popup.initializePopupContainer(),this.setTargetElement()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setTargetElement()},t.prototype.componentWillUnmount=function(){this.popup.unmountPopupContainer()},t.prototype.shouldComponentUpdate=function(t,n){var r;if(!e.prototype.shouldComponentUpdate.call(this,t,n))return!1;var o=t.model!==this.popup.model;return o&&(null===(r=this.popup)||void 0===r||r.dispose(),this.createModel()),o},t.prototype.render=function(){var e;return this.popup.model=this.model,e=this.model.isModal?i.a.createPortal(a.a.createElement(f,{model:this.popup}),this.popup.container):i.a.createPortal(a.a.createElement(g,{model:this.popup}),this.popup.container),a.a.createElement("div",{ref:this.containerRef},e)},t}(c.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("sv-popup",(function(e){return a.a.createElement(h,e)}));var f=function(e){function t(t){var n=e.call(this,t)||this;return n.prevIsVisible=!1,n.handleKeydown=function(e){n.model.onKeyDown(e)},n.clickInside=function(e){e.stopPropagation()},n}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),!this.prevIsVisible&&this.model.isVisible&&this.model.updateOnShowing(),this.prevIsVisible=this.model.isVisible},t.prototype.renderContainer=function(e){var t=this,n=e.showHeader?this.renderHeaderPopup(e):null,r=e.title?this.renderHeaderContent():null,o=this.renderContent(),i=e.showFooter?this.renderFooter(this.model):null;return a.a.createElement("div",{className:"sv-popup__container",style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:function(e){t.clickInside(e)}},a.a.createElement("div",{className:"sv-popup__shadow"},n,a.a.createElement("div",{className:"sv-popup__body-content"},r,a.a.createElement("div",{className:"sv-popup__scrolling-content"},o),i)))},t.prototype.renderHeaderContent=function(){return a.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=u.ReactElementFactory.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return a.a.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return a.a.createElement("div",{className:"sv-popup__body-footer"},a.a.createElement(p.SurveyActionBar,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,t=this.renderContainer(this.model),n=(new l.CssClassBuilder).append("sv-popup").append(this.model.styleClass).toString(),r={display:this.model.isVisible?"":"none"};return a.a.createElement("div",{tabIndex:-1,className:n,style:r,onClick:function(t){e.model.clickOutside(),t.stopPropagation()},onKeyDown:this.handleKeydown},t)},t}(c.SurveyElementBase),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.renderHeaderPopup=function(e){var t=e;return t?a.a.createElement("span",{style:{left:t.pointerTarget.left,top:t.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(f);function m(e,t,n,r,o,i,s){return void 0===s&&(s="popup"),y(Object(l.createDialogOptions)(e,t,n,r,void 0,void 0,o,i,s))}function y(e){e.onHide=function(){i.a.unmountComponentAtNode(t.container),t.unmountPopupContainer()};var t=Object(l.createPopupModalViewModel)(e);return i.a.render(a.a.createElement(f,{model:t}),t.container),t.model.isVisible=!0,t}l.settings.showModal=m},"./src/react/components/rating/rating-item-smiley.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemSmiley",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;return i.a.createElement("label",{style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),i.a.createElement(l.SvgIcon,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-smiley",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item-star.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItemStar",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;return i.a.createElement("label",{className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),i.a.createElement(l.SvgIcon,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),i.a.createElement(l.SvgIcon,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item-star",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/rating/rating-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"RatingItem",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return i.a.createElement("label",{className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},i.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.isDisplayMode,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),i.a.createElement("span",{className:this.question.cssClasses.itemText},e))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-rating-item",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/skeleton.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Skeleton",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e;return i.a.createElement("div",{className:"sv-skeleton-element",id:null===(e=this.props.element)||void 0===e?void 0:e.id})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-skeleton",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-actions/survey-nav-button.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyNavigationButton",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.item.isVisible},t.prototype.renderElement=function(){return i.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-nav-btn",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/survey-header/logo-image.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"LogoImage",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(i.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},i.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml,alt:this.survey.locTitle.renderedHtml,width:this.survey.logoWidth?this.survey.logoWidth:void 0,height:this.survey.logoHeight?this.survey.logoHeight:void 0,style:{objectFit:this.survey.logoFit}}))),i.a.createElement(i.a.Fragment,null,e)},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-logo-image",(function(e){return i.a.createElement(l,e)}))},"./src/react/components/survey-header/survey-header.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyHeader",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/title/title-element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n}return u(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}},t.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},t.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var e=s.SurveyElementBase.renderLocString(this.survey.locDescription);return i.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},i.a.createElement(l.TitleElement,{element:this.survey}),this.survey.renderedHasDescription?i.a.createElement("h5",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var t=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),n=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return a.ReactElementFactory.Instance.createElement(t,{data:n})},t.prototype.render=function(){return this.survey.renderedHasHeader?i.a.createElement("div",{className:this.css.header},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),i.a.createElement("div",{className:this.css.headerClose})):null},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement("survey-header",(function(e){return i.a.createElement(c,e)}))},"./src/react/components/svg-icon/svg-icon.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SvgIcon",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("./src/react/element-factory.tsx"),a=n("survey-core"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.svgIconRef=i.a.createRef(),n}return l(t,e),t.prototype.updateSvg=function(){this.props.iconName&&Object(a.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},t.prototype.componentDidUpdate=function(){this.updateSvg()},t.prototype.render=function(){var e="sv-svg-icon";return this.props.className&&(e+=" "+this.props.className),this.props.iconName?i.a.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img","aria-label":this.props.title},i.a.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-svg-icon",(function(e){return i.a.createElement(u,e)}))},"./src/react/components/title/title-actions.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleActions",(function(){return p}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=n("./src/react/components/title/title-content.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=i.a.createElement(u.TitleContent,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?i.a.createElement("div",{className:"sv-title-actions"},i.a.createElement("span",{className:"sv-title-actions__title"},e),i.a.createElement(l.SurveyActionBar,{model:this.element.getTitleToolbar()})):e},t}(i.a.Component);s.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),a.ReactElementFactory.Instance.registerElement("sv-title-actions",(function(e){return i.a.createElement(p,e)}))},"./src/react/components/title/title-content.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleContent",(function(){return l}));var r,o=n("react"),i=n.n(o),s=n("./src/react/reactquestion_element.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(this.element.isTitleRenderedAsString)return s.SurveyElementBase.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return i.a.createElement(i.a.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,t){var n=function(e){return i.a.createElement("span",{"data-key":e,key:e}," ")},r=[];e.isRequireTextOnStart&&(r.push(this.renderRequireText(e,t)),r.push(n("req-sp")));var o=e.no;if(o){var a=t.panel?t.panel.number:void 0;r.push(i.a.createElement("span",{"data-key":"q_num",key:"q_num",className:t.number||a,style:{position:"static"},"aria-hidden":!0},o)),r.push(n("num-sp"))}return e.isRequireTextBeforeTitle&&(r.push(this.renderRequireText(e,t)),r.push(n("req-sp"))),r.push(s.SurveyElementBase.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(r.push(n("req-sp")),r.push(this.renderRequireText(e,t))),r},t.prototype.renderRequireText=function(e,t){return i.a.createElement("span",{"data-key":"req-text",key:"req-text",className:t.requiredText||t.panel.requiredText,"aria-hidden":!0},e.requiredText)},t}(i.a.Component)},"./src/react/components/title/title-element.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TitleElement",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/components/title/title-actions.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var t=e.titleAriaLabel||void 0,n=i.a.createElement(a.TitleActions,{element:e,cssClasses:e.cssClasses}),r=void 0;e.hasTitleEvents&&(r=function(e){Object(s.doKey2ClickUp)(e.nativeEvent)});var o=e.titleTagName;return i.a.createElement(o,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":t,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:void 0,onKeyUp:r},n)},t}(i.a.Component)},"./src/react/custom-widget.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyCustomWidget",(function(){return a}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=e.call(this,t)||this;return n.widgetRef=o.createRef(),n}return s(t,e),t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.widgetRef.current;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n);var r=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!r&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var t=this.widgetRef.current;t&&this.questionBase.customWidget.willUnmount(this.questionBase,t)}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return o.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var t=null;if(e.widgetJson.render)t=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var n={__html:e.htmlTemplate};return o.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:n})}return o.createElement("div",{ref:this.widgetRef},t)},t}(i.SurveyQuestionElementBase)},"./src/react/dropdown-base.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdownBase",(function(){return d}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/components/popup/popup.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("./src/react/element-factory.tsx"),u=n("./src/react/reactquestion_comment.tsx"),c=n("./src/react/reactquestion_element.tsx"),p=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.click=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClick(e)},t.clear=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClear(e)},t.keyhandler=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.keyHandler(e)},t.blur=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onBlur(e),t.updateInputDomElement()},t.focus=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onFocus(e)},t}return p(t,e),t.prototype.getStateElement=function(){return this.question.dropdownListModel},t.prototype.setValueCore=function(e){this.questionBase.renderedValue=e},t.prototype.getValueCore=function(){return this.questionBase.renderedValue},t.prototype.renderSelect=function(e){var t,n,r=null;if(this.question.isReadOnly){var a=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";r=o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},a,o.createElement("div",null,this.question.readOnlyText))}else this.question.dropdownListModel||(this.question.dropdownListModel=new i.DropdownListModel(this.question)),r=o.createElement(o.Fragment,null,this.renderInput(this.question.dropdownListModel),o.createElement(s.Popup,{model:null===(n=null===(t=this.question)||void 0===t?void 0:t.dropdownListModel)||void 0===n?void 0:n.popupModel}));return o.createElement("div",{className:e.selectWrapper},r)},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?l.ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName,{item:e.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},t.prototype.renderInput=function(e){var t=this,n=this.renderValueElement(e),r=i.settings.environment.root;return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.inputReadOnly?void 0:0,onClick:this.click,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},e.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,e.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.controlValue},e.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),o.createElement("span",null,e.hintStringSuffix)):null,n,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,role:e.filterStringEnabled?this.question.ariaRole:void 0,"aria-label":this.question.placeholder,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,placeholder:e.placeholderRendered,readOnly:!e.searchEnabled||void 0,tabIndex:e.inputReadOnly?void 0:-1,disabled:this.question.isInputReadOnly,inputMode:e.inputMode,onChange:function(t){!function(t){t.target===r.activeElement&&(e.inputStringRendered=t.target.value)}(t)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},t.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var e={display:this.question.isEmpty()?"none":""};return o.createElement("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear},o.createElement(a.SvgIcon,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(u.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateInputDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.question.dropdownListModel.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(c.SurveyQuestionUncontrolledElement)},"./src/react/dropdown-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionOptionItem",(function(){return a}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.setupModel(),n}return s(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setupModel()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},t.prototype.setupModel=function(){if(this.item.locText){var e=this;this.item.locText.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item},t.prototype.renderElement=function(){return o.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(i.ReactSurveyElement)},"./src/react/dropdown-select.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdownSelect",(function(){return c}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactquestion_dropdown.tsx"),l=n("./src/react/dropdown-item.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderSelect=function(e){var t=this,n=this.isDisplayMode?o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):o.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(e){return t.setControl(e)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(e){t.question.onClick(e)},onKeyUp:function(e){t.question.onKeyUp(e)},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,required:this.question.isRequired},this.question.allowClear?o.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map((function(e,t){return o.createElement(l.SurveyQuestionOptionItem,{key:"item"+t,item:e})})));return o.createElement("div",{className:e.selectWrapper},n)},t}(a.SurveyQuestionDropdown);s.ReactQuestionFactory.Instance.registerQuestion("sv-dropdown-select",(function(e){return o.createElement(c,e)})),i.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select")},"./src/react/element-factory.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactElementFactory",(function(){return r}));var r=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.isElementRegistered=function(e){return!!this.creatorHash[e]},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}()},"./src/react/element-header.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementHeader",(function(){return c}));var r,o=n("react"),i=n.n(o),s=n("./src/react/components/action-bar/action-bar.tsx"),a=n("./src/react/components/title/title-element.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,t=e.hasTitle?i.a.createElement(a.TitleElement,{element:e}):null,n=e.hasDescriptionUnderTitle?l.SurveyElementBase.renderQuestionDescription(this.element):null,r=e.additionalTitleToolbar?i.a.createElement(s.SurveyActionBar,{model:e.additionalTitleToolbar}):null;return i.a.createElement("div",{className:e.cssHeader,onClick:e.clickTitleFunction},t,n,r)},t}(i.a.Component)},"./src/react/flow-panel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyFlowPanel",(function(){return u}));var r,o=n("react"),i=n("./src/react/element-factory.tsx"),s=n("./src/react/panel.tsx"),a=n("./src/react/reactquestion.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},t.prototype.getQuestion=function(e){return this.flowPanel.getQuestionByName(e)},t.prototype.renderQuestion=function(e){return"<question>"+e.name+"</question>"},t.prototype.renderRows=function(){var e=this.renderHtml();return e?[e]:[]},t.prototype.getNodeIndex=function(){return this.renderedIndex++},t.prototype.renderHtml=function(){if(!this.flowPanel)return null;var e="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var t={__html:e};return o.createElement("div",{dangerouslySetInnerHTML:t})}var n=(new DOMParser).parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(n)},t.prototype.renderNodes=function(e){for(var t=[],n=0;n<e.length;n++){var r=this.renderNode(e[n]);r&&t.push(r)}return t},t.prototype.getStyle=function(e){var t={};return"b"===e.toLowerCase()&&(t.fontWeight="bold"),"i"===e.toLowerCase()&&(t.fontStyle="italic"),"u"===e.toLowerCase()&&(t.textDecoration="underline"),t},t.prototype.renderParentNode=function(e){var t=e.nodeName.toLowerCase(),n=this.renderNodes(this.getChildDomNodes(e));return"div"===t?o.createElement("div",{key:this.getNodeIndex()},n):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},n)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var t=e.nodeName.toLowerCase();if("question"===t){var n=this.flowPanel.getQuestionByName(e.textContent);if(!n)return null;var r=o.createElement(a.SurveyQuestion,{key:n.name,element:n,creator:this.creator,css:this.css});return o.createElement("span",{key:this.getNodeIndex()},r)}return"div"===t?o.createElement("div",{key:this.getNodeIndex()},e.textContent):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t},t.prototype.hasTextChildNodesOnly=function(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("#text"!==t[n].nodeName.toLowerCase())return!1;return!0},t.prototype.renderContent=function(e,t){return o.createElement("f-panel",{style:e},t)},t}(s.SurveyPanel);i.ReactElementFactory.Instance.registerElement("flowpanel",(function(e){return o.createElement(u,e)}))},"./src/react/image.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionImage",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){t.forceUpdate()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.getImageCss(),n={objectFit:this.question.imageFit};this.question.imageLink&&!this.question.contentNotLoaded||(n.display="none");var r=null;"image"===this.question.renderedMode&&(r=o.createElement("img",{className:t,src:this.question.locImageLink.renderedHtml,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoad:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"video"===this.question.renderedMode&&(r=o.createElement("video",{controls:!0,className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoadedMetadata:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"youtube"===this.question.renderedMode&&(r=o.createElement("iframe",{className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n}));var i=null;return this.question.imageLink&&!this.question.contentNotLoaded||(i=o.createElement("div",{className:this.question.cssClasses.noImage},o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),o.createElement("div",{className:this.question.cssClasses.root},r,i)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("image",(function(e){return o.createElement(u,e)}))},"./src/react/imagepicker.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionImagePicker",(function(){return c})),n.d(t,"SurveyQuestionImagePickerItem",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=n("./src/react/components/svg-icon/svg-icon.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},o.createElement("legend",{role:"radio","aria-label":this.question.locTitle.renderedHtml}),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var i=n.map((function(n,r){return t.renderItem("item"+r,n,e)}));return o.createElement("div",{key:"column"+r,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getItems=function(e){for(var t=[],n=0;n<this.question.visibleChoices.length;n++){var r=this.question.visibleChoices[n],o="item"+n;t.push(this.renderItem(o,r,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,t,n){var r=o.createElement(p,{key:e,question:this.question,item:t,cssClasses:n}),i=this.question.survey,s=null;return i&&(s=a.ReactSurveyElementsWrapper.wrapItemValue(i,r,this.question,t)),null!=s?s:r},t}(i.SurveyQuestionElementBase),p=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return u(t,e),t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.item.locImageLink.onChanged=function(){e.setState({locImageLinkchanged:e.state&&e.state.locImageLink?e.state.locImageLink+1:1})}},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){if(this.question.multiSelect)if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var t=this.question.value;t.splice(this.question.value.indexOf(e.target.value),1),this.question.value=t}else this.question.value=e.target.value;this.setState({value:this.question.value})},t.prototype.renderElement=function(){var e=this,t=this.item,n=this.question,r=this.cssClasses,s=n.isItemSelected(t),a=n.getItemClass(t),u=null;n.showLabel&&(u=o.createElement("span",{className:n.cssClasses.itemText},t.text?i.SurveyElementBase.renderLocString(t.locText):t.value));var c={objectFit:this.question.imageFit},p=null;if(t.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(p=o.createElement("img",{className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:t.locText.renderedHtml,style:c,onLoad:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),t.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(p=o.createElement("video",{controls:!0,className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:c,onLoadedMetadata:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),!t.locImageLink.renderedHtml||t.contentNotLoaded){var d={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};p=o.createElement("div",{className:r.itemNoImage,style:d},r.itemNoImageSvgIcon?o.createElement(l.SvgIcon,{className:r.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return o.createElement("div",{className:a},o.createElement("label",{className:r.label},o.createElement("input",{className:r.itemControl,id:this.question.getItemId(t),type:this.question.inputType,name:this.question.questionName,checked:s,value:t.value,disabled:!this.question.getItemEnabled(t),onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("div",{className:this.question.cssClasses.itemDecorator},o.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?o.createElement("span",{className:this.question.cssClasses.checkedItemDecorator},this.question.cssClasses.checkedItemSvgIconId?o.createElement(l.SvgIcon,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,p),u)))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("imagepicker",(function(e){return o.createElement(c,e)}))},"./src/react/page.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPage",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/panel-base.tsx"),a=n("./src/react/components/title/title-element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderTitle(),t=this.renderDescription(),n=this.renderRows(this.panelBase.cssClasses);return o.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},e,t,n)},t.prototype.renderTitle=function(){return o.createElement(a.TitleElement,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=i.SurveyElementBase.renderLocString(this.page.locDescription);return o.createElement("div",{className:this.panelBase.cssClasses.page.description},e)},t}(s.SurveyPanelBase)},"./src/react/panel-base.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPanelBase",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/row.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.renderedRowsCache={},n.rootRef=o.createRef(),n}return a(t,e),t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(t){return"elements"!==t&&e.prototype.canUsePropInState.call(this,t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),t.prototype.getPanelBase=function(){return this.props.element||this.props.question},t.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},t.prototype.getCss=function(){return this.props.css},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.page&&this.survey&&this.survey.currentPage&&t.page.name===this.survey.currentPage.name||this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.survey.afterRenderPanel(this.panelBase,e):this.survey.afterRenderPage(e))},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&this.panelBase.isVisible&&!!this.panelBase.survey},t.prototype.renderRows=function(e){"rows"!==this.changedStatePropName&&(this.renderedRowsCache={});for(var t=[],n=this.panelBase.rows,r=0;r<n.length;r++){var o=this.renderedRowsCache[n[r].id];o||(o=this.createRow(n[r],e),this.renderedRowsCache[n[r].id]=o),t.push(o)}return t},t.prototype.createRow=function(e,t){return o.createElement(s.SurveyRow,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:t})},t}(i.SurveyElementBase)},"./src/react/panel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyPanel",(function(){return f}));var r,o=n("react"),i=n("./src/react/reactquestion.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/panel-base.tsx"),u=n("./src/react/reactsurveymodel.tsx"),c=n("./src/react/components/action-bar/action-bar.tsx"),p=n("./src/react/components/title/title-element.tsx"),d=n("./src/react/element-header.tsx"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){var n=e.call(this,t)||this;return n.hasBeenExpanded=!1,n}return h(t,e),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.renderHeader(),n=o.createElement(i.SurveyElementErrors,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),r={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.isCollapsed?"none":void 0},s=null;if(!this.panel.isCollapsed||this.hasBeenExpanded){this.hasBeenExpanded=!0;var a=this.renderRows(this.panelBase.cssClasses),l=this.panelBase.cssClasses.panel.content;s=this.renderContent(r,a,l)}return o.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:function(){e.panelBase&&e.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?n:null,t,this.panel.showErrorsAbovePanel?null:n,s)},t.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?o.createElement(d.SurveyElementHeader,{element:this.panel}):null},t.prototype.wrapElement=function(e){var t=this.panel.survey,n=null;return t&&(n=u.ReactSurveyElementsWrapper.wrapElement(t,e,this.panel)),null!=n?n:e},t.prototype.renderContent=function(e,t,n){var r=this.renderBottom();return o.createElement("div",{style:e,className:n,id:this.panel.contentId},t,r)},t.prototype.renderTitle=function(){return this.panelBase.title?o.createElement(p.TitleElement,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=s.SurveyElementBase.renderLocString(this.panelBase.locDescription);return o.createElement("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?o.createElement(c.SurveyActionBar,{model:e}):null},t}(l.SurveyPanelBase);a.ReactElementFactory.Instance.registerElement("panel",(function(e){return o.createElement(f,e)}))},"./src/react/rating-dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRatingDropdown",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/dropdown-base.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.renderSelect(e);return o.createElement("div",{className:this.question.cssClasses.rootDropdown},t)},t}(s.SurveyQuestionDropdownBase);a.ReactQuestionFactory.Instance.registerQuestion("sv-rating-dropdown",(function(e){return o.createElement(u,e)})),i.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown")},"./src/react/react-popup-survey.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"PopupSurvey",(function(){return u})),n.d(t,"SurveyWindow",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactSurvey.tsx"),s=n("./src/react/reactquestion_element.tsx"),a=n("survey-core"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return l(t,e),t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this.renderWindowHeader(),t=this.popup.isExpanded?this.renderBody():null,n={position:"fixed",bottom:3,right:10};return this.popup.renderedWidth&&(n.width=this.popup.renderedWidth,n.maxWidth=this.popup.renderedWidth),o.createElement("div",{className:this.popup.cssRoot,style:n},e,t)},t.prototype.renderWindowHeader=function(){var e={paddingRight:"10px"},t=this.popup.cssButton;t="glyphicon pull-right "+t;var n=s.SurveyElementBase.renderLocString(this.survey.locTitle);return o.createElement("div",{className:this.popup.cssHeaderRoot},o.createElement("span",{onClick:this.handleOnExpanded,style:{width:"100%",cursor:"pointer"}},o.createElement("span",{className:this.popup.cssHeaderTitle,style:e},n),o.createElement("span",{className:t,"aria-hidden":"true"})),this.popup.isExpanded?o.createElement("span",{onClick:this.handleOnExpanded,style:{float:"right",cursor:"pointer"}},o.createElement("span",{className:this.popup.cssHeaderTitle,style:e},"X")):null)},t.prototype.renderBody=function(){return o.createElement("div",{className:this.popup.cssBody},this.doRender())},t.prototype.createSurvey=function(t){t||(t={}),e.prototype.createSurvey.call(this,t),this.popup=new a.PopupSurveyModel(null,this.survey),t.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=t.closeOnCompleteTimeout),this.popup.isShowing=!0,this.popup.isExpanded||!t.expanded&&!t.isExpanded||this.popup.expand()},t}(i.Survey),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(u)},"./src/react/reactSurvey.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"Survey",(function(){return y})),n.d(t,"attachKey2click",(function(){return v}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/page.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/string-viewer.tsx"),u=n("./src/react/components/survey-header/survey-header.tsx"),c=n("./src/react/reactquestion_factory.tsx"),p=n("./src/react/element-factory.tsx"),d=n("./src/react/components/brand-info.tsx"),h=n("./src/react/components/notifier.tsx"),f=n("./src/react/components/components-container.tsx"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},m.apply(this,arguments)},y=function(e){function t(t){var n=e.call(this,t)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(t),n.updateSurvey(t,{}),n.rootRef=o.createRef(),n.rootNodeId=t.id||null,n.rootNodeClassName=t.className||"",n}return g(t,e),Object.defineProperty(t,"cssType",{get:function(){return i.surveyCss.currentType},set:function(e){i.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.survey},t.prototype.onSurveyUpdated=function(){if(this.survey){var e=this.rootRef.current;e&&this.survey.afterRenderSurvey(e),this.survey.startTimerFromUI()}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(this.isModelJSONChanged(t)&&(this.destroySurvey(),this.createSurvey(t),this.updateSurvey(t,{}),this.isSurveyUpdated=!0),!0)},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateSurvey(this.props,t),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.onSurveyUpdated()},t.prototype.destroySurvey=function(){this.survey&&(this.survey.stopTimer(),this.survey.destroyResizeObserver())},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;this.survey.needRenderIcons&&i.SvgRegistry.renderIcons(),e="completed"==this.survey.state?this.renderCompleted():"completedbefore"==this.survey.state?this.renderCompletedBefore():"loading"==this.survey.state?this.renderLoading():this.renderSurvey();var t=o.createElement(u.SurveyHeader,{survey:this.survey}),n=o.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(n=null);var r=this.survey.getRootCss(),s=this.rootNodeClassName?this.rootNodeClassName+" "+r:r,a={backgroundImage:this.survey.renderBackgroundImage,backgroundSize:this.survey.backgroundImageFit},l={backgroundColor:this.survey.renderBackgroundOpacity};return o.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:s,style:a},o.createElement("form",{onSubmit:function(e){e.preventDefault()},style:l},n,o.createElement("div",{className:this.css.container},t,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),this.survey.showBrandInfo?o.createElement(d.BrandInfo,null):null,o.createElement(h.NotifierComponent,{notifier:this.survey.notifier}))},t.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},set:function(e){this.survey.css=e},enumerable:!1,configurable:!0}),t.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var e={__html:this.survey.processedCompletedHtml};return o.createElement(o.Fragment,null,o.createElement("div",{dangerouslySetInnerHTML:e,className:this.survey.completedCss}))},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null,t=(this.survey.isShowStartingPage,this.survey.activePage?this.survey.activePage.id:""),n=this.survey.bodyCss;e||(n=this.css.bodyEmpty,e=this.renderEmptySurvey());var r={};return this.survey.renderedWidth&&(r.maxWidth=this.survey.renderedWidth),o.createElement("div",{className:this.survey.bodyContainerCss},o.createElement(f.ComponentsContainer,{survey:this.survey,container:"left"}),o.createElement("div",{id:t,className:n,style:r},o.createElement(f.ComponentsContainer,{survey:this.survey,container:"contentTop"}),e,o.createElement(f.ComponentsContainer,{survey:this.survey,container:"contentBottom"})),o.createElement(f.ComponentsContainer,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return o.createElement(s.SurveyPage,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return o.createElement("span",null,this.survey.emptySurveyText)},t.prototype.createSurvey=function(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new i.SurveyModel(e.json)):this.survey=new i.SurveyModel,e.css&&(this.survey.css=this.css),this.setSurveyEvents()},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:!!e.json&&!i.Helpers.isTwoValueEquals(e.json,this.previousJSON)},t.prototype.updateSurvey=function(e,t){if(e)for(var n in t=t||{},e)"model"!=n&&"children"!=n&&"json"!=n&&("css"!=n?e[n]!==t[n]&&(0==n.indexOf("on")&&this.survey[n]&&this.survey[n].add?(t[n]&&this.survey[n].remove(t[n]),this.survey[n].add(e[n])):this.survey[n]=e[n]):(this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss()))},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var t=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:t+1})},this.survey.onPartialSend.add((function(t){e.state&&e.setState(e.state)}))},t.prototype.createQuestionElement=function(e){return c.ReactQuestionFactory.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,t,n){return o.createElement("div",{key:e},o.createElement("span",{className:n.error.icon||void 0,"aria-hidden":"true"}),o.createElement("span",{className:n.error.item||void 0},o.createElement(l.SurveyLocStringViewer,{locStr:t.locText})))},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(a.SurveyElementBase);function v(e,t,n){return void 0===n&&(n={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||n&&n.disableTabStop?o.cloneElement(e,{tabIndex:-1}):(n=m({},n),o.cloneElement(e,{tabIndex:0,onKeyUp:function(e){return e.preventDefault(),e.stopPropagation(),Object(i.doKey2ClickUp)(e,n),!1},onKeyDown:function(e){return Object(i.doKey2ClickDown)(e,n)},onBlur:function(e){return Object(i.doKey2ClickBlur)(e)}}))}p.ReactElementFactory.Instance.registerElement("survey",(function(e){return o.createElement(y,e)}))},"./src/react/reactSurveyNavigationBase.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyNavigationBase",(function(){return s}));var r,o=n("react"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.updateStateFunction=null,n.state={update:0},n}return i(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},t.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},t}(o.Component)},"./src/react/reactSurveyProgress.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgress",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={width:this.progress+"%"};return o.createElement("div",{className:this.survey.getProgressCssClasses()},o.createElement("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100},o.createElement("span",{className:i.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),o.createElement("span",{className:i.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-pages",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-questions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-correctquestions",(function(e){return o.createElement(u,e)})),a.ReactElementFactory.Instance.registerElement("sv-progress-requiredquestions",(function(e){return o.createElement(u,e)}))},"./src/react/reactSurveyProgressButtons.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressButtons",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.updateScroller=void 0,n.progressButtonsModel=new i.SurveyProgressButtonsModel(n.survey),n.listContainerRef=o.createRef(),n}return l(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.css.progressButtonsContainerCenter},o.createElement("div",{className:this.css.progressButtonsContainer},o.createElement("div",{className:this.getScrollButtonCss(!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),o.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},o.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),o.createElement("div",{className:this.getScrollButtonCss(!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})))},t.prototype.getListElements=function(){var e=this,t=[];return this.survey.visiblePages.forEach((function(n,r){t.push(e.renderListElement(n,r))})),t},t.prototype.renderListElement=function(e,t){var n=this;return o.createElement("li",{key:"listelement"+t,className:this.getListElementCss(t),onClick:this.isListElementClickable(t)?function(){return n.clickListElement(t)}:void 0},o.createElement("div",{className:this.css.progressButtonsPageTitle,title:e.navigationTitle||e.name},e.navigationTitle||e.name),o.createElement("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription))},t.prototype.isListElementClickable=function(e){return this.progressButtonsModel.isListElementClickable(e)},t.prototype.getListElementCss=function(e){return this.progressButtonsModel.getListElementCss(e)},t.prototype.clickListElement=function(e){this.progressButtonsModel.clickListElement(e)},t.prototype.getScrollButtonCss=function(e){return this.progressButtonsModel.getScrollButtonCss(this.state.hasScroller,e)},t.prototype.clickScrollButton=function(e,t){e&&(e.scrollLeft+=70*(t?-1:1))},t.prototype.componentDidMount=function(){var e=this;this.updateScroller=setInterval((function(){e.listContainerRef.current&&e.setState({hasScroller:e.listContainerRef.current.scrollWidth>e.listContainerRef.current.offsetWidth})}),100)},t.prototype.componentWillUnmount=function(){void 0!==this.updateScroller&&(clearInterval(this.updateScroller),this.updateScroller=void 0)},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-buttons",(function(e){return o.createElement(u,e)}))},"./src/react/reactSurveyProgressToc.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyProgressToc",(function(){return c}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactSurveyNavigationBase.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/components/list/list.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=Object(i.createTOCListModel)(this.props.model),t=Object(i.getTocRootCss)(this.props.model);return o.createElement("div",{className:t},o.createElement(l.List,{model:e}))},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-toc",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestion",(function(){return h})),n.d(t,"SurveyElementErrors",(function(){return f})),n.d(t,"SurveyQuestionAndErrorsWrapped",(function(){return g})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return m}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactsurveymodel.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=n("./src/react/reactquestion_comment.tsx"),c=n("./src/react/custom-widget.tsx"),p=n("./src/react/element-header.tsx"),d=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n.isNeedFocus=!1,n.rootRef=o.createRef(),n}return d(t,e),t.renderQuestionBody=function(e,t){return t.isVisible?t.customWidget?o.createElement(c.SurveyCustomWidget,{creator:e,question:t}):e.createQuestionElement(t):null},t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question&&!!this.creator&&this.question.isVisible},t.prototype.renderQuestionContent=function(){var e=this.question,t={display:this.question.isCollapsed?"none":""},n=e.cssClasses,r=this.renderQuestion(),i=this.question.showErrorOnTop?this.renderErrors(n,"top"):null,s=this.question.showErrorOnBottom?this.renderErrors(n,"bottom"):null,a=e&&e.hasComment?this.renderComment(n):null,l=this.question.isErrorsModeTooltip?this.renderErrors(n,"tooltip"):null,u=e.hasDescriptionUnderInput?this.renderDescription():null;return o.createElement("div",{className:e.cssContent||void 0,style:t,role:"presentation"},i,r,a,s,l,u)},t.prototype.renderElement=function(){var e=this.question,t=e.cssClasses,n=this.renderHeader(e),r=e.hasTitleOnLeftTop?n:null,i=e.hasTitleOnBottom?n:null,s=this.question.showErrorsAboveQuestion?this.renderErrors(t,""):null,a=this.question.showErrorsBelowQuestion?this.renderErrors(t,""):null,l=e.getRootStyle(),u=this.wrapQuestionContent(this.renderQuestionContent());return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:l,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-expanded":null===e.ariaExpanded?void 0:"true"===e.ariaExpanded},s,r,u,i,a))},t.prototype.wrapElement=function(e){var t=this.question.survey,n=null;return t&&(n=s.ReactSurveyElementsWrapper.wrapElement(t,e,this.question)),null!=n?n:e},t.prototype.wrapQuestionContent=function(e){var t=this.question.survey,n=null;return t&&(n=s.ReactSurveyElementsWrapper.wrapQuestionContent(t,e,this.question)),null!=n?n:e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return l.SurveyElementBase.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var t=l.SurveyElementBase.renderLocString(this.question.locCommentText);return o.createElement("div",{className:this.question.getCommentAreaCss()},o.createElement("div",null,t),o.createElement(u.SurveyQuestionCommentItem,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return o.createElement(p.SurveyElementHeader,{element:e})},t.prototype.renderErrors=function(e,t){return o.createElement(f,{element:this.question,cssClasses:e,creator:this.creator,location:t,id:this.question.id+"_errors"})},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("question",(function(e){return o.createElement(h,e)}));var f=function(e){function t(t){var n=e.call(this,t)||this;return n.state=n.getState(),n.tooltipRef=o.createRef(),n}return d(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),"tooltip"==this.props.location&&(this.tooltipRef.current&&!this.tooltipManager&&(this.tooltipManager=new i.TooltipManager(this.tooltipRef.current)),this.tooltipManager&&!this.tooltipRef.current&&this.disposeTooltipManager())},t.prototype.componentWillUnmount=function(){this.tooltipManager&&this.disposeTooltipManager()},t.prototype.disposeTooltipManager=function(){var e;null===(e=this.tooltipManager)||void 0===e||e.dispose(),this.tooltipManager=void 0},t.prototype.renderElement=function(){for(var e=[],t=0;t<this.element.errors.length;t++){var n="error"+t;e.push(this.creator.renderError(n,this.element.errors[t],this.cssClasses))}return o.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id,ref:this.tooltipRef},e)},t}(l.ReactSurveyElement),g=function(e){function t(t){return e.call(this,t)||this}return d(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderErrors=function(e){return this.getShowErrors()?o.createElement(f,{element:this.question,cssClasses:this.cssClasses,creator:this.creator,location:e}):null},t.prototype.renderContent=function(){var e=this.creator.questionErrorLocation(),t=this.renderErrors(e),n=this.question.showErrorOnTop?t:null,r=this.question.showErrorOnBottom?t:null,i=this.renderQuestion();return o.createElement(o.Fragment,null,n,i,r)},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return h.renderQuestionBody(this.creator,this.question)},t}(l.ReactSurveyElement),m=function(e){function t(t){var n=e.call(this,t)||this;return n.cellRef=o.createRef(),n}return d(t,e),t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.question){var t=this.cellRef.current;t&&t.removeAttribute("data-rendered")}},t.prototype.renderElement=function(){var e=this.getCellStyle(),t=this.question.isErrorsModeTooltip?this.renderErrors("tooltip"):null;return o.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:this.props.cell.colSpans,"data-responsive-title":this.getHeaderText(),title:this.props.cell.getTitle(),style:e},this.wrapCell(this.props.cell,o.createElement("div",{className:this.cssClasses.cellQuestionWrapper},this.renderContent(),t)))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,t){if(!e)return t;var n=this.question.survey,r=null;return n&&(r=s.ReactSurveyElementsWrapper.wrapMatrixCell(n,t,e,this.props.reason)),null!=r?r:t},t}(g)},"./src/react/reactquestion_buttongroup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionButtonGroup",(function(){return c})),n.d(t,"SurveyButtonGroupItem",(function(){return p}));var r,o=n("./src/react/reactquestion_element.tsx"),i=n("react"),s=n.n(i),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=n("survey-core"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.question},t.prototype.renderElement=function(){var e=this.renderItems();return s.a.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map((function(t,n){return s.a.createElement(p,{key:e.question.inputId+"_"+n,item:t,question:e.question,index:n})}))},t}(o.SurveyQuestionElementBase),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){this.model=new l.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),t=this.renderInput(),n=this.renderCaption();return s.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},t,s.a.createElement("div",{className:this.model.css.decorator},e,n))},t.prototype.renderIcon=function(){return this.model.iconName?s.a.createElement(a.SvgIcon,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return s.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){e.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-describedby":this.model.describedBy,role:"radio"})},t.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var e=this.renderLocString(this.model.caption);return s.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(o.SurveyElementBase)},"./src/react/reactquestion_checkbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionCheckbox",(function(){return p})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_comment.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/reactsurveymodel.tsx"),u=n("./src/react/element-factory.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("fieldset",{role:"presentation",className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)}},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.getHeader(),this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},t.prototype.getHeader=function(){var e=this;if(this.question.hasHeadItems)return this.question.headItems.map((function(t,n){return e.renderItem("item_h"+n,t,!1,e.question.cssClasses)}))},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem("item_f"+n,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var i=n.map((function(n,o){return t.renderItem("item"+o,n,0===r&&0===o,e,""+r+o)}));return o.createElement("div",{key:"column"+r,className:t.question.getColumnClass(),role:"presentation"},i)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i="item"+r,s=this.renderItem(i,o,0==r,e,""+r);s&&n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:r,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isFirst:n}),s=this.question.survey,a=null;return s&&i&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.clickItemHandler(n.item,e.target.checked)},n.selectAllChanged=function(e){n.question.toggleSelectAll()},n}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this.question.isItemSelected(this.item);return this.renderCheckbox(e,null)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderCheckbox=function(e,t){var n=this.question.getItemId(this.item),r=(this.hideCaption||this.renderLocString(this.item.locText),this.question.getItemClass(this.item)),i=this.question.getLabelClass(this.item),s=this.item==this.question.selectAllItem?this.selectAllChanged:this.handleOnChange,a=this.hideCaption?null:o.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:r,role:"presentation"},o.createElement("label",{className:i,"aria-label":this.question.getAriaItemLabel(this.item)},o.createElement("input",{className:this.cssClasses.itemControl,role:"option",type:"checkbox",name:this.question.name,value:"selectall"!=this.item.value?this.item.value:void 0,id:n,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),checked:e,onChange:s,"aria-describedby":this.question.ariaDescribedBy}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,a),t)},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-checkbox-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("checkbox",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_comment.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionComment",(function(){return u})),n.d(t,"SurveyQuestionCommentItem",(function(){return c})),n.d(t,"SurveyQuestionOtherValueItem",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/character-counter.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderElement=function(){var e=this,t=this.question.isInputTextUpdate?void 0:this.updateValueOnEvent,n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var r=this.question.getMaxLength()?o.createElement(a.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("textarea",{id:this.question.inputId,className:this.question.className,disabled:this.question.isInputReadOnly,readOnly:this.question.isInputReadOnly,ref:function(t){return e.setControl(t)},maxLength:this.question.getMaxLength(),placeholder:n,onBlur:t,onInput:function(t){e.question.isInputTextUpdate?e.updateValueOnEvent(t):e.question.updateElement();var n=t.target.value;e.question.updateRemainingCharacterCounter(n)},onKeyDown:function(t){e.question.onKeyDown(t)},cols:this.question.cols,rows:this.question.rows,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-describedby":this.question.a11y_input_ariaDescribedBy,style:{resize:this.question.resizeStyle}}),r)},t}(i.SurveyQuestionUncontrolledElement),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.canRender=function(){return!!this.props.question},t.prototype.onCommentChange=function(e){this.props.question.onCommentChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onCommentInput(e)},t.prototype.getComment=function(){return this.props.question.comment},t.prototype.getId=function(){return this.props.question.commentId},t.prototype.getPlaceholder=function(){return this.props.question.commentPlaceholder},t.prototype.renderElement=function(){var e=this,t=this.props.question,n=this.props.otherCss||this.cssClasses.comment,r=function(t){e.setState({comment:t.target.value}),e.onCommentChange(t)},i=this.getComment(),s=this.state?this.state.comment:void 0;void 0!==s&&s.trim()!==i&&(s=i);var a=void 0!==s?s:i||"";return t.isReadOnlyRenderDiv()?o.createElement("div",null,a):o.createElement("textarea",{id:this.getId(),className:n,value:a,disabled:this.isDisplayMode,maxLength:t.getOthersMaxLength(),placeholder:this.getPlaceholder(),onChange:r,onBlur:function(t){e.onCommentChange(t),r(t)},onInput:function(t){return e.onCommentInput(t)},"aria-required":t.isRequired,"aria-label":t.locTitle.renderedHtml,style:{resize:t.resizeStyle}})},t}(i.ReactSurveyElement),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.onCommentChange=function(e){this.props.question.onOtherValueChange(e)},t.prototype.onCommentInput=function(e){this.props.question.onOtherValueInput(e)},t.prototype.getComment=function(){return this.props.question.otherValue},t.prototype.getId=function(){return this.props.question.otherId},t.prototype.getPlaceholder=function(){return this.props.question.otherPlaceholder},t}(c);s.ReactQuestionFactory.Instance.registerQuestion("comment",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_custom.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionCustom",(function(){return c})),n.d(t,"SurveyQuestionComposite",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/panel.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getStateElements=function(){var t=e.prototype.getStateElements.call(this);return this.question.contentQuestion&&t.push(this.question.contentQuestion),t},t.prototype.renderElement=function(){return s.SurveyQuestion.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(i.SurveyQuestionUncontrolledElement),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return o.createElement(l.SurveyPanel,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(i.SurveyQuestionUncontrolledElement);a.ReactQuestionFactory.Instance.registerQuestion("custom",(function(e){return o.createElement(c,e)})),a.ReactQuestionFactory.Instance.registerQuestion("composite",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_dropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionDropdown",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/dropdown-base.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},n,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("dropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_element.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyElementBase",(function(){return u})),n.d(t,"ReactSurveyElement",(function(){return c})),n.d(t,"SurveyQuestionElementBase",(function(){return p})),n.d(t,"SurveyQuestionUncontrolledElement",(function(){return d}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n._allowComponentUpdate=!0,n}return l(t,e),t.renderLocString=function(e,t,n){return void 0===t&&(t=null),s.ReactElementFactory.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:t,key:n})},t.renderQuestionDescription=function(e){var n=t.renderLocString(e.locDescription);return o.createElement("div",{style:e.isDescriptionVisible?void 0:{display:"none"},className:e.cssDescription},n)},t.prototype.componentDidMount=function(){this.makeBaseElementsReact()},t.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact()},t.prototype.componentDidUpdate=function(e,t){this.makeBaseElementsReact()},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,t){return this._allowComponentUpdate&&this.unMakeBaseElementsReact(),this._allowComponentUpdate},t.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e},t.prototype.wrapElement=function(e){return e},Object.defineProperty(t.prototype,"isRendering",{get:function(){for(var e=0,t=this.getRenderedElements();e<t.length;e++)if(t[e].reactRendering>0)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var t=0,n=this.getRenderedElements();t<n.length;t++){var r=n[t];r.reactRendering||(r.reactRendering=0),r.reactRendering+=e}},t.prototype.canRender=function(){return!0},t.prototype.renderElement=function(){return null},Object.defineProperty(t.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),t.prototype.makeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.makeBaseElementReact(e[t])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.unMakeBaseElementReact(e[t])},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,n,r){return void 0===n&&(n=null),t.renderLocString(e,n,r)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var t=this;this.canMakeReact(e)&&(e.iteratePropertiesHash((function(e,n){if(t.canUsePropInState(n)){var r=e[n];Array.isArray(r)&&(r.onArrayChanged=function(e){t.isRendering||(t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t})))})}})),e.setPropertyValueCoreHandler=function(e,n,r){if(e[n]!==r){if(e[n]=r,!t.canUsePropInState(n))return;if(t.isRendering)return;t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t}))}})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash((function(e,t){var n=e[t];Array.isArray(n)&&(n.onArrayChanged=function(){})})))},t}(o.Component),c=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(u),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase){var t=this.control;this.questionBase.beforeDestroyQuestionElement(t),t&&t.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.control;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(e))},Object.defineProperty(t.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||this.questionBase.customWidget&&!this.questionBase.customWidgetData.isNeedRender&&!this.questionBase.customWidget.widgetJson.isDefaultRender&&!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.questionBase.survey,o=null;return r&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.setControl=function(e){e&&(this.control=e)},t}(u),d=function(e){function t(t){var n=e.call(this,t)||this;return n.updateValueOnEvent=function(e){i.Helpers.isTwoValueEquals(n.questionBase.value,e.target.value)||n.setValueCore(e.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.setValueCore=function(e){this.questionBase.value=e},t.prototype.getValueCore=function(){return this.questionBase.value},t.prototype.updateDomElement=function(){if(this.control){var t=this.control,n=this.getValueCore();i.Helpers.isTwoValueEquals(n,t.value)||(t.value=this.getValue(n))}e.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return i.Helpers.isValueEmpty(e)?"":e},t}(p)},"./src/react/reactquestion_empty.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionEmpty",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",null)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("empty",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_expression.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionExpression",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("div",{id:this.question.inputId,className:t.root,ref:function(t){return e.setControl(t)}},this.question.formatedValue)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("expression",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_factory.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactQuestionFactory",(function(){return r}));var r=function(){function e(){this.creatorHash={}}return e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}()},"./src/react/reactquestion_file.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionFile",(function(){return p}));var r,o=n("react"),i=n("./src/react/components/action-bar/action-bar.tsx"),s=n("./src/react/components/svg-icon/svg-icon.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=n("./src/react/reactquestion_factory.tsx"),u=n("./src/react/reactSurvey.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e,t=this,n=this.renderPreview(),r=this.renderFileDecorator(),s=this.renderClearButton(this.question.showRemoveButton),a=this.renderClearButton(this.question.showRemoveButtonBottom),l=this.question.mobileFileNavigatorVisible?o.createElement(i.SurveyActionBar,{model:this.question.mobileFileNavigator}):null;return e=this.isDisplayMode?o.createElement("input",{type:"file",disabled:this.isDisplayMode,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},onChange:this.isDisplayMode?function(){}:this.question.doChange,multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):o.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},onChange:this.isDisplayMode?function(){}:this.question.doChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes}),o.createElement("div",{className:this.question.fileRootCss},e,o.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},r,s,n,a,l))},t.prototype.renderFileDecorator=function(){this.question.cssClasses;var e,t=null;return e=Object(u.attachKey2click)(o.createElement("label",{role:"button",tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonCaption},o.createElement("span",null,this.question.chooseButtonCaption),this.question.cssClasses.chooseFileIconId?o.createElement(s.SvgIcon,{title:this.question.chooseButtonCaption,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null)),this.question.isEmpty()&&(t=o.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption)),o.createElement("div",{className:this.question.getFileDecoratorCss()},o.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.question.dragAreaPlaceholder),o.createElement("div",{className:this.question.cssClasses.wrapper},e,t))},t.prototype.renderClearButton=function(e){return e?o.createElement("button",{type:"button",onClick:this.question.doClean,className:e},o.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?o.createElement(s.SvgIcon,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null):null},t.prototype.renderFileSign=function(e,t){var n=this;return e&&t.name?o.createElement("div",{className:e},o.createElement("a",{href:t.content,onClick:function(e){n.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderPreview=function(){var e=this;if(!this.question.previewValue||!this.question.previewValue.length)return null;var t=this.question.previewValue.map((function(t,n){return t?o.createElement("span",{key:e.question.inputId+"_"+n,className:e.question.cssClasses.preview,style:{display:e.question.isPreviewVisible(n)?void 0:"none"}},e.renderFileSign(e.question.cssClasses.fileSign,t),o.createElement("div",{className:e.question.cssClasses.imageWrapper},e.question.canPreviewImage(t)?o.createElement("img",{src:t.content,style:{height:e.question.imageHeight,width:e.question.imageWidth},alt:"File preview"}):e.question.cssClasses.defaultImage?o.createElement(s.SvgIcon,{iconName:e.question.cssClasses.defaultImageIconId,size:"auto",className:e.question.cssClasses.defaultImage}):null,t.name&&!e.question.isReadOnly?o.createElement("div",{className:e.question.cssClasses.removeFileButton,onClick:function(){return e.question.doRemoveFile(t)}},o.createElement("span",{className:e.question.cssClasses.removeFile},e.question.removeFileCaption),e.question.cssClasses.removeFileSvgIconId?o.createElement(s.SvgIcon,{title:e.question.removeFileCaption,iconName:e.question.cssClasses.removeFileSvgIconId,size:"auto",className:e.question.cssClasses.removeFileSvg}):null):null),e.renderFileSign(e.question.cssClasses.fileSignBottom,t)):null}));return o.createElement("div",{className:this.question.cssClasses.fileList||void 0},t)},t}(a.SurveyQuestionElementBase);l.ReactQuestionFactory.Instance.registerQuestion("file",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_html.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionHtml",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,t){this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.question.locHtml.onChanged=function(){e.setState({changed:e.state&&e.state.changed?e.state.changed+1:1})}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return o.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("html",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrix.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrix",(function(){return u})),n.d(t,"SurveyQuestionMatrixRow",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={rowsChanged:0},n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.question){var t=this;this.question.visibleRowsChangedCallback=function(){t.setState({rowsChanged:t.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,t=this.question.cssClasses,n=this.question.hasRows?o.createElement("td",null):null,r=[],i=0;i<this.question.visibleColumns.length;i++){var s=this.question.visibleColumns[i],a="column"+i,l=this.renderLocString(s.locText),u={};this.question.columnMinWidth&&(u.minWidth=this.question.columnMinWidth,u.width=this.question.columnMinWidth),r.push(o.createElement("th",{className:this.question.cssClasses.headerCell,style:u,key:a},this.wrapCell({column:s},l,"column-header")))}var p=[],d=this.question.visibleRows;for(i=0;i<d.length;i++){var h=d[i];a="row-"+h.name+"-"+i,p.push(o.createElement(c,{key:a,question:this.question,cssClasses:t,isDisplayMode:this.isDisplayMode,row:h,isFirst:0==i}))}var f=this.question.showHeader?o.createElement("thead",null,o.createElement("tr",null,n,r)):null;return o.createElement("div",{className:t.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",null,o.createElement("legend",{"aria-label":this.question.locTitle.renderedHtml}),o.createElement("table",{className:this.question.getTableCss()},f,o.createElement("tbody",null,p))))},t}(i.SurveyQuestionElementBase),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){this.row.value=e.target.value,this.setState({value:this.row.value})},t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.question.survey,o=null;return r&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText),n={};this.question.rowTitleWidth&&(n.minWidth=this.question.rowTitleWidth,n.width=this.question.rowTitleWidth),e=o.createElement("td",{style:n,className:this.question.cssClasses.rowTextCell},this.wrapCell({row:this.row},t,"row-header"))}var r=this.generateTds();return o.createElement("tr",{className:this.row.rowClasses||void 0},e,r)},t.prototype.generateTds=function(){for(var e=this,t=[],n=this.row,r=0;r<this.question.visibleColumns.length;r++){var i=null,s=this.question.visibleColumns[r],a="value"+r,l=n.value==s.value,u=this.question.getItemClass(n,s),c=this.question.inputId+"_"+n.name+"_"+r;if(this.question.hasCellText){var p=this.question.isInputReadOnly?null:function(t){return function(){return e.cellClick(n,t)}};i=o.createElement("td",{key:a,className:u,onClick:p?p(s):function(){}},this.renderLocString(this.question.getCellDisplayLocText(n.name,s)))}else i=o.createElement("td",{key:a,"data-responsive-title":s.locText.renderedHtml,className:this.question.cssClasses.cell},o.createElement("label",{className:u},o.createElement("input",{id:c,type:"radio",className:this.cssClasses.itemValue,name:n.fullName,value:s.value,disabled:this.isDisplayMode,checked:l,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":s.locText.renderedHtml,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),o.createElement("span",{style:this.question.isMobile?void 0:{display:"none"},className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(s.locText))));t.push(i)}return t},t.prototype.cellClick=function(e,t){e.value=t.value,this.setState({value:this.row.value})},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("matrix",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_matrixdropdown.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDropdown",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_matrixdropdownbase.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t}(i.SurveyQuestionMatrixDropdownBase);s.ReactQuestionFactory.Instance.registerQuestion("matrixdropdown",(function(e){return o.createElement(l,e)}))},"./src/react/reactquestion_matrixdropdownbase.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return m})),n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return b}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_checkbox.tsx"),l=n("./src/react/reactquestion_radiogroup.tsx"),u=n("./src/react/panel.tsx"),c=n("./src/react/components/action-bar/action-bar.tsx"),p=n("./src/react/components/matrix/row.tsx"),d=n("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx"),h=n("./src/react/reactquestion_comment.tsx"),f=n("./src/react/element-factory.tsx"),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),m=function(e){function t(t){var n=e.call(this,t)||this;return n.question.renderedTable,n.state=n.getState(),n}return g(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.visibleRowsChangedCallback=function(){t.updateStateOnCallback()},this.question.onRenderedTableResetCallback=function(){t.question.renderedTable.renderedRowsChangedCallback=function(){t.updateStateOnCallback()},t.updateStateOnCallback()},this.question.renderedTable.renderedRowsChangedCallback=function(){t.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.visibleRowsChangedCallback=function(){},this.question.onRenderedTableResetCallback=function(){},this.question.renderedTable.renderedRowsChangedCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this,t=this.renderHeader(),n=this.renderFooter(),r=this.renderRows(),i=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return o.createElement("div",{style:i,className:this.question.cssClasses.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("table",{className:this.question.getTableCss()},t,r,n))},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var t=[],n=e.headerRow.cells,r=0;r<n.length;r++){var i=n[r],s="column"+r,a={};i.width&&(a.width=i.width),i.minWidth&&(a.minWidth=i.minWidth);var l=this.renderCellContent(i,"column-header",{}),u=i.hasTitle?o.createElement("th",{className:i.className,key:s,style:a}," ",l," "):o.createElement("td",{className:i.className,key:s,style:a});t.push(u)}return o.createElement("thead",null,o.createElement("tr",null,t))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;if(!e.showFooter)return null;var t=this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer");return o.createElement("tfoot",null,t)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,t=[],n=this.question.renderedTable.rows,r=0;r<n.length;r++)t.push(this.renderRow(n[r].id,n[r],e));return o.createElement("tbody",null,t)},t.prototype.renderRow=function(e,t,n,r){for(var i=[],s=t.cells,a=0;a<s.length;a++)i.push(this.renderCell(s[a],a,n,r));var l="row"+e;return o.createElement(o.Fragment,{key:l},o.createElement(p.MatrixRow,{model:t,parentMatrix:this.question},i))},t.prototype.renderCell=function(e,t,n,r){var i="cell"+t;if(e.hasQuestion)return o.createElement(b,{key:i,cssClasses:n,cell:e,creator:this.creator,reason:r});var s=r;s||(s=e.hasTitle?"row-header":"");var a=this.renderCellContent(e,s,n),l=null;return(e.width||e.minWidth)&&(l={},e.width&&(l.width=e.width),e.minWidth&&(l.minWidth=e.minWidth)),o.createElement("td",{className:e.className,key:i,style:l,colSpan:e.colSpans,"data-responsive-title":e.headers,title:e.getTitle()},a)},t.prototype.renderCellContent=function(e,t,n){var r=null,i=null;if((e.width||e.minWidth)&&(i={},e.width&&(i.width=e.width),e.minWidth&&(i.minWidth=e.minWidth)),e.hasTitle){t="row-header";var s=this.renderLocString(e.locTitle),a=e.column?o.createElement(v,{column:e.column,question:this.question}):null;r=o.createElement(o.Fragment,null,s,a)}if(e.isDragHandlerCell&&(r=o.createElement(o.Fragment,null,o.createElement(d.SurveyQuestionMatrixDynamicDragDropIcon,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(r=f.ReactElementFactory.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:n,cell:e,model:e.item.getData()})),e.hasPanel&&(r=o.createElement(u.SurveyPanel,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:n,isDisplayMode:this.isDisplayMode,creator:this.creator})),!r)return null;var l=o.createElement(o.Fragment,null,r);return this.wrapCell(e,l,t)},t}(i.SurveyQuestionElementBase),y=function(e){function t(t){return e.call(this,t)||this}return g(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement(c.SurveyActionBar,{model:this.model,handleClick:!1})},t}(i.ReactSurveyElement);f.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-actions-cell",(function(e){return o.createElement(y,e)}));var v=function(e){function t(t){return e.call(this,t)||this}return g(t,e),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.column},t.prototype.renderElement=function(){return this.column.isRenderedRequired?o.createElement(o.Fragment,null,o.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(i.ReactSurveyElement),b=function(e){function t(t){return e.call(this,t)||this}return g(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return e.prototype.getQuestion.call(this)||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&"r"!==e.getAttribute("data-rendered")){e.setAttribute("data-rendered","r");var t={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,t)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var t=e.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(t||(t={}),this.cell.width&&(t.width=this.cell.width),this.cell.minWidth&&(t.minWidth=this.cell.minWidth)),t},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderQuestion=function(){return this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():s.SurveyQuestion.renderQuestionBody(this.creator,this.question)},t.prototype.renderOtherComment=function(){var e=this.cell.question,t=e.cssClasses||{};return o.createElement(h.SurveyQuestionOtherValueItem,{question:e,cssClasses:t,otherCss:t.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(a.SurveyQuestionCheckboxItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},t.prototype.renderCellRadiogroupButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(l.SurveyQuestionRadioItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},t}(s.SurveyQuestionAndErrorsCell)},"./src/react/reactquestion_matrixdynamic.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMatrixDynamic",(function(){return c})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return p}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/reactquestion_matrixdropdownbase.tsx"),a=n("./src/react/element-factory.tsx"),l=n("./src/react/reactquestion_element.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(e);return o.createElement("div",null,this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderNoRowsContent=function(e){var t=this.renderLocString(this.matrix.locEmptyRowsText),n=o.createElement("div",{className:e.emptyRowsText},t),r=this.renderAddRowButton(e,!0);return o.createElement("div",{className:e.emptyRowsSection},n,r)},t.prototype.renderAddRowButton=function(e,t){return void 0===t&&(t=!1),a.ReactElementFactory.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:t})},t}(s.SurveyQuestionMatrixDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("matrixdynamic",(function(e){return o.createElement(c,e)}));var p=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.renderLocString(this.matrix.locAddRowText),t=o.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,o.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?t:o.createElement("div",{className:this.props.cssClasses.footer},t)},t}(l.ReactSurveyElement);a.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_multipletext.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionMultipleText",(function(){return c})),n.d(t,"SurveyMultipleTextItem",(function(){return p})),n.d(t,"SurveyMultipleTextItemEditor",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/components/title/title-content.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,t=this.question.getRows(),n=[],r=0;r<t.length;r++)n.push(this.renderRow(r,t[r],e));return o.createElement("table",{className:e.root},o.createElement("tbody",null,n))},t.prototype.renderRow=function(e,t,n){for(var r="item"+e,i=[],s=0;s<t.length;s++){var a=t[s];i.push(o.createElement("td",{key:"item"+s,className:this.question.cssClasses.cell},o.createElement(p,{question:this.question,item:a,creator:this.creator,cssClasses:n})))}return o.createElement("tr",{key:r,className:n.row},i)},t}(i.SurveyQuestionElementBase),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.item,t=this.cssClasses;return o.createElement("label",{className:this.question.getItemLabelCss(e)},o.createElement("span",{className:t.itemTitle},o.createElement(l.TitleContent,{element:e.editor,cssClasses:e.editor.cssClasses})),o.createElement(d,{cssClasses:t,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}),this.renderItemTooltipError(e,t))},t.prototype.renderItemTooltipError=function(e,t){return this.item.editor.isErrorsModeTooltip?o.createElement(s.SurveyElementErrors,{element:e.editor,cssClasses:t,creator:this.creator,location:"tooltip",id:e.editor.id+"_errors"}):null},t}(i.ReactSurveyElement),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderElement=function(){return o.createElement("div",{className:this.itemCss},this.renderContent())},t}(s.SurveyQuestionAndErrorsWrapped);a.ReactQuestionFactory.Instance.registerQuestion("multipletext",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_paneldynamic.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionPanelDynamic",(function(){return f})),n.d(t,"SurveyQuestionPanelDynamicItem",(function(){return g}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/panel.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/components/action-bar/action-bar.tsx"),u=n("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx"),c=n("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx"),p=n("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx"),d=n("./src/react/element-factory.tsx"),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(t){return e.call(this,t)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var t=this;this.question.panelCountChangedCallback=function(){t.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){t.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){t.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},t.prototype.renderElement=function(){var e=[];if(this.question.isRenderModeList)for(var t=0;t<this.question.panels.length;t++){var n=this.question.panels[t];e.push(o.createElement(g,{key:n.id,element:n,question:this.question,index:t,cssClasses:this.question.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.creator}))}else null!=this.question.currentPanel&&(n=this.question.currentPanel,e.push(o.createElement(g,{key:this.question.currentIndex,element:n,question:this.question,index:this.question.currentIndex,cssClasses:this.question.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.creator})));var r=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,i=this.question.isProgressTopShowing?this.renderNavigator():null,s=this.question.isProgressBottomShowing?this.renderNavigator():null,a=this.renderNavigatorV2(),l=this.renderPlaceholder();return o.createElement("div",{className:this.question.cssClasses.root},l,i,e,s,r,a)},t.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var e=this.question.isRangeShowing?this.renderRange():null,t=this.rendrerPrevButton(),n=this.rendrerNextButton(),r=this.renderAddRowButton(),i=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return o.createElement("div",{className:i},o.createElement("div",{style:{clear:"both"}},o.createElement("div",{className:this.question.cssClasses.progressContainer},t,e,n),r,this.renderProgressText()))},t.prototype.renderProgressText=function(){return o.createElement(p.SurveyQuestionPanelDynamicProgressText,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return o.createElement(c.SurveyQuestionPanelDynamicPrevButton,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return o.createElement(u.SurveyQuestionPanelDynamicNextButton,{data:{question:this.question}})},t.prototype.renderRange=function(){return o.createElement("div",{className:this.question.cssClasses.progress},o.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return d.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},t.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var e=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return o.createElement("div",{className:this.question.cssClasses.footer},o.createElement("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?o.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},o.createElement(l.SurveyActionBar,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?o.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},o.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(i.SurveyQuestionElementBase),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(){return this.question?this.question.survey:null},t.prototype.getCss=function(){var e=this.getSurvey();return e?e.getCss():{}},t.prototype.render=function(){var t=e.prototype.render.call(this),n=this.renderButton(),r=this.question.showSeparator(this.index)?o.createElement("hr",{className:this.question.cssClasses.separator}):null;return o.createElement(o.Fragment,null,o.createElement("div",{className:this.question.getPanelWrapperCss()},t,n),r)},t.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:d.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(s.SurveyPanel);a.ReactQuestionFactory.Instance.registerQuestion("paneldynamic",(function(e){return o.createElement(f,e)}))},"./src/react/reactquestion_radiogroup.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRadiogroup",(function(){return p})),n.d(t,"SurveyQuestionRadioItem",(function(){return d}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_comment.tsx"),a=n("./src/react/reactquestion_factory.tsx"),l=n("./src/react/reactsurveymodel.tsx"),u=n("./src/react/element-factory.tsx"),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=null;return this.question.showClearButtonInContent&&(n=o.createElement("div",null,o.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue()},value:this.question.clearButtonCaption}))),o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),role:"presentation",ref:function(t){return e.setControl(t)}},this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther(t):null,n)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem("item_f"+n,t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this,n=this.getStateValue();return this.question.columns.map((function(r,i){var s=r.map((function(r,o){return t.renderItem("item"+i+o,r,n,e,""+i+o)}));return o.createElement("div",{key:"column"+i,className:t.question.getColumnClass(),role:"presentation"},s)}))},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=this.getStateValue(),o=0;o<t.length;o++){var i=t[o],s=this.renderItem("item"+o,i,r,e,""+o);n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return o.createElement("div",{className:this.question.getCommentAreaCss(!0)},o.createElement(s.SurveyQuestionOtherValueItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:r,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isChecked:n===t.value}),s=this.question.survey,a=null;return s&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!(!e.prototype.shouldComponentUpdate.call(this,t,n)||!this.question||this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.handleOnChange=function(e){this.question.clickItemHandler(this.item)},t.prototype.canRender=function(){return!!this.question&&!!this.item},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),t=this.question.getLabelClass(this.item),n=this.question.getControlLabelClass(this.item),r=this.hideCaption?null:o.createElement("span",{className:n},this.renderLocString(this.item.locText,this.textStyle));return o.createElement("div",{className:e,role:"presentation"},o.createElement("label",{className:t,"aria-label":this.question.getAriaItemLabel(this.item)},o.createElement("input",{"aria-describedby":this.question.ariaDescribedBy,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),onChange:this.handleOnChange}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,r))},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-radiogroup-item",(function(e){return o.createElement(d,e)})),a.ReactQuestionFactory.Instance.registerQuestion("radiogroup",(function(e){return o.createElement(p,e)}))},"./src/react/reactquestion_ranking.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRanking",(function(){return u})),n.d(t,"SurveyQuestionRankingItem",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;return o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},this.getItems())},t.prototype.getItems=function(){for(var e=this,t=[],n=this.question.rankingChoices,r=function(r){var i=n[r];t.push(o.renderItem(i,r,(function(t){e.question.handleKeydown.call(e.question,t,i)}),(function(t){t.persist(),e.question.handlePointerDown.call(e.question,t,i,t.currentTarget)}),o.question.cssClasses,o.question.getItemClass(i),o.question))},o=this,i=0;i<n.length;i++)r(i);return t},t.prototype.renderItem=function(e,t,n,r,i,s,l){var u=e.value+"-"+t+"-item",p=this.renderLocString(e.locText),d=t,h=this.question.getNumberByIndex(t),f=this.question.getItemTabIndex(e),g=o.createElement(c,{key:u,text:p,index:d,indexText:h,itemTabIndex:f,handleKeydown:n,handlePointerDown:r,cssClasses:i,itemClass:s,question:l}),m=this.question.survey,y=null;return m&&(y=a.ReactSurveyElementsWrapper.wrapItemValue(m,g,this.question,e)),null!=y?y:g},t}(i.SurveyQuestionElementBase),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,"data-sv-drop-target-ranking-item":this.index},o.createElement("div",{tabIndex:-1,style:{outline:"none"}},o.createElement("div",{className:this.cssClasses.itemGhostNode}),o.createElement("div",{className:this.cssClasses.itemContent},o.createElement("div",{className:this.cssClasses.itemIconContainer},o.createElement("svg",{width:"10",height:"16",viewBox:"0 0 10 16",className:this.question.getIconHoverCss(),xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z"})),o.createElement("svg",{width:"10",height:"24",viewBox:"0 0 10 24",className:this.question.getIconFocusCss(),xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M10 5L5 0L0 5H4V9H6V5H10Z"}),o.createElement("path",{d:"M6 19V15H4V19H0L5 24L10 19H6Z"}))),o.createElement("div",{className:this.question.getItemIndexClasses()},this.indexText),o.createElement("div",{className:this.cssClasses.controlLabel},this.text))))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("ranking",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_rating.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionRating",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnClick=function(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})},t.prototype.renderItem=function(e,t){return a.ReactElementFactory.Instance.createElement(this.question.itemComponentName,{question:this.question,item:e,index:t,key:"value"+t,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,r=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return o.createElement("div",{className:this.question.ratingRootCss,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",{role:"radiogroup"},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?o.createElement("span",{className:t.minText},n):null,this.question.renderedRateItems.map((function(t,n){return e.renderItem(t,n)})),this.question.hasMaxLabel?o.createElement("span",{className:t.maxText},r):null))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("rating",(function(e){return o.createElement(u,e)}))},"./src/react/reactquestion_tagbox.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionTagbox",(function(){return c}));var r,o=n("react"),i=n("./src/react/reactquestion_factory.tsx"),s=n("./src/react/dropdown-base.tsx"),a=n("./src/react/tagbox-item.tsx"),l=n("./src/react/tagbox-filter.tsx"),u=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderItem=function(e,t){return o.createElement(a.SurveyQuestionTagboxItem,{key:e,question:this.question,item:t})},t.prototype.renderInput=function(e){var t=this,n=e,r=this.question.selectedChoices.map((function(e,n){return t.renderItem("item"+n,e)}));return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.inputReadOnly?void 0:0,onClick:this.click,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},o.createElement("div",{className:this.question.cssClasses.controlValue},r,o.createElement(l.TagboxFilterString,{model:n,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},n,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("tagbox",(function(e){return o.createElement(c,e)}))},"./src/react/reactquestion_text.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionText",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/character-counter.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderInput=function(){var e=this,t=this.question.getControlClass(),n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return o.createElement("div",null,this.question.value);var r=this.question.getMaxLength()?o.createElement(a.CharacterCounterComponent,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return o.createElement(o.Fragment,null,o.createElement("input",{id:this.question.inputId,disabled:this.isDisplayMode,className:t,type:this.question.inputType,ref:function(t){return e.setControl(t)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:n,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:this.question.onBlur,onFocus:this.question.onFocus,onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(t){return e.question.onCompositionUpdate(t.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-describedby":this.question.a11y_input_ariaDescribedBy}),r)},t.prototype.renderElement=function(){return this.question.dataListId?o.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},t.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(0==e.length)return null;for(var t=[],n=0;n<e.length;n++)t.push(o.createElement("option",{key:"item"+n,value:e[n]}));return o.createElement("datalist",{id:this.question.dataListId},t)},t}(i.SurveyQuestionUncontrolledElement);s.ReactQuestionFactory.Instance.registerQuestion("text",(function(e){return o.createElement(u,e)}))},"./src/react/reactsurveymodel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"ReactSurveyElementsWrapper",(function(){return i}));var r=n("survey-core"),o=n("./src/react/element-factory.tsx"),i=function(){function e(){}return e.wrapRow=function(e,t,n){var r=e.getRowWrapperComponentName(n),i=e.getRowWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,row:n,componentData:i})},e.wrapElement=function(e,t,n){var r=e.getElementWrapperComponentName(n),i=e.getElementWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,question:n,componentData:i})},e.wrapQuestionContent=function(e,t,n){var r=e.getQuestionContentWrapperComponentName(n),i=e.getElementWrapperComponentData(n);return o.ReactElementFactory.Instance.createElement(r,{element:t,question:n,componentData:i})},e.wrapItemValue=function(e,t,n,r){var i=e.getItemValueWrapperComponentName(r,n),s=e.getItemValueWrapperComponentData(r,n);return o.ReactElementFactory.Instance.createElement(i,{key:null==t?void 0:t.key,element:t,question:n,item:r,componentData:s})},e.wrapMatrixCell=function(e,t,n,r){void 0===r&&(r="cell");var i=e.getElementWrapperComponentName(n,r),s=e.getElementWrapperComponentData(n,r);return o.ReactElementFactory.Instance.createElement(i,{element:t,cell:n,componentData:s})},e}();r.SurveyModel.platform="react"},"./src/react/reacttimerpanel.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyTimerPanel",(function(){return u}));var r,o=n("react"),i=n("./src/react/components/svg-icon/svg-icon.tsx"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.circleLength=440,n}return l(t,e),t.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.timerModel.isRunning)return null;var e=o.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var t={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},n=this.timerModel.showProgress?o.createElement(i.SvgIcon,{className:this.timerModel.getProgressCss(),style:t,iconName:"icon-timercircle",size:"auto"}):null;e=o.createElement("div",{className:this.timerModel.rootCss},n,o.createElement("div",{className:this.timerModel.textContainerCss},o.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?o.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-timerpanel",(function(e){return o.createElement(u,e)}))},"./src/react/row.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyRow",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/element-factory.tsx"),a=n("./src/react/reactsurveymodel.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=o.createRef(),n.recalculateCss(),n}return l(t,e),t.prototype.recalculateCss=function(){this.row.visibleElements.map((function(e){return e.cssClasses}))},t.prototype.getStateElement=function(){return this.row},Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator&&this.row.visible},t.prototype.renderElementContent=function(){var e=this,t=this.row.visibleElements.map((function(t,n){var r=e.createElement(t,n),i=t.cssClassesValue;return o.createElement("div",{className:i.questionWrapper,style:t.rootStyle,"data-key":r.key,key:r.key,onFocus:function(){var e=t;e&&!e.isDisposed&&e.isQuestion&&e.focusIn()}},e.row.isNeedRender?r:s.ReactElementFactory.Instance.createElement(t.skeletonComponentName,{element:t,css:e.css}))}));return o.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},t)},t.prototype.renderElement=function(){var e=this.survey,t=this.renderElementContent();return a.ReactSurveyElementsWrapper.wrapRow(e,t,this.row)||t},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(n&&!this.row.isNeedRender){var r=n;setTimeout((function(){t.row.startLazyRendering(r)}),10)}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.row!==this.row&&(t.row.isNeedRender=this.row.isNeedRender,this.stopLazyRendering()),this.recalculateCss(),!0)},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.stopLazyRendering()},t.prototype.createElement=function(e,t){var n=t?"-"+t:0,r=e.getType();return s.ReactElementFactory.Instance.isElementRegistered(r)||(r="question"),s.ReactElementFactory.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(i.SurveyElementBase)},"./src/react/signaturepad.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionSignaturePad",(function(){return u}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/components/svg-icon/svg-icon.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.renderCleanButton();return o.createElement("div",{className:t.root,ref:function(t){return e.setControl(t)},style:{height:this.question.signatureHeight,width:this.question.signatureWidth}},o.createElement("div",{className:t.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.question.placeHolderText),o.createElement("div",null,o.createElement("canvas",{tabIndex:0})),n)},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var t=this.question.cssClasses;return o.createElement("div",{className:t.controls},o.createElement("button",{type:"button",className:t.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue()}},this.question.cssClasses.clearButtonIconId?o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):o.createElement("span",null,"✖")))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("signaturepad",(function(e){return o.createElement(u,e)}))},"./src/react/string-editor.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyLocStringEditor",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onInput=function(e){n.locStr.text=e.target.innerText},n.onClick=function(e){e.preventDefault(),e.stopPropagation()},n.state={changed:0},n}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.editableRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/string-viewer.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyLocStringViewer",(function(){return u}));var r,o=n("react"),i=n.n(o),s=n("survey-core"),a=n("./src/react/element-factory.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){var n=e.call(this,t)||this;return n.onChangedHandler=function(e,t){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=i.a.createRef(),n}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},t.prototype.componentDidUpdate=function(e,t){e.locStr&&e.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},t.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var e=this.renderString();return this.isRendering=!1,e},t.prototype.renderString=function(){if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{ref:this.rootRef,className:"sv-string-viewer",style:this.style,dangerouslySetInnerHTML:e})}return i.a.createElement("span",{ref:this.rootRef,className:"sv-string-viewer",style:this.style},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.defaultRenderer,(function(e){return i.a.createElement(u,e)}))},"./src/react/tagbox-filter.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"TagboxFilterString",(function(){return u}));var r,o=n("react"),i=n("survey-core"),s=n("./src/react/reactquestion_factory.tsx"),a=n("./src/react/reactquestion_element.tsx"),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.model.inputStringRendered;i.Helpers.isTwoValueEquals(t,e.value)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var t=i.settings.environment.root;e.target===t.activeElement&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.model.onBlur(e)},t.prototype.onFocus=function(e){this.model.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?o.createElement("div",{className:this.question.cssClasses.hintPrefix},o.createElement("span",null,this.model.hintStringPrefix)):null,o.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?o.createElement("div",{className:this.question.cssClasses.hintSuffix},o.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),o.createElement("span",null,this.model.hintStringSuffix)):null,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(t){return e.inputElement=t},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:!this.model.searchEnabled||void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-label":this.question.placeholder,"aria-expanded":null===this.question.ariaExpanded?void 0:"true"===this.question.ariaExpanded,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(t){e.keyhandler(t)},onChange:function(t){e.onChange(t)},onBlur:function(t){e.onBlur(t)},onFocus:function(t){e.onFocus(t)}})))},t}(a.SurveyElementBase);s.ReactQuestionFactory.Instance.registerQuestion("sv-tagbox-filter",(function(e){return o.createElement(u,e)}))},"./src/react/tagbox-item.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"SurveyQuestionTagboxItem",(function(){return l}));var r,o=n("react"),i=n("./src/react/reactquestion_element.tsx"),s=n("./src/react/components/svg-icon/svg-icon.tsx"),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this,t=this.renderLocString(this.item.locText);return o.createElement("div",{className:"sv-tagbox__item"},o.createElement("div",{className:"sv-tagbox__item-text"},t),o.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(t){e.question.dropdownListModel.deselectItem(e.item.value),t.stopPropagation()}},o.createElement(s.SvgIcon,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(i.ReactSurveyElement)},"./src/settings.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"settings",(function(){return o}));var r=globalThis.document,o={enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1},expressionDisableConversionChar:"#",useLocalTimeZone:!0,get commentPrefix(){return o.commentSuffix},set commentPrefix(e){o.commentSuffix=e},commentSuffix:"-Comment",webserviceEncodeParameters:!0,useCachingForChoicesRestful:!0,get useCachingForChoicesRestfull(){return o.useCachingForChoicesRestful},set useCachingForChoicesRestfull(e){o.useCachingForChoicesRestful=e},surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey",itemValueSeparator:"|",itemValueAlwaysSerializeAsObject:!1,itemValueAlwaysSerializeText:!1,defaultLocaleName:"default",storeDuplicatedTranslations:!1,matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,matrixMaxRowCountInCondition:1,panelDynamicMaxPanelCountInCondition:1,matrixRenderRemoveAsIcon:!0,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,disableOnGettingChoicesFromWeb:!1,serializeLocalizableStringAsObject:!1,allowShowEmptyTitleInDesignMode:!0,allowShowEmptyDescriptionInDesignMode:!0,executeCompleteTriggerOnValueChanged:!1,changeNavigationButtonsOnCompleteTrigger:!0,executeSkipTriggerOnValueChanged:!0,readOnlyCommentRenderMode:"textarea",readOnlyTextRenderMode:"input",confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"100%",maximumConditionRunCountOnValueChanged:10,setQuestionVisibleIndexForHiddenTitle:!1,setQuestionVisibleIndexForHiddenNumber:!1,lazyRowsRendering:!1,lazyRowsRenderingStartRow:3,notifications:{lifetime:2e3},showItemsInOrder:"default",noneItemValue:"none",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:r?{root:r,_rootElement:r.body,get rootElement(){var e;return null!==(e=this._rootElement)&&void 0!==e?e:r.body},set rootElement(e){this._rootElement=e},_popupMountContainer:r.body,get popupMountContainer(){var e;return null!==(e=this._popupMountContainer)&&void 0!==e?e:r.body},set popupMountContainer(e){this._popupMountContainer=e},svgMountContainer:r.head,stylesSheetsMountContainer:r.head}:void 0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},matrix:{columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"}}},"./src/utils/responsivity-manager.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"ResponsivityManager",(function(){return s})),n.d(t,"VerticalResponsivityManager",(function(){return a}));var r,o=n("./src/utils/utils.ts"),i=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){function e(e,t,n,r){var o=this;void 0===r&&(r=null),this.container=e,this.model=t,this.itemsSelector=n,this.dotsItemSize=r,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=window.getComputedStyle.bind(window),this.model.updateCallback=function(e){e?o.isInitialized=!1:setTimeout((function(){o.process()}),1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return o.process()})),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;this.container.querySelectorAll(this.itemsSelector).forEach((function(n,r){var o=t[r];e.calcActionDimensions(o,n)}))},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(o.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||(this.model.setActionsMode("large"),this.calcItemsSizes(),this.isInitialized=!0);var t=this.dotsItemSize;if(!this.dotsItemSize){var n=null===(e=this.container)||void 0===e?void 0:e.querySelector(".sv-dots");t=n&&this.calcItemSize(n)||this.dotsSizeConst}this.model.fit(this.getAvailableSpace(),t)}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),a=function(e){function t(t,n,r,o,i){void 0===i&&(i=40);var s=e.call(this,t,n,r,o)||this;return s.minDimensionConst=i,s.recalcMinDimensionConst=!1,s}return i(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(s)},"./src/utils/utils.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"unwrap",(function(){return v})),n.d(t,"getSize",(function(){return b})),n.d(t,"doKey2ClickBlur",(function(){return w})),n.d(t,"doKey2ClickUp",(function(){return x})),n.d(t,"doKey2ClickDown",(function(){return P})),n.d(t,"sanitizeEditableContent",(function(){return R})),n.d(t,"Logger",(function(){return j})),n.d(t,"mergeValues",(function(){return D})),n.d(t,"getElementWidth",(function(){return E})),n.d(t,"isContainerVisible",(function(){return T})),n.d(t,"classesToSelector",(function(){return O})),n.d(t,"compareVersions",(function(){return o})),n.d(t,"confirmAction",(function(){return i})),n.d(t,"detectIEOrEdge",(function(){return a})),n.d(t,"detectIEBrowser",(function(){return s})),n.d(t,"loadFileFromBase64",(function(){return l})),n.d(t,"isMobile",(function(){return u})),n.d(t,"isShadowDOM",(function(){return c})),n.d(t,"getElement",(function(){return p})),n.d(t,"isElementVisible",(function(){return d})),n.d(t,"findScrollableParent",(function(){return h})),n.d(t,"scrollElementByChildId",(function(){return f})),n.d(t,"navigateToUrl",(function(){return g})),n.d(t,"createSvg",(function(){return y})),n.d(t,"getIconNameFromProxy",(function(){return m})),n.d(t,"increaseHeightByContent",(function(){return _})),n.d(t,"getOriginalEvent",(function(){return S})),n.d(t,"preventDefaults",(function(){return V})),n.d(t,"findParentByClassNames",(function(){return I}));var r=n("./src/settings.ts");function o(e,t){for(var n=/(\.0+)+$/,r=e.replace(n,"").split("."),o=t.replace(n,"").split("."),i=Math.min(r.length,o.length),s=0;s<i;s++){var a=parseInt(r[s],10)-parseInt(o[s],10);if(a)return a}return r.length-o.length}function i(e){return r.settings&&r.settings.confirmActionFunc?r.settings.confirmActionFunc(e):confirm(e)}function s(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/");return t>-1||n>-1}function a(){if("undefined"==typeof window)return!1;if(void 0===a.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");a.isIEOrEdge=r>0||n>0||t>0}return a.isIEOrEdge}function l(e,t){try{for(var n=atob(e.split(",")[1]),r=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(n.length),i=new Uint8Array(o),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);var a=new Blob([o],{type:r});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function u(){return"undefined"!=typeof window&&void 0!==window.orientation}var c=function(e){return!!e&&!(!("host"in e)||!e.host)},p=function(e){var t=r.settings.environment.root;return"string"==typeof e?t.getElementById(e):e};function d(e,t){if(void 0===t&&(t=0),void 0===r.settings.environment)return!1;var n=r.settings.environment.root,o=c(n)?n.host.clientHeight:n.documentElement.clientHeight,i=e.getBoundingClientRect(),s=-t,a=Math.max(o,window.innerHeight)+t,l=i.top,u=i.bottom;return Math.max(s,l)<=Math.min(a,u)}function h(e){var t=r.settings.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:h(e.parentElement):c(t)?t.host:t.documentElement}function f(e){var t=r.settings.environment;if(t){var n=t.root.getElementById(e);if(n){var o=h(n);o&&o.dispatchEvent(new CustomEvent("scroll"))}}}function g(e){e&&"undefined"!=typeof window&&window.location&&(window.location.href=e)}function m(e){return e&&r.settings.customIcons[e]||e}function y(e,t,n,r,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||n||16)+"px");var s=o.childNodes[0],a=m(r);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=o.getElementsByTagName("title")[0];i?(l||(l=document.createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(l)),l.textContent=i):l&&o.removeChild(l)}}function v(e){return"function"!=typeof e?e:e()}function b(e){if("number"==typeof e)return e+"px";if(e&&"string"==typeof e&&e.length>0){var t=e[e.length-1];if(t>="0"&&t<="9"||"."==t)try{return parseFloat(e)+"px"}catch(e){}}return e}var C="sv-focused--by-key";function w(e){var t=e.target;t&&t.classList&&t.classList.remove(C)}function x(e,t){if(!e.target||"true"!==e.target.contentEditable){var n=e.target;if(n){var r=e.which||e.keyCode;if(9!==r){if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===r||32===r?n.click&&n.click():t&&!t.processEsc||27!==r||n.blur&&n.blur()}else n.classList&&!n.classList.contains(C)&&n.classList.add(C)}}}function P(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var n=e.which||e.keyCode,r=[13,32];t.processEsc&&r.push(27),-1!==r.indexOf(n)&&e.preventDefault()}}function _(e,t){if(e){t||(t=function(e){return window.getComputedStyle(e)});var n=t(e);e.style.height="auto",e.style.height=e.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+"px"}}function S(e){return e.originalEvent||e}function V(e){e.preventDefault(),e.stopPropagation()}function O(e){return e.replace(/\s*?([\w-]+)\s*?/g,".$1")}function E(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function T(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function I(e,t){if(e)return t.every((function(t){return!t||e.classList.contains(t)}))?e:I(e.parentElement,t)}function R(e){if(window.getSelection&&document.createRange&&e.childNodes.length>0){var t=document.getSelection(),n=t.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(e.lastChild),t.removeAllRanges(),t.addRange(n);var r=t.toString().replace(/\n/g,"").length;e.innerText=e.innerText.replace(/\n/g,""),(n=document.createRange()).setStart(e.childNodes[0],e.innerText.length-r),n.collapse(!0),t.removeAllRanges(),t.addRange(n)}}function D(e,t){if(t&&e&&"object"==typeof t)for(var n in e){var r=e[n];!Array.isArray(r)&&r&&"object"==typeof r?(t[n]&&"object"==typeof t[n]||(t[n]={}),D(r,t[n])):t[n]=r}}var j=function(){function e(){this._result=""}return e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),e}()},react:function(t,n){t.exports=e},"react-dom":function(e,n){e.exports=t},"survey-core":function(e,t){e.exports=n}})},e.exports=r(n(294),n(935),n(535))},484:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAArSURBVHgB7cuhEQAwDMNAtUN4//m8RMtygcE5PxMQxAKnh6Q3mWzXd4mAD4cJBAQCqfbUAAAAAElFTkSuQmCC"},154:e=>{"use strict";e.exports="data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%231AB394;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E"},163:e=>{"use strict";e.exports="data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 10 10%27 style=%27enable-background:new 0 0 10 10;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%272,2 0,4 5,9 10,4 8,2 5,5 %27/%3E%3C/svg%3E%0A"},860:e=>{"use strict";e.exports="data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 20 20%27 style=%27enable-background:new 0 0 20 20;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cpolygon class=%27st0%27 points=%2719,6 17,4 10,11 3,4 1,6 10,15 %27/%3E%3C/svg%3E%0A"},937:e=>{"use strict";e.exports="data:image/svg+xml,%3C%3Fxml version=%271.0%27 encoding=%27utf-8%27%3F%3E%3C%21-- Generator: Adobe Illustrator 23.0.6, SVG Export Plug-In . SVG Version: 6.00 Build 0%29 --%3E%3Csvg version=%271.1%27 id=%27Layer_1%27 xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 x=%270px%27 y=%270px%27 viewBox=%270 0 72 72%27 style=%27enable-background:new 0 0 72 72;%27 xml:space=%27preserve%27%3E%3Cstyle type=%27text/css%27%3E .st0%7Bfill:%239A9A9A;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class=%27st0%27 d=%27M11.9,72c-0.6-0.1-1.2-0.3-1.8-0.4C4.2,70.1,0,64.7,0,58.6c0-15.1,0-30.1,0-45.2C0,6,6,0,13.4,0 c12,0,24,0,36,0c2.4,0,4.4,1.7,4.6,4c0.2,2.4-1.3,4.4-3.6,4.9C50,9,49.7,9,49.4,9C37.6,9,25.8,9,14,9c-1.5,0-2.8,0.4-3.9,1.5 c-0.8,0.9-1.2,2-1.2,3.2c0,8.2,0,16.4,0,24.6C9,45,9,51.6,9,58.2c0,2.9,1.9,4.8,4.8,4.8c14.9,0,29.7,0,44.6,0c2.6,0,4.6-2,4.6-4.6 c0-5.9,0-11.8,0-17.7c0-2.4,1.6-4.3,3.9-4.6c2.3-0.3,4.3,1,5,3.4c0,0.1,0.1,0.2,0.1,0.2c0,6.8,0,13.6,0,20.4c0,0.1-0.1,0.3-0.1,0.4 c-0.8,5.4-4.7,9.8-10.1,11.2c-0.6,0.1-1.2,0.3-1.8,0.4C44,72,28,72,11.9,72z%27/%3E%3Cpath class=%27st0%27 d=%27M35.9,38.8c0.4-0.4,0.5-0.7,0.7-0.9c8.4-8.4,16.8-16.8,25.2-25.2c1.9-1.9,4.5-2,6.3-0.4 c1.9,1.6,2.1,4.6,0.4,6.4c-0.2,0.2-0.3,0.3-0.5,0.5c-9.5,9.5-19.1,19.1-28.6,28.6c-2.2,2.2-4.8,2.2-7,0 c-5.1-5.1-10.2-10.2-15.4-15.4c-1.3-1.3-1.7-2.8-1.2-4.5c0.5-1.7,1.6-2.8,3.4-3.1c1.6-0.4,3.1,0.1,4.2,1.3c4,4,7.9,7.9,11.9,11.9 C35.6,38.2,35.7,38.5,35.9,38.8z%27/%3E%3C/g%3E%3C/svg%3E%0A"},704:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo="},344:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg=="},61:(e,t,n)=>{var r=n(698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new E(r||[]);return s(i,"_invoke",{value:_(e,n,a)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f={};function g(){}function m(){}function y(){}var v={};p(v,l,(function(){return this}));var b=Object.getPrototypeOf,C=b&&b(b(T([])));C&&C!==n&&i.call(C,l)&&(v=C);var w=y.prototype=g.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(o,s,a,l){var u=h(e[o],e,s);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==r(p)&&i.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,l)}))}l(u.arg)}var o;s(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function _(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=S(s,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=h(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=h(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return m.prototype=y,s(w,"constructor",{value:y,configurable:!0}),s(y,"constructor",{value:m,configurable:!0}),m.displayName=p(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,p(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(P.prototype),p(P.prototype,u,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new P(d(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},x(w),p(w,c,"Generator"),p(w,l,(function(){return this})),p(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return s.type="throw",s.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},687:(e,t,n)=>{var r=n(61)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href,n.nc=void 0,(()=>{"use strict";var e=n(294),t=n(745);function r(e,t,n,r,o,i,s){try{var a=e[i](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,l,"next",e)}function l(e){r(s,o,i,a,l,"throw",e)}a(void 0)}))}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var a=n(687),l=n.n(a),u=n(535),c=n(352),p=n(379),d=n.n(p),h=n(795),f=n.n(h),g=n(569),m=n.n(g),y=n(565),v=n.n(y),b=n(216),C=n.n(b),w=n(589),x=n.n(w),P=n(626),_={};_.styleTagTransform=x(),_.setAttributes=v(),_.insert=m().bind(null,"head"),_.domAPI=f(),_.insertStyleElement=C(),d()(P.Z,_),P.Z&&P.Z.locals&&P.Z.locals;var S=n(911),V={};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==O(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===O(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}V.styleTagTransform=x(),V.setAttributes=v(),V.insert=m().bind(null,"head"),V.domAPI=f(),V.insertStyleElement=C(),d()(S.Z,V),S.Z&&S.Z.locals&&S.Z.locals;const R=function(t){var n=t.completionPercentage,r=t.unansweredPercentage,o=t.pages,i=t.pageTitle,s={display:"flex",flexWrap:"wrap",height:"10px",margin:"5px",width:"".concat(100/o,"%")},a={height:"100%",transition:"width 0.3s ease"},l=I(I({},a),{},{width:"".concat(n,"%"),backgroundColor:"#1ab394"}),u=I(I({},a),{},{width:"".concat(r,"%"),backgroundColor:"#9d9d9d"});return e.createElement("div",{style:s},e.createElement("div",{style:l}),e.createElement("div",{style:u}),e.createElement("div",{style:{width:"100%",textAlign:"center"}},i))};u.Serializer.addProperty("itemvalue","customDescription:text"),u.Serializer.addProperty("question","hideCheckboxLabels:boolean");var D=function(e){return e.New="new",e.Answered="answered",e.Unverified="unverified",e.Verified="verified",e.Edited="edited",e}(D||{});const j=function(t){var n=t.nrenName,r=s((0,e.useState)(),2),i=r[0],a=r[1],p=s((0,e.useState)([]),2),d=p[0],h=p[1],f=(0,e.useRef)(new Map);function g(e,t){var n;f.current.set(e.name,t);var r=document.createElement("button");r.type="button",r.className="sv-action-bar-item verification",r.innerHTML=t,t==D.Unverified?(r.innerHTML="Verify last years data",r.className+=" verification-required",r.onclick=function(){e.validate(),g(e,D.Verified)}):r.className+=" verification-ok";var o='[data-name="'+e.name+'"]',i=null===(n=document.querySelector(o))||void 0===n?void 0:n.querySelector("h5"),s=null==i?void 0:i.querySelector(".verification");s?s.replaceWith(r):null==i||i.appendChild(r)}function m(e,t,r){var o=new XMLHttpRequest;o.open("POST","/api/survey/save/"+n),o.setRequestHeader("Content-Type","application/json; charset=utf-8"),o.onload=o.onerror=function(){200==o.status&&t?t():200!=o.status&&r&&r()};var i={data:e.data,page:e.currentPageNo,verification_status:Object.fromEntries(f.current)};o.send(JSON.stringify(i))}function y(){return y=o(l().mark((function e(){var t,r,o,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/survey/open/"+n);case 2:return t=e.sent,e.next=5,t.json();case 5:for(o in(r=e.sent).verification_status)f.current.set(o,r.verification_status[o]);i=new u.Model(r.model),null!==r.data&&(i.data=r.data,i.clearIncorrectValues(!0)),i.currentPageNo=r.page,i.addNavigationItem({id:"sv-nav-compendium-complete",title:"Complete",visible:new u.ComputedUpdater((function(){return i.isLastPage})),action:function(){var e="",t=function(t,n){f.current.get(n.name)==D.Unverified&&(""==e&&(e=n.name),n.error="Please verify that last years data is correct by editing the value or pressing the verification button!")};i.onValidateQuestion.add(t);var n=i.validate();i.onValidateQuestion.remove(t),n?i.completeLastPage():i.focusQuestion(e)},innerCss:"sv-btn sv-btn--navigation sv-footer__complete-btn"}),i.addNavigationItem({id:"sv-nav-compendium-save",title:"Save",action:function(e){console.log(e),m(i)},innerCss:"sv-btn sv-btn--navigation sv-footer__complete-btn"}),i.onComplete.add((function(e,t){t.showSaveInProgress(),m(e,(function(){return t.showSaveSuccess()}),(function(){return t.showSaveError()}))})),i.onPartialSend.add((function(e){m(e)})),i.onAfterRenderQuestion.add((function(e,t){var n=f.current.get(t.question.name);n&&g(t.question,n)})),i.onValueChanged.add((function(e,t){var n=f.current.get(t.question.name);n==D.New?g(t.question,D.Answered):n==D.Unverified&&g(t.question,D.Edited)})),i.onUpdateQuestionCssClasses.add((function(e,t){t.question.hideCheckboxLabels&&(t.cssClasses.root+=" hidden-checkbox-labels")})),i.onMatrixAfterCellRender.add((function(e,t){if(0==t.column.indexValue&&"item"in t.row){var n,r=t.row.item;void 0!==r.customDescription&&(null===(n=t.htmlElement.parentElement)||void 0===n||n.children[0].setAttribute("title",r.customDescription))}})),i.onCurrentPageChanged.add((function(e){console.log("sender--\x3e "+e),b(e)})),a(i);case 20:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}var v=function(e){return null!==e.value&&void 0!==e.value},b=function(e){if(e&&e.pages){console.log("survey.page--\x3e "+e.pages);var t=[];e.pages.forEach((function(n){var r=n.questions.filter((function(e){return e.startWithNewLine})),o=r.length,i=r.filter(v).length,s=o-i,a=i/o;t.push({completionPercentage:100*a,unansweredPercentage:s/o*100,totalPages:e.pages.length,pageTitle:n.title})})),h(t)}};return(0,e.useEffect)((function(){!function(){y.apply(this,arguments)}()}),[]),(0,e.useEffect)((function(){i&&b(i)}),[i]),i?e.createElement("div",{className:"survey-container"},e.createElement("div",{className:"survey-progress"},d.map((function(t,n){return e.createElement(R,{key:n,completionPercentage:t.completionPercentage,unansweredPercentage:t.unansweredPercentage,pages:t.totalPages,pageTitle:t.pageTitle})}))),e.createElement(c.Survey,{model:i})):e.createElement("span",null,"loading...")},k=function(){var t=s((0,e.useState)([]),2),n=t[0],r=t[1],i=s((0,e.useState)(null),2),a=i[0],u=i[1];(0,e.useEffect)((function(){c()}),[]);var c=function(){var e=o(l().mark((function e(){var t,n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/survey/nrens");case 3:return t=e.sent,e.next=6,t.json();case 6:n=e.sent,r(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching organizations:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();return a?e.createElement(j,{nrenName:a.name}):e.createElement("div",null,e.createElement("h2",null,"Select an organization:"),e.createElement("ul",null,n.map((function(t){return e.createElement("li",{key:t.id,onClick:function(){return function(e){u(e)}(t)}},t.name)}))))};function q(){return(q=o(l().mark((function e(){var t,n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/user");case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",{name:"Error Fetching User"});case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}const M=function(){var t=s((0,e.useState)(null),2),n=t[0],r=t[1];return(0,e.useEffect)((function(){(function(){return q.apply(this,arguments)})().then((function(e){r(e)}))}),[]),!n||n.name.match(/Anonymous/gi)?e.createElement(e.Fragment,null,e.createElement("h2",null,"Not logged in."),e.createElement("a",{href:"/login"},"Login")):e.createElement("h2",null,"Hello, ",n.name,"!")};var L=document.getElementById("root");(0,t.s)(L).render(e.createElement(e.StrictMode,null,e.createElement(M,null),e.createElement(k,null)))})()})();
\ No newline at end of file
diff --git a/compendium_v2/static/survey-bundle.js.LICENSE.txt b/compendium_v2/static/survey-bundle.js.LICENSE.txt
new file mode 100644
index 0000000000000000000000000000000000000000..f48944214483545a0916c632017c6a0b7985062e
--- /dev/null
+++ b/compendium_v2/static/survey-bundle.js.LICENSE.txt
@@ -0,0 +1,2075 @@
+/*!
+ * Signature Pad v2.3.2
+ * https://github.com/szimek/signature_pad
+ *
+ * Copyright 2017 Szymon Nowak
+ * Released under the MIT license
+ *
+ * The main idea and some parts of the code (e.g. drawing variable width Bézier curve) are taken from:
+ * http://corner.squareup.com/2012/07/smoother-signatures.html
+ *
+ * Implementation of interpolation using cubic Bézier curves is taken from:
+ * http://benknowscode.wordpress.com/2012/09/14/path-interpolation-using-cubic-bezier-and-control-point-estimation-in-javascript
+ *
+ * Algorithm for approximated length of a Bézier curve is taken from:
+ * http://www.lemoda.net/maths/bezier-length/index.html
+ *
+ */
+
+/*!
+ * surveyjs - Survey JavaScript library v1.9.90
+ * Copyright (c) 2015-2023 Devsoft Baltic OÜ  - http://surveyjs.io/
+ * License: MIT (http://www.opensource.org/licenses/mit-license.php)
+ */
+
+/*! ../../../element-factory */
+
+/*! ../../../reactquestion_element */
+
+/*! ../../base */
+
+/*! ../../calculatedValue */
+
+/*! ../../choicesRestful */
+
+/*! ../../conditionProcessValue */
+
+/*! ../../conditions */
+
+/*! ../../conditionsParser */
+
+/*! ../../defaultCss/defaultV2Css */
+
+/*! ../../defaultTitle */
+
+/*! ../../dragdrop/choices */
+
+/*! ../../dragdrop/core */
+
+/*! ../../dropdownListModel */
+
+/*! ../../dropdownMultiSelectListModel */
+
+/*! ../../dxSurveyService */
+
+/*! ../../element-factory */
+
+/*! ../../error */
+
+/*! ../../expressionItems */
+
+/*! ../../expressions/expressions */
+
+/*! ../../flowpanel */
+
+/*! ../../functionsfactory */
+
+/*! ../../helpers */
+
+/*! ../../itemvalue */
+
+/*! ../../jsonobject */
+
+/*! ../../list */
+
+/*! ../../localizablestring */
+
+/*! ../../localization/english */
+
+/*! ../../martixBase */
+
+/*! ../../multiSelectListModel */
+
+/*! ../../notifier */
+
+/*! ../../page */
+
+/*! ../../panel */
+
+/*! ../../popup */
+
+/*! ../../popup-dropdown-view-model */
+
+/*! ../../popup-modal-view-model */
+
+/*! ../../popup-survey */
+
+/*! ../../popup-utils */
+
+/*! ../../popup-view-model */
+
+/*! ../../question */
+
+/*! ../../questionCustomWidgets */
+
+/*! ../../question_baseselect */
+
+/*! ../../question_boolean */
+
+/*! ../../question_buttongroup */
+
+/*! ../../question_checkbox */
+
+/*! ../../question_comment */
+
+/*! ../../question_custom */
+
+/*! ../../question_dropdown */
+
+/*! ../../question_empty */
+
+/*! ../../question_expression */
+
+/*! ../../question_file */
+
+/*! ../../question_html */
+
+/*! ../../question_image */
+
+/*! ../../question_imagepicker */
+
+/*! ../../question_matrix */
+
+/*! ../../question_matrixdropdown */
+
+/*! ../../question_matrixdropdownbase */
+
+/*! ../../question_matrixdropdowncolumn */
+
+/*! ../../question_matrixdropdownrendered */
+
+/*! ../../question_matrixdynamic */
+
+/*! ../../question_multipletext */
+
+/*! ../../question_paneldynamic */
+
+/*! ../../question_radiogroup */
+
+/*! ../../question_ranking */
+
+/*! ../../question_rating */
+
+/*! ../../question_signaturepad */
+
+/*! ../../question_tagbox */
+
+/*! ../../question_text */
+
+/*! ../../question_textbase */
+
+/*! ../../questionfactory */
+
+/*! ../../questionnonvalue */
+
+/*! ../../reactSurvey */
+
+/*! ../../reactquestion_element */
+
+/*! ../../settings */
+
+/*! ../../stylesmanager */
+
+/*! ../../survey */
+
+/*! ../../survey-element */
+
+/*! ../../survey-error */
+
+/*! ../../surveyProgress */
+
+/*! ../../surveyProgressButtons */
+
+/*! ../../surveyStrings */
+
+/*! ../../surveyTimerModel */
+
+/*! ../../surveyToc */
+
+/*! ../../surveytimer */
+
+/*! ../../svg-icon/svg-icon */
+
+/*! ../../template-renderer */
+
+/*! ../../textPreProcessor */
+
+/*! ../../trigger */
+
+/*! ../../utils/cssClassBuilder */
+
+/*! ../../utils/devices */
+
+/*! ../../utils/utils */
+
+/*! ../../validator */
+
+/*! ../action-bar/action-bar */
+
+/*! ../actions/action */
+
+/*! ../actions/adaptive-container */
+
+/*! ../actions/container */
+
+/*! ../base */
+
+/*! ../conditionProcessValue */
+
+/*! ../defaultCss/cssmodern */
+
+/*! ../defaultCss/cssstandard */
+
+/*! ../element-factory */
+
+/*! ../functionsfactory */
+
+/*! ../helpers */
+
+/*! ../jsonobject */
+
+/*! ../list */
+
+/*! ../popup */
+
+/*! ../popup/popup */
+
+/*! ../react/boolean */
+
+/*! ../react/boolean-checkbox */
+
+/*! ../react/boolean-radio */
+
+/*! ../react/components/action-bar/action-bar */
+
+/*! ../react/components/character-counter */
+
+/*! ../react/components/components-container */
+
+/*! ../react/components/list/list */
+
+/*! ../react/components/matrix-actions/detail-button/detail-button */
+
+/*! ../react/components/matrix-actions/drag-drop-icon/drag-drop-icon */
+
+/*! ../react/components/matrix-actions/remove-button/remove-button */
+
+/*! ../react/components/matrix/row */
+
+/*! ../react/components/notifier */
+
+/*! ../react/components/paneldynamic-actions/paneldynamic-add-btn */
+
+/*! ../react/components/paneldynamic-actions/paneldynamic-next-btn */
+
+/*! ../react/components/paneldynamic-actions/paneldynamic-prev-btn */
+
+/*! ../react/components/paneldynamic-actions/paneldynamic-progress-text */
+
+/*! ../react/components/paneldynamic-actions/paneldynamic-remove-btn */
+
+/*! ../react/components/popup/popup */
+
+/*! ../react/components/rating/rating-item */
+
+/*! ../react/components/rating/rating-item-smiley */
+
+/*! ../react/components/rating/rating-item-star */
+
+/*! ../react/components/skeleton */
+
+/*! ../react/components/survey-actions/survey-nav-button */
+
+/*! ../react/components/survey-header/logo-image */
+
+/*! ../react/components/survey-header/survey-header */
+
+/*! ../react/components/svg-icon/svg-icon */
+
+/*! ../react/components/title/title-actions */
+
+/*! ../react/components/title/title-element */
+
+/*! ../react/dropdown-base */
+
+/*! ../react/dropdown-item */
+
+/*! ../react/dropdown-select */
+
+/*! ../react/element-factory */
+
+/*! ../react/flow-panel */
+
+/*! ../react/image */
+
+/*! ../react/imagepicker */
+
+/*! ../react/page */
+
+/*! ../react/panel */
+
+/*! ../react/rating-dropdown */
+
+/*! ../react/react-popup-survey */
+
+/*! ../react/reactSurvey */
+
+/*! ../react/reactSurveyNavigationBase */
+
+/*! ../react/reactSurveyProgress */
+
+/*! ../react/reactSurveyProgressButtons */
+
+/*! ../react/reactSurveyProgressToc */
+
+/*! ../react/reactquestion */
+
+/*! ../react/reactquestion_buttongroup */
+
+/*! ../react/reactquestion_checkbox */
+
+/*! ../react/reactquestion_comment */
+
+/*! ../react/reactquestion_custom */
+
+/*! ../react/reactquestion_dropdown */
+
+/*! ../react/reactquestion_element */
+
+/*! ../react/reactquestion_empty */
+
+/*! ../react/reactquestion_expression */
+
+/*! ../react/reactquestion_factory */
+
+/*! ../react/reactquestion_file */
+
+/*! ../react/reactquestion_html */
+
+/*! ../react/reactquestion_matrix */
+
+/*! ../react/reactquestion_matrixdropdown */
+
+/*! ../react/reactquestion_matrixdropdownbase */
+
+/*! ../react/reactquestion_matrixdynamic */
+
+/*! ../react/reactquestion_multipletext */
+
+/*! ../react/reactquestion_paneldynamic */
+
+/*! ../react/reactquestion_radiogroup */
+
+/*! ../react/reactquestion_ranking */
+
+/*! ../react/reactquestion_rating */
+
+/*! ../react/reactquestion_tagbox */
+
+/*! ../react/reactquestion_text */
+
+/*! ../react/reactsurveymodel */
+
+/*! ../react/reacttimerpanel */
+
+/*! ../react/row */
+
+/*! ../react/signaturepad */
+
+/*! ../react/string-editor */
+
+/*! ../react/string-viewer */
+
+/*! ../react/tagbox-filter */
+
+/*! ../react/tagbox-item */
+
+/*! ../reactquestion_element */
+
+/*! ../rendererFactory */
+
+/*! ../settings */
+
+/*! ../src/settings */
+
+/*! ../survey */
+
+/*! ../surveyStrings */
+
+/*! ../svg-icon/svg-icon */
+
+/*! ../svgbundle */
+
+/*! ../title/title-element */
+
+/*! ../utils/cssClassBuilder */
+
+/*! ../utils/devices */
+
+/*! ../utils/dragOrClickHelper */
+
+/*! ../utils/responsivity-manager */
+
+/*! ../utils/tooltip */
+
+/*! ../utils/utils */
+
+/*! ./../settings */
+
+/*! ./action */
+
+/*! ./action-bar-item */
+
+/*! ./action-bar-item-dropdown */
+
+/*! ./action-bar-separator */
+
+/*! ./action-bar/action-bar */
+
+/*! ./actions/action */
+
+/*! ./actions/adaptive-container */
+
+/*! ./actions/container */
+
+/*! ./base */
+
+/*! ./boolean */
+
+/*! ./choices */
+
+/*! ./choicesRestful */
+
+/*! ./chunks/model */
+
+/*! ./components/action-bar/action-bar */
+
+/*! ./components/brand-info */
+
+/*! ./components/character-counter */
+
+/*! ./components/components-container */
+
+/*! ./components/list/list */
+
+/*! ./components/matrix-actions/drag-drop-icon/drag-drop-icon */
+
+/*! ./components/matrix/row */
+
+/*! ./components/notifier */
+
+/*! ./components/paneldynamic-actions/paneldynamic-next-btn */
+
+/*! ./components/paneldynamic-actions/paneldynamic-prev-btn */
+
+/*! ./components/paneldynamic-actions/paneldynamic-progress-text */
+
+/*! ./components/popup/popup */
+
+/*! ./components/survey-header/survey-header */
+
+/*! ./components/svg-icon/svg-icon */
+
+/*! ./components/title/title-actions */
+
+/*! ./components/title/title-content */
+
+/*! ./components/title/title-element */
+
+/*! ./conditionProcessValue */
+
+/*! ./conditions */
+
+/*! ./conditionsParser */
+
+/*! ./container */
+
+/*! ./core */
+
+/*! ./core-export */
+
+/*! ./core-wo-model */
+
+/*! ./custom-widget */
+
+/*! ./defaultCss/defaultV2Css */
+
+/*! ./defaultV2Css */
+
+/*! ./dom-adapter */
+
+/*! ./drag-drop-helper-v1 */
+
+/*! ./drag-drop-page-helper-v1 */
+
+/*! ./drag-drop-panel-helper-v1 */
+
+/*! ./dragdrop/matrix-rows */
+
+/*! ./dragdrop/ranking-choices */
+
+/*! ./dropdown-base */
+
+/*! ./dropdown-item */
+
+/*! ./dropdownListModel */
+
+/*! ./dropdownMultiSelectListModel */
+
+/*! ./dxSurveyService */
+
+/*! ./element-factory */
+
+/*! ./element-header */
+
+/*! ./element-helper */
+
+/*! ./error */
+
+/*! ./expressions */
+
+/*! ./expressions/expressionParser */
+
+/*! ./expressions/expressions */
+
+/*! ./functionsfactory */
+
+/*! ./helpers */
+
+/*! ./itemvalue */
+
+/*! ./jsonobject */
+
+/*! ./list */
+
+/*! ./list-item */
+
+/*! ./localizablestring */
+
+/*! ./localization/english */
+
+/*! ./martixBase */
+
+/*! ./multiSelectListModel */
+
+/*! ./notifier */
+
+/*! ./page */
+
+/*! ./panel */
+
+/*! ./panel-base */
+
+/*! ./paneldynamic-add-btn */
+
+/*! ./popup */
+
+/*! ./popup-dropdown-view-model */
+
+/*! ./popup-modal-view-model */
+
+/*! ./popup-view-model */
+
+/*! ./question */
+
+/*! ./questionCustomWidgets */
+
+/*! ./question_baseselect */
+
+/*! ./question_checkbox */
+
+/*! ./question_dropdown */
+
+/*! ./question_expression */
+
+/*! ./question_matrixdropdownbase */
+
+/*! ./question_matrixdropdowncolumn */
+
+/*! ./question_matrixdropdownrendered */
+
+/*! ./question_text */
+
+/*! ./question_textbase */
+
+/*! ./questionfactory */
+
+/*! ./questionnonvalue */
+
+/*! ./react-ui-model */
+
+/*! ./reactSurvey */
+
+/*! ./reactSurveyNavigationBase */
+
+/*! ./reactquestion */
+
+/*! ./reactquestion_checkbox */
+
+/*! ./reactquestion_comment */
+
+/*! ./reactquestion_dropdown */
+
+/*! ./reactquestion_element */
+
+/*! ./reactquestion_factory */
+
+/*! ./reactquestion_matrixdropdownbase */
+
+/*! ./reactquestion_radiogroup */
+
+/*! ./reactsurveymodel */
+
+/*! ./rendererFactory */
+
+/*! ./row */
+
+/*! ./settings */
+
+/*! ./string-viewer */
+
+/*! ./stylesmanager */
+
+/*! ./survey */
+
+/*! ./survey-element */
+
+/*! ./survey-error */
+
+/*! ./surveyStrings */
+
+/*! ./surveyTimerModel */
+
+/*! ./surveytimer */
+
+/*! ./tagbox-filter */
+
+/*! ./tagbox-item */
+
+/*! ./textPreProcessor */
+
+/*! ./title-actions */
+
+/*! ./title-content */
+
+/*! ./utils */
+
+/*! ./utils/cssClassBuilder */
+
+/*! ./utils/devices */
+
+/*! ./utils/dragOrClickHelper */
+
+/*! ./utils/popup */
+
+/*! ./utils/utils */
+
+/*! ./validator */
+
+/*! exports provided: AdaptiveActionContainer */
+
+/*! exports provided: AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, WebRequestError, WebRequestEmptyError, OtherEmptyError, UploadingFileError, RequiredInAllRowsError, MinRowCountError, KeyDuplicationError, CustomError */
+
+/*! exports provided: Bindings, Dependencies, ComputedUpdater, Base, ArrayChanges, Event, EventBase */
+
+/*! exports provided: BrandInfo */
+
+/*! exports provided: ButtonGroupItemValue, QuestionButtonGroupModel, ButtonGroupItemModel */
+
+/*! exports provided: CalculatedValue */
+
+/*! exports provided: CharacterCounter, QuestionTextBase */
+
+/*! exports provided: CharacterCounterComponent */
+
+/*! exports provided: ChoicesRestful, ChoicesRestfull */
+
+/*! exports provided: ComponentQuestionJSON, ComponentCollection, QuestionCustomModelBase, QuestionCustomModel, QuestionCompositeModel */
+
+/*! exports provided: ComponentsContainer */
+
+/*! exports provided: ConditionsParserError, ConditionsParser */
+
+/*! exports provided: CssClassBuilder */
+
+/*! exports provided: DefaultTitleModel */
+
+/*! exports provided: DragDropChoices */
+
+/*! exports provided: DragDropCore */
+
+/*! exports provided: DragDropDOMAdapter */
+
+/*! exports provided: DragDropInfo */
+
+/*! exports provided: DragDropMatrixRows */
+
+/*! exports provided: DragDropPageHelperV1 */
+
+/*! exports provided: DragDropPanelHelperV1 */
+
+/*! exports provided: DragDropRankingChoices */
+
+/*! exports provided: DragOrClickHelper */
+
+/*! exports provided: DropdownListModel */
+
+/*! exports provided: DropdownMultiSelectListModel */
+
+/*! exports provided: ElementHelper */
+
+/*! exports provided: ExpressionExecutor, ExpressionRunnerBase, ConditionRunner, ExpressionRunner */
+
+/*! exports provided: ExpressionItem, HtmlConditionItem, UrlConditionItem */
+
+/*! exports provided: FOCUS_INPUT_SELECTOR, PopupBaseViewModel */
+
+/*! exports provided: FlowPanelModel */
+
+/*! exports provided: FunctionFactory, registerFunction */
+
+/*! exports provided: Helpers */
+
+/*! exports provided: ImageItemValue, QuestionImagePickerModel */
+
+/*! exports provided: IsMobile, IsTouch, _setIsTouch */
+
+/*! exports provided: ItemValue */
+
+/*! exports provided: List */
+
+/*! exports provided: ListItem */
+
+/*! exports provided: LocalizableString, LocalizableStrings */
+
+/*! exports provided: LogoImage */
+
+/*! exports provided: MatrixDropdownCell, MatrixDropdownTotalCell, MatrixDropdownRowModelBase, MatrixDropdownTotalRowModel, QuestionMatrixDropdownModelBase */
+
+/*! exports provided: MatrixDropdownRowModel, QuestionMatrixDropdownModel */
+
+/*! exports provided: MatrixDynamicRowModel, QuestionMatrixDynamicModel */
+
+/*! exports provided: MatrixRow */
+
+/*! exports provided: MatrixRowModel, MatrixCells, QuestionMatrixModel */
+
+/*! exports provided: MultiSelectListModel */
+
+/*! exports provided: MultipleTextEditorModel, MultipleTextItemModel, QuestionMultipleTextModel */
+
+/*! exports provided: Notifier */
+
+/*! exports provided: NotifierComponent */
+
+/*! exports provided: Operand, BinaryOperand, UnaryOperand, ArrayOperand, Const, Variable, FunctionOperand, OperandMaker */
+
+/*! exports provided: PageModel */
+
+/*! exports provided: Popup, PopupContainer, PopupDropdownContainer, showModal, showDialog */
+
+/*! exports provided: PopupDropdownViewModel */
+
+/*! exports provided: PopupModalViewModel */
+
+/*! exports provided: PopupModel, createDialogOptions */
+
+/*! exports provided: PopupSurvey, SurveyWindow */
+
+/*! exports provided: PopupSurveyModel, SurveyWindowModel */
+
+/*! exports provided: PopupUtils */
+
+/*! exports provided: ProcessValue */
+
+/*! exports provided: Question */
+
+/*! exports provided: QuestionBooleanModel */
+
+/*! exports provided: QuestionCheckboxModel */
+
+/*! exports provided: QuestionCommentModel */
+
+/*! exports provided: QuestionCustomWidget, CustomWidgetCollection */
+
+/*! exports provided: QuestionDropdownModel */
+
+/*! exports provided: QuestionEmptyModel */
+
+/*! exports provided: QuestionExpressionModel, getCurrecyCodes */
+
+/*! exports provided: QuestionFactory, ElementFactory */
+
+/*! exports provided: QuestionFileModel, FileLoader */
+
+/*! exports provided: QuestionHtmlModel */
+
+/*! exports provided: QuestionImageModel */
+
+/*! exports provided: QuestionMatrixBaseModel */
+
+/*! exports provided: QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable */
+
+/*! exports provided: QuestionNonValue */
+
+/*! exports provided: QuestionPanelDynamicItem, QuestionPanelDynamicTemplateSurveyImpl, QuestionPanelDynamicModel */
+
+/*! exports provided: QuestionRadiogroupModel */
+
+/*! exports provided: QuestionRankingModel */
+
+/*! exports provided: QuestionRowModel, PanelModelBase, PanelModel */
+
+/*! exports provided: QuestionSelectBase, QuestionCheckboxBase */
+
+/*! exports provided: QuestionSignaturePadModel */
+
+/*! exports provided: QuestionTagboxModel */
+
+/*! exports provided: QuestionTextModel */
+
+/*! exports provided: RatingItem */
+
+/*! exports provided: RatingItemSmiley */
+
+/*! exports provided: RatingItemStar */
+
+/*! exports provided: ReactElementFactory */
+
+/*! exports provided: ReactQuestionFactory */
+
+/*! exports provided: ReactSurveyElementsWrapper */
+
+/*! exports provided: RenderedRatingItem, QuestionRatingModel */
+
+/*! exports provided: RendererFactory */
+
+/*! exports provided: ResponsivityManager, VerticalResponsivityManager */
+
+/*! exports provided: Skeleton */
+
+/*! exports provided: Survey, attachKey2click */
+
+/*! exports provided: Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, SurveyLocStringViewer, SurveyLocStringEditor */
+
+/*! exports provided: Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, SurveyLocStringViewer, SurveyLocStringEditor, SurveyModel, SurveyWindowModel, settings, surveyLocalization, surveyStrings, Model, ResponsivityManager, VerticalResponsivityManager, unwrap */
+
+/*! exports provided: SurveyAction, SurveyActionBarItem */
+
+/*! exports provided: SurveyActionBarItemDropdown */
+
+/*! exports provided: SurveyActionBarItemDropdown, SurveyActionBarSeparator, SurveyActionBar */
+
+/*! exports provided: SurveyActionBarSeparator */
+
+/*! exports provided: SurveyCustomWidget */
+
+/*! exports provided: SurveyElementBase, ReactSurveyElement, SurveyQuestionElementBase, SurveyQuestionUncontrolledElement */
+
+/*! exports provided: SurveyElementCore, DragTypeOverMeEnum, SurveyElement */
+
+/*! exports provided: SurveyElementHeader */
+
+/*! exports provided: SurveyError */
+
+/*! exports provided: SurveyFlowPanel */
+
+/*! exports provided: SurveyHeader */
+
+/*! exports provided: SurveyLocStringEditor */
+
+/*! exports provided: SurveyLocStringViewer */
+
+/*! exports provided: SurveyModel */
+
+/*! exports provided: SurveyModel, SurveyWindowModel, settings, surveyLocalization, surveyStrings */
+
+/*! exports provided: SurveyNavigationBase */
+
+/*! exports provided: SurveyNavigationButton */
+
+/*! exports provided: SurveyPage */
+
+/*! exports provided: SurveyPanel */
+
+/*! exports provided: SurveyPanelBase */
+
+/*! exports provided: SurveyProgress */
+
+/*! exports provided: SurveyProgressButtons */
+
+/*! exports provided: SurveyProgressButtonsModel */
+
+/*! exports provided: SurveyProgressModel */
+
+/*! exports provided: SurveyProgressToc */
+
+/*! exports provided: SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsWrapped, SurveyQuestionAndErrorsCell */
+
+/*! exports provided: SurveyQuestionBoolean */
+
+/*! exports provided: SurveyQuestionBooleanCheckbox */
+
+/*! exports provided: SurveyQuestionBooleanRadio */
+
+/*! exports provided: SurveyQuestionButtonGroup, SurveyButtonGroupItem */
+
+/*! exports provided: SurveyQuestionCheckbox, SurveyQuestionCheckboxItem */
+
+/*! exports provided: SurveyQuestionComment, SurveyQuestionCommentItem, SurveyQuestionOtherValueItem */
+
+/*! exports provided: SurveyQuestionCustom, SurveyQuestionComposite */
+
+/*! exports provided: SurveyQuestionDropdown */
+
+/*! exports provided: SurveyQuestionDropdownBase */
+
+/*! exports provided: SurveyQuestionDropdownSelect */
+
+/*! exports provided: SurveyQuestionEmpty */
+
+/*! exports provided: SurveyQuestionExpression */
+
+/*! exports provided: SurveyQuestionFile */
+
+/*! exports provided: SurveyQuestionHtml */
+
+/*! exports provided: SurveyQuestionImage */
+
+/*! exports provided: SurveyQuestionImagePicker, SurveyQuestionImagePickerItem */
+
+/*! exports provided: SurveyQuestionMatrix, SurveyQuestionMatrixRow */
+
+/*! exports provided: SurveyQuestionMatrixDetailButton */
+
+/*! exports provided: SurveyQuestionMatrixDropdown */
+
+/*! exports provided: SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdownCell */
+
+/*! exports provided: SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton */
+
+/*! exports provided: SurveyQuestionMatrixDynamicDragDropIcon */
+
+/*! exports provided: SurveyQuestionMatrixDynamicRemoveButton */
+
+/*! exports provided: SurveyQuestionMultipleText, SurveyMultipleTextItem, SurveyMultipleTextItemEditor */
+
+/*! exports provided: SurveyQuestionOptionItem */
+
+/*! exports provided: SurveyQuestionPanelDynamic, SurveyQuestionPanelDynamicItem */
+
+/*! exports provided: SurveyQuestionPanelDynamicAction, SurveyQuestionPanelDynamicAddButton */
+
+/*! exports provided: SurveyQuestionPanelDynamicNextButton */
+
+/*! exports provided: SurveyQuestionPanelDynamicPrevButton */
+
+/*! exports provided: SurveyQuestionPanelDynamicProgressText */
+
+/*! exports provided: SurveyQuestionPanelDynamicRemoveButton */
+
+/*! exports provided: SurveyQuestionRadiogroup, SurveyQuestionRadioItem */
+
+/*! exports provided: SurveyQuestionRanking, SurveyQuestionRankingItem */
+
+/*! exports provided: SurveyQuestionRating */
+
+/*! exports provided: SurveyQuestionRatingDropdown */
+
+/*! exports provided: SurveyQuestionSignaturePad */
+
+/*! exports provided: SurveyQuestionTagbox */
+
+/*! exports provided: SurveyQuestionTagboxItem */
+
+/*! exports provided: SurveyQuestionText */
+
+/*! exports provided: SurveyRow */
+
+/*! exports provided: SurveyTimerModel */
+
+/*! exports provided: SurveyTimerPanel */
+
+/*! exports provided: SvgIcon */
+
+/*! exports provided: SvgIconRegistry, SvgRegistry, SvgBundleViewModel */
+
+/*! exports provided: SyntaxError, parse */
+
+/*! exports provided: TagboxFilterString */
+
+/*! exports provided: TextPreProcessorItem, TextPreProcessorValue, TextPreProcessor, QuestionTextProcessor */
+
+/*! exports provided: TitleActions */
+
+/*! exports provided: TitleContent */
+
+/*! exports provided: TitleElement */
+
+/*! exports provided: TooltipManager */
+
+/*! exports provided: Trigger, SurveyTrigger, SurveyTriggerVisible, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerSkip, SurveyTriggerRunExpression, SurveyTriggerCopyValue */
+
+/*! exports provided: ValidatorResult, SurveyValidator, ValidatorRunner, NumericValidator, TextValidator, AnswerCountValidator, RegexValidator, EmailValidator, ExpressionValidator */
+
+/*! exports provided: Version, checkLibraryVersion, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, createTOCListModel, getTocRootCss, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices */
+
+/*! exports provided: Version, checkLibraryVersion, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, createTOCListModel, getTocRootCss, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, TooltipManager, DragOrClickHelper */
+
+/*! exports provided: Version, checkLibraryVersion, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, createTOCListModel, getTocRootCss, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, TooltipManager, DragOrClickHelper, Model */
+
+/*! exports provided: createDropdownActionModel, createDropdownActionModelAdvanced, BaseAction, Action, ActionDropdownViewModel */
+
+/*! exports provided: createPopupModalViewModel, createPopupViewModel */
+
+/*! exports provided: default */
+
+/*! exports provided: defaultActionBarCss, ActionContainer */
+
+/*! exports provided: defaultListCss, ListModel */
+
+/*! exports provided: defaultStandardCss */
+
+/*! exports provided: dxSurveyService */
+
+/*! exports provided: englishStrings */
+
+/*! exports provided: matrixDropdownColumnTypes, MatrixDropdownColumn */
+
+/*! exports provided: modernCss */
+
+/*! exports provided: modernThemeColors, defaultThemeColors, orangeThemeColors, darkblueThemeColors, darkroseThemeColors, stoneThemeColors, winterThemeColors, winterstoneThemeColors, StylesManager */
+
+/*! exports provided: property, propertyArray, JsonObjectProperty, CustomPropertiesCollection, JsonMetadataClass, JsonMetadata, JsonError, JsonUnknownPropertyError, JsonMissingTypeErrorBase, JsonMissingTypeError, JsonIncorrectTypeError, JsonRequiredPropertyError, JsonObject, Serializer */
+
+/*! exports provided: settings */
+
+/*! exports provided: surveyCss, defaultV2Css, defaultV2ThemeName */
+
+/*! exports provided: surveyLocalization, surveyStrings */
+
+/*! exports provided: surveyTimerFunctions, SurveyTimer */
+
+/*! exports provided: tryNavigateToPage, createTOCListModel, getTocRootCss */
+
+/*! exports provided: unwrap, getSize, doKey2ClickBlur, doKey2ClickUp, doKey2ClickDown, sanitizeEditableContent, Logger, mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames */
+
+/*! no exports provided */
+
+/*! no static exports found */
+
+/*! react */
+
+/*! react-dom */
+
+/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
+
+/*! signature_pad */
+
+/*! survey-core */
+
+/*!*********************!*\
+  !*** ./src/base.ts ***!
+  \*********************/
+
+/*!*********************!*\
+  !*** ./src/list.ts ***!
+  \*********************/
+
+/*!*********************!*\
+  !*** ./src/page.ts ***!
+  \*********************/
+
+/*!**********************!*\
+  !*** ./src/error.ts ***!
+  \**********************/
+
+/*!**********************!*\
+  !*** ./src/panel.ts ***!
+  \**********************/
+
+/*!**********************!*\
+  !*** ./src/popup.ts ***!
+  \**********************/
+
+/*!***********************!*\
+  !*** ./src/survey.ts ***!
+  \***********************/
+
+/*!************************!*\
+  !*** ./src/helpers.ts ***!
+  \************************/
+
+/*!************************!*\
+  !*** ./src/trigger.ts ***!
+  \************************/
+
+/*!*************************!*\
+  !*** ./src/notifier.ts ***!
+  \*************************/
+
+/*!*************************!*\
+  !*** ./src/question.ts ***!
+  \*************************/
+
+/*!*************************!*\
+  !*** ./src/settings.ts ***!
+  \*************************/
+
+/*!**************************!*\
+  !*** ./src/flowpanel.ts ***!
+  \**************************/
+
+/*!**************************!*\
+  !*** ./src/itemvalue.ts ***!
+  \**************************/
+
+/*!**************************!*\
+  !*** ./src/surveyToc.ts ***!
+  \**************************/
+
+/*!**************************!*\
+  !*** ./src/svgbundle.ts ***!
+  \**************************/
+
+/*!**************************!*\
+  !*** ./src/validator.ts ***!
+  \**************************/
+
+/*!***************************!*\
+  !*** ./src/conditions.ts ***!
+  \***************************/
+
+/*!***************************!*\
+  !*** ./src/jsonobject.ts ***!
+  \***************************/
+
+/*!***************************!*\
+  !*** ./src/martixBase.ts ***!
+  \***************************/
+
+/*!***************************!*\
+  !*** ./src/react/row.tsx ***!
+  \***************************/
+
+/*!****************************!*\
+  !*** ./src/popup-utils.ts ***!
+  \****************************/
+
+/*!****************************!*\
+  !*** ./src/react/page.tsx ***!
+  \****************************/
+
+/*!****************************!*\
+  !*** ./src/surveytimer.ts ***!
+  \****************************/
+
+/*!****************************!*\
+  !*** ./src/utils/popup.ts ***!
+  \****************************/
+
+/*!****************************!*\
+  !*** ./src/utils/utils.ts ***!
+  \****************************/
+
+/*!*****************************!*\
+  !*** ./src/defaultTitle.ts ***!
+  \*****************************/
+
+/*!*****************************!*\
+  !*** ./src/entries/core.ts ***!
+  \*****************************/
+
+/*!*****************************!*\
+  !*** ./src/images/Left.svg ***!
+  \*****************************/
+
+/*!*****************************!*\
+  !*** ./src/images/More.svg ***!
+  \*****************************/
+
+/*!*****************************!*\
+  !*** ./src/popup-survey.ts ***!
+  \*****************************/
+
+/*!*****************************!*\
+  !*** ./src/react/image.tsx ***!
+  \*****************************/
+
+/*!*****************************!*\
+  !*** ./src/react/panel.tsx ***!
+  \*****************************/
+
+/*!*****************************!*\
+  !*** ./src/survey-error.ts ***!
+  \*****************************/
+
+/*!******************************!*\
+  !*** ./src/dragdrop/core.ts ***!
+  \******************************/
+
+/*!******************************!*\
+  !*** ./src/images/Clear.svg ***!
+  \******************************/
+
+/*!******************************!*\
+  !*** ./src/images/Right.svg ***!
+  \******************************/
+
+/*!******************************!*\
+  !*** ./src/question_file.ts ***!
+  \******************************/
+
+/*!******************************!*\
+  !*** ./src/question_html.ts ***!
+  \******************************/
+
+/*!******************************!*\
+  !*** ./src/question_text.ts ***!
+  \******************************/
+
+/*!******************************!*\
+  !*** ./src/stylesmanager.ts ***!
+  \******************************/
+
+/*!******************************!*\
+  !*** ./src/surveyStrings.ts ***!
+  \******************************/
+
+/*!******************************!*\
+  !*** ./src/utils/devices.ts ***!
+  \******************************/
+
+/*!******************************!*\
+  !*** ./src/utils/tooltip.ts ***!
+  \******************************/
+
+/*!*******************************!*\
+  !*** ./src/actions/action.ts ***!
+  \*******************************/
+
+/*!*******************************!*\
+  !*** ./src/choicesRestful.ts ***!
+  \*******************************/
+
+/*!*******************************!*\
+  !*** ./src/element-helper.ts ***!
+  \*******************************/
+
+/*!*******************************!*\
+  !*** ./src/images/Delete.svg ***!
+  \*******************************/
+
+/*!*******************************!*\
+  !*** ./src/images/search.svg ***!
+  \*******************************/
+
+/*!*******************************!*\
+  !*** ./src/question_empty.ts ***!
+  \*******************************/
+
+/*!*******************************!*\
+  !*** ./src/question_image.ts ***!
+  \*******************************/
+
+/*!*******************************!*\
+  !*** ./src/react/boolean.tsx ***!
+  \*******************************/
+
+/*!*******************************!*\
+  !*** ./src/survey-element.ts ***!
+  \*******************************/
+
+/*!*******************************!*\
+  !*** ./src/surveyProgress.ts ***!
+  \*******************************/
+
+/*!********************************!*\
+  !*** ./src/calculatedValue.ts ***!
+  \********************************/
+
+/*!********************************!*\
+  !*** ./src/dxSurveyService.ts ***!
+  \********************************/
+
+/*!********************************!*\
+  !*** ./src/expressionItems.ts ***!
+  \********************************/
+
+/*!********************************!*\
+  !*** ./src/images/V2Check.svg ***!
+  \********************************/
+
+/*!********************************!*\
+  !*** ./src/question_custom.ts ***!
+  \********************************/
+
+/*!********************************!*\
+  !*** ./src/question_matrix.ts ***!
+  \********************************/
+
+/*!********************************!*\
+  !*** ./src/question_rating.ts ***!
+  \********************************/
+
+/*!********************************!*\
+  !*** ./src/question_tagbox.ts ***!
+  \********************************/
+
+/*!********************************!*\
+  !*** ./src/questionfactory.ts ***!
+  \********************************/
+
+/*!********************************!*\
+  !*** ./src/rendererFactory.ts ***!
+  \********************************/
+
+/*!*********************************!*\
+  !*** ./src/conditionsParser.ts ***!
+  \*********************************/
+
+/*!*********************************!*\
+  !*** ./src/dragdrop/choices.ts ***!
+  \*********************************/
+
+/*!*********************************!*\
+  !*** ./src/entries/react-ui.ts ***!
+  \*********************************/
+
+/*!*********************************!*\
+  !*** ./src/functionsfactory.ts ***!
+  \*********************************/
+
+/*!*********************************!*\
+  !*** ./src/images/no-image.svg ***!
+  \*********************************/
+
+/*!*********************************!*\
+  !*** ./src/popup-view-model.ts ***!
+  \*********************************/
+
+/*!*********************************!*\
+  !*** ./src/question_boolean.ts ***!
+  \*********************************/
+
+/*!*********************************!*\
+  !*** ./src/question_comment.ts ***!
+  \*********************************/
+
+/*!*********************************!*\
+  !*** ./src/question_ranking.ts ***!
+  \*********************************/
+
+/*!*********************************!*\
+  !*** ./src/questionnonvalue.ts ***!
+  \*********************************/
+
+/*!*********************************!*\
+  !*** ./src/surveyTimerModel.ts ***!
+  \*********************************/
+
+/*!*********************************!*\
+  !*** ./src/textPreProcessor.ts ***!
+  \*********************************/
+
+/*!**********************************!*\
+  !*** ./src/actions/container.ts ***!
+  \**********************************/
+
+/*!**********************************!*\
+  !*** ./src/dropdownListModel.ts ***!
+  \**********************************/
+
+/*!**********************************!*\
+  !*** ./src/images/ArrowLeft.svg ***!
+  \**********************************/
+
+/*!**********************************!*\
+  !*** ./src/localizablestring.ts ***!
+  \**********************************/
+
+/*!**********************************!*\
+  !*** ./src/question_checkbox.ts ***!
+  \**********************************/
+
+/*!**********************************!*\
+  !*** ./src/question_dropdown.ts ***!
+  \**********************************/
+
+/*!**********************************!*\
+  !*** ./src/question_textbase.ts ***!
+  \**********************************/
+
+/*!**********************************!*\
+  !*** ./src/react/flow-panel.tsx ***!
+  \**********************************/
+
+/*!**********************************!*\
+  !*** ./src/react/panel-base.tsx ***!
+  \**********************************/
+
+/*!**********************************!*\
+  !*** ./src/template-renderer.ts ***!
+  \**********************************/
+
+/*!***********************************!*\
+  !*** ./src/images/ArrowRight.svg ***!
+  \***********************************/
+
+/*!***********************************!*\
+  !*** ./src/images/ChooseFile.svg ***!
+  \***********************************/
+
+/*!***********************************!*\
+  !*** ./src/images/Down_34x34.svg ***!
+  \***********************************/
+
+/*!***********************************!*\
+  !*** ./src/images/RemoveFile.svg ***!
+  \***********************************/
+
+/*!***********************************!*\
+  !*** ./src/react/imagepicker.tsx ***!
+  \***********************************/
+
+/*!***********************************!*\
+  !*** ./src/react/reactSurvey.tsx ***!
+  \***********************************/
+
+/*!***********************************!*\
+  !*** ./src/react/tagbox-item.tsx ***!
+  \***********************************/
+
+/*!************************************!*\
+  !*** ./src/drag-drop-helper-v1.ts ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/entries/core-export.ts ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/images/DefaultFile.svg ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/images/ModernCheck.svg ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/images/ModernRadio.svg ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/images/SearchClear.svg ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/images/TimerCircle.svg ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/images/clear_16x16.svg ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/images/rating-star.svg ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/images/smiley/good.svg ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/images/smiley/poor.svg ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/question_baseselect.ts ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/question_expression.ts ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/question_radiogroup.ts ***!
+  \************************************/
+
+/*!************************************!*\
+  !*** ./src/react/signaturepad.tsx ***!
+  \************************************/
+
+/*!*************************************!*\
+  !*** ./src/defaultCss/cssmodern.ts ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/dragdrop/dom-adapter.ts ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/dragdrop/matrix-rows.ts ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/entries/chunks/model.ts ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/images/expandDetail.svg ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/localization/english.ts ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/multiSelectListModel.ts ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/question_buttongroup.ts ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/question_imagepicker.ts ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/react/boolean-radio.tsx ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/react/custom-widget.tsx ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/react/dropdown-base.tsx ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/react/dropdown-item.tsx ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/react/reactquestion.tsx ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/react/string-editor.tsx ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/react/string-viewer.tsx ***!
+  \*************************************/
+
+/*!*************************************!*\
+  !*** ./src/react/tagbox-filter.tsx ***!
+  \*************************************/
+
+/*!**************************************!*\
+  !*** ./src/conditionProcessValue.ts ***!
+  \**************************************/
+
+/*!**************************************!*\
+  !*** ./src/entries/core-wo-model.ts ***!
+  \**************************************/
+
+/*!**************************************!*\
+  !*** ./src/images/V2Check_24x24.svg ***!
+  \**************************************/
+
+/*!**************************************!*\
+  !*** ./src/images/rating-star-2.svg ***!
+  \**************************************/
+
+/*!**************************************!*\
+  !*** ./src/images/smiley/normal.svg ***!
+  \**************************************/
+
+/*!**************************************!*\
+  !*** ./src/questionCustomWidgets.ts ***!
+  \**************************************/
+
+/*!**************************************!*\
+  !*** ./src/question_multipletext.ts ***!
+  \**************************************/
+
+/*!**************************************!*\
+  !*** ./src/question_paneldynamic.ts ***!
+  \**************************************/
+
+/*!**************************************!*\
+  !*** ./src/question_signaturepad.ts ***!
+  \**************************************/
+
+/*!**************************************!*\
+  !*** ./src/react/element-header.tsx ***!
+  \**************************************/
+
+/*!**************************************!*\
+  !*** ./src/surveyProgressButtons.ts ***!
+  \**************************************/
+
+/*!**************************************!*\
+  !*** ./src/utils/cssClassBuilder.ts ***!
+  \**************************************/
+
+/*!***************************************!*\
+  !*** ./src/defaultCss/cssstandard.ts ***!
+  \***************************************/
+
+/*!***************************************!*\
+  !*** ./src/entries/react-ui-model.ts ***!
+  \***************************************/
+
+/*!***************************************!*\
+  !*** ./src/images/ProgressButton.svg ***!
+  \***************************************/
+
+/*!***************************************!*\
+  !*** ./src/images/collapseDetail.svg ***!
+  \***************************************/
+
+/*!***************************************!*\
+  !*** ./src/images/smiley/average.svg ***!
+  \***************************************/
+
+/*!***************************************!*\
+  !*** ./src/images/smiley/perfect.svg ***!
+  \***************************************/
+
+/*!***************************************!*\
+  !*** ./src/popup-modal-view-model.ts ***!
+  \***************************************/
+
+/*!***************************************!*\
+  !*** ./src/question_matrixdynamic.ts ***!
+  \***************************************/
+
+/*!***************************************!*\
+  !*** ./src/react/dropdown-select.tsx ***!
+  \***************************************/
+
+/*!***************************************!*\
+  !*** ./src/react/element-factory.tsx ***!
+  \***************************************/
+
+/*!***************************************!*\
+  !*** ./src/react/rating-dropdown.tsx ***!
+  \***************************************/
+
+/*!***************************************!*\
+  !*** ./src/react/reacttimerpanel.tsx ***!
+  \***************************************/
+
+/*!****************************************!*\
+  !*** ./src/defaultCss/defaultV2Css.ts ***!
+  \****************************************/
+
+/*!****************************************!*\
+  !*** ./src/expressions/expressions.ts ***!
+  \****************************************/
+
+/*!****************************************!*\
+  !*** ./src/images/ArrowDown_34x34.svg ***!
+  \****************************************/
+
+/*!****************************************!*\
+  !*** ./src/images/smiley/not-good.svg ***!
+  \****************************************/
+
+/*!****************************************!*\
+  !*** ./src/images/smiley/terrible.svg ***!
+  \****************************************/
+
+/*!****************************************!*\
+  !*** ./src/question_matrixdropdown.ts ***!
+  \****************************************/
+
+/*!****************************************!*\
+  !*** ./src/react/boolean-checkbox.tsx ***!
+  \****************************************/
+
+/*!****************************************!*\
+  !*** ./src/react/reactsurveymodel.tsx ***!
+  \****************************************/
+
+/*!****************************************!*\
+  !*** ./src/utils/dragOrClickHelper.ts ***!
+  \****************************************/
+
+/*!*****************************************!*\
+  !*** ./src/drag-drop-page-helper-v1.ts ***!
+  \*****************************************/
+
+/*!*****************************************!*\
+  !*** ./src/dragdrop/ranking-choices.ts ***!
+  \*****************************************/
+
+/*!*****************************************!*\
+  !*** ./src/images/ProgressButtonV2.svg ***!
+  \*****************************************/
+
+/*!*****************************************!*\
+  !*** ./src/images/smiley/excellent.svg ***!
+  \*****************************************/
+
+/*!*****************************************!*\
+  !*** ./src/images/smiley/very-good.svg ***!
+  \*****************************************/
+
+/*!*****************************************!*\
+  !*** ./src/images/smiley/very-poor.svg ***!
+  \*****************************************/
+
+/*!******************************************!*\
+  !*** ./src/drag-drop-panel-helper-v1.ts ***!
+  \******************************************/
+
+/*!******************************************!*\
+  !*** ./src/images/rating-star-small.svg ***!
+  \******************************************/
+
+/*!******************************************!*\
+  !*** ./src/popup-dropdown-view-model.ts ***!
+  \******************************************/
+
+/*!******************************************!*\
+  !*** ./src/react/react-popup-survey.tsx ***!
+  \******************************************/
+
+/*!******************************************!*\
+  !*** ./src/react/reactquestion_file.tsx ***!
+  \******************************************/
+
+/*!******************************************!*\
+  !*** ./src/react/reactquestion_html.tsx ***!
+  \******************************************/
+
+/*!******************************************!*\
+  !*** ./src/react/reactquestion_text.tsx ***!
+  \******************************************/
+
+/*!*******************************************!*\
+  !*** ./src/actions/adaptive-container.ts ***!
+  \*******************************************/
+
+/*!*******************************************!*\
+  !*** ./src/react/components/notifier.tsx ***!
+  \*******************************************/
+
+/*!*******************************************!*\
+  !*** ./src/react/components/skeleton.tsx ***!
+  \*******************************************/
+
+/*!*******************************************!*\
+  !*** ./src/react/reactSurveyProgress.tsx ***!
+  \*******************************************/
+
+/*!*******************************************!*\
+  !*** ./src/react/reactquestion_empty.tsx ***!
+  \*******************************************/
+
+/*!*******************************************!*\
+  !*** ./src/utils/responsivity-manager.ts ***!
+  \*******************************************/
+
+/*!********************************************!*\
+  !*** ./src/images/V2DragElement_16x16.svg ***!
+  \********************************************/
+
+/*!********************************************!*\
+  !*** ./src/images/rating-star-small-2.svg ***!
+  \********************************************/
+
+/*!********************************************!*\
+  !*** ./src/question_matrixdropdownbase.ts ***!
+  \********************************************/
+
+/*!********************************************!*\
+  !*** ./src/react/components/list/list.tsx ***!
+  \********************************************/
+
+/*!********************************************!*\
+  !*** ./src/react/reactquestion_custom.tsx ***!
+  \********************************************/
+
+/*!********************************************!*\
+  !*** ./src/react/reactquestion_matrix.tsx ***!
+  \********************************************/
+
+/*!********************************************!*\
+  !*** ./src/react/reactquestion_rating.tsx ***!
+  \********************************************/
+
+/*!********************************************!*\
+  !*** ./src/react/reactquestion_tagbox.tsx ***!
+  \********************************************/
+
+/*!*********************************************!*\
+  !*** ./src/dropdownMultiSelectListModel.ts ***!
+  \*********************************************/
+
+/*!*********************************************!*\
+  !*** ./src/expressions/expressionParser.ts ***!
+  \*********************************************/
+
+/*!*********************************************!*\
+  !*** ./src/images sync nonrecursive \.svg$ ***!
+  \*********************************************/
+
+/*!*********************************************!*\
+  !*** ./src/images/Arrow_downGREY_10x10.svg ***!
+  \*********************************************/
+
+/*!*********************************************!*\
+  !*** ./src/react/components/brand-info.tsx ***!
+  \*********************************************/
+
+/*!*********************************************!*\
+  !*** ./src/react/components/matrix/row.tsx ***!
+  \*********************************************/
+
+/*!*********************************************!*\
+  !*** ./src/react/reactquestion_comment.tsx ***!
+  \*********************************************/
+
+/*!*********************************************!*\
+  !*** ./src/react/reactquestion_element.tsx ***!
+  \*********************************************/
+
+/*!*********************************************!*\
+  !*** ./src/react/reactquestion_factory.tsx ***!
+  \*********************************************/
+
+/*!*********************************************!*\
+  !*** ./src/react/reactquestion_ranking.tsx ***!
+  \*********************************************/
+
+/*!**********************************************!*\
+  !*** ./src/images/ModernBooleanCheckInd.svg ***!
+  \**********************************************/
+
+/*!**********************************************!*\
+  !*** ./src/question_matrixdropdowncolumn.ts ***!
+  \**********************************************/
+
+/*!**********************************************!*\
+  !*** ./src/react/components/popup/popup.tsx ***!
+  \**********************************************/
+
+/*!**********************************************!*\
+  !*** ./src/react/reactSurveyProgressToc.tsx ***!
+  \**********************************************/
+
+/*!**********************************************!*\
+  !*** ./src/react/reactquestion_checkbox.tsx ***!
+  \**********************************************/
+
+/*!**********************************************!*\
+  !*** ./src/react/reactquestion_dropdown.tsx ***!
+  \**********************************************/
+
+/*!************************************************!*\
+  !*** ./src/question_matrixdropdownrendered.ts ***!
+  \************************************************/
+
+/*!************************************************!*\
+  !*** ./src/react/reactquestion_expression.tsx ***!
+  \************************************************/
+
+/*!************************************************!*\
+  !*** ./src/react/reactquestion_radiogroup.tsx ***!
+  \************************************************/
+
+/*!*************************************************!*\
+  !*** ./src/react/components/list/list-item.tsx ***!
+  \*************************************************/
+
+/*!*************************************************!*\
+  !*** ./src/react/reactSurveyNavigationBase.tsx ***!
+  \*************************************************/
+
+/*!*************************************************!*\
+  !*** ./src/react/reactquestion_buttongroup.tsx ***!
+  \*************************************************/
+
+/*!**************************************************!*\
+  !*** ./src/images/ModernBooleanCheckChecked.svg ***!
+  \**************************************************/
+
+/*!**************************************************!*\
+  !*** ./src/react/reactSurveyProgressButtons.tsx ***!
+  \**************************************************/
+
+/*!**************************************************!*\
+  !*** ./src/react/reactquestion_multipletext.tsx ***!
+  \**************************************************/
+
+/*!**************************************************!*\
+  !*** ./src/react/reactquestion_paneldynamic.tsx ***!
+  \**************************************************/
+
+/*!***************************************************!*\
+  !*** ./src/react/reactquestion_matrixdynamic.tsx ***!
+  \***************************************************/
+
+/*!****************************************************!*\
+  !*** ./src/images/ModernBooleanCheckUnchecked.svg ***!
+  \****************************************************/
+
+/*!****************************************************!*\
+  !*** ./src/images/smiley sync nonrecursive \.svg$ ***!
+  \****************************************************/
+
+/*!****************************************************!*\
+  !*** ./src/react/components/character-counter.tsx ***!
+  \****************************************************/
+
+/*!****************************************************!*\
+  !*** ./src/react/components/svg-icon/svg-icon.tsx ***!
+  \****************************************************/
+
+/*!****************************************************!*\
+  !*** ./src/react/reactquestion_matrixdropdown.tsx ***!
+  \****************************************************/
+
+/*!*****************************************************!*\
+  !*** ./src/react/components/rating/rating-item.tsx ***!
+  \*****************************************************/
+
+/*!******************************************************!*\
+  !*** ./src/react/components/title/title-actions.tsx ***!
+  \******************************************************/
+
+/*!******************************************************!*\
+  !*** ./src/react/components/title/title-content.tsx ***!
+  \******************************************************/
+
+/*!******************************************************!*\
+  !*** ./src/react/components/title/title-element.tsx ***!
+  \******************************************************/
+
+/*!*******************************************************!*\
+  !*** ./src/react/components/components-container.tsx ***!
+  \*******************************************************/
+
+/*!********************************************************!*\
+  !*** ./src/react/components/action-bar/action-bar.tsx ***!
+  \********************************************************/
+
+/*!********************************************************!*\
+  !*** ./src/react/reactquestion_matrixdropdownbase.tsx ***!
+  \********************************************************/
+
+/*!**********************************************************!*\
+  !*** ./src/react/components/rating/rating-item-star.tsx ***!
+  \**********************************************************/
+
+/*!***********************************************************!*\
+  !*** ./node_modules/signature_pad/dist/signature_pad.mjs ***!
+  \***********************************************************/
+
+/*!***********************************************************!*\
+  !*** ./src/react/components/survey-header/logo-image.tsx ***!
+  \***********************************************************/
+
+/*!************************************************************!*\
+  !*** ./src/react/components/rating/rating-item-smiley.tsx ***!
+  \************************************************************/
+
+/*!*************************************************************!*\
+  !*** ./src/react/components/action-bar/action-bar-item.tsx ***!
+  \*************************************************************/
+
+/*!**************************************************************!*\
+  !*** ./src/react/components/survey-header/survey-header.tsx ***!
+  \**************************************************************/
+
+/*!******************************************************************!*\
+  !*** ./src/react/components/action-bar/action-bar-separator.tsx ***!
+  \******************************************************************/
+
+/*!*******************************************************************!*\
+  !*** ./src/react/components/survey-actions/survey-nav-button.tsx ***!
+  \*******************************************************************/
+
+/*!**********************************************************************!*\
+  !*** ./src/react/components/action-bar/action-bar-item-dropdown.tsx ***!
+  \**********************************************************************/
+
+/*!****************************************************************************!*\
+  !*** ./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx ***!
+  \****************************************************************************/
+
+/*!*****************************************************************************!*\
+  !*** ./src/react/components/matrix-actions/detail-button/detail-button.tsx ***!
+  \*****************************************************************************/
+
+/*!*****************************************************************************!*\
+  !*** ./src/react/components/matrix-actions/remove-button/remove-button.tsx ***!
+  \*****************************************************************************/
+
+/*!*****************************************************************************!*\
+  !*** ./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx ***!
+  \*****************************************************************************/
+
+/*!*****************************************************************************!*\
+  !*** ./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx ***!
+  \*****************************************************************************/
+
+/*!*******************************************************************************!*\
+  !*** ./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx ***!
+  \*******************************************************************************/
+
+/*!*******************************************************************************!*\
+  !*** ./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx ***!
+  \*******************************************************************************/
+
+/*!**********************************************************************************!*\
+  !*** ./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx ***!
+  \**********************************************************************************/
+
+/*!**************************************************************************************!*\
+  !*** external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} ***!
+  \**************************************************************************************/
+
+/*!*****************************************************************************************************!*\
+  !*** external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"} ***!
+  \*****************************************************************************************************/
+
+/*!*********************************************************************************************************!*\
+  !*** external {"root":"Survey","commonjs2":"survey-core","commonjs":"survey-core","amd":"survey-core"} ***!
+  \*********************************************************************************************************/
+
+/**
+ * @license React
+ * react-dom.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+/**
+ * @license React
+ * react.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
+
+/**
+ * @license React
+ * scheduler.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */
diff --git a/compendium_v2/templates/survey-index.html b/compendium_v2/templates/survey-index.html
new file mode 100644
index 0000000000000000000000000000000000000000..9c5cea1718a2ffe93d34f35625c4d47e77c64b28
--- /dev/null
+++ b/compendium_v2/templates/survey-index.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+</head>
+<body>
+  <div id="root"></div>
+  <script src="/static/survey-bundle.js"></script>
+</body>
+</html>
\ No newline at end of file
diff --git a/config-example.json b/config-example.json
index f480ed9299e96959a65f543c5dda1514ceef3b4e..a04ee059f8b528a5821205dc507765c0e6751aa8 100644
--- a/config-example.json
+++ b/config-example.json
@@ -1,4 +1,10 @@
 {
   "SQLALCHEMY_DATABASE_URI": "postgresql://compendium:compendium321@localhost:65000/compendium",
-  "SURVEY_DATABASE_URI": ""
+  "SURVEY_DATABASE_URI": "",
+  "oidc": {
+    "client_id": "<id>",
+    "client_secret": "<secret>",
+    "server_metadata_url": "https://accounts.google.com/.well-known/openid-configuration"
+  },
+  "SECRET_KEY": "changeme"
 }
diff --git a/requirements.txt b/requirements.txt
index 2487e32e3c9d72740dc2e346166467f3f2c64bde..fa17bda5006eb6a3df220d5b7f84bcae67b4c02a 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -8,6 +8,8 @@ flask-sqlalchemy~=3.0
 openpyxl~=3.1
 psycopg2-binary~=2.9
 SQLAlchemy~=2.0
+authlib~=1.2
+flask-login~=0.6
 
 pytest~=7.2
 pytest-mock~=3.10
@@ -22,6 +24,7 @@ types-jsonschema~=4.17
 types-Flask-Cors~=3.0
 types-openpyxl~=3.1
 types-setuptools~=67.6
+types-click~=7.1
 
 sentry-sdk[flask]~=1.23
 python-dotenv~=1.0
diff --git a/setup.py b/setup.py
index 873e603309fd4ee033342fd9dda50cc5a72bb491..fd07d3258e42abe2a0376d33808ccb0936745691 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
 
 setup(
     name='compendium-v2',
-    version="0.18",
+    version="0.19",
     author='GEANT',
     author_email='swd@geant.org',
     description='Flask and React project for displaying '
@@ -20,14 +20,32 @@ setup(
         'openpyxl~=3.1',
         'psycopg2-binary~=2.9',
         'SQLAlchemy~=2.0',
-        'sentry-sdk[flask]~=1.23'
+        'sentry-sdk[flask]~=1.23',
+        'authlib~=1.2',
+        'flask-login~=0.6',
+        'requests~=2.31'
     ],
     include_package_data=True,
-
     entry_points={
         'console_scripts': [
             'survey-publisher-v1=compendium_v2.publishers.survey_publisher_v1:cli',  # noqa
             'survey-publisher-2022=compendium_v2.publishers.survey_publisher_2022:cli',  # noqa
+            'conversion=compendium_v2.conversion.conversion:cli',  # noqa
         ]
-    }
+    },
+    license='MIT',
+    license_files=('LICENSE.txt',),
+    classifiers=[
+        'Programming Language :: Python :: 3',
+        'Programming Language :: Python :: 3.6',
+        'Programming Language :: Python :: 3.7',
+        'Programming Language :: Python :: 3.8',
+        'Programming Language :: Python :: 3.9',
+        'Programming Language :: Python :: 3.10',
+        'Programming Language :: Python :: 3.11',
+        'License :: OSI Approved :: MIT License',
+        'Development Status :: 5 - Production/Stable'
+    ],
+    python_requires='>=3.6'
+
 )
diff --git a/survey-frontend/.babelrc b/survey-frontend/.babelrc
new file mode 100644
index 0000000000000000000000000000000000000000..fe4f02a3a07006af1fc9a5353de7fde99383a5b9
--- /dev/null
+++ b/survey-frontend/.babelrc
@@ -0,0 +1,16 @@
+{
+    "presets": [
+      "@babel/preset-env",
+      "@babel/preset-react",
+      "@babel/preset-typescript"
+    ],
+    "plugins": [
+      [
+        "@babel/plugin-transform-runtime",
+        {
+          "regenerator": true
+        }
+      ],
+      "@babel/plugin-proposal-class-properties"
+    ]
+}
diff --git a/survey-frontend/.eslintignore b/survey-frontend/.eslintignore
new file mode 100644
index 0000000000000000000000000000000000000000..46dbe5f594c22f10ede92d51c145b3421d890ba7
--- /dev/null
+++ b/survey-frontend/.eslintignore
@@ -0,0 +1,2 @@
+**/*.css
+**/*.scss
diff --git a/survey-frontend/.eslintrc.json b/survey-frontend/.eslintrc.json
new file mode 100644
index 0000000000000000000000000000000000000000..5378a5f95373ba29c74ce7f948a0857966e5532d
--- /dev/null
+++ b/survey-frontend/.eslintrc.json
@@ -0,0 +1,30 @@
+{
+    "parser": "@typescript-eslint/parser",
+    "parserOptions": {
+      "ecmaVersion": 2018,
+      "sourceType": "module"
+    },
+    "plugins": [
+      "@typescript-eslint",
+      "react-hooks"
+    ],
+    "extends": [
+      "eslint:recommended",
+      "plugin:react/recommended",
+      "plugin:@typescript-eslint/recommended"
+    ],
+    "rules": {
+      "react-hooks/rules-of-hooks": "error",
+      "react-hooks/exhaustive-deps": "warn",
+      "react/prop-types": "off",
+      "@typescript-eslint/no-unused-vars": [
+        "warn", { "argsIgnorePattern": "^_" }
+      ]
+    },
+    "settings": {
+      "react": {
+        "pragma": "React",
+        "version": "detect"
+      }
+    }
+  }
\ No newline at end of file
diff --git a/survey-frontend/README.md b/survey-frontend/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..bb42157accd3d2e01418b840f5b16c8cd81bcdc6
--- /dev/null
+++ b/survey-frontend/README.md
@@ -0,0 +1,29 @@
+# Working with the Web App
+
+## development environment
+
+From this folder, run:
+
+```bash
+$ npm install
+```
+
+To run the webpack development server:
+
+```bash
+$ npm run start
+```
+
+Note that you should run the Flask application separately
+and append `?test=1` to the dev url that launches in the browser.
+
+## Releasing
+
+To build a new bundle, run:
+
+```bash
+$ npm run build
+```
+
+This will build the new bundle and deploy it to
+`compendium_v2/static/*`.  This should be committed.
diff --git a/survey-frontend/package-lock.json b/survey-frontend/package-lock.json
new file mode 100644
index 0000000000000000000000000000000000000000..d297ea7f733ba8a0b34aaa305b29f24e76b44fb6
--- /dev/null
+++ b/survey-frontend/package-lock.json
@@ -0,0 +1,12093 @@
+{
+  "name": "survey-frontend",
+  "lockfileVersion": 3,
+  "requires": true,
+  "packages": {
+    "": {
+      "dependencies": {
+        "bootstrap": "^5.3.0",
+        "react": "^18.2.0",
+        "react-bootstrap": "^2.7.4",
+        "react-dom": "^18.2.0",
+        "react-icons": "^4.9.0",
+        "react-router-dom": "^6.11.2",
+        "survey-react-ui": "^1.9.90"
+      },
+      "devDependencies": {
+        "@babel/core": "^7.22.1",
+        "@babel/plugin-proposal-class-properties": "^7.18.6",
+        "@babel/plugin-transform-runtime": "^7.22.4",
+        "@babel/preset-env": "^7.22.4",
+        "@babel/preset-react": "^7.22.3",
+        "@babel/preset-typescript": "^7.21.5",
+        "@babel/runtime": "^7.22.3",
+        "@types/react": "^18.2.8",
+        "@types/react-dom": "^18.2.4",
+        "@types/react-router-dom": "^5.3.3",
+        "@types/webpack": "^5.28.1",
+        "@typescript-eslint/eslint-plugin": "^5.59.8",
+        "@typescript-eslint/parser": "^5.59.8",
+        "babel-loader": "^9.1.2",
+        "css-loader": "^6.8.1",
+        "eslint": "^8.42.0",
+        "eslint-plugin-react": "^7.32.2",
+        "eslint-plugin-react-hooks": "^4.6.0",
+        "fork-ts-checker-webpack-plugin": "^8.0.0",
+        "image-webpack-loader": "^8.1.0",
+        "sass": "^1.62.1",
+        "sass-loader": "^13.3.1",
+        "style-loader": "^3.3.3",
+        "ts-node": "^10.9.1",
+        "typescript": "^5.1.3",
+        "url-loader": "^4.1.1",
+        "webpack": "^5.85.0",
+        "webpack-cli": "^5.1.2",
+        "webpack-dev-server": "^4.15.0"
+      }
+    },
+    "node_modules/@ampproject/remapping": {
+      "version": "2.2.1",
+      "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz",
+      "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==",
+      "dev": true,
+      "dependencies": {
+        "@jridgewell/gen-mapping": "^0.3.0",
+        "@jridgewell/trace-mapping": "^0.3.9"
+      },
+      "engines": {
+        "node": ">=6.0.0"
+      }
+    },
+    "node_modules/@babel/code-frame": {
+      "version": "7.21.4",
+      "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.21.4.tgz",
+      "integrity": "sha512-LYvhNKfwWSPpocw8GI7gpK2nq3HSDuEPC/uSYaALSJu9xjsalaaYFOq0Pwt5KmVqwEbZlDu81aLXwBOmD/Fv9g==",
+      "dev": true,
+      "dependencies": {
+        "@babel/highlight": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/compat-data": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.3.tgz",
+      "integrity": "sha512-aNtko9OPOwVESUFp3MZfD8Uzxl7JzSeJpd7npIoxCasU37PFbAQRpKglkaKwlHOyeJdrREpo8TW8ldrkYWwvIQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/core": {
+      "version": "7.22.1",
+      "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.1.tgz",
+      "integrity": "sha512-Hkqu7J4ynysSXxmAahpN1jjRwVJ+NdpraFLIWflgjpVob3KNyK3/tIUc7Q7szed8WMp0JNa7Qtd1E9Oo22F9gA==",
+      "dev": true,
+      "dependencies": {
+        "@ampproject/remapping": "^2.2.0",
+        "@babel/code-frame": "^7.21.4",
+        "@babel/generator": "^7.22.0",
+        "@babel/helper-compilation-targets": "^7.22.1",
+        "@babel/helper-module-transforms": "^7.22.1",
+        "@babel/helpers": "^7.22.0",
+        "@babel/parser": "^7.22.0",
+        "@babel/template": "^7.21.9",
+        "@babel/traverse": "^7.22.1",
+        "@babel/types": "^7.22.0",
+        "convert-source-map": "^1.7.0",
+        "debug": "^4.1.0",
+        "gensync": "^1.0.0-beta.2",
+        "json5": "^2.2.2",
+        "semver": "^6.3.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/babel"
+      }
+    },
+    "node_modules/@babel/generator": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.3.tgz",
+      "integrity": "sha512-C17MW4wlk//ES/CJDL51kPNwl+qiBQyN7b9SKyVp11BLGFeSPoVaHrv+MNt8jwQFhQWowW88z1eeBx3pFz9v8A==",
+      "dev": true,
+      "dependencies": {
+        "@babel/types": "^7.22.3",
+        "@jridgewell/gen-mapping": "^0.3.2",
+        "@jridgewell/trace-mapping": "^0.3.17",
+        "jsesc": "^2.5.1"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-annotate-as-pure": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz",
+      "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/types": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.3.tgz",
+      "integrity": "sha512-ahEoxgqNoYXm0k22TvOke48i1PkavGu0qGCmcq9ugi6gnmvKNaMjKBSrZTnWUi1CFEeNAUiVba0Wtzm03aSkJg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/types": "^7.22.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-compilation-targets": {
+      "version": "7.22.1",
+      "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.1.tgz",
+      "integrity": "sha512-Rqx13UM3yVB5q0D/KwQ8+SPfX/+Rnsy1Lw1k/UwOC4KC6qrzIQoY3lYnBu5EHKBlEHHcj0M0W8ltPSkD8rqfsQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/compat-data": "^7.22.0",
+        "@babel/helper-validator-option": "^7.21.0",
+        "browserslist": "^4.21.3",
+        "lru-cache": "^5.1.1",
+        "semver": "^6.3.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0"
+      }
+    },
+    "node_modules/@babel/helper-create-class-features-plugin": {
+      "version": "7.22.1",
+      "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.1.tgz",
+      "integrity": "sha512-SowrZ9BWzYFgzUMwUmowbPSGu6CXL5MSuuCkG3bejahSpSymioPmuLdhPxNOc9MjuNGjy7M/HaXvJ8G82Lywlw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-annotate-as-pure": "^7.18.6",
+        "@babel/helper-environment-visitor": "^7.22.1",
+        "@babel/helper-function-name": "^7.21.0",
+        "@babel/helper-member-expression-to-functions": "^7.22.0",
+        "@babel/helper-optimise-call-expression": "^7.18.6",
+        "@babel/helper-replace-supers": "^7.22.1",
+        "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0",
+        "@babel/helper-split-export-declaration": "^7.18.6",
+        "semver": "^6.3.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0"
+      }
+    },
+    "node_modules/@babel/helper-create-regexp-features-plugin": {
+      "version": "7.22.1",
+      "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.1.tgz",
+      "integrity": "sha512-WWjdnfR3LPIe+0EY8td7WmjhytxXtjKAEpnAxun/hkNiyOaPlvGK+NZaBFIdi9ndYV3Gav7BpFvtUwnaJlwi1w==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-annotate-as-pure": "^7.18.6",
+        "regexpu-core": "^5.3.1",
+        "semver": "^6.3.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0"
+      }
+    },
+    "node_modules/@babel/helper-define-polyfill-provider": {
+      "version": "0.4.0",
+      "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.0.tgz",
+      "integrity": "sha512-RnanLx5ETe6aybRi1cO/edaRH+bNYWaryCEmjDDYyNr4wnSzyOp8T0dWipmqVHKEY3AbVKUom50AKSlj1zmKbg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-compilation-targets": "^7.17.7",
+        "@babel/helper-plugin-utils": "^7.16.7",
+        "debug": "^4.1.1",
+        "lodash.debounce": "^4.0.8",
+        "resolve": "^1.14.2",
+        "semver": "^6.1.2"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.4.0-0"
+      }
+    },
+    "node_modules/@babel/helper-environment-visitor": {
+      "version": "7.22.1",
+      "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.1.tgz",
+      "integrity": "sha512-Z2tgopurB/kTbidvzeBrc2To3PUP/9i5MUe+fU6QJCQDyPwSH2oRapkLw3KGECDYSjhQZCNxEvNvZlLw8JjGwA==",
+      "dev": true,
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-function-name": {
+      "version": "7.21.0",
+      "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz",
+      "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/template": "^7.20.7",
+        "@babel/types": "^7.21.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-hoist-variables": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz",
+      "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==",
+      "dev": true,
+      "dependencies": {
+        "@babel/types": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-member-expression-to-functions": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.22.3.tgz",
+      "integrity": "sha512-Gl7sK04b/2WOb6OPVeNy9eFKeD3L6++CzL3ykPOWqTn08xgYYK0wz4TUh2feIImDXxcVW3/9WQ1NMKY66/jfZA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/types": "^7.22.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-module-imports": {
+      "version": "7.21.4",
+      "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.21.4.tgz",
+      "integrity": "sha512-orajc5T2PsRYUN3ZryCEFeMDYwyw09c/pZeaQEZPH0MpKzSvn3e0uXsDBu3k03VI+9DBiRo+l22BfKTpKwa/Wg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/types": "^7.21.4"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-module-transforms": {
+      "version": "7.22.1",
+      "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.1.tgz",
+      "integrity": "sha512-dxAe9E7ySDGbQdCVOY/4+UcD8M9ZFqZcZhSPsPacvCG4M+9lwtDDQfI2EoaSvmf7W/8yCBkGU0m7Pvt1ru3UZw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-environment-visitor": "^7.22.1",
+        "@babel/helper-module-imports": "^7.21.4",
+        "@babel/helper-simple-access": "^7.21.5",
+        "@babel/helper-split-export-declaration": "^7.18.6",
+        "@babel/helper-validator-identifier": "^7.19.1",
+        "@babel/template": "^7.21.9",
+        "@babel/traverse": "^7.22.1",
+        "@babel/types": "^7.22.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-optimise-call-expression": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz",
+      "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/types": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-plugin-utils": {
+      "version": "7.21.5",
+      "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.21.5.tgz",
+      "integrity": "sha512-0WDaIlXKOX/3KfBK/dwP1oQGiPh6rjMkT7HIRv7i5RR2VUMwrx5ZL0dwBkKx7+SW1zwNdgjHd34IMk5ZjTeHVg==",
+      "dev": true,
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-remap-async-to-generator": {
+      "version": "7.18.9",
+      "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz",
+      "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-annotate-as-pure": "^7.18.6",
+        "@babel/helper-environment-visitor": "^7.18.9",
+        "@babel/helper-wrap-function": "^7.18.9",
+        "@babel/types": "^7.18.9"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0"
+      }
+    },
+    "node_modules/@babel/helper-replace-supers": {
+      "version": "7.22.1",
+      "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.1.tgz",
+      "integrity": "sha512-ut4qrkE4AuSfrwHSps51ekR1ZY/ygrP1tp0WFm8oVq6nzc/hvfV/22JylndIbsf2U2M9LOMwiSddr6y+78j+OQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-environment-visitor": "^7.22.1",
+        "@babel/helper-member-expression-to-functions": "^7.22.0",
+        "@babel/helper-optimise-call-expression": "^7.18.6",
+        "@babel/template": "^7.21.9",
+        "@babel/traverse": "^7.22.1",
+        "@babel/types": "^7.22.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-simple-access": {
+      "version": "7.21.5",
+      "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.21.5.tgz",
+      "integrity": "sha512-ENPDAMC1wAjR0uaCUwliBdiSl1KBJAVnMTzXqi64c2MG8MPR6ii4qf7bSXDqSFbr4W6W028/rf5ivoHop5/mkg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/types": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-skip-transparent-expression-wrappers": {
+      "version": "7.20.0",
+      "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz",
+      "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/types": "^7.20.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-split-export-declaration": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz",
+      "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/types": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-string-parser": {
+      "version": "7.21.5",
+      "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.21.5.tgz",
+      "integrity": "sha512-5pTUx3hAJaZIdW99sJ6ZUUgWq/Y+Hja7TowEnLNMm1VivRgZQL3vpBY3qUACVsvw+yQU6+YgfBVmcbLaZtrA1w==",
+      "dev": true,
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-validator-identifier": {
+      "version": "7.19.1",
+      "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz",
+      "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==",
+      "dev": true,
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-validator-option": {
+      "version": "7.21.0",
+      "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz",
+      "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helper-wrap-function": {
+      "version": "7.20.5",
+      "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.20.5.tgz",
+      "integrity": "sha512-bYMxIWK5mh+TgXGVqAtnu5Yn1un+v8DDZtqyzKRLUzrh70Eal2O3aZ7aPYiMADO4uKlkzOiRiZ6GX5q3qxvW9Q==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-function-name": "^7.19.0",
+        "@babel/template": "^7.18.10",
+        "@babel/traverse": "^7.20.5",
+        "@babel/types": "^7.20.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/helpers": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.3.tgz",
+      "integrity": "sha512-jBJ7jWblbgr7r6wYZHMdIqKc73ycaTcCaWRq4/2LpuPHcx7xMlZvpGQkOYc9HeSjn6rcx15CPlgVcBtZ4WZJ2w==",
+      "dev": true,
+      "dependencies": {
+        "@babel/template": "^7.21.9",
+        "@babel/traverse": "^7.22.1",
+        "@babel/types": "^7.22.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/highlight": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz",
+      "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-validator-identifier": "^7.18.6",
+        "chalk": "^2.0.0",
+        "js-tokens": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/parser": {
+      "version": "7.22.4",
+      "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.4.tgz",
+      "integrity": "sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA==",
+      "dev": true,
+      "bin": {
+        "parser": "bin/babel-parser.js"
+      },
+      "engines": {
+        "node": ">=6.0.0"
+      }
+    },
+    "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz",
+      "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0"
+      }
+    },
+    "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.22.3.tgz",
+      "integrity": "sha512-6r4yRwEnorYByILoDRnEqxtojYKuiIv9FojW2E8GUKo9eWBwbKcd9IiZOZpdyXc64RmyGGyPu3/uAcrz/dq2kQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0",
+        "@babel/plugin-transform-optional-chaining": "^7.22.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.13.0"
+      }
+    },
+    "node_modules/@babel/plugin-proposal-class-properties": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz",
+      "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-create-class-features-plugin": "^7.18.6",
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-proposal-private-property-in-object": {
+      "version": "7.21.10",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.10.tgz",
+      "integrity": "sha512-3YybmT8FN4sZFXp0kTr9Gbu90wAIhC3feNung+qcRQ1wALGoSHgOz1c+fR3ZLGZ0LXqIpYmtE6Faua6tMDarUg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-annotate-as-pure": "^7.18.6",
+        "@babel/helper-create-class-features-plugin": "^7.21.0",
+        "@babel/helper-plugin-utils": "^7.20.2",
+        "@babel/plugin-syntax-private-property-in-object": "^7.14.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-proposal-unicode-property-regex": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz",
+      "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-create-regexp-features-plugin": "^7.18.6",
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=4"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-async-generators": {
+      "version": "7.8.4",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz",
+      "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.8.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-class-properties": {
+      "version": "7.12.13",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz",
+      "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.12.13"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-class-static-block": {
+      "version": "7.14.5",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz",
+      "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.14.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-dynamic-import": {
+      "version": "7.8.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz",
+      "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.8.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-export-namespace-from": {
+      "version": "7.8.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz",
+      "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.8.3"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-import-assertions": {
+      "version": "7.20.0",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz",
+      "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.19.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-import-attributes": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.22.3.tgz",
+      "integrity": "sha512-i35jZJv6aO7hxEbIWQ41adVfOzjm9dcYDNeWlBMd8p0ZQRtNUCBrmGwZt+H5lb+oOC9a3svp956KP0oWGA1YsA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-import-meta": {
+      "version": "7.10.4",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz",
+      "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.10.4"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-json-strings": {
+      "version": "7.8.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz",
+      "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.8.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-jsx": {
+      "version": "7.21.4",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.21.4.tgz",
+      "integrity": "sha512-5hewiLct5OKyh6PLKEYaFclcqtIgCb6bmELouxjF6up5q3Sov7rOayW4RwhbaBL0dit8rA80GNfY+UuDp2mBbQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.20.2"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-logical-assignment-operators": {
+      "version": "7.10.4",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz",
+      "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.10.4"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": {
+      "version": "7.8.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz",
+      "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.8.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-numeric-separator": {
+      "version": "7.10.4",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz",
+      "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.10.4"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-object-rest-spread": {
+      "version": "7.8.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz",
+      "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.8.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-optional-catch-binding": {
+      "version": "7.8.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz",
+      "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.8.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-optional-chaining": {
+      "version": "7.8.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz",
+      "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.8.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-private-property-in-object": {
+      "version": "7.14.5",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz",
+      "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.14.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-top-level-await": {
+      "version": "7.14.5",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz",
+      "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.14.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-typescript": {
+      "version": "7.21.4",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.21.4.tgz",
+      "integrity": "sha512-xz0D39NvhQn4t4RNsHmDnnsaQizIlUkdtYvLs8La1BlfjQ6JEwxkJGeqJMW2tAXx+q6H+WFuUTXNdYVpEya0YA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.20.2"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-syntax-unicode-sets-regex": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz",
+      "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-create-regexp-features-plugin": "^7.18.6",
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-arrow-functions": {
+      "version": "7.21.5",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.21.5.tgz",
+      "integrity": "sha512-wb1mhwGOCaXHDTcsRYMKF9e5bbMgqwxtqa2Y1ifH96dXJPwbuLX9qHy3clhrxVqgMz7nyNXs8VkxdH8UBcjKqA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-async-generator-functions": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.3.tgz",
+      "integrity": "sha512-36A4Aq48t66btydbZd5Fk0/xJqbpg/v4QWI4AH4cYHBXy9Mu42UOupZpebKFiCFNT9S9rJFcsld0gsv0ayLjtA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-environment-visitor": "^7.22.1",
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/helper-remap-async-to-generator": "^7.18.9",
+        "@babel/plugin-syntax-async-generators": "^7.8.4"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-async-to-generator": {
+      "version": "7.20.7",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.20.7.tgz",
+      "integrity": "sha512-Uo5gwHPT9vgnSXQxqGtpdufUiWp96gk7yiP4Mp5bm1QMkEmLXBO7PAGYbKoJ6DhAwiNkcHFBol/x5zZZkL/t0Q==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-module-imports": "^7.18.6",
+        "@babel/helper-plugin-utils": "^7.20.2",
+        "@babel/helper-remap-async-to-generator": "^7.18.9"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-block-scoped-functions": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz",
+      "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-block-scoping": {
+      "version": "7.21.0",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.21.0.tgz",
+      "integrity": "sha512-Mdrbunoh9SxwFZapeHVrwFmri16+oYotcZysSzhNIVDwIAb1UV+kvnxULSYq9J3/q5MDG+4X6w8QVgD1zhBXNQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.20.2"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-class-properties": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.22.3.tgz",
+      "integrity": "sha512-mASLsd6rhOrLZ5F3WbCxkzl67mmOnqik0zrg5W6D/X0QMW7HtvnoL1dRARLKIbMP3vXwkwziuLesPqWVGIl6Bw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-create-class-features-plugin": "^7.22.1",
+        "@babel/helper-plugin-utils": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-class-static-block": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.22.3.tgz",
+      "integrity": "sha512-5BirgNWNOx7cwbTJCOmKFJ1pZjwk5MUfMIwiBBvsirCJMZeQgs5pk6i1OlkVg+1Vef5LfBahFOrdCnAWvkVKMw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-create-class-features-plugin": "^7.22.1",
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/plugin-syntax-class-static-block": "^7.14.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.12.0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-classes": {
+      "version": "7.21.0",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.21.0.tgz",
+      "integrity": "sha512-RZhbYTCEUAe6ntPehC4hlslPWosNHDox+vAs4On/mCLRLfoDVHf6hVEd7kuxr1RnHwJmxFfUM3cZiZRmPxJPXQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-annotate-as-pure": "^7.18.6",
+        "@babel/helper-compilation-targets": "^7.20.7",
+        "@babel/helper-environment-visitor": "^7.18.9",
+        "@babel/helper-function-name": "^7.21.0",
+        "@babel/helper-optimise-call-expression": "^7.18.6",
+        "@babel/helper-plugin-utils": "^7.20.2",
+        "@babel/helper-replace-supers": "^7.20.7",
+        "@babel/helper-split-export-declaration": "^7.18.6",
+        "globals": "^11.1.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-computed-properties": {
+      "version": "7.21.5",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.21.5.tgz",
+      "integrity": "sha512-TR653Ki3pAwxBxUe8srfF3e4Pe3FTA46uaNHYyQwIoM4oWKSoOZiDNyHJ0oIoDIUPSRQbQG7jzgVBX3FPVne1Q==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/template": "^7.20.7"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-destructuring": {
+      "version": "7.21.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.21.3.tgz",
+      "integrity": "sha512-bp6hwMFzuiE4HqYEyoGJ/V2LeIWn+hLVKc4pnj++E5XQptwhtcGmSayM029d/j2X1bPKGTlsyPwAubuU22KhMA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.20.2"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-dotall-regex": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz",
+      "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-create-regexp-features-plugin": "^7.18.6",
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-duplicate-keys": {
+      "version": "7.18.9",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz",
+      "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.9"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-dynamic-import": {
+      "version": "7.22.1",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.22.1.tgz",
+      "integrity": "sha512-rlhWtONnVBPdmt+jeewS0qSnMz/3yLFrqAP8hHC6EDcrYRSyuz9f9yQhHvVn2Ad6+yO9fHXac5piudeYrInxwQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/plugin-syntax-dynamic-import": "^7.8.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-exponentiation-operator": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz",
+      "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6",
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-export-namespace-from": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.22.3.tgz",
+      "integrity": "sha512-5Ti1cHLTDnt3vX61P9KZ5IG09bFXp4cDVFJIAeCZuxu9OXXJJZp5iP0n/rzM2+iAutJY+KWEyyHcRaHlpQ/P5g==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/plugin-syntax-export-namespace-from": "^7.8.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-for-of": {
+      "version": "7.21.5",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.21.5.tgz",
+      "integrity": "sha512-nYWpjKW/7j/I/mZkGVgHJXh4bA1sfdFnJoOXwJuj4m3Q2EraO/8ZyrkCau9P5tbHQk01RMSt6KYLCsW7730SXQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-function-name": {
+      "version": "7.18.9",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz",
+      "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-compilation-targets": "^7.18.9",
+        "@babel/helper-function-name": "^7.18.9",
+        "@babel/helper-plugin-utils": "^7.18.9"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-json-strings": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.22.3.tgz",
+      "integrity": "sha512-IuvOMdeOOY2X4hRNAT6kwbePtK21BUyrAEgLKviL8pL6AEEVUVcqtRdN/HJXBLGIbt9T3ETmXRnFedRRmQNTYw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/plugin-syntax-json-strings": "^7.8.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-literals": {
+      "version": "7.18.9",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz",
+      "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.9"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-logical-assignment-operators": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.22.3.tgz",
+      "integrity": "sha512-CbayIfOw4av2v/HYZEsH+Klks3NC2/MFIR3QR8gnpGNNPEaq2fdlVCRYG/paKs7/5hvBLQ+H70pGWOHtlNEWNA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-member-expression-literals": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz",
+      "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-modules-amd": {
+      "version": "7.20.11",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.20.11.tgz",
+      "integrity": "sha512-NuzCt5IIYOW0O30UvqktzHYR2ud5bOWbY0yaxWZ6G+aFzOMJvrs5YHNikrbdaT15+KNO31nPOy5Fim3ku6Zb5g==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-module-transforms": "^7.20.11",
+        "@babel/helper-plugin-utils": "^7.20.2"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-modules-commonjs": {
+      "version": "7.21.5",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.21.5.tgz",
+      "integrity": "sha512-OVryBEgKUbtqMoB7eG2rs6UFexJi6Zj6FDXx+esBLPTCxCNxAY9o+8Di7IsUGJ+AVhp5ncK0fxWUBd0/1gPhrQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-module-transforms": "^7.21.5",
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/helper-simple-access": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-modules-systemjs": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.22.3.tgz",
+      "integrity": "sha512-V21W3bKLxO3ZjcBJZ8biSvo5gQ85uIXW2vJfh7JSWf/4SLUSr1tOoHX3ruN4+Oqa2m+BKfsxTR1I+PsvkIWvNw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-hoist-variables": "^7.18.6",
+        "@babel/helper-module-transforms": "^7.22.1",
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/helper-validator-identifier": "^7.19.1"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-modules-umd": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz",
+      "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-module-transforms": "^7.18.6",
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-named-capturing-groups-regex": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.3.tgz",
+      "integrity": "sha512-c6HrD/LpUdNNJsISQZpds3TXvfYIAbo+efE9aWmY/PmSRD0agrJ9cPMt4BmArwUQ7ZymEWTFjTyp+yReLJZh0Q==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-create-regexp-features-plugin": "^7.22.1",
+        "@babel/helper-plugin-utils": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-new-target": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.22.3.tgz",
+      "integrity": "sha512-5RuJdSo89wKdkRTqtM9RVVJzHum9c2s0te9rB7vZC1zKKxcioWIy+xcu4OoIAjyFZhb/bp5KkunuLin1q7Ct+w==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-nullish-coalescing-operator": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.22.3.tgz",
+      "integrity": "sha512-CpaoNp16nX7ROtLONNuCyenYdY/l7ZsR6aoVa7rW7nMWisoNoQNIH5Iay/4LDyRjKMuElMqXiBoOQCDLTMGZiw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-numeric-separator": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.22.3.tgz",
+      "integrity": "sha512-+AF88fPDJrnseMh5vD9+SH6wq4ZMvpiTMHh58uLs+giMEyASFVhcT3NkoyO+NebFCNnpHJEq5AXO2txV4AGPDQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/plugin-syntax-numeric-separator": "^7.10.4"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-object-rest-spread": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.22.3.tgz",
+      "integrity": "sha512-38bzTsqMMCI46/TQnJwPPpy33EjLCc1Gsm2hRTF6zTMWnKsN61vdrpuzIEGQyKEhDSYDKyZHrrd5FMj4gcUHhw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/compat-data": "^7.22.3",
+        "@babel/helper-compilation-targets": "^7.22.1",
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
+        "@babel/plugin-transform-parameters": "^7.22.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-object-super": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz",
+      "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.6",
+        "@babel/helper-replace-supers": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-optional-catch-binding": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.22.3.tgz",
+      "integrity": "sha512-bnDFWXFzWY0BsOyqaoSXvMQ2F35zutQipugog/rqotL2S4ciFOKlRYUu9djt4iq09oh2/34hqfRR2k1dIvuu4g==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/plugin-syntax-optional-catch-binding": "^7.8.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-optional-chaining": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.22.3.tgz",
+      "integrity": "sha512-63v3/UFFxhPKT8j8u1jTTGVyITxl7/7AfOqK8C5gz1rHURPUGe3y5mvIf68eYKGoBNahtJnTxBKug4BQOnzeJg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0",
+        "@babel/plugin-syntax-optional-chaining": "^7.8.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-parameters": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.22.3.tgz",
+      "integrity": "sha512-x7QHQJHPuD9VmfpzboyGJ5aHEr9r7DsAsdxdhJiTB3J3j8dyl+NFZ+rX5Q2RWFDCs61c06qBfS4ys2QYn8UkMw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-private-methods": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.22.3.tgz",
+      "integrity": "sha512-fC7jtjBPFqhqpPAE+O4LKwnLq7gGkD3ZmC2E3i4qWH34mH3gOg2Xrq5YMHUq6DM30xhqM1DNftiRaSqVjEG+ug==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-create-class-features-plugin": "^7.22.1",
+        "@babel/helper-plugin-utils": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-private-property-in-object": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.22.3.tgz",
+      "integrity": "sha512-C7MMl4qWLpgVCbXfj3UW8rR1xeCnisQ0cU7YJHV//8oNBS0aCIVg1vFnZXxOckHhEpQyqNNkWmvSEWnMLlc+Vw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-annotate-as-pure": "^7.18.6",
+        "@babel/helper-create-class-features-plugin": "^7.22.1",
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/plugin-syntax-private-property-in-object": "^7.14.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-property-literals": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz",
+      "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-react-display-name": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz",
+      "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-react-jsx": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.3.tgz",
+      "integrity": "sha512-JEulRWG2f04a7L8VWaOngWiK6p+JOSpB+DAtwfJgOaej1qdbNxqtK7MwTBHjUA10NeFcszlFNqCdbRcirzh2uQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-annotate-as-pure": "^7.18.6",
+        "@babel/helper-module-imports": "^7.21.4",
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/plugin-syntax-jsx": "^7.21.4",
+        "@babel/types": "^7.22.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-react-jsx-development": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz",
+      "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/plugin-transform-react-jsx": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-react-pure-annotations": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz",
+      "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-annotate-as-pure": "^7.18.6",
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-regenerator": {
+      "version": "7.21.5",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.21.5.tgz",
+      "integrity": "sha512-ZoYBKDb6LyMi5yCsByQ5jmXsHAQDDYeexT1Szvlmui+lADvfSecr5Dxd/PkrTC3pAD182Fcju1VQkB4oCp9M+w==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "regenerator-transform": "^0.15.1"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-reserved-words": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz",
+      "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-runtime": {
+      "version": "7.22.4",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.4.tgz",
+      "integrity": "sha512-Urkiz1m4zqiRo17klj+l3nXgiRTFQng91Bc1eiLF7BMQu1e7wE5Gcq9xSv062IF068NHjcutSbIMev60gXxAvA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-module-imports": "^7.21.4",
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "babel-plugin-polyfill-corejs2": "^0.4.3",
+        "babel-plugin-polyfill-corejs3": "^0.8.1",
+        "babel-plugin-polyfill-regenerator": "^0.5.0",
+        "semver": "^6.3.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-shorthand-properties": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz",
+      "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-spread": {
+      "version": "7.20.7",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.20.7.tgz",
+      "integrity": "sha512-ewBbHQ+1U/VnH1fxltbJqDeWBU1oNLG8Dj11uIv3xVf7nrQu0bPGe5Rf716r7K5Qz+SqtAOVswoVunoiBtGhxw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.20.2",
+        "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-sticky-regex": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz",
+      "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-template-literals": {
+      "version": "7.18.9",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz",
+      "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.9"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-typeof-symbol": {
+      "version": "7.18.9",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz",
+      "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.18.9"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-typescript": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.3.tgz",
+      "integrity": "sha512-pyjnCIniO5PNaEuGxT28h0HbMru3qCVrMqVgVOz/krComdIrY9W6FCLBq9NWHY8HDGaUlan+UhmZElDENIfCcw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-annotate-as-pure": "^7.18.6",
+        "@babel/helper-create-class-features-plugin": "^7.22.1",
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/plugin-syntax-typescript": "^7.21.4"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-unicode-escapes": {
+      "version": "7.21.5",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.21.5.tgz",
+      "integrity": "sha512-LYm/gTOwZqsYohlvFUe/8Tujz75LqqVC2w+2qPHLR+WyWHGCZPN1KBpJCJn+4Bk4gOkQy/IXKIge6az5MqwlOg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-unicode-property-regex": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.22.3.tgz",
+      "integrity": "sha512-5ScJ+OmdX+O6HRuMGW4kv7RL9vIKdtdAj9wuWUKy1wbHY3jaM/UlyIiC1G7J6UJiiyMukjjK0QwL3P0vBd0yYg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-create-regexp-features-plugin": "^7.22.1",
+        "@babel/helper-plugin-utils": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-unicode-regex": {
+      "version": "7.18.6",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz",
+      "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-create-regexp-features-plugin": "^7.18.6",
+        "@babel/helper-plugin-utils": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/plugin-transform-unicode-sets-regex": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.22.3.tgz",
+      "integrity": "sha512-hNufLdkF8vqywRp+P55j4FHXqAX2LRUccoZHH7AFn1pq5ZOO2ISKW9w13bFZVjBoTqeve2HOgoJCcaziJVhGNw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-create-regexp-features-plugin": "^7.22.1",
+        "@babel/helper-plugin-utils": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0"
+      }
+    },
+    "node_modules/@babel/preset-env": {
+      "version": "7.22.4",
+      "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.4.tgz",
+      "integrity": "sha512-c3lHOjbwBv0TkhYCr+XCR6wKcSZ1QbQTVdSkZUaVpLv8CVWotBMArWUi5UAJrcrQaEnleVkkvaV8F/pmc/STZQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/compat-data": "^7.22.3",
+        "@babel/helper-compilation-targets": "^7.22.1",
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/helper-validator-option": "^7.21.0",
+        "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6",
+        "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.22.3",
+        "@babel/plugin-proposal-private-property-in-object": "^7.21.0",
+        "@babel/plugin-syntax-async-generators": "^7.8.4",
+        "@babel/plugin-syntax-class-properties": "^7.12.13",
+        "@babel/plugin-syntax-class-static-block": "^7.14.5",
+        "@babel/plugin-syntax-dynamic-import": "^7.8.3",
+        "@babel/plugin-syntax-export-namespace-from": "^7.8.3",
+        "@babel/plugin-syntax-import-assertions": "^7.20.0",
+        "@babel/plugin-syntax-import-attributes": "^7.22.3",
+        "@babel/plugin-syntax-import-meta": "^7.10.4",
+        "@babel/plugin-syntax-json-strings": "^7.8.3",
+        "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",
+        "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
+        "@babel/plugin-syntax-numeric-separator": "^7.10.4",
+        "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
+        "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
+        "@babel/plugin-syntax-optional-chaining": "^7.8.3",
+        "@babel/plugin-syntax-private-property-in-object": "^7.14.5",
+        "@babel/plugin-syntax-top-level-await": "^7.14.5",
+        "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",
+        "@babel/plugin-transform-arrow-functions": "^7.21.5",
+        "@babel/plugin-transform-async-generator-functions": "^7.22.3",
+        "@babel/plugin-transform-async-to-generator": "^7.20.7",
+        "@babel/plugin-transform-block-scoped-functions": "^7.18.6",
+        "@babel/plugin-transform-block-scoping": "^7.21.0",
+        "@babel/plugin-transform-class-properties": "^7.22.3",
+        "@babel/plugin-transform-class-static-block": "^7.22.3",
+        "@babel/plugin-transform-classes": "^7.21.0",
+        "@babel/plugin-transform-computed-properties": "^7.21.5",
+        "@babel/plugin-transform-destructuring": "^7.21.3",
+        "@babel/plugin-transform-dotall-regex": "^7.18.6",
+        "@babel/plugin-transform-duplicate-keys": "^7.18.9",
+        "@babel/plugin-transform-dynamic-import": "^7.22.1",
+        "@babel/plugin-transform-exponentiation-operator": "^7.18.6",
+        "@babel/plugin-transform-export-namespace-from": "^7.22.3",
+        "@babel/plugin-transform-for-of": "^7.21.5",
+        "@babel/plugin-transform-function-name": "^7.18.9",
+        "@babel/plugin-transform-json-strings": "^7.22.3",
+        "@babel/plugin-transform-literals": "^7.18.9",
+        "@babel/plugin-transform-logical-assignment-operators": "^7.22.3",
+        "@babel/plugin-transform-member-expression-literals": "^7.18.6",
+        "@babel/plugin-transform-modules-amd": "^7.20.11",
+        "@babel/plugin-transform-modules-commonjs": "^7.21.5",
+        "@babel/plugin-transform-modules-systemjs": "^7.22.3",
+        "@babel/plugin-transform-modules-umd": "^7.18.6",
+        "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.3",
+        "@babel/plugin-transform-new-target": "^7.22.3",
+        "@babel/plugin-transform-nullish-coalescing-operator": "^7.22.3",
+        "@babel/plugin-transform-numeric-separator": "^7.22.3",
+        "@babel/plugin-transform-object-rest-spread": "^7.22.3",
+        "@babel/plugin-transform-object-super": "^7.18.6",
+        "@babel/plugin-transform-optional-catch-binding": "^7.22.3",
+        "@babel/plugin-transform-optional-chaining": "^7.22.3",
+        "@babel/plugin-transform-parameters": "^7.22.3",
+        "@babel/plugin-transform-private-methods": "^7.22.3",
+        "@babel/plugin-transform-private-property-in-object": "^7.22.3",
+        "@babel/plugin-transform-property-literals": "^7.18.6",
+        "@babel/plugin-transform-regenerator": "^7.21.5",
+        "@babel/plugin-transform-reserved-words": "^7.18.6",
+        "@babel/plugin-transform-shorthand-properties": "^7.18.6",
+        "@babel/plugin-transform-spread": "^7.20.7",
+        "@babel/plugin-transform-sticky-regex": "^7.18.6",
+        "@babel/plugin-transform-template-literals": "^7.18.9",
+        "@babel/plugin-transform-typeof-symbol": "^7.18.9",
+        "@babel/plugin-transform-unicode-escapes": "^7.21.5",
+        "@babel/plugin-transform-unicode-property-regex": "^7.22.3",
+        "@babel/plugin-transform-unicode-regex": "^7.18.6",
+        "@babel/plugin-transform-unicode-sets-regex": "^7.22.3",
+        "@babel/preset-modules": "^0.1.5",
+        "@babel/types": "^7.22.4",
+        "babel-plugin-polyfill-corejs2": "^0.4.3",
+        "babel-plugin-polyfill-corejs3": "^0.8.1",
+        "babel-plugin-polyfill-regenerator": "^0.5.0",
+        "core-js-compat": "^3.30.2",
+        "semver": "^6.3.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/preset-modules": {
+      "version": "0.1.5",
+      "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz",
+      "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.0.0",
+        "@babel/plugin-proposal-unicode-property-regex": "^7.4.4",
+        "@babel/plugin-transform-dotall-regex": "^7.4.4",
+        "@babel/types": "^7.4.4",
+        "esutils": "^2.0.2"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/preset-react": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.3.tgz",
+      "integrity": "sha512-lxDz1mnZ9polqClBCVBjIVUypoB4qV3/tZUDb/IlYbW1kiiLaXaX+bInbRjl+lNQ/iUZraQ3+S8daEmoELMWug==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/helper-validator-option": "^7.21.0",
+        "@babel/plugin-transform-react-display-name": "^7.18.6",
+        "@babel/plugin-transform-react-jsx": "^7.22.3",
+        "@babel/plugin-transform-react-jsx-development": "^7.18.6",
+        "@babel/plugin-transform-react-pure-annotations": "^7.18.6"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/preset-typescript": {
+      "version": "7.21.5",
+      "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.21.5.tgz",
+      "integrity": "sha512-iqe3sETat5EOrORXiQ6rWfoOg2y68Cs75B9wNxdPW4kixJxh7aXQE1KPdWLDniC24T/6dSnguF33W9j/ZZQcmA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-plugin-utils": "^7.21.5",
+        "@babel/helper-validator-option": "^7.21.0",
+        "@babel/plugin-syntax-jsx": "^7.21.4",
+        "@babel/plugin-transform-modules-commonjs": "^7.21.5",
+        "@babel/plugin-transform-typescript": "^7.21.3"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/@babel/regjsgen": {
+      "version": "0.8.0",
+      "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz",
+      "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==",
+      "dev": true
+    },
+    "node_modules/@babel/runtime": {
+      "version": "7.22.3",
+      "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz",
+      "integrity": "sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==",
+      "dependencies": {
+        "regenerator-runtime": "^0.13.11"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/template": {
+      "version": "7.21.9",
+      "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.21.9.tgz",
+      "integrity": "sha512-MK0X5k8NKOuWRamiEfc3KEJiHMTkGZNUjzMipqCGDDc6ijRl/B7RGSKVGncu4Ro/HdyzzY6cmoXuKI2Gffk7vQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/code-frame": "^7.21.4",
+        "@babel/parser": "^7.21.9",
+        "@babel/types": "^7.21.5"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/traverse": {
+      "version": "7.22.4",
+      "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.4.tgz",
+      "integrity": "sha512-Tn1pDsjIcI+JcLKq1AVlZEr4226gpuAQTsLMorsYg9tuS/kG7nuwwJ4AB8jfQuEgb/COBwR/DqJxmoiYFu5/rQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/code-frame": "^7.21.4",
+        "@babel/generator": "^7.22.3",
+        "@babel/helper-environment-visitor": "^7.22.1",
+        "@babel/helper-function-name": "^7.21.0",
+        "@babel/helper-hoist-variables": "^7.18.6",
+        "@babel/helper-split-export-declaration": "^7.18.6",
+        "@babel/parser": "^7.22.4",
+        "@babel/types": "^7.22.4",
+        "debug": "^4.1.0",
+        "globals": "^11.1.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@babel/types": {
+      "version": "7.22.4",
+      "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.4.tgz",
+      "integrity": "sha512-Tx9x3UBHTTsMSW85WB2kphxYQVvrZ/t1FxD88IpSgIjiUJlCm9z+xWIDwyo1vffTwSqteqyznB8ZE9vYYk16zA==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-string-parser": "^7.21.5",
+        "@babel/helper-validator-identifier": "^7.19.1",
+        "to-fast-properties": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/@cspotcode/source-map-support": {
+      "version": "0.8.1",
+      "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
+      "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",
+      "dev": true,
+      "dependencies": {
+        "@jridgewell/trace-mapping": "0.3.9"
+      },
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": {
+      "version": "0.3.9",
+      "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",
+      "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",
+      "dev": true,
+      "dependencies": {
+        "@jridgewell/resolve-uri": "^3.0.3",
+        "@jridgewell/sourcemap-codec": "^1.4.10"
+      }
+    },
+    "node_modules/@discoveryjs/json-ext": {
+      "version": "0.5.7",
+      "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz",
+      "integrity": "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==",
+      "dev": true,
+      "engines": {
+        "node": ">=10.0.0"
+      }
+    },
+    "node_modules/@eslint-community/eslint-utils": {
+      "version": "4.4.0",
+      "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz",
+      "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==",
+      "dev": true,
+      "dependencies": {
+        "eslint-visitor-keys": "^3.3.0"
+      },
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "peerDependencies": {
+        "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+      }
+    },
+    "node_modules/@eslint-community/regexpp": {
+      "version": "4.5.1",
+      "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz",
+      "integrity": "sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ==",
+      "dev": true,
+      "engines": {
+        "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+      }
+    },
+    "node_modules/@eslint/eslintrc": {
+      "version": "2.0.3",
+      "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz",
+      "integrity": "sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ==",
+      "dev": true,
+      "dependencies": {
+        "ajv": "^6.12.4",
+        "debug": "^4.3.2",
+        "espree": "^9.5.2",
+        "globals": "^13.19.0",
+        "ignore": "^5.2.0",
+        "import-fresh": "^3.2.1",
+        "js-yaml": "^4.1.0",
+        "minimatch": "^3.1.2",
+        "strip-json-comments": "^3.1.1"
+      },
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "url": "https://opencollective.com/eslint"
+      }
+    },
+    "node_modules/@eslint/eslintrc/node_modules/globals": {
+      "version": "13.20.0",
+      "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz",
+      "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==",
+      "dev": true,
+      "dependencies": {
+        "type-fest": "^0.20.2"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/@eslint/eslintrc/node_modules/type-fest": {
+      "version": "0.20.2",
+      "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
+      "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/@eslint/js": {
+      "version": "8.42.0",
+      "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.42.0.tgz",
+      "integrity": "sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==",
+      "dev": true,
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      }
+    },
+    "node_modules/@humanwhocodes/config-array": {
+      "version": "0.11.10",
+      "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz",
+      "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==",
+      "dev": true,
+      "dependencies": {
+        "@humanwhocodes/object-schema": "^1.2.1",
+        "debug": "^4.1.1",
+        "minimatch": "^3.0.5"
+      },
+      "engines": {
+        "node": ">=10.10.0"
+      }
+    },
+    "node_modules/@humanwhocodes/module-importer": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+      "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+      "dev": true,
+      "engines": {
+        "node": ">=12.22"
+      },
+      "funding": {
+        "type": "github",
+        "url": "https://github.com/sponsors/nzakas"
+      }
+    },
+    "node_modules/@humanwhocodes/object-schema": {
+      "version": "1.2.1",
+      "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
+      "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
+      "dev": true
+    },
+    "node_modules/@jridgewell/gen-mapping": {
+      "version": "0.3.3",
+      "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
+      "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==",
+      "dev": true,
+      "dependencies": {
+        "@jridgewell/set-array": "^1.0.1",
+        "@jridgewell/sourcemap-codec": "^1.4.10",
+        "@jridgewell/trace-mapping": "^0.3.9"
+      },
+      "engines": {
+        "node": ">=6.0.0"
+      }
+    },
+    "node_modules/@jridgewell/resolve-uri": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz",
+      "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==",
+      "dev": true,
+      "engines": {
+        "node": ">=6.0.0"
+      }
+    },
+    "node_modules/@jridgewell/set-array": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz",
+      "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
+      "dev": true,
+      "engines": {
+        "node": ">=6.0.0"
+      }
+    },
+    "node_modules/@jridgewell/source-map": {
+      "version": "0.3.3",
+      "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.3.tgz",
+      "integrity": "sha512-b+fsZXeLYi9fEULmfBrhxn4IrPlINf8fiNarzTof004v3lFdntdwa9PF7vFJqm3mg7s+ScJMxXaE3Acp1irZcg==",
+      "dev": true,
+      "dependencies": {
+        "@jridgewell/gen-mapping": "^0.3.0",
+        "@jridgewell/trace-mapping": "^0.3.9"
+      }
+    },
+    "node_modules/@jridgewell/sourcemap-codec": {
+      "version": "1.4.15",
+      "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
+      "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
+      "dev": true
+    },
+    "node_modules/@jridgewell/trace-mapping": {
+      "version": "0.3.18",
+      "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz",
+      "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==",
+      "dev": true,
+      "dependencies": {
+        "@jridgewell/resolve-uri": "3.1.0",
+        "@jridgewell/sourcemap-codec": "1.4.14"
+      }
+    },
+    "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": {
+      "version": "1.4.14",
+      "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz",
+      "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==",
+      "dev": true
+    },
+    "node_modules/@leichtgewicht/ip-codec": {
+      "version": "2.0.4",
+      "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz",
+      "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==",
+      "dev": true
+    },
+    "node_modules/@nodelib/fs.scandir": {
+      "version": "2.1.5",
+      "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+      "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+      "dev": true,
+      "dependencies": {
+        "@nodelib/fs.stat": "2.0.5",
+        "run-parallel": "^1.1.9"
+      },
+      "engines": {
+        "node": ">= 8"
+      }
+    },
+    "node_modules/@nodelib/fs.stat": {
+      "version": "2.0.5",
+      "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+      "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+      "dev": true,
+      "engines": {
+        "node": ">= 8"
+      }
+    },
+    "node_modules/@nodelib/fs.walk": {
+      "version": "1.2.8",
+      "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+      "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+      "dev": true,
+      "dependencies": {
+        "@nodelib/fs.scandir": "2.1.5",
+        "fastq": "^1.6.0"
+      },
+      "engines": {
+        "node": ">= 8"
+      }
+    },
+    "node_modules/@popperjs/core": {
+      "version": "2.11.8",
+      "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
+      "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/popperjs"
+      }
+    },
+    "node_modules/@react-aria/ssr": {
+      "version": "3.6.0",
+      "resolved": "https://registry.npmjs.org/@react-aria/ssr/-/ssr-3.6.0.tgz",
+      "integrity": "sha512-OFiYQdv+Yk7AO7IsQu/fAEPijbeTwrrEYvdNoJ3sblBBedD5j5fBTNWrUPNVlwC4XWWnWTCMaRIVsJujsFiWXg==",
+      "dependencies": {
+        "@swc/helpers": "^0.4.14"
+      },
+      "peerDependencies": {
+        "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
+      }
+    },
+    "node_modules/@remix-run/router": {
+      "version": "1.6.2",
+      "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.6.2.tgz",
+      "integrity": "sha512-LzqpSrMK/3JBAVBI9u3NWtOhWNw5AMQfrUFYB0+bDHTSw17z++WJLsPsxAuK+oSddsxk4d7F/JcdDPM1M5YAhA==",
+      "engines": {
+        "node": ">=14"
+      }
+    },
+    "node_modules/@restart/hooks": {
+      "version": "0.4.9",
+      "resolved": "https://registry.npmjs.org/@restart/hooks/-/hooks-0.4.9.tgz",
+      "integrity": "sha512-3BekqcwB6Umeya+16XPooARn4qEPW6vNvwYnlofIYe6h9qG1/VeD7UvShCWx11eFz5ELYmwIEshz+MkPX3wjcQ==",
+      "dependencies": {
+        "dequal": "^2.0.2"
+      },
+      "peerDependencies": {
+        "react": ">=16.8.0"
+      }
+    },
+    "node_modules/@restart/ui": {
+      "version": "1.6.6",
+      "resolved": "https://registry.npmjs.org/@restart/ui/-/ui-1.6.6.tgz",
+      "integrity": "sha512-eC3puKuWE1SRYbojWHXnvCNHGgf3uzHCb6JOhnF4OXPibOIPEkR1sqDSkL643ydigxwh+ruCa1CmYHlzk7ikKA==",
+      "dependencies": {
+        "@babel/runtime": "^7.21.0",
+        "@popperjs/core": "^2.11.6",
+        "@react-aria/ssr": "^3.5.0",
+        "@restart/hooks": "^0.4.9",
+        "@types/warning": "^3.0.0",
+        "dequal": "^2.0.3",
+        "dom-helpers": "^5.2.0",
+        "uncontrollable": "^8.0.1",
+        "warning": "^4.0.3"
+      },
+      "peerDependencies": {
+        "react": ">=16.14.0",
+        "react-dom": ">=16.14.0"
+      }
+    },
+    "node_modules/@restart/ui/node_modules/uncontrollable": {
+      "version": "8.0.2",
+      "resolved": "https://registry.npmjs.org/uncontrollable/-/uncontrollable-8.0.2.tgz",
+      "integrity": "sha512-/GDx+K1STGtpgTsj5Dj3J51YaKxZDblbCQHTH1zHLuoBEWodj6MjtRVv3TUijj1JYLRLSFsFzN8NV4M3QV4d9w==",
+      "peerDependencies": {
+        "react": ">=16.14.0"
+      }
+    },
+    "node_modules/@sindresorhus/is": {
+      "version": "0.7.0",
+      "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz",
+      "integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/@swc/helpers": {
+      "version": "0.4.14",
+      "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.4.14.tgz",
+      "integrity": "sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw==",
+      "dependencies": {
+        "tslib": "^2.4.0"
+      }
+    },
+    "node_modules/@trysound/sax": {
+      "version": "0.2.0",
+      "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz",
+      "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=10.13.0"
+      }
+    },
+    "node_modules/@tsconfig/node10": {
+      "version": "1.0.9",
+      "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz",
+      "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==",
+      "dev": true
+    },
+    "node_modules/@tsconfig/node12": {
+      "version": "1.0.11",
+      "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz",
+      "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==",
+      "dev": true
+    },
+    "node_modules/@tsconfig/node14": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz",
+      "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==",
+      "dev": true
+    },
+    "node_modules/@tsconfig/node16": {
+      "version": "1.0.4",
+      "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz",
+      "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
+      "dev": true
+    },
+    "node_modules/@types/body-parser": {
+      "version": "1.19.2",
+      "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz",
+      "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==",
+      "dev": true,
+      "dependencies": {
+        "@types/connect": "*",
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@types/bonjour": {
+      "version": "3.5.10",
+      "resolved": "https://registry.npmjs.org/@types/bonjour/-/bonjour-3.5.10.tgz",
+      "integrity": "sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==",
+      "dev": true,
+      "dependencies": {
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@types/connect": {
+      "version": "3.4.35",
+      "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz",
+      "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==",
+      "dev": true,
+      "dependencies": {
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@types/connect-history-api-fallback": {
+      "version": "1.5.0",
+      "resolved": "https://registry.npmjs.org/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz",
+      "integrity": "sha512-4x5FkPpLipqwthjPsF7ZRbOv3uoLUFkTA9G9v583qi4pACvq0uTELrB8OLUzPWUI4IJIyvM85vzkV1nyiI2Lig==",
+      "dev": true,
+      "dependencies": {
+        "@types/express-serve-static-core": "*",
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@types/eslint": {
+      "version": "8.40.0",
+      "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.40.0.tgz",
+      "integrity": "sha512-nbq2mvc/tBrK9zQQuItvjJl++GTN5j06DaPtp3hZCpngmG6Q3xoyEmd0TwZI0gAy/G1X0zhGBbr2imsGFdFV0g==",
+      "dev": true,
+      "dependencies": {
+        "@types/estree": "*",
+        "@types/json-schema": "*"
+      }
+    },
+    "node_modules/@types/eslint-scope": {
+      "version": "3.7.4",
+      "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.4.tgz",
+      "integrity": "sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA==",
+      "dev": true,
+      "dependencies": {
+        "@types/eslint": "*",
+        "@types/estree": "*"
+      }
+    },
+    "node_modules/@types/estree": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz",
+      "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==",
+      "dev": true
+    },
+    "node_modules/@types/express": {
+      "version": "4.17.17",
+      "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.17.tgz",
+      "integrity": "sha512-Q4FmmuLGBG58btUnfS1c1r/NQdlp3DMfGDGig8WhfpA2YRUtEkxAjkZb0yvplJGYdF1fsQ81iMDcH24sSCNC/Q==",
+      "dev": true,
+      "dependencies": {
+        "@types/body-parser": "*",
+        "@types/express-serve-static-core": "^4.17.33",
+        "@types/qs": "*",
+        "@types/serve-static": "*"
+      }
+    },
+    "node_modules/@types/express-serve-static-core": {
+      "version": "4.17.35",
+      "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.35.tgz",
+      "integrity": "sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==",
+      "dev": true,
+      "dependencies": {
+        "@types/node": "*",
+        "@types/qs": "*",
+        "@types/range-parser": "*",
+        "@types/send": "*"
+      }
+    },
+    "node_modules/@types/glob": {
+      "version": "7.2.0",
+      "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz",
+      "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==",
+      "dev": true,
+      "dependencies": {
+        "@types/minimatch": "*",
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@types/history": {
+      "version": "4.7.11",
+      "resolved": "https://registry.npmjs.org/@types/history/-/history-4.7.11.tgz",
+      "integrity": "sha512-qjDJRrmvBMiTx+jyLxvLfJU7UznFuokDv4f3WRuriHKERccVpFU+8XMQUAbDzoiJCsmexxRExQeMwwCdamSKDA==",
+      "dev": true
+    },
+    "node_modules/@types/http-proxy": {
+      "version": "1.17.11",
+      "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.11.tgz",
+      "integrity": "sha512-HC8G7c1WmaF2ekqpnFq626xd3Zz0uvaqFmBJNRZCGEZCXkvSdJoNFn/8Ygbd9fKNQj8UzLdCETaI0UWPAjK7IA==",
+      "dev": true,
+      "dependencies": {
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@types/json-schema": {
+      "version": "7.0.12",
+      "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz",
+      "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==",
+      "dev": true
+    },
+    "node_modules/@types/mime": {
+      "version": "1.3.2",
+      "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz",
+      "integrity": "sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==",
+      "dev": true
+    },
+    "node_modules/@types/minimatch": {
+      "version": "5.1.2",
+      "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz",
+      "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==",
+      "dev": true
+    },
+    "node_modules/@types/node": {
+      "version": "20.2.5",
+      "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz",
+      "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==",
+      "dev": true
+    },
+    "node_modules/@types/parse-json": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz",
+      "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==",
+      "dev": true
+    },
+    "node_modules/@types/prop-types": {
+      "version": "15.7.5",
+      "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
+      "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="
+    },
+    "node_modules/@types/qs": {
+      "version": "6.9.7",
+      "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz",
+      "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==",
+      "dev": true
+    },
+    "node_modules/@types/range-parser": {
+      "version": "1.2.4",
+      "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz",
+      "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==",
+      "dev": true
+    },
+    "node_modules/@types/react": {
+      "version": "18.2.8",
+      "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.8.tgz",
+      "integrity": "sha512-lTyWUNrd8ntVkqycEEplasWy2OxNlShj3zqS0LuB1ENUGis5HodmhM7DtCoUGbxj3VW/WsGA0DUhpG6XrM7gPA==",
+      "dependencies": {
+        "@types/prop-types": "*",
+        "@types/scheduler": "*",
+        "csstype": "^3.0.2"
+      }
+    },
+    "node_modules/@types/react-dom": {
+      "version": "18.2.4",
+      "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.4.tgz",
+      "integrity": "sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw==",
+      "dev": true,
+      "dependencies": {
+        "@types/react": "*"
+      }
+    },
+    "node_modules/@types/react-router": {
+      "version": "5.1.20",
+      "resolved": "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.20.tgz",
+      "integrity": "sha512-jGjmu/ZqS7FjSH6owMcD5qpq19+1RS9DeVRqfl1FeBMxTDQAGwlMWOcs52NDoXaNKyG3d1cYQFMs9rCrb88o9Q==",
+      "dev": true,
+      "dependencies": {
+        "@types/history": "^4.7.11",
+        "@types/react": "*"
+      }
+    },
+    "node_modules/@types/react-router-dom": {
+      "version": "5.3.3",
+      "resolved": "https://registry.npmjs.org/@types/react-router-dom/-/react-router-dom-5.3.3.tgz",
+      "integrity": "sha512-kpqnYK4wcdm5UaWI3fLcELopqLrHgLqNsdpHauzlQktfkHL3npOSwtj1Uz9oKBAzs7lFtVkV8j83voAz2D8fhw==",
+      "dev": true,
+      "dependencies": {
+        "@types/history": "^4.7.11",
+        "@types/react": "*",
+        "@types/react-router": "*"
+      }
+    },
+    "node_modules/@types/react-transition-group": {
+      "version": "4.4.6",
+      "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.6.tgz",
+      "integrity": "sha512-VnCdSxfcm08KjsJVQcfBmhEQAPnLB8G08hAxn39azX1qYBQ/5RVQuoHuKIcfKOdncuaUvEpFKFzEvbtIMsfVew==",
+      "dependencies": {
+        "@types/react": "*"
+      }
+    },
+    "node_modules/@types/retry": {
+      "version": "0.12.0",
+      "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz",
+      "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==",
+      "dev": true
+    },
+    "node_modules/@types/scheduler": {
+      "version": "0.16.3",
+      "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz",
+      "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ=="
+    },
+    "node_modules/@types/semver": {
+      "version": "7.5.0",
+      "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz",
+      "integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==",
+      "dev": true
+    },
+    "node_modules/@types/send": {
+      "version": "0.17.1",
+      "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.1.tgz",
+      "integrity": "sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==",
+      "dev": true,
+      "dependencies": {
+        "@types/mime": "^1",
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@types/serve-index": {
+      "version": "1.9.1",
+      "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.9.1.tgz",
+      "integrity": "sha512-d/Hs3nWDxNL2xAczmOVZNj92YZCS6RGxfBPjKzuu/XirCgXdpKEb88dYNbrYGint6IVWLNP+yonwVAuRC0T2Dg==",
+      "dev": true,
+      "dependencies": {
+        "@types/express": "*"
+      }
+    },
+    "node_modules/@types/serve-static": {
+      "version": "1.15.1",
+      "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.1.tgz",
+      "integrity": "sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==",
+      "dev": true,
+      "dependencies": {
+        "@types/mime": "*",
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@types/sockjs": {
+      "version": "0.3.33",
+      "resolved": "https://registry.npmjs.org/@types/sockjs/-/sockjs-0.3.33.tgz",
+      "integrity": "sha512-f0KEEe05NvUnat+boPTZ0dgaLZ4SfSouXUgv5noUiefG2ajgKjmETo9ZJyuqsl7dfl2aHlLJUiki6B4ZYldiiw==",
+      "dev": true,
+      "dependencies": {
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@types/warning": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/@types/warning/-/warning-3.0.0.tgz",
+      "integrity": "sha512-t/Tvs5qR47OLOr+4E9ckN8AmP2Tf16gWq+/qA4iUGS/OOyHVO8wv2vjJuX8SNOUTJyWb+2t7wJm6cXILFnOROA=="
+    },
+    "node_modules/@types/webpack": {
+      "version": "5.28.1",
+      "resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-5.28.1.tgz",
+      "integrity": "sha512-qw1MqGZclCoBrpiSe/hokSgQM/su8Ocpl3L/YHE0L6moyaypg4+5F7Uzq7NgaPKPxUxUbQ4fLPLpDWdR27bCZw==",
+      "dev": true,
+      "dependencies": {
+        "@types/node": "*",
+        "tapable": "^2.2.0",
+        "webpack": "^5"
+      }
+    },
+    "node_modules/@types/ws": {
+      "version": "8.5.4",
+      "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz",
+      "integrity": "sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==",
+      "dev": true,
+      "dependencies": {
+        "@types/node": "*"
+      }
+    },
+    "node_modules/@typescript-eslint/eslint-plugin": {
+      "version": "5.59.8",
+      "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.8.tgz",
+      "integrity": "sha512-JDMOmhXteJ4WVKOiHXGCoB96ADWg9q7efPWHRViT/f09bA8XOMLAVHHju3l0MkZnG1izaWXYmgvQcUjTRcpShQ==",
+      "dev": true,
+      "dependencies": {
+        "@eslint-community/regexpp": "^4.4.0",
+        "@typescript-eslint/scope-manager": "5.59.8",
+        "@typescript-eslint/type-utils": "5.59.8",
+        "@typescript-eslint/utils": "5.59.8",
+        "debug": "^4.3.4",
+        "grapheme-splitter": "^1.0.4",
+        "ignore": "^5.2.0",
+        "natural-compare-lite": "^1.4.0",
+        "semver": "^7.3.7",
+        "tsutils": "^3.21.0"
+      },
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/typescript-eslint"
+      },
+      "peerDependencies": {
+        "@typescript-eslint/parser": "^5.0.0",
+        "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
+      },
+      "peerDependenciesMeta": {
+        "typescript": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
+      "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+      "dev": true,
+      "dependencies": {
+        "yallist": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": {
+      "version": "7.5.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz",
+      "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==",
+      "dev": true,
+      "dependencies": {
+        "lru-cache": "^6.0.0"
+      },
+      "bin": {
+        "semver": "bin/semver.js"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@typescript-eslint/eslint-plugin/node_modules/yallist": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+      "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+      "dev": true
+    },
+    "node_modules/@typescript-eslint/parser": {
+      "version": "5.59.8",
+      "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.8.tgz",
+      "integrity": "sha512-AnR19RjJcpjoeGojmwZtCwBX/RidqDZtzcbG3xHrmz0aHHoOcbWnpDllenRDmDvsV0RQ6+tbb09/kyc+UT9Orw==",
+      "dev": true,
+      "dependencies": {
+        "@typescript-eslint/scope-manager": "5.59.8",
+        "@typescript-eslint/types": "5.59.8",
+        "@typescript-eslint/typescript-estree": "5.59.8",
+        "debug": "^4.3.4"
+      },
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/typescript-eslint"
+      },
+      "peerDependencies": {
+        "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
+      },
+      "peerDependenciesMeta": {
+        "typescript": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@typescript-eslint/scope-manager": {
+      "version": "5.59.8",
+      "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.8.tgz",
+      "integrity": "sha512-/w08ndCYI8gxGf+9zKf1vtx/16y8MHrZs5/tnjHhMLNSixuNcJavSX4wAiPf4aS5x41Es9YPCn44MIe4cxIlig==",
+      "dev": true,
+      "dependencies": {
+        "@typescript-eslint/types": "5.59.8",
+        "@typescript-eslint/visitor-keys": "5.59.8"
+      },
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/typescript-eslint"
+      }
+    },
+    "node_modules/@typescript-eslint/type-utils": {
+      "version": "5.59.8",
+      "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.8.tgz",
+      "integrity": "sha512-+5M518uEIHFBy3FnyqZUF3BMP+AXnYn4oyH8RF012+e7/msMY98FhGL5SrN29NQ9xDgvqCgYnsOiKp1VjZ/fpA==",
+      "dev": true,
+      "dependencies": {
+        "@typescript-eslint/typescript-estree": "5.59.8",
+        "@typescript-eslint/utils": "5.59.8",
+        "debug": "^4.3.4",
+        "tsutils": "^3.21.0"
+      },
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/typescript-eslint"
+      },
+      "peerDependencies": {
+        "eslint": "*"
+      },
+      "peerDependenciesMeta": {
+        "typescript": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@typescript-eslint/types": {
+      "version": "5.59.8",
+      "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.8.tgz",
+      "integrity": "sha512-+uWuOhBTj/L6awoWIg0BlWy0u9TyFpCHrAuQ5bNfxDaZ1Ppb3mx6tUigc74LHcbHpOHuOTOJrBoAnhdHdaea1w==",
+      "dev": true,
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/typescript-eslint"
+      }
+    },
+    "node_modules/@typescript-eslint/typescript-estree": {
+      "version": "5.59.8",
+      "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.8.tgz",
+      "integrity": "sha512-Jy/lPSDJGNow14vYu6IrW790p7HIf/SOV1Bb6lZ7NUkLc2iB2Z9elESmsaUtLw8kVqogSbtLH9tut5GCX1RLDg==",
+      "dev": true,
+      "dependencies": {
+        "@typescript-eslint/types": "5.59.8",
+        "@typescript-eslint/visitor-keys": "5.59.8",
+        "debug": "^4.3.4",
+        "globby": "^11.1.0",
+        "is-glob": "^4.0.3",
+        "semver": "^7.3.7",
+        "tsutils": "^3.21.0"
+      },
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/typescript-eslint"
+      },
+      "peerDependenciesMeta": {
+        "typescript": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@typescript-eslint/typescript-estree/node_modules/lru-cache": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
+      "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+      "dev": true,
+      "dependencies": {
+        "yallist": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {
+      "version": "7.5.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz",
+      "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==",
+      "dev": true,
+      "dependencies": {
+        "lru-cache": "^6.0.0"
+      },
+      "bin": {
+        "semver": "bin/semver.js"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@typescript-eslint/typescript-estree/node_modules/yallist": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+      "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+      "dev": true
+    },
+    "node_modules/@typescript-eslint/utils": {
+      "version": "5.59.8",
+      "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.8.tgz",
+      "integrity": "sha512-Tr65630KysnNn9f9G7ROF3w1b5/7f6QVCJ+WK9nhIocWmx9F+TmCAcglF26Vm7z8KCTwoKcNEBZrhlklla3CKg==",
+      "dev": true,
+      "dependencies": {
+        "@eslint-community/eslint-utils": "^4.2.0",
+        "@types/json-schema": "^7.0.9",
+        "@types/semver": "^7.3.12",
+        "@typescript-eslint/scope-manager": "5.59.8",
+        "@typescript-eslint/types": "5.59.8",
+        "@typescript-eslint/typescript-estree": "5.59.8",
+        "eslint-scope": "^5.1.1",
+        "semver": "^7.3.7"
+      },
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/typescript-eslint"
+      },
+      "peerDependencies": {
+        "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
+      }
+    },
+    "node_modules/@typescript-eslint/utils/node_modules/lru-cache": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
+      "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+      "dev": true,
+      "dependencies": {
+        "yallist": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@typescript-eslint/utils/node_modules/semver": {
+      "version": "7.5.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz",
+      "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==",
+      "dev": true,
+      "dependencies": {
+        "lru-cache": "^6.0.0"
+      },
+      "bin": {
+        "semver": "bin/semver.js"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/@typescript-eslint/utils/node_modules/yallist": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+      "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+      "dev": true
+    },
+    "node_modules/@typescript-eslint/visitor-keys": {
+      "version": "5.59.8",
+      "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.8.tgz",
+      "integrity": "sha512-pJhi2ms0x0xgloT7xYabil3SGGlojNNKjK/q6dB3Ey0uJLMjK2UDGJvHieiyJVW/7C3KI+Z4Q3pEHkm4ejA+xQ==",
+      "dev": true,
+      "dependencies": {
+        "@typescript-eslint/types": "5.59.8",
+        "eslint-visitor-keys": "^3.3.0"
+      },
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/typescript-eslint"
+      }
+    },
+    "node_modules/@webassemblyjs/ast": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.6.tgz",
+      "integrity": "sha512-IN1xI7PwOvLPgjcf180gC1bqn3q/QaOCwYUahIOhbYUu8KA/3tw2RT/T0Gidi1l7Hhj5D/INhJxiICObqpMu4Q==",
+      "dev": true,
+      "dependencies": {
+        "@webassemblyjs/helper-numbers": "1.11.6",
+        "@webassemblyjs/helper-wasm-bytecode": "1.11.6"
+      }
+    },
+    "node_modules/@webassemblyjs/floating-point-hex-parser": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz",
+      "integrity": "sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw==",
+      "dev": true
+    },
+    "node_modules/@webassemblyjs/helper-api-error": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz",
+      "integrity": "sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q==",
+      "dev": true
+    },
+    "node_modules/@webassemblyjs/helper-buffer": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.6.tgz",
+      "integrity": "sha512-z3nFzdcp1mb8nEOFFk8DrYLpHvhKC3grJD2ardfKOzmbmJvEf/tPIqCY+sNcwZIY8ZD7IkB2l7/pqhUhqm7hLA==",
+      "dev": true
+    },
+    "node_modules/@webassemblyjs/helper-numbers": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz",
+      "integrity": "sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g==",
+      "dev": true,
+      "dependencies": {
+        "@webassemblyjs/floating-point-hex-parser": "1.11.6",
+        "@webassemblyjs/helper-api-error": "1.11.6",
+        "@xtuc/long": "4.2.2"
+      }
+    },
+    "node_modules/@webassemblyjs/helper-wasm-bytecode": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz",
+      "integrity": "sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA==",
+      "dev": true
+    },
+    "node_modules/@webassemblyjs/helper-wasm-section": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.6.tgz",
+      "integrity": "sha512-LPpZbSOwTpEC2cgn4hTydySy1Ke+XEu+ETXuoyvuyezHO3Kjdu90KK95Sh9xTbmjrCsUwvWwCOQQNta37VrS9g==",
+      "dev": true,
+      "dependencies": {
+        "@webassemblyjs/ast": "1.11.6",
+        "@webassemblyjs/helper-buffer": "1.11.6",
+        "@webassemblyjs/helper-wasm-bytecode": "1.11.6",
+        "@webassemblyjs/wasm-gen": "1.11.6"
+      }
+    },
+    "node_modules/@webassemblyjs/ieee754": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz",
+      "integrity": "sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg==",
+      "dev": true,
+      "dependencies": {
+        "@xtuc/ieee754": "^1.2.0"
+      }
+    },
+    "node_modules/@webassemblyjs/leb128": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.11.6.tgz",
+      "integrity": "sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==",
+      "dev": true,
+      "dependencies": {
+        "@xtuc/long": "4.2.2"
+      }
+    },
+    "node_modules/@webassemblyjs/utf8": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.11.6.tgz",
+      "integrity": "sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==",
+      "dev": true
+    },
+    "node_modules/@webassemblyjs/wasm-edit": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.6.tgz",
+      "integrity": "sha512-Ybn2I6fnfIGuCR+Faaz7YcvtBKxvoLV3Lebn1tM4o/IAJzmi9AWYIPWpyBfU8cC+JxAO57bk4+zdsTjJR+VTOw==",
+      "dev": true,
+      "dependencies": {
+        "@webassemblyjs/ast": "1.11.6",
+        "@webassemblyjs/helper-buffer": "1.11.6",
+        "@webassemblyjs/helper-wasm-bytecode": "1.11.6",
+        "@webassemblyjs/helper-wasm-section": "1.11.6",
+        "@webassemblyjs/wasm-gen": "1.11.6",
+        "@webassemblyjs/wasm-opt": "1.11.6",
+        "@webassemblyjs/wasm-parser": "1.11.6",
+        "@webassemblyjs/wast-printer": "1.11.6"
+      }
+    },
+    "node_modules/@webassemblyjs/wasm-gen": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.6.tgz",
+      "integrity": "sha512-3XOqkZP/y6B4F0PBAXvI1/bky7GryoogUtfwExeP/v7Nzwo1QLcq5oQmpKlftZLbT+ERUOAZVQjuNVak6UXjPA==",
+      "dev": true,
+      "dependencies": {
+        "@webassemblyjs/ast": "1.11.6",
+        "@webassemblyjs/helper-wasm-bytecode": "1.11.6",
+        "@webassemblyjs/ieee754": "1.11.6",
+        "@webassemblyjs/leb128": "1.11.6",
+        "@webassemblyjs/utf8": "1.11.6"
+      }
+    },
+    "node_modules/@webassemblyjs/wasm-opt": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.6.tgz",
+      "integrity": "sha512-cOrKuLRE7PCe6AsOVl7WasYf3wbSo4CeOk6PkrjS7g57MFfVUF9u6ysQBBODX0LdgSvQqRiGz3CXvIDKcPNy4g==",
+      "dev": true,
+      "dependencies": {
+        "@webassemblyjs/ast": "1.11.6",
+        "@webassemblyjs/helper-buffer": "1.11.6",
+        "@webassemblyjs/wasm-gen": "1.11.6",
+        "@webassemblyjs/wasm-parser": "1.11.6"
+      }
+    },
+    "node_modules/@webassemblyjs/wasm-parser": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.6.tgz",
+      "integrity": "sha512-6ZwPeGzMJM3Dqp3hCsLgESxBGtT/OeCvCZ4TA1JUPYgmhAx38tTPR9JaKy0S5H3evQpO/h2uWs2j6Yc/fjkpTQ==",
+      "dev": true,
+      "dependencies": {
+        "@webassemblyjs/ast": "1.11.6",
+        "@webassemblyjs/helper-api-error": "1.11.6",
+        "@webassemblyjs/helper-wasm-bytecode": "1.11.6",
+        "@webassemblyjs/ieee754": "1.11.6",
+        "@webassemblyjs/leb128": "1.11.6",
+        "@webassemblyjs/utf8": "1.11.6"
+      }
+    },
+    "node_modules/@webassemblyjs/wast-printer": {
+      "version": "1.11.6",
+      "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.11.6.tgz",
+      "integrity": "sha512-JM7AhRcE+yW2GWYaKeHL5vt4xqee5N2WcezptmgyhNS+ScggqcT1OtXykhAb13Sn5Yas0j2uv9tHgrjwvzAP4A==",
+      "dev": true,
+      "dependencies": {
+        "@webassemblyjs/ast": "1.11.6",
+        "@xtuc/long": "4.2.2"
+      }
+    },
+    "node_modules/@webpack-cli/configtest": {
+      "version": "2.1.1",
+      "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz",
+      "integrity": "sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==",
+      "dev": true,
+      "engines": {
+        "node": ">=14.15.0"
+      },
+      "peerDependencies": {
+        "webpack": "5.x.x",
+        "webpack-cli": "5.x.x"
+      }
+    },
+    "node_modules/@webpack-cli/info": {
+      "version": "2.0.2",
+      "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-2.0.2.tgz",
+      "integrity": "sha512-zLHQdI/Qs1UyT5UBdWNqsARasIA+AaF8t+4u2aS2nEpBQh2mWIVb8qAklq0eUENnC5mOItrIB4LiS9xMtph18A==",
+      "dev": true,
+      "engines": {
+        "node": ">=14.15.0"
+      },
+      "peerDependencies": {
+        "webpack": "5.x.x",
+        "webpack-cli": "5.x.x"
+      }
+    },
+    "node_modules/@webpack-cli/serve": {
+      "version": "2.0.5",
+      "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-2.0.5.tgz",
+      "integrity": "sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=14.15.0"
+      },
+      "peerDependencies": {
+        "webpack": "5.x.x",
+        "webpack-cli": "5.x.x"
+      },
+      "peerDependenciesMeta": {
+        "webpack-dev-server": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@xtuc/ieee754": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz",
+      "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==",
+      "dev": true
+    },
+    "node_modules/@xtuc/long": {
+      "version": "4.2.2",
+      "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz",
+      "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==",
+      "dev": true
+    },
+    "node_modules/accepts": {
+      "version": "1.3.8",
+      "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
+      "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
+      "dev": true,
+      "dependencies": {
+        "mime-types": "~2.1.34",
+        "negotiator": "0.6.3"
+      },
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/acorn": {
+      "version": "8.8.2",
+      "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",
+      "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==",
+      "dev": true,
+      "bin": {
+        "acorn": "bin/acorn"
+      },
+      "engines": {
+        "node": ">=0.4.0"
+      }
+    },
+    "node_modules/acorn-import-assertions": {
+      "version": "1.9.0",
+      "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz",
+      "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==",
+      "dev": true,
+      "peerDependencies": {
+        "acorn": "^8"
+      }
+    },
+    "node_modules/acorn-jsx": {
+      "version": "5.3.2",
+      "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+      "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+      "dev": true,
+      "peerDependencies": {
+        "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+      }
+    },
+    "node_modules/acorn-walk": {
+      "version": "8.2.0",
+      "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz",
+      "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.4.0"
+      }
+    },
+    "node_modules/ajv": {
+      "version": "6.12.6",
+      "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
+      "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
+      "dev": true,
+      "dependencies": {
+        "fast-deep-equal": "^3.1.1",
+        "fast-json-stable-stringify": "^2.0.0",
+        "json-schema-traverse": "^0.4.1",
+        "uri-js": "^4.2.2"
+      },
+      "funding": {
+        "type": "github",
+        "url": "https://github.com/sponsors/epoberezkin"
+      }
+    },
+    "node_modules/ajv-formats": {
+      "version": "2.1.1",
+      "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",
+      "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
+      "dev": true,
+      "dependencies": {
+        "ajv": "^8.0.0"
+      },
+      "peerDependencies": {
+        "ajv": "^8.0.0"
+      },
+      "peerDependenciesMeta": {
+        "ajv": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/ajv-formats/node_modules/ajv": {
+      "version": "8.12.0",
+      "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
+      "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
+      "dev": true,
+      "dependencies": {
+        "fast-deep-equal": "^3.1.1",
+        "json-schema-traverse": "^1.0.0",
+        "require-from-string": "^2.0.2",
+        "uri-js": "^4.2.2"
+      },
+      "funding": {
+        "type": "github",
+        "url": "https://github.com/sponsors/epoberezkin"
+      }
+    },
+    "node_modules/ajv-formats/node_modules/json-schema-traverse": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+      "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+      "dev": true
+    },
+    "node_modules/ajv-keywords": {
+      "version": "3.5.2",
+      "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
+      "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",
+      "dev": true,
+      "peerDependencies": {
+        "ajv": "^6.9.1"
+      }
+    },
+    "node_modules/ansi-html-community": {
+      "version": "0.0.8",
+      "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz",
+      "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==",
+      "dev": true,
+      "engines": [
+        "node >= 0.8.0"
+      ],
+      "bin": {
+        "ansi-html": "bin/ansi-html"
+      }
+    },
+    "node_modules/ansi-regex": {
+      "version": "5.0.1",
+      "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+      "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/ansi-styles": {
+      "version": "3.2.1",
+      "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
+      "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
+      "dev": true,
+      "dependencies": {
+        "color-convert": "^1.9.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/anymatch": {
+      "version": "3.1.3",
+      "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
+      "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
+      "dev": true,
+      "dependencies": {
+        "normalize-path": "^3.0.0",
+        "picomatch": "^2.0.4"
+      },
+      "engines": {
+        "node": ">= 8"
+      }
+    },
+    "node_modules/arch": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz",
+      "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/feross"
+        },
+        {
+          "type": "patreon",
+          "url": "https://www.patreon.com/feross"
+        },
+        {
+          "type": "consulting",
+          "url": "https://feross.org/support"
+        }
+      ],
+      "optional": true
+    },
+    "node_modules/archive-type": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/archive-type/-/archive-type-4.0.0.tgz",
+      "integrity": "sha512-zV4Ky0v1F8dBrdYElwTvQhweQ0P7Kwc1aluqJsYtOBP01jXcWCyW2IEfI1YiqsG+Iy7ZR+o5LF1N+PGECBxHWA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "file-type": "^4.2.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/archive-type/node_modules/file-type": {
+      "version": "4.4.0",
+      "resolved": "https://registry.npmjs.org/file-type/-/file-type-4.4.0.tgz",
+      "integrity": "sha512-f2UbFQEk7LXgWpi5ntcO86OeA/cC80fuDDDaX/fZ2ZGel+AF7leRQqBBW1eJNiiQkrZlAoM6P+VYP5P6bOlDEQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/arg": {
+      "version": "4.1.3",
+      "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
+      "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
+      "dev": true
+    },
+    "node_modules/argparse": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+      "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+      "dev": true
+    },
+    "node_modules/array-buffer-byte-length": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz",
+      "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "is-array-buffer": "^3.0.1"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/array-flatten": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz",
+      "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==",
+      "dev": true
+    },
+    "node_modules/array-includes": {
+      "version": "3.1.6",
+      "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz",
+      "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.1.4",
+        "es-abstract": "^1.20.4",
+        "get-intrinsic": "^1.1.3",
+        "is-string": "^1.0.7"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/array-union": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",
+      "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/array.prototype.flatmap": {
+      "version": "1.3.1",
+      "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz",
+      "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.1.4",
+        "es-abstract": "^1.20.4",
+        "es-shim-unscopables": "^1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/array.prototype.tosorted": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz",
+      "integrity": "sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.1.4",
+        "es-abstract": "^1.20.4",
+        "es-shim-unscopables": "^1.0.0",
+        "get-intrinsic": "^1.1.3"
+      }
+    },
+    "node_modules/available-typed-arrays": {
+      "version": "1.0.5",
+      "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz",
+      "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/babel-loader": {
+      "version": "9.1.2",
+      "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-9.1.2.tgz",
+      "integrity": "sha512-mN14niXW43tddohGl8HPu5yfQq70iUThvFL/4QzESA7GcZoC0eVOhvWdQ8+3UlSjaDE9MVtsW9mxDY07W7VpVA==",
+      "dev": true,
+      "dependencies": {
+        "find-cache-dir": "^3.3.2",
+        "schema-utils": "^4.0.0"
+      },
+      "engines": {
+        "node": ">= 14.15.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.12.0",
+        "webpack": ">=5"
+      }
+    },
+    "node_modules/babel-plugin-polyfill-corejs2": {
+      "version": "0.4.3",
+      "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.3.tgz",
+      "integrity": "sha512-bM3gHc337Dta490gg+/AseNB9L4YLHxq1nGKZZSHbhXv4aTYU2MD2cjza1Ru4S6975YLTaL1K8uJf6ukJhhmtw==",
+      "dev": true,
+      "dependencies": {
+        "@babel/compat-data": "^7.17.7",
+        "@babel/helper-define-polyfill-provider": "^0.4.0",
+        "semver": "^6.1.1"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/babel-plugin-polyfill-corejs3": {
+      "version": "0.8.1",
+      "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.1.tgz",
+      "integrity": "sha512-ikFrZITKg1xH6pLND8zT14UPgjKHiGLqex7rGEZCH2EvhsneJaJPemmpQaIZV5AL03II+lXylw3UmddDK8RU5Q==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-define-polyfill-provider": "^0.4.0",
+        "core-js-compat": "^3.30.1"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/babel-plugin-polyfill-regenerator": {
+      "version": "0.5.0",
+      "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.0.tgz",
+      "integrity": "sha512-hDJtKjMLVa7Z+LwnTCxoDLQj6wdc+B8dun7ayF2fYieI6OzfuvcLMB32ihJZ4UhCBwNYGl5bg/x/P9cMdnkc2g==",
+      "dev": true,
+      "dependencies": {
+        "@babel/helper-define-polyfill-provider": "^0.4.0"
+      },
+      "peerDependencies": {
+        "@babel/core": "^7.0.0-0"
+      }
+    },
+    "node_modules/balanced-match": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+      "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+      "dev": true
+    },
+    "node_modules/base64-js": {
+      "version": "1.5.1",
+      "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
+      "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/feross"
+        },
+        {
+          "type": "patreon",
+          "url": "https://www.patreon.com/feross"
+        },
+        {
+          "type": "consulting",
+          "url": "https://feross.org/support"
+        }
+      ],
+      "optional": true
+    },
+    "node_modules/batch": {
+      "version": "0.6.1",
+      "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz",
+      "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==",
+      "dev": true
+    },
+    "node_modules/big.js": {
+      "version": "5.2.2",
+      "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz",
+      "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==",
+      "dev": true,
+      "engines": {
+        "node": "*"
+      }
+    },
+    "node_modules/bin-build": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/bin-build/-/bin-build-3.0.0.tgz",
+      "integrity": "sha512-jcUOof71/TNAI2uM5uoUaDq2ePcVBQ3R/qhxAz1rX7UfvduAL/RXD3jXzvn8cVcDJdGVkiR1shal3OH0ImpuhA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "decompress": "^4.0.0",
+        "download": "^6.2.2",
+        "execa": "^0.7.0",
+        "p-map-series": "^1.0.0",
+        "tempfile": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-build/node_modules/cross-spawn": {
+      "version": "5.1.0",
+      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
+      "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "lru-cache": "^4.0.1",
+        "shebang-command": "^1.2.0",
+        "which": "^1.2.9"
+      }
+    },
+    "node_modules/bin-build/node_modules/execa": {
+      "version": "0.7.0",
+      "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz",
+      "integrity": "sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "cross-spawn": "^5.0.1",
+        "get-stream": "^3.0.0",
+        "is-stream": "^1.1.0",
+        "npm-run-path": "^2.0.0",
+        "p-finally": "^1.0.0",
+        "signal-exit": "^3.0.0",
+        "strip-eof": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-build/node_modules/get-stream": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
+      "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-build/node_modules/lru-cache": {
+      "version": "4.1.5",
+      "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
+      "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pseudomap": "^1.0.2",
+        "yallist": "^2.1.2"
+      }
+    },
+    "node_modules/bin-build/node_modules/shebang-command": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
+      "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "shebang-regex": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/bin-build/node_modules/shebang-regex": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
+      "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/bin-build/node_modules/which": {
+      "version": "1.3.1",
+      "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
+      "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "isexe": "^2.0.0"
+      },
+      "bin": {
+        "which": "bin/which"
+      }
+    },
+    "node_modules/bin-build/node_modules/yallist": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
+      "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/bin-check": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/bin-check/-/bin-check-4.1.0.tgz",
+      "integrity": "sha512-b6weQyEUKsDGFlACWSIOfveEnImkJyK/FGW6FAG42loyoquvjdtOIqO6yBFzHyqyVVhNgNkQxxx09SFLK28YnA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "execa": "^0.7.0",
+        "executable": "^4.1.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-check/node_modules/cross-spawn": {
+      "version": "5.1.0",
+      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
+      "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "lru-cache": "^4.0.1",
+        "shebang-command": "^1.2.0",
+        "which": "^1.2.9"
+      }
+    },
+    "node_modules/bin-check/node_modules/execa": {
+      "version": "0.7.0",
+      "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz",
+      "integrity": "sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "cross-spawn": "^5.0.1",
+        "get-stream": "^3.0.0",
+        "is-stream": "^1.1.0",
+        "npm-run-path": "^2.0.0",
+        "p-finally": "^1.0.0",
+        "signal-exit": "^3.0.0",
+        "strip-eof": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-check/node_modules/get-stream": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
+      "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-check/node_modules/lru-cache": {
+      "version": "4.1.5",
+      "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
+      "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pseudomap": "^1.0.2",
+        "yallist": "^2.1.2"
+      }
+    },
+    "node_modules/bin-check/node_modules/shebang-command": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
+      "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "shebang-regex": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/bin-check/node_modules/shebang-regex": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
+      "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/bin-check/node_modules/which": {
+      "version": "1.3.1",
+      "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
+      "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "isexe": "^2.0.0"
+      },
+      "bin": {
+        "which": "bin/which"
+      }
+    },
+    "node_modules/bin-check/node_modules/yallist": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
+      "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/bin-version": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmjs.org/bin-version/-/bin-version-3.1.0.tgz",
+      "integrity": "sha512-Mkfm4iE1VFt4xd4vH+gx+0/71esbfus2LsnCGe8Pi4mndSPyT+NGES/Eg99jx8/lUGWfu3z2yuB/bt5UB+iVbQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "execa": "^1.0.0",
+        "find-versions": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/bin-version-check": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/bin-version-check/-/bin-version-check-4.0.0.tgz",
+      "integrity": "sha512-sR631OrhC+1f8Cvs8WyVWOA33Y8tgwjETNPyyD/myRBXLkfS/vl74FmH/lFcRl9KY3zwGh7jFhvyk9vV3/3ilQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "bin-version": "^3.0.0",
+        "semver": "^5.6.0",
+        "semver-truncate": "^1.1.2"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/bin-version-check/node_modules/semver": {
+      "version": "5.7.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
+      "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
+      "dev": true,
+      "optional": true,
+      "bin": {
+        "semver": "bin/semver"
+      }
+    },
+    "node_modules/bin-wrapper": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/bin-wrapper/-/bin-wrapper-4.1.0.tgz",
+      "integrity": "sha512-hfRmo7hWIXPkbpi0ZltboCMVrU+0ClXR/JgbCKKjlDjQf6igXa7OwdqNcFWQZPZTgiY7ZpzE3+LjjkLiTN2T7Q==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "bin-check": "^4.1.0",
+        "bin-version-check": "^4.0.0",
+        "download": "^7.1.0",
+        "import-lazy": "^3.1.0",
+        "os-filter-obj": "^2.0.0",
+        "pify": "^4.0.1"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/download": {
+      "version": "7.1.0",
+      "resolved": "https://registry.npmjs.org/download/-/download-7.1.0.tgz",
+      "integrity": "sha512-xqnBTVd/E+GxJVrX5/eUJiLYjCGPwMpdL+jGhGU57BvtcA7wwhtHVbXBeUk51kOpW3S7Jn3BQbN9Q1R1Km2qDQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "archive-type": "^4.0.0",
+        "caw": "^2.0.1",
+        "content-disposition": "^0.5.2",
+        "decompress": "^4.2.0",
+        "ext-name": "^5.0.0",
+        "file-type": "^8.1.0",
+        "filenamify": "^2.0.0",
+        "get-stream": "^3.0.0",
+        "got": "^8.3.1",
+        "make-dir": "^1.2.0",
+        "p-event": "^2.1.0",
+        "pify": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/download/node_modules/pify": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
+      "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/file-type": {
+      "version": "8.1.0",
+      "resolved": "https://registry.npmjs.org/file-type/-/file-type-8.1.0.tgz",
+      "integrity": "sha512-qyQ0pzAy78gVoJsmYeNgl8uH8yKhr1lVhW7JbzJmnlRi0I4R2eEDEJZVKG8agpDnLpacwNbDhLNG/LMdxHD2YQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/get-stream": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
+      "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/got": {
+      "version": "8.3.2",
+      "resolved": "https://registry.npmjs.org/got/-/got-8.3.2.tgz",
+      "integrity": "sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "@sindresorhus/is": "^0.7.0",
+        "cacheable-request": "^2.1.1",
+        "decompress-response": "^3.3.0",
+        "duplexer3": "^0.1.4",
+        "get-stream": "^3.0.0",
+        "into-stream": "^3.1.0",
+        "is-retry-allowed": "^1.1.0",
+        "isurl": "^1.0.0-alpha5",
+        "lowercase-keys": "^1.0.0",
+        "mimic-response": "^1.0.0",
+        "p-cancelable": "^0.4.0",
+        "p-timeout": "^2.0.1",
+        "pify": "^3.0.0",
+        "safe-buffer": "^5.1.1",
+        "timed-out": "^4.0.1",
+        "url-parse-lax": "^3.0.0",
+        "url-to-options": "^1.0.1"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/got/node_modules/pify": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
+      "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/make-dir": {
+      "version": "1.3.0",
+      "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz",
+      "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pify": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/make-dir/node_modules/pify": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
+      "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/p-cancelable": {
+      "version": "0.4.1",
+      "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz",
+      "integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/p-event": {
+      "version": "2.3.1",
+      "resolved": "https://registry.npmjs.org/p-event/-/p-event-2.3.1.tgz",
+      "integrity": "sha512-NQCqOFhbpVTMX4qMe8PF8lbGtzZ+LCiN7pcNrb/413Na7+TRoe1xkKUzuWa/YEJdGQ0FvKtj35EEbDoVPO2kbA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "p-timeout": "^2.0.1"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/p-timeout": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-2.0.1.tgz",
+      "integrity": "sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "p-finally": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/prepend-http": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",
+      "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/bin-wrapper/node_modules/url-parse-lax": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz",
+      "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "prepend-http": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/binary-extensions": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
+      "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/bl": {
+      "version": "1.2.3",
+      "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz",
+      "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "readable-stream": "^2.3.5",
+        "safe-buffer": "^5.1.1"
+      }
+    },
+    "node_modules/body-parser": {
+      "version": "1.20.1",
+      "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz",
+      "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==",
+      "dev": true,
+      "dependencies": {
+        "bytes": "3.1.2",
+        "content-type": "~1.0.4",
+        "debug": "2.6.9",
+        "depd": "2.0.0",
+        "destroy": "1.2.0",
+        "http-errors": "2.0.0",
+        "iconv-lite": "0.4.24",
+        "on-finished": "2.4.1",
+        "qs": "6.11.0",
+        "raw-body": "2.5.1",
+        "type-is": "~1.6.18",
+        "unpipe": "1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.8",
+        "npm": "1.2.8000 || >= 1.4.16"
+      }
+    },
+    "node_modules/body-parser/node_modules/bytes": {
+      "version": "3.1.2",
+      "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
+      "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/body-parser/node_modules/debug": {
+      "version": "2.6.9",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+      "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+      "dev": true,
+      "dependencies": {
+        "ms": "2.0.0"
+      }
+    },
+    "node_modules/body-parser/node_modules/ms": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+      "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+      "dev": true
+    },
+    "node_modules/bonjour-service": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.1.1.tgz",
+      "integrity": "sha512-Z/5lQRMOG9k7W+FkeGTNjh7htqn/2LMnfOvBZ8pynNZCM9MwkQkI3zeI4oz09uWdcgmgHugVvBqxGg4VQJ5PCg==",
+      "dev": true,
+      "dependencies": {
+        "array-flatten": "^2.1.2",
+        "dns-equal": "^1.0.0",
+        "fast-deep-equal": "^3.1.3",
+        "multicast-dns": "^7.2.5"
+      }
+    },
+    "node_modules/boolbase": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
+      "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/bootstrap": {
+      "version": "5.3.0",
+      "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.0.tgz",
+      "integrity": "sha512-UnBV3E3v4STVNQdms6jSGO2CvOkjUMdDAVR2V5N4uCMdaIkaQjbcEAMqRimDHIs4uqBYzDAKCQwCB+97tJgHQw==",
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/twbs"
+        },
+        {
+          "type": "opencollective",
+          "url": "https://opencollective.com/bootstrap"
+        }
+      ],
+      "peerDependencies": {
+        "@popperjs/core": "^2.11.7"
+      }
+    },
+    "node_modules/brace-expansion": {
+      "version": "1.1.11",
+      "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
+      "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+      "dev": true,
+      "dependencies": {
+        "balanced-match": "^1.0.0",
+        "concat-map": "0.0.1"
+      }
+    },
+    "node_modules/braces": {
+      "version": "3.0.2",
+      "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
+      "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
+      "dev": true,
+      "dependencies": {
+        "fill-range": "^7.0.1"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/browserslist": {
+      "version": "4.21.7",
+      "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.7.tgz",
+      "integrity": "sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "opencollective",
+          "url": "https://opencollective.com/browserslist"
+        },
+        {
+          "type": "tidelift",
+          "url": "https://tidelift.com/funding/github/npm/browserslist"
+        },
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/ai"
+        }
+      ],
+      "dependencies": {
+        "caniuse-lite": "^1.0.30001489",
+        "electron-to-chromium": "^1.4.411",
+        "node-releases": "^2.0.12",
+        "update-browserslist-db": "^1.0.11"
+      },
+      "bin": {
+        "browserslist": "cli.js"
+      },
+      "engines": {
+        "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+      }
+    },
+    "node_modules/buffer": {
+      "version": "5.7.1",
+      "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+      "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/feross"
+        },
+        {
+          "type": "patreon",
+          "url": "https://www.patreon.com/feross"
+        },
+        {
+          "type": "consulting",
+          "url": "https://feross.org/support"
+        }
+      ],
+      "optional": true,
+      "dependencies": {
+        "base64-js": "^1.3.1",
+        "ieee754": "^1.1.13"
+      }
+    },
+    "node_modules/buffer-alloc": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz",
+      "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "buffer-alloc-unsafe": "^1.1.0",
+        "buffer-fill": "^1.0.0"
+      }
+    },
+    "node_modules/buffer-alloc-unsafe": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz",
+      "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/buffer-crc32": {
+      "version": "0.2.13",
+      "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
+      "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": "*"
+      }
+    },
+    "node_modules/buffer-fill": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz",
+      "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/buffer-from": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
+      "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
+      "dev": true
+    },
+    "node_modules/bytes": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",
+      "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/cacheable-request": {
+      "version": "2.1.4",
+      "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-2.1.4.tgz",
+      "integrity": "sha512-vag0O2LKZ/najSoUwDbVlnlCFvhBE/7mGTY2B5FgCBDcRD+oVV1HYTOwM6JZfMg/hIcM6IwnTZ1uQQL5/X3xIQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "clone-response": "1.0.2",
+        "get-stream": "3.0.0",
+        "http-cache-semantics": "3.8.1",
+        "keyv": "3.0.0",
+        "lowercase-keys": "1.0.0",
+        "normalize-url": "2.0.1",
+        "responselike": "1.0.2"
+      }
+    },
+    "node_modules/cacheable-request/node_modules/get-stream": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
+      "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/cacheable-request/node_modules/lowercase-keys": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz",
+      "integrity": "sha512-RPlX0+PHuvxVDZ7xX+EBVAp4RsVxP/TdDSN2mJYdiq1Lc4Hz7EUSjUI7RZrKKlmrIzVhf6Jo2stj7++gVarS0A==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/call-bind": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
+      "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
+      "dev": true,
+      "dependencies": {
+        "function-bind": "^1.1.1",
+        "get-intrinsic": "^1.0.2"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/callsites": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+      "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/caniuse-lite": {
+      "version": "1.0.30001494",
+      "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001494.tgz",
+      "integrity": "sha512-sY2B5Qyl46ZzfYDegrl8GBCzdawSLT4ThM9b9F+aDYUrAG2zCOyMbd2Tq34mS1g4ZKBfjRlzOohQMxx28x6wJg==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "opencollective",
+          "url": "https://opencollective.com/browserslist"
+        },
+        {
+          "type": "tidelift",
+          "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+        },
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/ai"
+        }
+      ]
+    },
+    "node_modules/caw": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/caw/-/caw-2.0.1.tgz",
+      "integrity": "sha512-Cg8/ZSBEa8ZVY9HspcGUYaK63d/bN7rqS3CYCzEGUxuYv6UlmcjzDUz2fCFFHyTvUW5Pk0I+3hkA3iXlIj6guA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "get-proxy": "^2.0.0",
+        "isurl": "^1.0.0-alpha5",
+        "tunnel-agent": "^0.6.0",
+        "url-to-options": "^1.0.1"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/chalk": {
+      "version": "2.4.2",
+      "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
+      "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
+      "dev": true,
+      "dependencies": {
+        "ansi-styles": "^3.2.1",
+        "escape-string-regexp": "^1.0.5",
+        "supports-color": "^5.3.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/chokidar": {
+      "version": "3.5.3",
+      "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
+      "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "individual",
+          "url": "https://paulmillr.com/funding/"
+        }
+      ],
+      "dependencies": {
+        "anymatch": "~3.1.2",
+        "braces": "~3.0.2",
+        "glob-parent": "~5.1.2",
+        "is-binary-path": "~2.1.0",
+        "is-glob": "~4.0.1",
+        "normalize-path": "~3.0.0",
+        "readdirp": "~3.6.0"
+      },
+      "engines": {
+        "node": ">= 8.10.0"
+      },
+      "optionalDependencies": {
+        "fsevents": "~2.3.2"
+      }
+    },
+    "node_modules/chokidar/node_modules/glob-parent": {
+      "version": "5.1.2",
+      "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+      "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+      "dev": true,
+      "dependencies": {
+        "is-glob": "^4.0.1"
+      },
+      "engines": {
+        "node": ">= 6"
+      }
+    },
+    "node_modules/chrome-trace-event": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz",
+      "integrity": "sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==",
+      "dev": true,
+      "engines": {
+        "node": ">=6.0"
+      }
+    },
+    "node_modules/classnames": {
+      "version": "2.3.2",
+      "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz",
+      "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw=="
+    },
+    "node_modules/clone-deep": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz",
+      "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==",
+      "dev": true,
+      "dependencies": {
+        "is-plain-object": "^2.0.4",
+        "kind-of": "^6.0.2",
+        "shallow-clone": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/clone-response": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz",
+      "integrity": "sha512-yjLXh88P599UOyPTFX0POsd7WxnbsVsGohcwzHOLspIhhpalPw1BcqED8NblyZLKcGrL8dTgMlcaZxV2jAD41Q==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "mimic-response": "^1.0.0"
+      }
+    },
+    "node_modules/color-convert": {
+      "version": "1.9.3",
+      "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
+      "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
+      "dev": true,
+      "dependencies": {
+        "color-name": "1.1.3"
+      }
+    },
+    "node_modules/color-name": {
+      "version": "1.1.3",
+      "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
+      "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",
+      "dev": true
+    },
+    "node_modules/colorette": {
+      "version": "2.0.20",
+      "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz",
+      "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==",
+      "dev": true
+    },
+    "node_modules/commander": {
+      "version": "2.20.3",
+      "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
+      "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
+      "dev": true
+    },
+    "node_modules/commondir": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
+      "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==",
+      "dev": true
+    },
+    "node_modules/compressible": {
+      "version": "2.0.18",
+      "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz",
+      "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==",
+      "dev": true,
+      "dependencies": {
+        "mime-db": ">= 1.43.0 < 2"
+      },
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/compression": {
+      "version": "1.7.4",
+      "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz",
+      "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==",
+      "dev": true,
+      "dependencies": {
+        "accepts": "~1.3.5",
+        "bytes": "3.0.0",
+        "compressible": "~2.0.16",
+        "debug": "2.6.9",
+        "on-headers": "~1.0.2",
+        "safe-buffer": "5.1.2",
+        "vary": "~1.1.2"
+      },
+      "engines": {
+        "node": ">= 0.8.0"
+      }
+    },
+    "node_modules/compression/node_modules/debug": {
+      "version": "2.6.9",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+      "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+      "dev": true,
+      "dependencies": {
+        "ms": "2.0.0"
+      }
+    },
+    "node_modules/compression/node_modules/ms": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+      "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+      "dev": true
+    },
+    "node_modules/compression/node_modules/safe-buffer": {
+      "version": "5.1.2",
+      "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
+      "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+      "dev": true
+    },
+    "node_modules/concat-map": {
+      "version": "0.0.1",
+      "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+      "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+      "dev": true
+    },
+    "node_modules/config-chain": {
+      "version": "1.1.13",
+      "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz",
+      "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "ini": "^1.3.4",
+        "proto-list": "~1.2.1"
+      }
+    },
+    "node_modules/connect-history-api-fallback": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz",
+      "integrity": "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.8"
+      }
+    },
+    "node_modules/content-disposition": {
+      "version": "0.5.4",
+      "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
+      "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
+      "dev": true,
+      "dependencies": {
+        "safe-buffer": "5.2.1"
+      },
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/content-type": {
+      "version": "1.0.5",
+      "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
+      "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/convert-source-map": {
+      "version": "1.9.0",
+      "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
+      "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==",
+      "dev": true
+    },
+    "node_modules/cookie": {
+      "version": "0.5.0",
+      "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
+      "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/cookie-signature": {
+      "version": "1.0.6",
+      "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
+      "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
+      "dev": true
+    },
+    "node_modules/core-js-compat": {
+      "version": "3.30.2",
+      "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.30.2.tgz",
+      "integrity": "sha512-nriW1nuJjUgvkEjIot1Spwakz52V9YkYHZAQG6A1eCgC8AA1p0zngrQEP9R0+V6hji5XilWKG1Bd0YRppmGimA==",
+      "dev": true,
+      "dependencies": {
+        "browserslist": "^4.21.5"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/core-js"
+      }
+    },
+    "node_modules/core-util-is": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
+      "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
+      "dev": true
+    },
+    "node_modules/cosmiconfig": {
+      "version": "7.1.0",
+      "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",
+      "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==",
+      "dev": true,
+      "dependencies": {
+        "@types/parse-json": "^4.0.0",
+        "import-fresh": "^3.2.1",
+        "parse-json": "^5.0.0",
+        "path-type": "^4.0.0",
+        "yaml": "^1.10.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/create-require": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
+      "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
+      "dev": true
+    },
+    "node_modules/cross-spawn": {
+      "version": "7.0.3",
+      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+      "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+      "dev": true,
+      "dependencies": {
+        "path-key": "^3.1.0",
+        "shebang-command": "^2.0.0",
+        "which": "^2.0.1"
+      },
+      "engines": {
+        "node": ">= 8"
+      }
+    },
+    "node_modules/css-loader": {
+      "version": "6.8.1",
+      "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.8.1.tgz",
+      "integrity": "sha512-xDAXtEVGlD0gJ07iclwWVkLoZOpEvAWaSyf6W18S2pOC//K8+qUDIx8IIT3D+HjnmkJPQeesOPv5aiUaJsCM2g==",
+      "dev": true,
+      "dependencies": {
+        "icss-utils": "^5.1.0",
+        "postcss": "^8.4.21",
+        "postcss-modules-extract-imports": "^3.0.0",
+        "postcss-modules-local-by-default": "^4.0.3",
+        "postcss-modules-scope": "^3.0.0",
+        "postcss-modules-values": "^4.0.0",
+        "postcss-value-parser": "^4.2.0",
+        "semver": "^7.3.8"
+      },
+      "engines": {
+        "node": ">= 12.13.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      },
+      "peerDependencies": {
+        "webpack": "^5.0.0"
+      }
+    },
+    "node_modules/css-loader/node_modules/lru-cache": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
+      "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+      "dev": true,
+      "dependencies": {
+        "yallist": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/css-loader/node_modules/semver": {
+      "version": "7.5.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz",
+      "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==",
+      "dev": true,
+      "dependencies": {
+        "lru-cache": "^6.0.0"
+      },
+      "bin": {
+        "semver": "bin/semver.js"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/css-loader/node_modules/yallist": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+      "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+      "dev": true
+    },
+    "node_modules/css-select": {
+      "version": "4.3.0",
+      "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz",
+      "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "boolbase": "^1.0.0",
+        "css-what": "^6.0.1",
+        "domhandler": "^4.3.1",
+        "domutils": "^2.8.0",
+        "nth-check": "^2.0.1"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/fb55"
+      }
+    },
+    "node_modules/css-tree": {
+      "version": "1.1.3",
+      "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz",
+      "integrity": "sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "mdn-data": "2.0.14",
+        "source-map": "^0.6.1"
+      },
+      "engines": {
+        "node": ">=8.0.0"
+      }
+    },
+    "node_modules/css-what": {
+      "version": "6.1.0",
+      "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.1.0.tgz",
+      "integrity": "sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">= 6"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/fb55"
+      }
+    },
+    "node_modules/cssesc": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
+      "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
+      "dev": true,
+      "bin": {
+        "cssesc": "bin/cssesc"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/csso": {
+      "version": "4.2.0",
+      "resolved": "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz",
+      "integrity": "sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "css-tree": "^1.1.2"
+      },
+      "engines": {
+        "node": ">=8.0.0"
+      }
+    },
+    "node_modules/csstype": {
+      "version": "3.1.2",
+      "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
+      "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
+    },
+    "node_modules/cwebp-bin": {
+      "version": "7.0.1",
+      "resolved": "https://registry.npmjs.org/cwebp-bin/-/cwebp-bin-7.0.1.tgz",
+      "integrity": "sha512-Ko5ADY74/dbfd8xG0+f+MUP9UKjCe1TG4ehpW0E5y4YlPdwDJlGrSzSR4/Yonxpm9QmZE1RratkIxFlKeyo3FA==",
+      "dev": true,
+      "hasInstallScript": true,
+      "optional": true,
+      "dependencies": {
+        "bin-build": "^3.0.0",
+        "bin-wrapper": "^4.0.1"
+      },
+      "bin": {
+        "cwebp": "cli.js"
+      },
+      "engines": {
+        "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+      },
+      "funding": {
+        "url": "https://github.com/imagemin/cwebp-bin?sponsor=1"
+      }
+    },
+    "node_modules/debug": {
+      "version": "4.3.4",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+      "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+      "dev": true,
+      "dependencies": {
+        "ms": "2.1.2"
+      },
+      "engines": {
+        "node": ">=6.0"
+      },
+      "peerDependenciesMeta": {
+        "supports-color": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/decode-uri-component": {
+      "version": "0.2.2",
+      "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz",
+      "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10"
+      }
+    },
+    "node_modules/decompress": {
+      "version": "4.2.1",
+      "resolved": "https://registry.npmjs.org/decompress/-/decompress-4.2.1.tgz",
+      "integrity": "sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "decompress-tar": "^4.0.0",
+        "decompress-tarbz2": "^4.0.0",
+        "decompress-targz": "^4.0.0",
+        "decompress-unzip": "^4.0.1",
+        "graceful-fs": "^4.1.10",
+        "make-dir": "^1.0.0",
+        "pify": "^2.3.0",
+        "strip-dirs": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/decompress-response": {
+      "version": "3.3.0",
+      "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz",
+      "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "mimic-response": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/decompress-tar": {
+      "version": "4.1.1",
+      "resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-4.1.1.tgz",
+      "integrity": "sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "file-type": "^5.2.0",
+        "is-stream": "^1.1.0",
+        "tar-stream": "^1.5.2"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/decompress-tar/node_modules/file-type": {
+      "version": "5.2.0",
+      "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz",
+      "integrity": "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/decompress-tarbz2": {
+      "version": "4.1.1",
+      "resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz",
+      "integrity": "sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "decompress-tar": "^4.1.0",
+        "file-type": "^6.1.0",
+        "is-stream": "^1.1.0",
+        "seek-bzip": "^1.0.5",
+        "unbzip2-stream": "^1.0.9"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/decompress-tarbz2/node_modules/file-type": {
+      "version": "6.2.0",
+      "resolved": "https://registry.npmjs.org/file-type/-/file-type-6.2.0.tgz",
+      "integrity": "sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/decompress-targz": {
+      "version": "4.1.1",
+      "resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-4.1.1.tgz",
+      "integrity": "sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "decompress-tar": "^4.1.1",
+        "file-type": "^5.2.0",
+        "is-stream": "^1.1.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/decompress-targz/node_modules/file-type": {
+      "version": "5.2.0",
+      "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz",
+      "integrity": "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/decompress-unzip": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-4.0.1.tgz",
+      "integrity": "sha512-1fqeluvxgnn86MOh66u8FjbtJpAFv5wgCT9Iw8rcBqQcCo5tO8eiJw7NNTrvt9n4CRBVq7CstiS922oPgyGLrw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "file-type": "^3.8.0",
+        "get-stream": "^2.2.0",
+        "pify": "^2.3.0",
+        "yauzl": "^2.4.2"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/decompress-unzip/node_modules/file-type": {
+      "version": "3.9.0",
+      "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz",
+      "integrity": "sha512-RLoqTXE8/vPmMuTI88DAzhMYC99I8BWv7zYP4A1puo5HIjEJ5EX48ighy4ZyKMG9EDXxBgW6e++cn7d1xuFghA==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/decompress-unzip/node_modules/get-stream": {
+      "version": "2.3.1",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz",
+      "integrity": "sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "object-assign": "^4.0.1",
+        "pinkie-promise": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/decompress-unzip/node_modules/pify": {
+      "version": "2.3.0",
+      "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+      "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/decompress/node_modules/make-dir": {
+      "version": "1.3.0",
+      "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz",
+      "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pify": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/decompress/node_modules/make-dir/node_modules/pify": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
+      "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/decompress/node_modules/pify": {
+      "version": "2.3.0",
+      "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+      "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/deep-is": {
+      "version": "0.1.4",
+      "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+      "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+      "dev": true
+    },
+    "node_modules/deepmerge": {
+      "version": "4.3.1",
+      "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
+      "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/default-gateway": {
+      "version": "6.0.3",
+      "resolved": "https://registry.npmjs.org/default-gateway/-/default-gateway-6.0.3.tgz",
+      "integrity": "sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg==",
+      "dev": true,
+      "dependencies": {
+        "execa": "^5.0.0"
+      },
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/default-gateway/node_modules/execa": {
+      "version": "5.1.1",
+      "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
+      "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
+      "dev": true,
+      "dependencies": {
+        "cross-spawn": "^7.0.3",
+        "get-stream": "^6.0.0",
+        "human-signals": "^2.1.0",
+        "is-stream": "^2.0.0",
+        "merge-stream": "^2.0.0",
+        "npm-run-path": "^4.0.1",
+        "onetime": "^5.1.2",
+        "signal-exit": "^3.0.3",
+        "strip-final-newline": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sindresorhus/execa?sponsor=1"
+      }
+    },
+    "node_modules/default-gateway/node_modules/get-stream": {
+      "version": "6.0.1",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
+      "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
+      "dev": true,
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/default-gateway/node_modules/is-stream": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
+      "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/default-gateway/node_modules/npm-run-path": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
+      "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
+      "dev": true,
+      "dependencies": {
+        "path-key": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/define-lazy-prop": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",
+      "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/define-properties": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz",
+      "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==",
+      "dev": true,
+      "dependencies": {
+        "has-property-descriptors": "^1.0.0",
+        "object-keys": "^1.1.1"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/depd": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
+      "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/dequal": {
+      "version": "2.0.3",
+      "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
+      "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/destroy": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
+      "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.8",
+        "npm": "1.2.8000 || >= 1.4.16"
+      }
+    },
+    "node_modules/detect-node": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz",
+      "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==",
+      "dev": true
+    },
+    "node_modules/diff": {
+      "version": "4.0.2",
+      "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
+      "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.3.1"
+      }
+    },
+    "node_modules/dir-glob": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
+      "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
+      "dev": true,
+      "dependencies": {
+        "path-type": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/dns-equal": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz",
+      "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==",
+      "dev": true
+    },
+    "node_modules/dns-packet": {
+      "version": "5.6.0",
+      "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.0.tgz",
+      "integrity": "sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ==",
+      "dev": true,
+      "dependencies": {
+        "@leichtgewicht/ip-codec": "^2.0.1"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/doctrine": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
+      "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
+      "dev": true,
+      "dependencies": {
+        "esutils": "^2.0.2"
+      },
+      "engines": {
+        "node": ">=6.0.0"
+      }
+    },
+    "node_modules/dom-helpers": {
+      "version": "5.2.1",
+      "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz",
+      "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==",
+      "dependencies": {
+        "@babel/runtime": "^7.8.7",
+        "csstype": "^3.0.2"
+      }
+    },
+    "node_modules/dom-serializer": {
+      "version": "1.4.1",
+      "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz",
+      "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "domelementtype": "^2.0.1",
+        "domhandler": "^4.2.0",
+        "entities": "^2.0.0"
+      },
+      "funding": {
+        "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
+      }
+    },
+    "node_modules/domelementtype": {
+      "version": "2.3.0",
+      "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz",
+      "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/fb55"
+        }
+      ],
+      "optional": true
+    },
+    "node_modules/domhandler": {
+      "version": "4.3.1",
+      "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz",
+      "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "domelementtype": "^2.2.0"
+      },
+      "engines": {
+        "node": ">= 4"
+      },
+      "funding": {
+        "url": "https://github.com/fb55/domhandler?sponsor=1"
+      }
+    },
+    "node_modules/domutils": {
+      "version": "2.8.0",
+      "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz",
+      "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "dom-serializer": "^1.0.1",
+        "domelementtype": "^2.2.0",
+        "domhandler": "^4.2.0"
+      },
+      "funding": {
+        "url": "https://github.com/fb55/domutils?sponsor=1"
+      }
+    },
+    "node_modules/download": {
+      "version": "6.2.5",
+      "resolved": "https://registry.npmjs.org/download/-/download-6.2.5.tgz",
+      "integrity": "sha512-DpO9K1sXAST8Cpzb7kmEhogJxymyVUd5qz/vCOSyvwtp2Klj2XcDt5YUuasgxka44SxF0q5RriKIwJmQHG2AuA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "caw": "^2.0.0",
+        "content-disposition": "^0.5.2",
+        "decompress": "^4.0.0",
+        "ext-name": "^5.0.0",
+        "file-type": "5.2.0",
+        "filenamify": "^2.0.0",
+        "get-stream": "^3.0.0",
+        "got": "^7.0.0",
+        "make-dir": "^1.0.0",
+        "p-event": "^1.0.0",
+        "pify": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/download/node_modules/file-type": {
+      "version": "5.2.0",
+      "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz",
+      "integrity": "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/download/node_modules/get-stream": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
+      "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/download/node_modules/make-dir": {
+      "version": "1.3.0",
+      "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz",
+      "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pify": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/download/node_modules/pify": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
+      "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/duplexer3": {
+      "version": "0.1.5",
+      "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz",
+      "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/ee-first": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
+      "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
+      "dev": true
+    },
+    "node_modules/electron-to-chromium": {
+      "version": "1.4.419",
+      "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.419.tgz",
+      "integrity": "sha512-jdie3RiEgygvDTyS2sgjq71B36q2cDSBfPlwzUyuOrfYTNoYWyBxxjGJV/HAu3A2hB0Y+HesvCVkVAFoCKwCSw==",
+      "dev": true
+    },
+    "node_modules/emojis-list": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz",
+      "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==",
+      "dev": true,
+      "engines": {
+        "node": ">= 4"
+      }
+    },
+    "node_modules/encodeurl": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
+      "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/end-of-stream": {
+      "version": "1.4.4",
+      "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
+      "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "once": "^1.4.0"
+      }
+    },
+    "node_modules/enhanced-resolve": {
+      "version": "5.14.1",
+      "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz",
+      "integrity": "sha512-Vklwq2vDKtl0y/vtwjSesgJ5MYS7Etuk5txS8VdKL4AOS1aUlD96zqIfsOSLQsdv3xgMRbtkWM8eG9XDfKUPow==",
+      "dev": true,
+      "dependencies": {
+        "graceful-fs": "^4.2.4",
+        "tapable": "^2.2.0"
+      },
+      "engines": {
+        "node": ">=10.13.0"
+      }
+    },
+    "node_modules/entities": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz",
+      "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==",
+      "dev": true,
+      "optional": true,
+      "funding": {
+        "url": "https://github.com/fb55/entities?sponsor=1"
+      }
+    },
+    "node_modules/envinfo": {
+      "version": "7.8.1",
+      "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.8.1.tgz",
+      "integrity": "sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==",
+      "dev": true,
+      "bin": {
+        "envinfo": "dist/cli.js"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/error-ex": {
+      "version": "1.3.2",
+      "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
+      "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
+      "dev": true,
+      "dependencies": {
+        "is-arrayish": "^0.2.1"
+      }
+    },
+    "node_modules/es-abstract": {
+      "version": "1.21.2",
+      "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.2.tgz",
+      "integrity": "sha512-y/B5POM2iBnIxCiernH1G7rC9qQoM77lLIMQLuob0zhp8C56Po81+2Nj0WFKnd0pNReDTnkYryc+zhOzpEIROg==",
+      "dev": true,
+      "dependencies": {
+        "array-buffer-byte-length": "^1.0.0",
+        "available-typed-arrays": "^1.0.5",
+        "call-bind": "^1.0.2",
+        "es-set-tostringtag": "^2.0.1",
+        "es-to-primitive": "^1.2.1",
+        "function.prototype.name": "^1.1.5",
+        "get-intrinsic": "^1.2.0",
+        "get-symbol-description": "^1.0.0",
+        "globalthis": "^1.0.3",
+        "gopd": "^1.0.1",
+        "has": "^1.0.3",
+        "has-property-descriptors": "^1.0.0",
+        "has-proto": "^1.0.1",
+        "has-symbols": "^1.0.3",
+        "internal-slot": "^1.0.5",
+        "is-array-buffer": "^3.0.2",
+        "is-callable": "^1.2.7",
+        "is-negative-zero": "^2.0.2",
+        "is-regex": "^1.1.4",
+        "is-shared-array-buffer": "^1.0.2",
+        "is-string": "^1.0.7",
+        "is-typed-array": "^1.1.10",
+        "is-weakref": "^1.0.2",
+        "object-inspect": "^1.12.3",
+        "object-keys": "^1.1.1",
+        "object.assign": "^4.1.4",
+        "regexp.prototype.flags": "^1.4.3",
+        "safe-regex-test": "^1.0.0",
+        "string.prototype.trim": "^1.2.7",
+        "string.prototype.trimend": "^1.0.6",
+        "string.prototype.trimstart": "^1.0.6",
+        "typed-array-length": "^1.0.4",
+        "unbox-primitive": "^1.0.2",
+        "which-typed-array": "^1.1.9"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/es-module-lexer": {
+      "version": "1.2.1",
+      "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.2.1.tgz",
+      "integrity": "sha512-9978wrXM50Y4rTMmW5kXIC09ZdXQZqkE4mxhwkd8VbzsGkXGPgV4zWuqQJgCEzYngdo2dYDa0l8xhX4fkSwJSg==",
+      "dev": true
+    },
+    "node_modules/es-set-tostringtag": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz",
+      "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==",
+      "dev": true,
+      "dependencies": {
+        "get-intrinsic": "^1.1.3",
+        "has": "^1.0.3",
+        "has-tostringtag": "^1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/es-shim-unscopables": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz",
+      "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==",
+      "dev": true,
+      "dependencies": {
+        "has": "^1.0.3"
+      }
+    },
+    "node_modules/es-to-primitive": {
+      "version": "1.2.1",
+      "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz",
+      "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==",
+      "dev": true,
+      "dependencies": {
+        "is-callable": "^1.1.4",
+        "is-date-object": "^1.0.1",
+        "is-symbol": "^1.0.2"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/escalade": {
+      "version": "3.1.1",
+      "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
+      "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
+      "dev": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/escape-html": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
+      "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
+      "dev": true
+    },
+    "node_modules/escape-string-regexp": {
+      "version": "1.0.5",
+      "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+      "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.8.0"
+      }
+    },
+    "node_modules/eslint": {
+      "version": "8.42.0",
+      "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz",
+      "integrity": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==",
+      "dev": true,
+      "dependencies": {
+        "@eslint-community/eslint-utils": "^4.2.0",
+        "@eslint-community/regexpp": "^4.4.0",
+        "@eslint/eslintrc": "^2.0.3",
+        "@eslint/js": "8.42.0",
+        "@humanwhocodes/config-array": "^0.11.10",
+        "@humanwhocodes/module-importer": "^1.0.1",
+        "@nodelib/fs.walk": "^1.2.8",
+        "ajv": "^6.10.0",
+        "chalk": "^4.0.0",
+        "cross-spawn": "^7.0.2",
+        "debug": "^4.3.2",
+        "doctrine": "^3.0.0",
+        "escape-string-regexp": "^4.0.0",
+        "eslint-scope": "^7.2.0",
+        "eslint-visitor-keys": "^3.4.1",
+        "espree": "^9.5.2",
+        "esquery": "^1.4.2",
+        "esutils": "^2.0.2",
+        "fast-deep-equal": "^3.1.3",
+        "file-entry-cache": "^6.0.1",
+        "find-up": "^5.0.0",
+        "glob-parent": "^6.0.2",
+        "globals": "^13.19.0",
+        "graphemer": "^1.4.0",
+        "ignore": "^5.2.0",
+        "import-fresh": "^3.0.0",
+        "imurmurhash": "^0.1.4",
+        "is-glob": "^4.0.0",
+        "is-path-inside": "^3.0.3",
+        "js-yaml": "^4.1.0",
+        "json-stable-stringify-without-jsonify": "^1.0.1",
+        "levn": "^0.4.1",
+        "lodash.merge": "^4.6.2",
+        "minimatch": "^3.1.2",
+        "natural-compare": "^1.4.0",
+        "optionator": "^0.9.1",
+        "strip-ansi": "^6.0.1",
+        "strip-json-comments": "^3.1.0",
+        "text-table": "^0.2.0"
+      },
+      "bin": {
+        "eslint": "bin/eslint.js"
+      },
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "url": "https://opencollective.com/eslint"
+      }
+    },
+    "node_modules/eslint-plugin-react": {
+      "version": "7.32.2",
+      "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.32.2.tgz",
+      "integrity": "sha512-t2fBMa+XzonrrNkyVirzKlvn5RXzzPwRHtMvLAtVZrt8oxgnTQaYbU6SXTOO1mwQgp1y5+toMSKInnzGr0Knqg==",
+      "dev": true,
+      "dependencies": {
+        "array-includes": "^3.1.6",
+        "array.prototype.flatmap": "^1.3.1",
+        "array.prototype.tosorted": "^1.1.1",
+        "doctrine": "^2.1.0",
+        "estraverse": "^5.3.0",
+        "jsx-ast-utils": "^2.4.1 || ^3.0.0",
+        "minimatch": "^3.1.2",
+        "object.entries": "^1.1.6",
+        "object.fromentries": "^2.0.6",
+        "object.hasown": "^1.1.2",
+        "object.values": "^1.1.6",
+        "prop-types": "^15.8.1",
+        "resolve": "^2.0.0-next.4",
+        "semver": "^6.3.0",
+        "string.prototype.matchall": "^4.0.8"
+      },
+      "engines": {
+        "node": ">=4"
+      },
+      "peerDependencies": {
+        "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8"
+      }
+    },
+    "node_modules/eslint-plugin-react-hooks": {
+      "version": "4.6.0",
+      "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz",
+      "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==",
+      "dev": true,
+      "engines": {
+        "node": ">=10"
+      },
+      "peerDependencies": {
+        "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0"
+      }
+    },
+    "node_modules/eslint-plugin-react/node_modules/doctrine": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",
+      "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",
+      "dev": true,
+      "dependencies": {
+        "esutils": "^2.0.2"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/eslint-plugin-react/node_modules/resolve": {
+      "version": "2.0.0-next.4",
+      "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.4.tgz",
+      "integrity": "sha512-iMDbmAWtfU+MHpxt/I5iWI7cY6YVEZUQ3MBgPQ++XD1PELuJHIl82xBmObyP2KyQmkNB2dsqF7seoQQiAn5yDQ==",
+      "dev": true,
+      "dependencies": {
+        "is-core-module": "^2.9.0",
+        "path-parse": "^1.0.7",
+        "supports-preserve-symlinks-flag": "^1.0.0"
+      },
+      "bin": {
+        "resolve": "bin/resolve"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/eslint-scope": {
+      "version": "5.1.1",
+      "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
+      "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",
+      "dev": true,
+      "dependencies": {
+        "esrecurse": "^4.3.0",
+        "estraverse": "^4.1.1"
+      },
+      "engines": {
+        "node": ">=8.0.0"
+      }
+    },
+    "node_modules/eslint-scope/node_modules/estraverse": {
+      "version": "4.3.0",
+      "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",
+      "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",
+      "dev": true,
+      "engines": {
+        "node": ">=4.0"
+      }
+    },
+    "node_modules/eslint-visitor-keys": {
+      "version": "3.4.1",
+      "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz",
+      "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==",
+      "dev": true,
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "url": "https://opencollective.com/eslint"
+      }
+    },
+    "node_modules/eslint/node_modules/ansi-styles": {
+      "version": "4.3.0",
+      "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+      "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+      "dev": true,
+      "dependencies": {
+        "color-convert": "^2.0.1"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+      }
+    },
+    "node_modules/eslint/node_modules/chalk": {
+      "version": "4.1.2",
+      "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+      "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+      "dev": true,
+      "dependencies": {
+        "ansi-styles": "^4.1.0",
+        "supports-color": "^7.1.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/chalk/chalk?sponsor=1"
+      }
+    },
+    "node_modules/eslint/node_modules/color-convert": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+      "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+      "dev": true,
+      "dependencies": {
+        "color-name": "~1.1.4"
+      },
+      "engines": {
+        "node": ">=7.0.0"
+      }
+    },
+    "node_modules/eslint/node_modules/color-name": {
+      "version": "1.1.4",
+      "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+      "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+      "dev": true
+    },
+    "node_modules/eslint/node_modules/escape-string-regexp": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+      "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+      "dev": true,
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/eslint/node_modules/eslint-scope": {
+      "version": "7.2.0",
+      "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz",
+      "integrity": "sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw==",
+      "dev": true,
+      "dependencies": {
+        "esrecurse": "^4.3.0",
+        "estraverse": "^5.2.0"
+      },
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "url": "https://opencollective.com/eslint"
+      }
+    },
+    "node_modules/eslint/node_modules/globals": {
+      "version": "13.20.0",
+      "resolved": "https://registry.npmjs.org/globals/-/globals-13.20.0.tgz",
+      "integrity": "sha512-Qg5QtVkCy/kv3FUSlu4ukeZDVf9ee0iXLAUYX13gbR17bnejFTzr4iS9bY7kwCf1NztRNm1t91fjOiyx4CSwPQ==",
+      "dev": true,
+      "dependencies": {
+        "type-fest": "^0.20.2"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/eslint/node_modules/has-flag": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+      "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/eslint/node_modules/supports-color": {
+      "version": "7.2.0",
+      "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+      "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+      "dev": true,
+      "dependencies": {
+        "has-flag": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/eslint/node_modules/type-fest": {
+      "version": "0.20.2",
+      "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
+      "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/espree": {
+      "version": "9.5.2",
+      "resolved": "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz",
+      "integrity": "sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw==",
+      "dev": true,
+      "dependencies": {
+        "acorn": "^8.8.0",
+        "acorn-jsx": "^5.3.2",
+        "eslint-visitor-keys": "^3.4.1"
+      },
+      "engines": {
+        "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+      },
+      "funding": {
+        "url": "https://opencollective.com/eslint"
+      }
+    },
+    "node_modules/esquery": {
+      "version": "1.5.0",
+      "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz",
+      "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==",
+      "dev": true,
+      "dependencies": {
+        "estraverse": "^5.1.0"
+      },
+      "engines": {
+        "node": ">=0.10"
+      }
+    },
+    "node_modules/esrecurse": {
+      "version": "4.3.0",
+      "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+      "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+      "dev": true,
+      "dependencies": {
+        "estraverse": "^5.2.0"
+      },
+      "engines": {
+        "node": ">=4.0"
+      }
+    },
+    "node_modules/estraverse": {
+      "version": "5.3.0",
+      "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+      "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+      "dev": true,
+      "engines": {
+        "node": ">=4.0"
+      }
+    },
+    "node_modules/esutils": {
+      "version": "2.0.3",
+      "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
+      "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/etag": {
+      "version": "1.8.1",
+      "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
+      "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/eventemitter3": {
+      "version": "4.0.7",
+      "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
+      "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==",
+      "dev": true
+    },
+    "node_modules/events": {
+      "version": "3.3.0",
+      "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",
+      "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.8.x"
+      }
+    },
+    "node_modules/exec-buffer": {
+      "version": "3.2.0",
+      "resolved": "https://registry.npmjs.org/exec-buffer/-/exec-buffer-3.2.0.tgz",
+      "integrity": "sha512-wsiD+2Tp6BWHoVv3B+5Dcx6E7u5zky+hUwOHjuH2hKSLR3dvRmX8fk8UD8uqQixHs4Wk6eDmiegVrMPjKj7wpA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "execa": "^0.7.0",
+        "p-finally": "^1.0.0",
+        "pify": "^3.0.0",
+        "rimraf": "^2.5.4",
+        "tempfile": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/exec-buffer/node_modules/cross-spawn": {
+      "version": "5.1.0",
+      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
+      "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "lru-cache": "^4.0.1",
+        "shebang-command": "^1.2.0",
+        "which": "^1.2.9"
+      }
+    },
+    "node_modules/exec-buffer/node_modules/execa": {
+      "version": "0.7.0",
+      "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz",
+      "integrity": "sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "cross-spawn": "^5.0.1",
+        "get-stream": "^3.0.0",
+        "is-stream": "^1.1.0",
+        "npm-run-path": "^2.0.0",
+        "p-finally": "^1.0.0",
+        "signal-exit": "^3.0.0",
+        "strip-eof": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/exec-buffer/node_modules/get-stream": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
+      "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/exec-buffer/node_modules/lru-cache": {
+      "version": "4.1.5",
+      "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
+      "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pseudomap": "^1.0.2",
+        "yallist": "^2.1.2"
+      }
+    },
+    "node_modules/exec-buffer/node_modules/pify": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
+      "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/exec-buffer/node_modules/rimraf": {
+      "version": "2.7.1",
+      "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
+      "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "glob": "^7.1.3"
+      },
+      "bin": {
+        "rimraf": "bin.js"
+      }
+    },
+    "node_modules/exec-buffer/node_modules/shebang-command": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
+      "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "shebang-regex": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/exec-buffer/node_modules/shebang-regex": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
+      "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/exec-buffer/node_modules/which": {
+      "version": "1.3.1",
+      "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
+      "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "isexe": "^2.0.0"
+      },
+      "bin": {
+        "which": "bin/which"
+      }
+    },
+    "node_modules/exec-buffer/node_modules/yallist": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
+      "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/execa": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz",
+      "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "cross-spawn": "^6.0.0",
+        "get-stream": "^4.0.0",
+        "is-stream": "^1.1.0",
+        "npm-run-path": "^2.0.0",
+        "p-finally": "^1.0.0",
+        "signal-exit": "^3.0.0",
+        "strip-eof": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/execa/node_modules/cross-spawn": {
+      "version": "6.0.5",
+      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
+      "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "nice-try": "^1.0.4",
+        "path-key": "^2.0.1",
+        "semver": "^5.5.0",
+        "shebang-command": "^1.2.0",
+        "which": "^1.2.9"
+      },
+      "engines": {
+        "node": ">=4.8"
+      }
+    },
+    "node_modules/execa/node_modules/path-key": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
+      "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/execa/node_modules/semver": {
+      "version": "5.7.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
+      "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
+      "dev": true,
+      "optional": true,
+      "bin": {
+        "semver": "bin/semver"
+      }
+    },
+    "node_modules/execa/node_modules/shebang-command": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
+      "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "shebang-regex": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/execa/node_modules/shebang-regex": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
+      "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/execa/node_modules/which": {
+      "version": "1.3.1",
+      "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
+      "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "isexe": "^2.0.0"
+      },
+      "bin": {
+        "which": "bin/which"
+      }
+    },
+    "node_modules/executable": {
+      "version": "4.1.1",
+      "resolved": "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz",
+      "integrity": "sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pify": "^2.2.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/executable/node_modules/pify": {
+      "version": "2.3.0",
+      "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+      "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/express": {
+      "version": "4.18.2",
+      "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
+      "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==",
+      "dev": true,
+      "dependencies": {
+        "accepts": "~1.3.8",
+        "array-flatten": "1.1.1",
+        "body-parser": "1.20.1",
+        "content-disposition": "0.5.4",
+        "content-type": "~1.0.4",
+        "cookie": "0.5.0",
+        "cookie-signature": "1.0.6",
+        "debug": "2.6.9",
+        "depd": "2.0.0",
+        "encodeurl": "~1.0.2",
+        "escape-html": "~1.0.3",
+        "etag": "~1.8.1",
+        "finalhandler": "1.2.0",
+        "fresh": "0.5.2",
+        "http-errors": "2.0.0",
+        "merge-descriptors": "1.0.1",
+        "methods": "~1.1.2",
+        "on-finished": "2.4.1",
+        "parseurl": "~1.3.3",
+        "path-to-regexp": "0.1.7",
+        "proxy-addr": "~2.0.7",
+        "qs": "6.11.0",
+        "range-parser": "~1.2.1",
+        "safe-buffer": "5.2.1",
+        "send": "0.18.0",
+        "serve-static": "1.15.0",
+        "setprototypeof": "1.2.0",
+        "statuses": "2.0.1",
+        "type-is": "~1.6.18",
+        "utils-merge": "1.0.1",
+        "vary": "~1.1.2"
+      },
+      "engines": {
+        "node": ">= 0.10.0"
+      }
+    },
+    "node_modules/express/node_modules/array-flatten": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
+      "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
+      "dev": true
+    },
+    "node_modules/express/node_modules/debug": {
+      "version": "2.6.9",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+      "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+      "dev": true,
+      "dependencies": {
+        "ms": "2.0.0"
+      }
+    },
+    "node_modules/express/node_modules/ms": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+      "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+      "dev": true
+    },
+    "node_modules/ext-list": {
+      "version": "2.2.2",
+      "resolved": "https://registry.npmjs.org/ext-list/-/ext-list-2.2.2.tgz",
+      "integrity": "sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "mime-db": "^1.28.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/ext-name": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/ext-name/-/ext-name-5.0.0.tgz",
+      "integrity": "sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "ext-list": "^2.0.0",
+        "sort-keys-length": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/fast-deep-equal": {
+      "version": "3.1.3",
+      "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+      "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+      "dev": true
+    },
+    "node_modules/fast-glob": {
+      "version": "3.2.12",
+      "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz",
+      "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==",
+      "dev": true,
+      "dependencies": {
+        "@nodelib/fs.stat": "^2.0.2",
+        "@nodelib/fs.walk": "^1.2.3",
+        "glob-parent": "^5.1.2",
+        "merge2": "^1.3.0",
+        "micromatch": "^4.0.4"
+      },
+      "engines": {
+        "node": ">=8.6.0"
+      }
+    },
+    "node_modules/fast-glob/node_modules/glob-parent": {
+      "version": "5.1.2",
+      "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+      "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+      "dev": true,
+      "dependencies": {
+        "is-glob": "^4.0.1"
+      },
+      "engines": {
+        "node": ">= 6"
+      }
+    },
+    "node_modules/fast-json-stable-stringify": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+      "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+      "dev": true
+    },
+    "node_modules/fast-levenshtein": {
+      "version": "2.0.6",
+      "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+      "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+      "dev": true
+    },
+    "node_modules/fast-xml-parser": {
+      "version": "4.2.2",
+      "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.2.tgz",
+      "integrity": "sha512-DLzIPtQqmvmdq3VUKR7T6omPK/VCRNqgFlGtbESfyhcH2R4I8EzK1/K6E8PkRCK2EabWrUHK32NjYRbEFnnz0Q==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "paypal",
+          "url": "https://paypal.me/naturalintelligence"
+        },
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/NaturalIntelligence"
+        }
+      ],
+      "optional": true,
+      "dependencies": {
+        "strnum": "^1.0.5"
+      },
+      "bin": {
+        "fxparser": "src/cli/cli.js"
+      }
+    },
+    "node_modules/fastest-levenshtein": {
+      "version": "1.0.16",
+      "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz",
+      "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 4.9.1"
+      }
+    },
+    "node_modules/fastq": {
+      "version": "1.15.0",
+      "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",
+      "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==",
+      "dev": true,
+      "dependencies": {
+        "reusify": "^1.0.4"
+      }
+    },
+    "node_modules/faye-websocket": {
+      "version": "0.11.4",
+      "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz",
+      "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==",
+      "dev": true,
+      "dependencies": {
+        "websocket-driver": ">=0.5.1"
+      },
+      "engines": {
+        "node": ">=0.8.0"
+      }
+    },
+    "node_modules/fd-slicer": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
+      "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pend": "~1.2.0"
+      }
+    },
+    "node_modules/file-entry-cache": {
+      "version": "6.0.1",
+      "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
+      "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
+      "dev": true,
+      "dependencies": {
+        "flat-cache": "^3.0.4"
+      },
+      "engines": {
+        "node": "^10.12.0 || >=12.0.0"
+      }
+    },
+    "node_modules/file-type": {
+      "version": "12.4.2",
+      "resolved": "https://registry.npmjs.org/file-type/-/file-type-12.4.2.tgz",
+      "integrity": "sha512-UssQP5ZgIOKelfsaB5CuGAL+Y+q7EmONuiwF3N5HAH0t27rvrttgi6Ra9k/+DVaY9UF6+ybxu5pOXLUdA8N7Vg==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/filename-reserved-regex": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz",
+      "integrity": "sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/filenamify": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-2.1.0.tgz",
+      "integrity": "sha512-ICw7NTT6RsDp2rnYKVd8Fu4cr6ITzGy3+u4vUujPkabyaz+03F24NWEX7fs5fp+kBonlaqPH8fAO2NM+SXt/JA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "filename-reserved-regex": "^2.0.0",
+        "strip-outer": "^1.0.0",
+        "trim-repeated": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/fill-range": {
+      "version": "7.0.1",
+      "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
+      "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
+      "dev": true,
+      "dependencies": {
+        "to-regex-range": "^5.0.1"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/finalhandler": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",
+      "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==",
+      "dev": true,
+      "dependencies": {
+        "debug": "2.6.9",
+        "encodeurl": "~1.0.2",
+        "escape-html": "~1.0.3",
+        "on-finished": "2.4.1",
+        "parseurl": "~1.3.3",
+        "statuses": "2.0.1",
+        "unpipe": "~1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/finalhandler/node_modules/debug": {
+      "version": "2.6.9",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+      "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+      "dev": true,
+      "dependencies": {
+        "ms": "2.0.0"
+      }
+    },
+    "node_modules/finalhandler/node_modules/ms": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+      "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+      "dev": true
+    },
+    "node_modules/find-cache-dir": {
+      "version": "3.3.2",
+      "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz",
+      "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==",
+      "dev": true,
+      "dependencies": {
+        "commondir": "^1.0.1",
+        "make-dir": "^3.0.2",
+        "pkg-dir": "^4.1.0"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/avajs/find-cache-dir?sponsor=1"
+      }
+    },
+    "node_modules/find-up": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+      "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+      "dev": true,
+      "dependencies": {
+        "locate-path": "^6.0.0",
+        "path-exists": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/find-versions": {
+      "version": "3.2.0",
+      "resolved": "https://registry.npmjs.org/find-versions/-/find-versions-3.2.0.tgz",
+      "integrity": "sha512-P8WRou2S+oe222TOCHitLy8zj+SIsVJh52VP4lvXkaFVnOFFdoWv1H1Jjvel1aI6NCFOAaeAVm8qrI0odiLcww==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "semver-regex": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/flat-cache": {
+      "version": "3.0.4",
+      "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz",
+      "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==",
+      "dev": true,
+      "dependencies": {
+        "flatted": "^3.1.0",
+        "rimraf": "^3.0.2"
+      },
+      "engines": {
+        "node": "^10.12.0 || >=12.0.0"
+      }
+    },
+    "node_modules/flatted": {
+      "version": "3.2.7",
+      "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",
+      "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==",
+      "dev": true
+    },
+    "node_modules/follow-redirects": {
+      "version": "1.15.2",
+      "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
+      "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "individual",
+          "url": "https://github.com/sponsors/RubenVerborgh"
+        }
+      ],
+      "engines": {
+        "node": ">=4.0"
+      },
+      "peerDependenciesMeta": {
+        "debug": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/for-each": {
+      "version": "0.3.3",
+      "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
+      "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==",
+      "dev": true,
+      "dependencies": {
+        "is-callable": "^1.1.3"
+      }
+    },
+    "node_modules/fork-ts-checker-webpack-plugin": {
+      "version": "8.0.0",
+      "resolved": "https://registry.npmjs.org/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-8.0.0.tgz",
+      "integrity": "sha512-mX3qW3idpueT2klaQXBzrIM/pHw+T0B/V9KHEvNrqijTq9NFnMZU6oreVxDYcf33P8a5cW+67PjodNHthGnNVg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/code-frame": "^7.16.7",
+        "chalk": "^4.1.2",
+        "chokidar": "^3.5.3",
+        "cosmiconfig": "^7.0.1",
+        "deepmerge": "^4.2.2",
+        "fs-extra": "^10.0.0",
+        "memfs": "^3.4.1",
+        "minimatch": "^3.0.4",
+        "node-abort-controller": "^3.0.1",
+        "schema-utils": "^3.1.1",
+        "semver": "^7.3.5",
+        "tapable": "^2.2.1"
+      },
+      "engines": {
+        "node": ">=12.13.0",
+        "yarn": ">=1.0.0"
+      },
+      "peerDependencies": {
+        "typescript": ">3.6.0",
+        "webpack": "^5.11.0"
+      }
+    },
+    "node_modules/fork-ts-checker-webpack-plugin/node_modules/ansi-styles": {
+      "version": "4.3.0",
+      "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+      "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+      "dev": true,
+      "dependencies": {
+        "color-convert": "^2.0.1"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+      }
+    },
+    "node_modules/fork-ts-checker-webpack-plugin/node_modules/chalk": {
+      "version": "4.1.2",
+      "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+      "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+      "dev": true,
+      "dependencies": {
+        "ansi-styles": "^4.1.0",
+        "supports-color": "^7.1.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/chalk/chalk?sponsor=1"
+      }
+    },
+    "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-convert": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+      "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+      "dev": true,
+      "dependencies": {
+        "color-name": "~1.1.4"
+      },
+      "engines": {
+        "node": ">=7.0.0"
+      }
+    },
+    "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-name": {
+      "version": "1.1.4",
+      "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+      "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+      "dev": true
+    },
+    "node_modules/fork-ts-checker-webpack-plugin/node_modules/has-flag": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+      "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/fork-ts-checker-webpack-plugin/node_modules/lru-cache": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
+      "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+      "dev": true,
+      "dependencies": {
+        "yallist": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils": {
+      "version": "3.1.2",
+      "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz",
+      "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==",
+      "dev": true,
+      "dependencies": {
+        "@types/json-schema": "^7.0.8",
+        "ajv": "^6.12.5",
+        "ajv-keywords": "^3.5.2"
+      },
+      "engines": {
+        "node": ">= 10.13.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      }
+    },
+    "node_modules/fork-ts-checker-webpack-plugin/node_modules/semver": {
+      "version": "7.5.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz",
+      "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==",
+      "dev": true,
+      "dependencies": {
+        "lru-cache": "^6.0.0"
+      },
+      "bin": {
+        "semver": "bin/semver.js"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/fork-ts-checker-webpack-plugin/node_modules/supports-color": {
+      "version": "7.2.0",
+      "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+      "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+      "dev": true,
+      "dependencies": {
+        "has-flag": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/fork-ts-checker-webpack-plugin/node_modules/yallist": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
+      "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+      "dev": true
+    },
+    "node_modules/forwarded": {
+      "version": "0.2.0",
+      "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
+      "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/fresh": {
+      "version": "0.5.2",
+      "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
+      "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/from2": {
+      "version": "2.3.0",
+      "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz",
+      "integrity": "sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "inherits": "^2.0.1",
+        "readable-stream": "^2.0.0"
+      }
+    },
+    "node_modules/fs-constants": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
+      "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/fs-extra": {
+      "version": "10.1.0",
+      "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",
+      "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==",
+      "dev": true,
+      "dependencies": {
+        "graceful-fs": "^4.2.0",
+        "jsonfile": "^6.0.1",
+        "universalify": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=12"
+      }
+    },
+    "node_modules/fs-monkey": {
+      "version": "1.0.4",
+      "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.4.tgz",
+      "integrity": "sha512-INM/fWAxMICjttnD0DX1rBvinKskj5G1w+oy/pnm9u/tSlnBrzFonJMcalKJ30P8RRsPzKcCG7Q8l0jx5Fh9YQ==",
+      "dev": true
+    },
+    "node_modules/fs.realpath": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
+      "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
+      "dev": true
+    },
+    "node_modules/fsevents": {
+      "version": "2.3.2",
+      "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
+      "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
+      "dev": true,
+      "hasInstallScript": true,
+      "optional": true,
+      "os": [
+        "darwin"
+      ],
+      "engines": {
+        "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+      }
+    },
+    "node_modules/function-bind": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
+      "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
+      "dev": true
+    },
+    "node_modules/function.prototype.name": {
+      "version": "1.1.5",
+      "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz",
+      "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.1.3",
+        "es-abstract": "^1.19.0",
+        "functions-have-names": "^1.2.2"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/functions-have-names": {
+      "version": "1.2.3",
+      "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz",
+      "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",
+      "dev": true,
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/gensync": {
+      "version": "1.0.0-beta.2",
+      "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+      "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+      "dev": true,
+      "engines": {
+        "node": ">=6.9.0"
+      }
+    },
+    "node_modules/get-intrinsic": {
+      "version": "1.2.1",
+      "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz",
+      "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==",
+      "dev": true,
+      "dependencies": {
+        "function-bind": "^1.1.1",
+        "has": "^1.0.3",
+        "has-proto": "^1.0.1",
+        "has-symbols": "^1.0.3"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/get-proxy": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/get-proxy/-/get-proxy-2.1.0.tgz",
+      "integrity": "sha512-zmZIaQTWnNQb4R4fJUEp/FC51eZsc6EkErspy3xtIYStaq8EB/hDIWipxsal+E8rz0qD7f2sL/NA9Xee4RInJw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "npm-conf": "^1.1.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/get-stream": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
+      "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pump": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/get-symbol-description": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz",
+      "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "get-intrinsic": "^1.1.1"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/gifsicle": {
+      "version": "5.3.0",
+      "resolved": "https://registry.npmjs.org/gifsicle/-/gifsicle-5.3.0.tgz",
+      "integrity": "sha512-FJTpgdj1Ow/FITB7SVza5HlzXa+/lqEY0tHQazAJbuAdvyJtkH4wIdsR2K414oaTwRXHFLLF+tYbipj+OpYg+Q==",
+      "dev": true,
+      "hasInstallScript": true,
+      "optional": true,
+      "dependencies": {
+        "bin-build": "^3.0.0",
+        "bin-wrapper": "^4.0.0",
+        "execa": "^5.0.0"
+      },
+      "bin": {
+        "gifsicle": "cli.js"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/imagemin/gisicle-bin?sponsor=1"
+      }
+    },
+    "node_modules/gifsicle/node_modules/execa": {
+      "version": "5.1.1",
+      "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
+      "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "cross-spawn": "^7.0.3",
+        "get-stream": "^6.0.0",
+        "human-signals": "^2.1.0",
+        "is-stream": "^2.0.0",
+        "merge-stream": "^2.0.0",
+        "npm-run-path": "^4.0.1",
+        "onetime": "^5.1.2",
+        "signal-exit": "^3.0.3",
+        "strip-final-newline": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sindresorhus/execa?sponsor=1"
+      }
+    },
+    "node_modules/gifsicle/node_modules/get-stream": {
+      "version": "6.0.1",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
+      "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/gifsicle/node_modules/is-stream": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
+      "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/gifsicle/node_modules/npm-run-path": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
+      "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "path-key": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/glob": {
+      "version": "7.2.3",
+      "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
+      "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+      "dev": true,
+      "dependencies": {
+        "fs.realpath": "^1.0.0",
+        "inflight": "^1.0.4",
+        "inherits": "2",
+        "minimatch": "^3.1.1",
+        "once": "^1.3.0",
+        "path-is-absolute": "^1.0.0"
+      },
+      "engines": {
+        "node": "*"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/isaacs"
+      }
+    },
+    "node_modules/glob-parent": {
+      "version": "6.0.2",
+      "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+      "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+      "dev": true,
+      "dependencies": {
+        "is-glob": "^4.0.3"
+      },
+      "engines": {
+        "node": ">=10.13.0"
+      }
+    },
+    "node_modules/glob-to-regexp": {
+      "version": "0.4.1",
+      "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz",
+      "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==",
+      "dev": true
+    },
+    "node_modules/globals": {
+      "version": "11.12.0",
+      "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
+      "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
+      "dev": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/globalthis": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz",
+      "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==",
+      "dev": true,
+      "dependencies": {
+        "define-properties": "^1.1.3"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/globby": {
+      "version": "11.1.0",
+      "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",
+      "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",
+      "dev": true,
+      "dependencies": {
+        "array-union": "^2.1.0",
+        "dir-glob": "^3.0.1",
+        "fast-glob": "^3.2.9",
+        "ignore": "^5.2.0",
+        "merge2": "^1.4.1",
+        "slash": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/gopd": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
+      "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
+      "dev": true,
+      "dependencies": {
+        "get-intrinsic": "^1.1.3"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/got": {
+      "version": "7.1.0",
+      "resolved": "https://registry.npmjs.org/got/-/got-7.1.0.tgz",
+      "integrity": "sha512-Y5WMo7xKKq1muPsxD+KmrR8DH5auG7fBdDVueZwETwV6VytKyU9OX/ddpq2/1hp1vIPvVb4T81dKQz3BivkNLw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "decompress-response": "^3.2.0",
+        "duplexer3": "^0.1.4",
+        "get-stream": "^3.0.0",
+        "is-plain-obj": "^1.1.0",
+        "is-retry-allowed": "^1.0.0",
+        "is-stream": "^1.0.0",
+        "isurl": "^1.0.0-alpha5",
+        "lowercase-keys": "^1.0.0",
+        "p-cancelable": "^0.3.0",
+        "p-timeout": "^1.1.1",
+        "safe-buffer": "^5.0.1",
+        "timed-out": "^4.0.0",
+        "url-parse-lax": "^1.0.0",
+        "url-to-options": "^1.0.1"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/got/node_modules/get-stream": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
+      "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/graceful-fs": {
+      "version": "4.2.11",
+      "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
+      "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+      "dev": true
+    },
+    "node_modules/grapheme-splitter": {
+      "version": "1.0.4",
+      "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz",
+      "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",
+      "dev": true
+    },
+    "node_modules/graphemer": {
+      "version": "1.4.0",
+      "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
+      "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
+      "dev": true
+    },
+    "node_modules/handle-thing": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz",
+      "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==",
+      "dev": true
+    },
+    "node_modules/has": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
+      "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
+      "dev": true,
+      "dependencies": {
+        "function-bind": "^1.1.1"
+      },
+      "engines": {
+        "node": ">= 0.4.0"
+      }
+    },
+    "node_modules/has-bigints": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",
+      "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==",
+      "dev": true,
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/has-flag": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
+      "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",
+      "dev": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/has-property-descriptors": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz",
+      "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==",
+      "dev": true,
+      "dependencies": {
+        "get-intrinsic": "^1.1.1"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/has-proto": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
+      "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/has-symbol-support-x": {
+      "version": "1.4.2",
+      "resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz",
+      "integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": "*"
+      }
+    },
+    "node_modules/has-symbols": {
+      "version": "1.0.3",
+      "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
+      "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/has-to-string-tag-x": {
+      "version": "1.4.1",
+      "resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz",
+      "integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "has-symbol-support-x": "^1.4.1"
+      },
+      "engines": {
+        "node": "*"
+      }
+    },
+    "node_modules/has-tostringtag": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz",
+      "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==",
+      "dev": true,
+      "dependencies": {
+        "has-symbols": "^1.0.2"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/hpack.js": {
+      "version": "2.1.6",
+      "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz",
+      "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==",
+      "dev": true,
+      "dependencies": {
+        "inherits": "^2.0.1",
+        "obuf": "^1.0.0",
+        "readable-stream": "^2.0.1",
+        "wbuf": "^1.1.0"
+      }
+    },
+    "node_modules/html-entities": {
+      "version": "2.3.3",
+      "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz",
+      "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==",
+      "dev": true
+    },
+    "node_modules/http-cache-semantics": {
+      "version": "3.8.1",
+      "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz",
+      "integrity": "sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/http-deceiver": {
+      "version": "1.2.7",
+      "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz",
+      "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==",
+      "dev": true
+    },
+    "node_modules/http-errors": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
+      "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
+      "dev": true,
+      "dependencies": {
+        "depd": "2.0.0",
+        "inherits": "2.0.4",
+        "setprototypeof": "1.2.0",
+        "statuses": "2.0.1",
+        "toidentifier": "1.0.1"
+      },
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/http-parser-js": {
+      "version": "0.5.8",
+      "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz",
+      "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==",
+      "dev": true
+    },
+    "node_modules/http-proxy": {
+      "version": "1.18.1",
+      "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz",
+      "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==",
+      "dev": true,
+      "dependencies": {
+        "eventemitter3": "^4.0.0",
+        "follow-redirects": "^1.0.0",
+        "requires-port": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=8.0.0"
+      }
+    },
+    "node_modules/http-proxy-middleware": {
+      "version": "2.0.6",
+      "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz",
+      "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==",
+      "dev": true,
+      "dependencies": {
+        "@types/http-proxy": "^1.17.8",
+        "http-proxy": "^1.18.1",
+        "is-glob": "^4.0.1",
+        "is-plain-obj": "^3.0.0",
+        "micromatch": "^4.0.2"
+      },
+      "engines": {
+        "node": ">=12.0.0"
+      },
+      "peerDependencies": {
+        "@types/express": "^4.17.13"
+      },
+      "peerDependenciesMeta": {
+        "@types/express": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/http-proxy-middleware/node_modules/is-plain-obj": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz",
+      "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==",
+      "dev": true,
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/human-signals": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
+      "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
+      "dev": true,
+      "engines": {
+        "node": ">=10.17.0"
+      }
+    },
+    "node_modules/iconv-lite": {
+      "version": "0.4.24",
+      "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
+      "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+      "dev": true,
+      "dependencies": {
+        "safer-buffer": ">= 2.1.2 < 3"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/icss-utils": {
+      "version": "5.1.0",
+      "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz",
+      "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==",
+      "dev": true,
+      "engines": {
+        "node": "^10 || ^12 || >= 14"
+      },
+      "peerDependencies": {
+        "postcss": "^8.1.0"
+      }
+    },
+    "node_modules/ieee754": {
+      "version": "1.2.1",
+      "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
+      "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/feross"
+        },
+        {
+          "type": "patreon",
+          "url": "https://www.patreon.com/feross"
+        },
+        {
+          "type": "consulting",
+          "url": "https://feross.org/support"
+        }
+      ],
+      "optional": true
+    },
+    "node_modules/ignore": {
+      "version": "5.2.4",
+      "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
+      "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==",
+      "dev": true,
+      "engines": {
+        "node": ">= 4"
+      }
+    },
+    "node_modules/image-webpack-loader": {
+      "version": "8.1.0",
+      "resolved": "https://registry.npmjs.org/image-webpack-loader/-/image-webpack-loader-8.1.0.tgz",
+      "integrity": "sha512-bxzMIBNu42KGo6Bc9YMB0QEUt+XuVTl2ZSX3oGAlbsqYOkxkT4TEWvVsnwUkCRCYISJrMCEc/s0y8OYrmEfUOg==",
+      "dev": true,
+      "dependencies": {
+        "imagemin": "^7.0.1",
+        "loader-utils": "^2.0.0",
+        "object-assign": "^4.1.1",
+        "schema-utils": "^2.7.1"
+      },
+      "optionalDependencies": {
+        "imagemin-gifsicle": "^7.0.0",
+        "imagemin-mozjpeg": "^9.0.0",
+        "imagemin-optipng": "^8.0.0",
+        "imagemin-pngquant": "^9.0.2",
+        "imagemin-svgo": "^9.0.0",
+        "imagemin-webp": "^7.0.0"
+      }
+    },
+    "node_modules/image-webpack-loader/node_modules/schema-utils": {
+      "version": "2.7.1",
+      "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-2.7.1.tgz",
+      "integrity": "sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==",
+      "dev": true,
+      "dependencies": {
+        "@types/json-schema": "^7.0.5",
+        "ajv": "^6.12.4",
+        "ajv-keywords": "^3.5.2"
+      },
+      "engines": {
+        "node": ">= 8.9.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      }
+    },
+    "node_modules/imagemin": {
+      "version": "7.0.1",
+      "resolved": "https://registry.npmjs.org/imagemin/-/imagemin-7.0.1.tgz",
+      "integrity": "sha512-33AmZ+xjZhg2JMCe+vDf6a9mzWukE7l+wAtesjE7KyteqqKjzxv7aVQeWnul1Ve26mWvEQqyPwl0OctNBfSR9w==",
+      "dev": true,
+      "dependencies": {
+        "file-type": "^12.0.0",
+        "globby": "^10.0.0",
+        "graceful-fs": "^4.2.2",
+        "junk": "^3.1.0",
+        "make-dir": "^3.0.0",
+        "p-pipe": "^3.0.0",
+        "replace-ext": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/imagemin-gifsicle": {
+      "version": "7.0.0",
+      "resolved": "https://registry.npmjs.org/imagemin-gifsicle/-/imagemin-gifsicle-7.0.0.tgz",
+      "integrity": "sha512-LaP38xhxAwS3W8PFh4y5iQ6feoTSF+dTAXFRUEYQWYst6Xd+9L/iPk34QGgK/VO/objmIlmq9TStGfVY2IcHIA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "execa": "^1.0.0",
+        "gifsicle": "^5.0.0",
+        "is-gif": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/imagemin/imagemin-gifsicle?sponsor=1"
+      }
+    },
+    "node_modules/imagemin-mozjpeg": {
+      "version": "9.0.0",
+      "resolved": "https://registry.npmjs.org/imagemin-mozjpeg/-/imagemin-mozjpeg-9.0.0.tgz",
+      "integrity": "sha512-TwOjTzYqCFRgROTWpVSt5UTT0JeCuzF1jswPLKALDd89+PmrJ2PdMMYeDLYZ1fs9cTovI9GJd68mRSnuVt691w==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "execa": "^4.0.0",
+        "is-jpg": "^2.0.0",
+        "mozjpeg": "^7.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/imagemin-mozjpeg/node_modules/execa": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz",
+      "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "cross-spawn": "^7.0.0",
+        "get-stream": "^5.0.0",
+        "human-signals": "^1.1.1",
+        "is-stream": "^2.0.0",
+        "merge-stream": "^2.0.0",
+        "npm-run-path": "^4.0.0",
+        "onetime": "^5.1.0",
+        "signal-exit": "^3.0.2",
+        "strip-final-newline": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sindresorhus/execa?sponsor=1"
+      }
+    },
+    "node_modules/imagemin-mozjpeg/node_modules/get-stream": {
+      "version": "5.2.0",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
+      "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pump": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/imagemin-mozjpeg/node_modules/human-signals": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz",
+      "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=8.12.0"
+      }
+    },
+    "node_modules/imagemin-mozjpeg/node_modules/is-stream": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
+      "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/imagemin-mozjpeg/node_modules/npm-run-path": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
+      "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "path-key": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/imagemin-optipng": {
+      "version": "8.0.0",
+      "resolved": "https://registry.npmjs.org/imagemin-optipng/-/imagemin-optipng-8.0.0.tgz",
+      "integrity": "sha512-CUGfhfwqlPjAC0rm8Fy+R2DJDBGjzy2SkfyT09L8rasnF9jSoHFqJ1xxSZWK6HVPZBMhGPMxCTL70OgTHlLF5A==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "exec-buffer": "^3.0.0",
+        "is-png": "^2.0.0",
+        "optipng-bin": "^7.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/imagemin-pngquant": {
+      "version": "9.0.2",
+      "resolved": "https://registry.npmjs.org/imagemin-pngquant/-/imagemin-pngquant-9.0.2.tgz",
+      "integrity": "sha512-cj//bKo8+Frd/DM8l6Pg9pws1pnDUjgb7ae++sUX1kUVdv2nrngPykhiUOgFeE0LGY/LmUbCf4egCHC4YUcZSg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "execa": "^4.0.0",
+        "is-png": "^2.0.0",
+        "is-stream": "^2.0.0",
+        "ow": "^0.17.0",
+        "pngquant-bin": "^6.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/imagemin-pngquant/node_modules/execa": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz",
+      "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "cross-spawn": "^7.0.0",
+        "get-stream": "^5.0.0",
+        "human-signals": "^1.1.1",
+        "is-stream": "^2.0.0",
+        "merge-stream": "^2.0.0",
+        "npm-run-path": "^4.0.0",
+        "onetime": "^5.1.0",
+        "signal-exit": "^3.0.2",
+        "strip-final-newline": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sindresorhus/execa?sponsor=1"
+      }
+    },
+    "node_modules/imagemin-pngquant/node_modules/get-stream": {
+      "version": "5.2.0",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
+      "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pump": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/imagemin-pngquant/node_modules/human-signals": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz",
+      "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=8.12.0"
+      }
+    },
+    "node_modules/imagemin-pngquant/node_modules/is-stream": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
+      "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/imagemin-pngquant/node_modules/npm-run-path": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
+      "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "path-key": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/imagemin-svgo": {
+      "version": "9.0.0",
+      "resolved": "https://registry.npmjs.org/imagemin-svgo/-/imagemin-svgo-9.0.0.tgz",
+      "integrity": "sha512-uNgXpKHd99C0WODkrJ8OO/3zW3qjgS4pW7hcuII0RcHN3tnKxDjJWcitdVC/TZyfIqSricU8WfrHn26bdSW62g==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "is-svg": "^4.2.1",
+        "svgo": "^2.1.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sindresorhus/imagemin-svgo?sponsor=1"
+      }
+    },
+    "node_modules/imagemin-webp": {
+      "version": "7.0.0",
+      "resolved": "https://registry.npmjs.org/imagemin-webp/-/imagemin-webp-7.0.0.tgz",
+      "integrity": "sha512-JoYjvHNgBLgrQAkeCO7T5iNc8XVpiBmMPZmiXMhalC7K6gwY/3DCEUfNxVPOmNJ+NIJlJFvzcMR9RBxIE74Xxw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "cwebp-bin": "^7.0.1",
+        "exec-buffer": "^3.2.0",
+        "is-cwebp-readable": "^3.0.0"
+      },
+      "engines": {
+        "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+      }
+    },
+    "node_modules/imagemin/node_modules/globby": {
+      "version": "10.0.2",
+      "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz",
+      "integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==",
+      "dev": true,
+      "dependencies": {
+        "@types/glob": "^7.1.1",
+        "array-union": "^2.1.0",
+        "dir-glob": "^3.0.1",
+        "fast-glob": "^3.0.3",
+        "glob": "^7.1.3",
+        "ignore": "^5.1.1",
+        "merge2": "^1.2.3",
+        "slash": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/immutable": {
+      "version": "4.3.0",
+      "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.0.tgz",
+      "integrity": "sha512-0AOCmOip+xgJwEVTQj1EfiDDOkPmuyllDuTuEX+DDXUgapLAsBIfkg3sxCYyCEA8mQqZrrxPUGjcOQ2JS3WLkg==",
+      "dev": true
+    },
+    "node_modules/import-fresh": {
+      "version": "3.3.0",
+      "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
+      "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
+      "dev": true,
+      "dependencies": {
+        "parent-module": "^1.0.0",
+        "resolve-from": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=6"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/import-lazy": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-3.1.0.tgz",
+      "integrity": "sha512-8/gvXvX2JMn0F+CDlSC4l6kOmVaLOO3XLkksI7CI3Ud95KDYJuYur2b9P/PUt/i/pDAMd/DulQsNbbbmRRsDIQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/import-local": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz",
+      "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==",
+      "dev": true,
+      "dependencies": {
+        "pkg-dir": "^4.2.0",
+        "resolve-cwd": "^3.0.0"
+      },
+      "bin": {
+        "import-local-fixture": "fixtures/cli.js"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/imurmurhash": {
+      "version": "0.1.4",
+      "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+      "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.8.19"
+      }
+    },
+    "node_modules/inflight": {
+      "version": "1.0.6",
+      "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+      "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
+      "dev": true,
+      "dependencies": {
+        "once": "^1.3.0",
+        "wrappy": "1"
+      }
+    },
+    "node_modules/inherits": {
+      "version": "2.0.4",
+      "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+      "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+      "dev": true
+    },
+    "node_modules/ini": {
+      "version": "1.3.8",
+      "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
+      "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/internal-slot": {
+      "version": "1.0.5",
+      "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz",
+      "integrity": "sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==",
+      "dev": true,
+      "dependencies": {
+        "get-intrinsic": "^1.2.0",
+        "has": "^1.0.3",
+        "side-channel": "^1.0.4"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/interpret": {
+      "version": "3.1.1",
+      "resolved": "https://registry.npmjs.org/interpret/-/interpret-3.1.1.tgz",
+      "integrity": "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=10.13.0"
+      }
+    },
+    "node_modules/into-stream": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz",
+      "integrity": "sha512-TcdjPibTksa1NQximqep2r17ISRiNE9fwlfbg3F8ANdvP5/yrFTew86VcO//jk4QTaMlbjypPBq76HN2zaKfZQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "from2": "^2.1.1",
+        "p-is-promise": "^1.1.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/invariant": {
+      "version": "2.2.4",
+      "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
+      "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",
+      "dependencies": {
+        "loose-envify": "^1.0.0"
+      }
+    },
+    "node_modules/ipaddr.js": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz",
+      "integrity": "sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==",
+      "dev": true,
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/is-array-buffer": {
+      "version": "3.0.2",
+      "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz",
+      "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "get-intrinsic": "^1.2.0",
+        "is-typed-array": "^1.1.10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-arrayish": {
+      "version": "0.2.1",
+      "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+      "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",
+      "dev": true
+    },
+    "node_modules/is-bigint": {
+      "version": "1.0.4",
+      "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz",
+      "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==",
+      "dev": true,
+      "dependencies": {
+        "has-bigints": "^1.0.1"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-binary-path": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+      "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+      "dev": true,
+      "dependencies": {
+        "binary-extensions": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/is-boolean-object": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz",
+      "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "has-tostringtag": "^1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-callable": {
+      "version": "1.2.7",
+      "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",
+      "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-core-module": {
+      "version": "2.12.1",
+      "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz",
+      "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==",
+      "dev": true,
+      "dependencies": {
+        "has": "^1.0.3"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-cwebp-readable": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/is-cwebp-readable/-/is-cwebp-readable-3.0.0.tgz",
+      "integrity": "sha512-bpELc7/Q1/U5MWHn4NdHI44R3jxk0h9ew9ljzabiRl70/UIjL/ZAqRMb52F5+eke/VC8yTiv4Ewryo1fPWidvA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "file-type": "^10.5.0"
+      }
+    },
+    "node_modules/is-cwebp-readable/node_modules/file-type": {
+      "version": "10.11.0",
+      "resolved": "https://registry.npmjs.org/file-type/-/file-type-10.11.0.tgz",
+      "integrity": "sha512-uzk64HRpUZyTGZtVuvrjP0FYxzQrBf4rojot6J65YMEbwBLB0CWm0CLojVpwpmFmxcE/lkvYICgfcGozbBq6rw==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/is-date-object": {
+      "version": "1.0.5",
+      "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz",
+      "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==",
+      "dev": true,
+      "dependencies": {
+        "has-tostringtag": "^1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-docker": {
+      "version": "2.2.1",
+      "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
+      "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
+      "dev": true,
+      "bin": {
+        "is-docker": "cli.js"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/is-extglob": {
+      "version": "2.1.1",
+      "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+      "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/is-gif": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/is-gif/-/is-gif-3.0.0.tgz",
+      "integrity": "sha512-IqJ/jlbw5WJSNfwQ/lHEDXF8rxhRgF6ythk2oiEvhpG29F704eX9NO6TvPfMiq9DrbwgcEDnETYNcZDPewQoVw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "file-type": "^10.4.0"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/is-gif/node_modules/file-type": {
+      "version": "10.11.0",
+      "resolved": "https://registry.npmjs.org/file-type/-/file-type-10.11.0.tgz",
+      "integrity": "sha512-uzk64HRpUZyTGZtVuvrjP0FYxzQrBf4rojot6J65YMEbwBLB0CWm0CLojVpwpmFmxcE/lkvYICgfcGozbBq6rw==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/is-glob": {
+      "version": "4.0.3",
+      "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+      "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+      "dev": true,
+      "dependencies": {
+        "is-extglob": "^2.1.1"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/is-jpg": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/is-jpg/-/is-jpg-2.0.0.tgz",
+      "integrity": "sha512-ODlO0ruzhkzD3sdynIainVP5eoOFNN85rxA1+cwwnPe4dKyX0r5+hxNO5XpCrxlHcmb9vkOit9mhRD2JVuimHg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/is-natural-number": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-4.0.1.tgz",
+      "integrity": "sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/is-negative-zero": {
+      "version": "2.0.2",
+      "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz",
+      "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-number": {
+      "version": "7.0.0",
+      "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+      "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.12.0"
+      }
+    },
+    "node_modules/is-number-object": {
+      "version": "1.0.7",
+      "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz",
+      "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==",
+      "dev": true,
+      "dependencies": {
+        "has-tostringtag": "^1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-object": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.2.tgz",
+      "integrity": "sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA==",
+      "dev": true,
+      "optional": true,
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-path-inside": {
+      "version": "3.0.3",
+      "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
+      "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/is-plain-obj": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz",
+      "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/is-plain-object": {
+      "version": "2.0.4",
+      "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz",
+      "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==",
+      "dev": true,
+      "dependencies": {
+        "isobject": "^3.0.1"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/is-png": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/is-png/-/is-png-2.0.0.tgz",
+      "integrity": "sha512-4KPGizaVGj2LK7xwJIz8o5B2ubu1D/vcQsgOGFEDlpcvgZHto4gBnyd0ig7Ws+67ixmwKoNmu0hYnpo6AaKb5g==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/is-regex": {
+      "version": "1.1.4",
+      "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
+      "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "has-tostringtag": "^1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-retry-allowed": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz",
+      "integrity": "sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/is-shared-array-buffer": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz",
+      "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-stream": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
+      "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/is-string": {
+      "version": "1.0.7",
+      "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz",
+      "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==",
+      "dev": true,
+      "dependencies": {
+        "has-tostringtag": "^1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-svg": {
+      "version": "4.4.0",
+      "resolved": "https://registry.npmjs.org/is-svg/-/is-svg-4.4.0.tgz",
+      "integrity": "sha512-v+AgVwiK5DsGtT9ng+m4mClp6zDAmwrW8nZi6Gg15qzvBnRWWdfWA1TGaXyCDnWq5g5asofIgMVl3PjKxvk1ug==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "fast-xml-parser": "^4.1.3"
+      },
+      "engines": {
+        "node": ">=6"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/is-symbol": {
+      "version": "1.0.4",
+      "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz",
+      "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==",
+      "dev": true,
+      "dependencies": {
+        "has-symbols": "^1.0.2"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-typed-array": {
+      "version": "1.1.10",
+      "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz",
+      "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==",
+      "dev": true,
+      "dependencies": {
+        "available-typed-arrays": "^1.0.5",
+        "call-bind": "^1.0.2",
+        "for-each": "^0.3.3",
+        "gopd": "^1.0.1",
+        "has-tostringtag": "^1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-weakref": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz",
+      "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/is-wsl": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
+      "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
+      "dev": true,
+      "dependencies": {
+        "is-docker": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/isarray": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
+      "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
+      "dev": true
+    },
+    "node_modules/isexe": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+      "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+      "dev": true
+    },
+    "node_modules/isobject": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
+      "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/isurl": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz",
+      "integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "has-to-string-tag-x": "^1.2.0",
+        "is-object": "^1.0.1"
+      },
+      "engines": {
+        "node": ">= 4"
+      }
+    },
+    "node_modules/jest-worker": {
+      "version": "27.5.1",
+      "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz",
+      "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==",
+      "dev": true,
+      "dependencies": {
+        "@types/node": "*",
+        "merge-stream": "^2.0.0",
+        "supports-color": "^8.0.0"
+      },
+      "engines": {
+        "node": ">= 10.13.0"
+      }
+    },
+    "node_modules/jest-worker/node_modules/has-flag": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+      "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/jest-worker/node_modules/supports-color": {
+      "version": "8.1.1",
+      "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
+      "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
+      "dev": true,
+      "dependencies": {
+        "has-flag": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/chalk/supports-color?sponsor=1"
+      }
+    },
+    "node_modules/js-tokens": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+      "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
+    },
+    "node_modules/js-yaml": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+      "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+      "dev": true,
+      "dependencies": {
+        "argparse": "^2.0.1"
+      },
+      "bin": {
+        "js-yaml": "bin/js-yaml.js"
+      }
+    },
+    "node_modules/jsesc": {
+      "version": "2.5.2",
+      "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",
+      "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",
+      "dev": true,
+      "bin": {
+        "jsesc": "bin/jsesc"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/json-buffer": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz",
+      "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/json-parse-even-better-errors": {
+      "version": "2.3.1",
+      "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",
+      "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",
+      "dev": true
+    },
+    "node_modules/json-schema-traverse": {
+      "version": "0.4.1",
+      "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+      "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+      "dev": true
+    },
+    "node_modules/json-stable-stringify-without-jsonify": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+      "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+      "dev": true
+    },
+    "node_modules/json5": {
+      "version": "2.2.3",
+      "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+      "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+      "dev": true,
+      "bin": {
+        "json5": "lib/cli.js"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/jsonfile": {
+      "version": "6.1.0",
+      "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
+      "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
+      "dev": true,
+      "dependencies": {
+        "universalify": "^2.0.0"
+      },
+      "optionalDependencies": {
+        "graceful-fs": "^4.1.6"
+      }
+    },
+    "node_modules/jsx-ast-utils": {
+      "version": "3.3.3",
+      "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz",
+      "integrity": "sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw==",
+      "dev": true,
+      "dependencies": {
+        "array-includes": "^3.1.5",
+        "object.assign": "^4.1.3"
+      },
+      "engines": {
+        "node": ">=4.0"
+      }
+    },
+    "node_modules/junk": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmjs.org/junk/-/junk-3.1.0.tgz",
+      "integrity": "sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/keyv": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz",
+      "integrity": "sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "json-buffer": "3.0.0"
+      }
+    },
+    "node_modules/kind-of": {
+      "version": "6.0.3",
+      "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
+      "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/klona": {
+      "version": "2.0.6",
+      "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz",
+      "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==",
+      "dev": true,
+      "engines": {
+        "node": ">= 8"
+      }
+    },
+    "node_modules/launch-editor": {
+      "version": "2.6.0",
+      "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.6.0.tgz",
+      "integrity": "sha512-JpDCcQnyAAzZZaZ7vEiSqL690w7dAEyLao+KC96zBplnYbJS7TYNjvM3M7y3dGz+v7aIsJk3hllWuc0kWAjyRQ==",
+      "dev": true,
+      "dependencies": {
+        "picocolors": "^1.0.0",
+        "shell-quote": "^1.7.3"
+      }
+    },
+    "node_modules/levn": {
+      "version": "0.4.1",
+      "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+      "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+      "dev": true,
+      "dependencies": {
+        "prelude-ls": "^1.2.1",
+        "type-check": "~0.4.0"
+      },
+      "engines": {
+        "node": ">= 0.8.0"
+      }
+    },
+    "node_modules/lines-and-columns": {
+      "version": "1.2.4",
+      "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+      "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+      "dev": true
+    },
+    "node_modules/loader-runner": {
+      "version": "4.3.0",
+      "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz",
+      "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==",
+      "dev": true,
+      "engines": {
+        "node": ">=6.11.5"
+      }
+    },
+    "node_modules/loader-utils": {
+      "version": "2.0.4",
+      "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz",
+      "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==",
+      "dev": true,
+      "dependencies": {
+        "big.js": "^5.2.2",
+        "emojis-list": "^3.0.0",
+        "json5": "^2.1.2"
+      },
+      "engines": {
+        "node": ">=8.9.0"
+      }
+    },
+    "node_modules/locate-path": {
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+      "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+      "dev": true,
+      "dependencies": {
+        "p-locate": "^5.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/lodash.debounce": {
+      "version": "4.0.8",
+      "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
+      "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==",
+      "dev": true
+    },
+    "node_modules/lodash.merge": {
+      "version": "4.6.2",
+      "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+      "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+      "dev": true
+    },
+    "node_modules/loose-envify": {
+      "version": "1.4.0",
+      "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+      "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+      "dependencies": {
+        "js-tokens": "^3.0.0 || ^4.0.0"
+      },
+      "bin": {
+        "loose-envify": "cli.js"
+      }
+    },
+    "node_modules/lowercase-keys": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz",
+      "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/lru-cache": {
+      "version": "5.1.1",
+      "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+      "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+      "dev": true,
+      "dependencies": {
+        "yallist": "^3.0.2"
+      }
+    },
+    "node_modules/make-dir": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",
+      "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
+      "dev": true,
+      "dependencies": {
+        "semver": "^6.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/make-error": {
+      "version": "1.3.6",
+      "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
+      "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
+      "dev": true
+    },
+    "node_modules/mdn-data": {
+      "version": "2.0.14",
+      "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz",
+      "integrity": "sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/media-typer": {
+      "version": "0.3.0",
+      "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
+      "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/memfs": {
+      "version": "3.5.2",
+      "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.5.2.tgz",
+      "integrity": "sha512-4kbWXbVZ+LU4XFDS2CuA7frnwz2HxCMB/0yOXc86q7aCQrfWKkL11t6al1e2CsVC7uhnBNTQ1TfUsAxVauO9IQ==",
+      "dev": true,
+      "dependencies": {
+        "fs-monkey": "^1.0.3"
+      },
+      "engines": {
+        "node": ">= 4.0.0"
+      }
+    },
+    "node_modules/merge-descriptors": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
+      "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==",
+      "dev": true
+    },
+    "node_modules/merge-stream": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
+      "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
+      "dev": true
+    },
+    "node_modules/merge2": {
+      "version": "1.4.1",
+      "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+      "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 8"
+      }
+    },
+    "node_modules/methods": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
+      "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/micromatch": {
+      "version": "4.0.5",
+      "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
+      "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
+      "dev": true,
+      "dependencies": {
+        "braces": "^3.0.2",
+        "picomatch": "^2.3.1"
+      },
+      "engines": {
+        "node": ">=8.6"
+      }
+    },
+    "node_modules/mime": {
+      "version": "1.6.0",
+      "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
+      "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
+      "dev": true,
+      "bin": {
+        "mime": "cli.js"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/mime-db": {
+      "version": "1.52.0",
+      "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+      "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/mime-types": {
+      "version": "2.1.35",
+      "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+      "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+      "dev": true,
+      "dependencies": {
+        "mime-db": "1.52.0"
+      },
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/mimic-fn": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+      "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+      "dev": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/mimic-response": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz",
+      "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/minimalistic-assert": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz",
+      "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==",
+      "dev": true
+    },
+    "node_modules/minimatch": {
+      "version": "3.1.2",
+      "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+      "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+      "dev": true,
+      "dependencies": {
+        "brace-expansion": "^1.1.7"
+      },
+      "engines": {
+        "node": "*"
+      }
+    },
+    "node_modules/mozjpeg": {
+      "version": "7.1.1",
+      "resolved": "https://registry.npmjs.org/mozjpeg/-/mozjpeg-7.1.1.tgz",
+      "integrity": "sha512-iIDxWvzhWvLC9mcRJ1uSkiKaj4drF58oCqK2bITm5c2Jt6cJ8qQjSSru2PCaysG+hLIinryj8mgz5ZJzOYTv1A==",
+      "dev": true,
+      "hasInstallScript": true,
+      "optional": true,
+      "dependencies": {
+        "bin-build": "^3.0.0",
+        "bin-wrapper": "^4.0.0"
+      },
+      "bin": {
+        "mozjpeg": "cli.js"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/ms": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+      "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+      "dev": true
+    },
+    "node_modules/multicast-dns": {
+      "version": "7.2.5",
+      "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.5.tgz",
+      "integrity": "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg==",
+      "dev": true,
+      "dependencies": {
+        "dns-packet": "^5.2.2",
+        "thunky": "^1.0.2"
+      },
+      "bin": {
+        "multicast-dns": "cli.js"
+      }
+    },
+    "node_modules/nanoid": {
+      "version": "3.3.6",
+      "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
+      "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/ai"
+        }
+      ],
+      "bin": {
+        "nanoid": "bin/nanoid.cjs"
+      },
+      "engines": {
+        "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+      }
+    },
+    "node_modules/natural-compare": {
+      "version": "1.4.0",
+      "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+      "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+      "dev": true
+    },
+    "node_modules/natural-compare-lite": {
+      "version": "1.4.0",
+      "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz",
+      "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==",
+      "dev": true
+    },
+    "node_modules/negotiator": {
+      "version": "0.6.3",
+      "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
+      "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/neo-async": {
+      "version": "2.6.2",
+      "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
+      "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
+      "dev": true
+    },
+    "node_modules/nice-try": {
+      "version": "1.0.5",
+      "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
+      "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/node-abort-controller": {
+      "version": "3.1.1",
+      "resolved": "https://registry.npmjs.org/node-abort-controller/-/node-abort-controller-3.1.1.tgz",
+      "integrity": "sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==",
+      "dev": true
+    },
+    "node_modules/node-forge": {
+      "version": "1.3.1",
+      "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz",
+      "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==",
+      "dev": true,
+      "engines": {
+        "node": ">= 6.13.0"
+      }
+    },
+    "node_modules/node-releases": {
+      "version": "2.0.12",
+      "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz",
+      "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==",
+      "dev": true
+    },
+    "node_modules/normalize-path": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+      "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/normalize-url": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz",
+      "integrity": "sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "prepend-http": "^2.0.0",
+        "query-string": "^5.0.1",
+        "sort-keys": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/normalize-url/node_modules/prepend-http": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",
+      "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/normalize-url/node_modules/sort-keys": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz",
+      "integrity": "sha512-/dPCrG1s3ePpWm6yBbxZq5Be1dXGLyLn9Z791chDC3NFrpkVbWGzkBwPN1knaciexFXgRJ7hzdnwZ4stHSDmjg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "is-plain-obj": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/npm-conf": {
+      "version": "1.1.3",
+      "resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz",
+      "integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "config-chain": "^1.1.11",
+        "pify": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/npm-conf/node_modules/pify": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
+      "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/npm-run-path": {
+      "version": "2.0.2",
+      "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
+      "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "path-key": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/npm-run-path/node_modules/path-key": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
+      "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/nth-check": {
+      "version": "2.1.1",
+      "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
+      "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "boolbase": "^1.0.0"
+      },
+      "funding": {
+        "url": "https://github.com/fb55/nth-check?sponsor=1"
+      }
+    },
+    "node_modules/object-assign": {
+      "version": "4.1.1",
+      "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+      "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/object-inspect": {
+      "version": "1.12.3",
+      "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz",
+      "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==",
+      "dev": true,
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/object-keys": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
+      "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/object.assign": {
+      "version": "4.1.4",
+      "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz",
+      "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.1.4",
+        "has-symbols": "^1.0.3",
+        "object-keys": "^1.1.1"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/object.entries": {
+      "version": "1.1.6",
+      "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz",
+      "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.1.4",
+        "es-abstract": "^1.20.4"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      }
+    },
+    "node_modules/object.fromentries": {
+      "version": "2.0.6",
+      "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz",
+      "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.1.4",
+        "es-abstract": "^1.20.4"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/object.hasown": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz",
+      "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==",
+      "dev": true,
+      "dependencies": {
+        "define-properties": "^1.1.4",
+        "es-abstract": "^1.20.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/object.values": {
+      "version": "1.1.6",
+      "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz",
+      "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.1.4",
+        "es-abstract": "^1.20.4"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/obuf": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz",
+      "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==",
+      "dev": true
+    },
+    "node_modules/on-finished": {
+      "version": "2.4.1",
+      "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
+      "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
+      "dev": true,
+      "dependencies": {
+        "ee-first": "1.1.1"
+      },
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/on-headers": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz",
+      "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/once": {
+      "version": "1.4.0",
+      "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+      "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+      "dev": true,
+      "dependencies": {
+        "wrappy": "1"
+      }
+    },
+    "node_modules/onetime": {
+      "version": "5.1.2",
+      "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
+      "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+      "dev": true,
+      "dependencies": {
+        "mimic-fn": "^2.1.0"
+      },
+      "engines": {
+        "node": ">=6"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/open": {
+      "version": "8.4.2",
+      "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz",
+      "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==",
+      "dev": true,
+      "dependencies": {
+        "define-lazy-prop": "^2.0.0",
+        "is-docker": "^2.1.1",
+        "is-wsl": "^2.2.0"
+      },
+      "engines": {
+        "node": ">=12"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/optionator": {
+      "version": "0.9.1",
+      "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",
+      "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==",
+      "dev": true,
+      "dependencies": {
+        "deep-is": "^0.1.3",
+        "fast-levenshtein": "^2.0.6",
+        "levn": "^0.4.1",
+        "prelude-ls": "^1.2.1",
+        "type-check": "^0.4.0",
+        "word-wrap": "^1.2.3"
+      },
+      "engines": {
+        "node": ">= 0.8.0"
+      }
+    },
+    "node_modules/optipng-bin": {
+      "version": "7.0.1",
+      "resolved": "https://registry.npmjs.org/optipng-bin/-/optipng-bin-7.0.1.tgz",
+      "integrity": "sha512-W99mpdW7Nt2PpFiaO+74pkht7KEqkXkeRomdWXfEz3SALZ6hns81y/pm1dsGZ6ItUIfchiNIP6ORDr1zETU1jA==",
+      "dev": true,
+      "hasInstallScript": true,
+      "optional": true,
+      "dependencies": {
+        "bin-build": "^3.0.0",
+        "bin-wrapper": "^4.0.0"
+      },
+      "bin": {
+        "optipng": "cli.js"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/os-filter-obj": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/os-filter-obj/-/os-filter-obj-2.0.0.tgz",
+      "integrity": "sha512-uksVLsqG3pVdzzPvmAHpBK0wKxYItuzZr7SziusRPoz67tGV8rL1szZ6IdeUrbqLjGDwApBtN29eEE3IqGHOjg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "arch": "^2.1.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/ow": {
+      "version": "0.17.0",
+      "resolved": "https://registry.npmjs.org/ow/-/ow-0.17.0.tgz",
+      "integrity": "sha512-i3keDzDQP5lWIe4oODyDFey1qVrq2hXKTuTH2VpqwpYtzPiKZt2ziRI4NBQmgW40AnV5Euz17OyWweCb+bNEQA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "type-fest": "^0.11.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/p-cancelable": {
+      "version": "0.3.0",
+      "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.3.0.tgz",
+      "integrity": "sha512-RVbZPLso8+jFeq1MfNvgXtCRED2raz/dKpacfTNxsx6pLEpEomM7gah6VeHSYV3+vo0OAi4MkArtQcWWXuQoyw==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/p-event": {
+      "version": "1.3.0",
+      "resolved": "https://registry.npmjs.org/p-event/-/p-event-1.3.0.tgz",
+      "integrity": "sha512-hV1zbA7gwqPVFcapfeATaNjQ3J0NuzorHPyG8GPL9g/Y/TplWVBVoCKCXL6Ej2zscrCEv195QNWJXuBH6XZuzA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "p-timeout": "^1.1.1"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/p-finally": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
+      "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/p-is-promise": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz",
+      "integrity": "sha512-zL7VE4JVS2IFSkR2GQKDSPEVxkoH43/p7oEnwpdCndKYJO0HVeRB7fA8TJwuLOTBREtK0ea8eHaxdwcpob5dmg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/p-limit": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+      "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+      "dev": true,
+      "dependencies": {
+        "yocto-queue": "^0.1.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/p-locate": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+      "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+      "dev": true,
+      "dependencies": {
+        "p-limit": "^3.0.2"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/p-map-series": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/p-map-series/-/p-map-series-1.0.0.tgz",
+      "integrity": "sha512-4k9LlvY6Bo/1FcIdV33wqZQES0Py+iKISU9Uc8p8AjWoZPnFKMpVIVD3s0EYn4jzLh1I+WeUZkJ0Yoa4Qfw3Kg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "p-reduce": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/p-pipe": {
+      "version": "3.1.0",
+      "resolved": "https://registry.npmjs.org/p-pipe/-/p-pipe-3.1.0.tgz",
+      "integrity": "sha512-08pj8ATpzMR0Y80x50yJHn37NF6vjrqHutASaX5LiH5npS9XPvrUmscd9MF5R4fuYRHOxQR1FfMIlF7AzwoPqw==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/p-reduce": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-1.0.0.tgz",
+      "integrity": "sha512-3Tx1T3oM1xO/Y8Gj0sWyE78EIJZ+t+aEmXUdvQgvGmSMri7aPTHoovbXEreWKkL5j21Er60XAWLTzKbAKYOujQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/p-retry": {
+      "version": "4.6.2",
+      "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz",
+      "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==",
+      "dev": true,
+      "dependencies": {
+        "@types/retry": "0.12.0",
+        "retry": "^0.13.1"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/p-timeout": {
+      "version": "1.2.1",
+      "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-1.2.1.tgz",
+      "integrity": "sha512-gb0ryzr+K2qFqFv6qi3khoeqMZF/+ajxQipEF6NteZVnvz9tzdsfAVj3lYtn1gAXvH5lfLwfxEII799gt/mRIA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "p-finally": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/p-try": {
+      "version": "2.2.0",
+      "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
+      "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/parent-module": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+      "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+      "dev": true,
+      "dependencies": {
+        "callsites": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/parse-json": {
+      "version": "5.2.0",
+      "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
+      "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/code-frame": "^7.0.0",
+        "error-ex": "^1.3.1",
+        "json-parse-even-better-errors": "^2.3.0",
+        "lines-and-columns": "^1.1.6"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/parseurl": {
+      "version": "1.3.3",
+      "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
+      "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/path-exists": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+      "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/path-is-absolute": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+      "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/path-key": {
+      "version": "3.1.1",
+      "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+      "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/path-parse": {
+      "version": "1.0.7",
+      "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+      "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
+      "dev": true
+    },
+    "node_modules/path-to-regexp": {
+      "version": "0.1.7",
+      "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
+      "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==",
+      "dev": true
+    },
+    "node_modules/path-type": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
+      "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/pend": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
+      "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/picocolors": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
+      "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",
+      "dev": true
+    },
+    "node_modules/picomatch": {
+      "version": "2.3.1",
+      "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
+      "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
+      "dev": true,
+      "engines": {
+        "node": ">=8.6"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/jonschlinkert"
+      }
+    },
+    "node_modules/pify": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
+      "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/pinkie": {
+      "version": "2.0.4",
+      "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
+      "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/pinkie-promise": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
+      "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pinkie": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/pkg-dir": {
+      "version": "4.2.0",
+      "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
+      "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
+      "dev": true,
+      "dependencies": {
+        "find-up": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/pkg-dir/node_modules/find-up": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
+      "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
+      "dev": true,
+      "dependencies": {
+        "locate-path": "^5.0.0",
+        "path-exists": "^4.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/pkg-dir/node_modules/locate-path": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
+      "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
+      "dev": true,
+      "dependencies": {
+        "p-locate": "^4.1.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/pkg-dir/node_modules/p-limit": {
+      "version": "2.3.0",
+      "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
+      "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
+      "dev": true,
+      "dependencies": {
+        "p-try": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=6"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/pkg-dir/node_modules/p-locate": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
+      "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
+      "dev": true,
+      "dependencies": {
+        "p-limit": "^2.2.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/pngquant-bin": {
+      "version": "6.0.1",
+      "resolved": "https://registry.npmjs.org/pngquant-bin/-/pngquant-bin-6.0.1.tgz",
+      "integrity": "sha512-Q3PUyolfktf+hYio6wsg3SanQzEU/v8aICg/WpzxXcuCMRb7H2Q81okfpcEztbMvw25ILjd3a87doj2N9kvbpQ==",
+      "dev": true,
+      "hasInstallScript": true,
+      "optional": true,
+      "dependencies": {
+        "bin-build": "^3.0.0",
+        "bin-wrapper": "^4.0.1",
+        "execa": "^4.0.0"
+      },
+      "bin": {
+        "pngquant": "cli.js"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/pngquant-bin/node_modules/execa": {
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz",
+      "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "cross-spawn": "^7.0.0",
+        "get-stream": "^5.0.0",
+        "human-signals": "^1.1.1",
+        "is-stream": "^2.0.0",
+        "merge-stream": "^2.0.0",
+        "npm-run-path": "^4.0.0",
+        "onetime": "^5.1.0",
+        "signal-exit": "^3.0.2",
+        "strip-final-newline": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sindresorhus/execa?sponsor=1"
+      }
+    },
+    "node_modules/pngquant-bin/node_modules/get-stream": {
+      "version": "5.2.0",
+      "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
+      "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "pump": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/pngquant-bin/node_modules/human-signals": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz",
+      "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=8.12.0"
+      }
+    },
+    "node_modules/pngquant-bin/node_modules/is-stream": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
+      "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/pngquant-bin/node_modules/npm-run-path": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
+      "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "path-key": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/postcss": {
+      "version": "8.4.24",
+      "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz",
+      "integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "opencollective",
+          "url": "https://opencollective.com/postcss/"
+        },
+        {
+          "type": "tidelift",
+          "url": "https://tidelift.com/funding/github/npm/postcss"
+        },
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/ai"
+        }
+      ],
+      "dependencies": {
+        "nanoid": "^3.3.6",
+        "picocolors": "^1.0.0",
+        "source-map-js": "^1.0.2"
+      },
+      "engines": {
+        "node": "^10 || ^12 || >=14"
+      }
+    },
+    "node_modules/postcss-modules-extract-imports": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz",
+      "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==",
+      "dev": true,
+      "engines": {
+        "node": "^10 || ^12 || >= 14"
+      },
+      "peerDependencies": {
+        "postcss": "^8.1.0"
+      }
+    },
+    "node_modules/postcss-modules-local-by-default": {
+      "version": "4.0.3",
+      "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz",
+      "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==",
+      "dev": true,
+      "dependencies": {
+        "icss-utils": "^5.0.0",
+        "postcss-selector-parser": "^6.0.2",
+        "postcss-value-parser": "^4.1.0"
+      },
+      "engines": {
+        "node": "^10 || ^12 || >= 14"
+      },
+      "peerDependencies": {
+        "postcss": "^8.1.0"
+      }
+    },
+    "node_modules/postcss-modules-scope": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz",
+      "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==",
+      "dev": true,
+      "dependencies": {
+        "postcss-selector-parser": "^6.0.4"
+      },
+      "engines": {
+        "node": "^10 || ^12 || >= 14"
+      },
+      "peerDependencies": {
+        "postcss": "^8.1.0"
+      }
+    },
+    "node_modules/postcss-modules-values": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz",
+      "integrity": "sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==",
+      "dev": true,
+      "dependencies": {
+        "icss-utils": "^5.0.0"
+      },
+      "engines": {
+        "node": "^10 || ^12 || >= 14"
+      },
+      "peerDependencies": {
+        "postcss": "^8.1.0"
+      }
+    },
+    "node_modules/postcss-selector-parser": {
+      "version": "6.0.13",
+      "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz",
+      "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==",
+      "dev": true,
+      "dependencies": {
+        "cssesc": "^3.0.0",
+        "util-deprecate": "^1.0.2"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/postcss-value-parser": {
+      "version": "4.2.0",
+      "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
+      "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
+      "dev": true
+    },
+    "node_modules/prelude-ls": {
+      "version": "1.2.1",
+      "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+      "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.8.0"
+      }
+    },
+    "node_modules/prepend-http": {
+      "version": "1.0.4",
+      "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz",
+      "integrity": "sha512-PhmXi5XmoyKw1Un4E+opM2KcsJInDvKyuOumcjjw3waw86ZNjHwVUOOWLc4bCzLdcKNaWBH9e99sbWzDQsVaYg==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/process-nextick-args": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
+      "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
+      "dev": true
+    },
+    "node_modules/prop-types": {
+      "version": "15.8.1",
+      "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
+      "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
+      "dependencies": {
+        "loose-envify": "^1.4.0",
+        "object-assign": "^4.1.1",
+        "react-is": "^16.13.1"
+      }
+    },
+    "node_modules/prop-types-extra": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/prop-types-extra/-/prop-types-extra-1.1.1.tgz",
+      "integrity": "sha512-59+AHNnHYCdiC+vMwY52WmvP5dM3QLeoumYuEyceQDi9aEhtwN9zIQ2ZNo25sMyXnbh32h+P1ezDsUpUH3JAew==",
+      "dependencies": {
+        "react-is": "^16.3.2",
+        "warning": "^4.0.0"
+      },
+      "peerDependencies": {
+        "react": ">=0.14.0"
+      }
+    },
+    "node_modules/proto-list": {
+      "version": "1.2.4",
+      "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",
+      "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/proxy-addr": {
+      "version": "2.0.7",
+      "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
+      "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
+      "dev": true,
+      "dependencies": {
+        "forwarded": "0.2.0",
+        "ipaddr.js": "1.9.1"
+      },
+      "engines": {
+        "node": ">= 0.10"
+      }
+    },
+    "node_modules/proxy-addr/node_modules/ipaddr.js": {
+      "version": "1.9.1",
+      "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
+      "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.10"
+      }
+    },
+    "node_modules/pseudomap": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
+      "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/pump": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
+      "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "end-of-stream": "^1.1.0",
+        "once": "^1.3.1"
+      }
+    },
+    "node_modules/punycode": {
+      "version": "2.3.0",
+      "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
+      "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
+      "dev": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/qs": {
+      "version": "6.11.0",
+      "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
+      "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
+      "dev": true,
+      "dependencies": {
+        "side-channel": "^1.0.4"
+      },
+      "engines": {
+        "node": ">=0.6"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/query-string": {
+      "version": "5.1.1",
+      "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz",
+      "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "decode-uri-component": "^0.2.0",
+        "object-assign": "^4.1.0",
+        "strict-uri-encode": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/queue-microtask": {
+      "version": "1.2.3",
+      "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
+      "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/feross"
+        },
+        {
+          "type": "patreon",
+          "url": "https://www.patreon.com/feross"
+        },
+        {
+          "type": "consulting",
+          "url": "https://feross.org/support"
+        }
+      ]
+    },
+    "node_modules/randombytes": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
+      "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
+      "dev": true,
+      "dependencies": {
+        "safe-buffer": "^5.1.0"
+      }
+    },
+    "node_modules/range-parser": {
+      "version": "1.2.1",
+      "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
+      "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/raw-body": {
+      "version": "2.5.1",
+      "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz",
+      "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==",
+      "dev": true,
+      "dependencies": {
+        "bytes": "3.1.2",
+        "http-errors": "2.0.0",
+        "iconv-lite": "0.4.24",
+        "unpipe": "1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/raw-body/node_modules/bytes": {
+      "version": "3.1.2",
+      "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
+      "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/react": {
+      "version": "18.2.0",
+      "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
+      "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",
+      "dependencies": {
+        "loose-envify": "^1.1.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/react-bootstrap": {
+      "version": "2.7.4",
+      "resolved": "https://registry.npmjs.org/react-bootstrap/-/react-bootstrap-2.7.4.tgz",
+      "integrity": "sha512-EPKPwhfbxsKsNBhJBitJwqul9fvmlYWSft6jWE2EpqhEyjhqIqNihvQo2onE5XtS+QHOavUSNmA+8Lnv5YeAyg==",
+      "dependencies": {
+        "@babel/runtime": "^7.21.0",
+        "@restart/hooks": "^0.4.9",
+        "@restart/ui": "^1.6.3",
+        "@types/react-transition-group": "^4.4.5",
+        "classnames": "^2.3.2",
+        "dom-helpers": "^5.2.1",
+        "invariant": "^2.2.4",
+        "prop-types": "^15.8.1",
+        "prop-types-extra": "^1.1.0",
+        "react-transition-group": "^4.4.5",
+        "uncontrollable": "^7.2.1",
+        "warning": "^4.0.3"
+      },
+      "peerDependencies": {
+        "@types/react": ">=16.14.8",
+        "react": ">=16.14.0",
+        "react-dom": ">=16.14.0"
+      },
+      "peerDependenciesMeta": {
+        "@types/react": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/react-dom": {
+      "version": "18.2.0",
+      "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
+      "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
+      "dependencies": {
+        "loose-envify": "^1.1.0",
+        "scheduler": "^0.23.0"
+      },
+      "peerDependencies": {
+        "react": "^18.2.0"
+      }
+    },
+    "node_modules/react-icons": {
+      "version": "4.9.0",
+      "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.9.0.tgz",
+      "integrity": "sha512-ijUnFr//ycebOqujtqtV9PFS7JjhWg0QU6ykURVHuL4cbofvRCf3f6GMn9+fBktEFQOIVZnuAYLZdiyadRQRFg==",
+      "peerDependencies": {
+        "react": "*"
+      }
+    },
+    "node_modules/react-is": {
+      "version": "16.13.1",
+      "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+      "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
+    },
+    "node_modules/react-lifecycles-compat": {
+      "version": "3.0.4",
+      "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz",
+      "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA=="
+    },
+    "node_modules/react-router": {
+      "version": "6.11.2",
+      "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.11.2.tgz",
+      "integrity": "sha512-74z9xUSaSX07t3LM+pS6Un0T55ibUE/79CzfZpy5wsPDZaea1F8QkrsiyRnA2YQ7LwE/umaydzXZV80iDCPkMg==",
+      "dependencies": {
+        "@remix-run/router": "1.6.2"
+      },
+      "engines": {
+        "node": ">=14"
+      },
+      "peerDependencies": {
+        "react": ">=16.8"
+      }
+    },
+    "node_modules/react-router-dom": {
+      "version": "6.11.2",
+      "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.11.2.tgz",
+      "integrity": "sha512-JNbKtAeh1VSJQnH6RvBDNhxNwemRj7KxCzc5jb7zvDSKRnPWIFj9pO+eXqjM69gQJ0r46hSz1x4l9y0651DKWw==",
+      "dependencies": {
+        "@remix-run/router": "1.6.2",
+        "react-router": "6.11.2"
+      },
+      "engines": {
+        "node": ">=14"
+      },
+      "peerDependencies": {
+        "react": ">=16.8",
+        "react-dom": ">=16.8"
+      }
+    },
+    "node_modules/react-transition-group": {
+      "version": "4.4.5",
+      "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz",
+      "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==",
+      "dependencies": {
+        "@babel/runtime": "^7.5.5",
+        "dom-helpers": "^5.0.1",
+        "loose-envify": "^1.4.0",
+        "prop-types": "^15.6.2"
+      },
+      "peerDependencies": {
+        "react": ">=16.6.0",
+        "react-dom": ">=16.6.0"
+      }
+    },
+    "node_modules/readable-stream": {
+      "version": "2.3.8",
+      "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
+      "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
+      "dev": true,
+      "dependencies": {
+        "core-util-is": "~1.0.0",
+        "inherits": "~2.0.3",
+        "isarray": "~1.0.0",
+        "process-nextick-args": "~2.0.0",
+        "safe-buffer": "~5.1.1",
+        "string_decoder": "~1.1.1",
+        "util-deprecate": "~1.0.1"
+      }
+    },
+    "node_modules/readable-stream/node_modules/safe-buffer": {
+      "version": "5.1.2",
+      "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
+      "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+      "dev": true
+    },
+    "node_modules/readdirp": {
+      "version": "3.6.0",
+      "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
+      "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
+      "dev": true,
+      "dependencies": {
+        "picomatch": "^2.2.1"
+      },
+      "engines": {
+        "node": ">=8.10.0"
+      }
+    },
+    "node_modules/rechoir": {
+      "version": "0.8.0",
+      "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz",
+      "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==",
+      "dev": true,
+      "dependencies": {
+        "resolve": "^1.20.0"
+      },
+      "engines": {
+        "node": ">= 10.13.0"
+      }
+    },
+    "node_modules/regenerate": {
+      "version": "1.4.2",
+      "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz",
+      "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==",
+      "dev": true
+    },
+    "node_modules/regenerate-unicode-properties": {
+      "version": "10.1.0",
+      "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz",
+      "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==",
+      "dev": true,
+      "dependencies": {
+        "regenerate": "^1.4.2"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/regenerator-runtime": {
+      "version": "0.13.11",
+      "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",
+      "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg=="
+    },
+    "node_modules/regenerator-transform": {
+      "version": "0.15.1",
+      "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz",
+      "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==",
+      "dev": true,
+      "dependencies": {
+        "@babel/runtime": "^7.8.4"
+      }
+    },
+    "node_modules/regexp.prototype.flags": {
+      "version": "1.5.0",
+      "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz",
+      "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.2.0",
+        "functions-have-names": "^1.2.3"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/regexpu-core": {
+      "version": "5.3.2",
+      "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz",
+      "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==",
+      "dev": true,
+      "dependencies": {
+        "@babel/regjsgen": "^0.8.0",
+        "regenerate": "^1.4.2",
+        "regenerate-unicode-properties": "^10.1.0",
+        "regjsparser": "^0.9.1",
+        "unicode-match-property-ecmascript": "^2.0.0",
+        "unicode-match-property-value-ecmascript": "^2.1.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/regjsparser": {
+      "version": "0.9.1",
+      "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz",
+      "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==",
+      "dev": true,
+      "dependencies": {
+        "jsesc": "~0.5.0"
+      },
+      "bin": {
+        "regjsparser": "bin/parser"
+      }
+    },
+    "node_modules/regjsparser/node_modules/jsesc": {
+      "version": "0.5.0",
+      "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz",
+      "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==",
+      "dev": true,
+      "bin": {
+        "jsesc": "bin/jsesc"
+      }
+    },
+    "node_modules/replace-ext": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.1.tgz",
+      "integrity": "sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.10"
+      }
+    },
+    "node_modules/require-from-string": {
+      "version": "2.0.2",
+      "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+      "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/requires-port": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
+      "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==",
+      "dev": true
+    },
+    "node_modules/resolve": {
+      "version": "1.22.2",
+      "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz",
+      "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==",
+      "dev": true,
+      "dependencies": {
+        "is-core-module": "^2.11.0",
+        "path-parse": "^1.0.7",
+        "supports-preserve-symlinks-flag": "^1.0.0"
+      },
+      "bin": {
+        "resolve": "bin/resolve"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/resolve-cwd": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz",
+      "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==",
+      "dev": true,
+      "dependencies": {
+        "resolve-from": "^5.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/resolve-cwd/node_modules/resolve-from": {
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
+      "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/resolve-from": {
+      "version": "4.0.0",
+      "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+      "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+      "dev": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/responselike": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz",
+      "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "lowercase-keys": "^1.0.0"
+      }
+    },
+    "node_modules/retry": {
+      "version": "0.13.1",
+      "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz",
+      "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 4"
+      }
+    },
+    "node_modules/reusify": {
+      "version": "1.0.4",
+      "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
+      "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
+      "dev": true,
+      "engines": {
+        "iojs": ">=1.0.0",
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/rimraf": {
+      "version": "3.0.2",
+      "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
+      "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
+      "dev": true,
+      "dependencies": {
+        "glob": "^7.1.3"
+      },
+      "bin": {
+        "rimraf": "bin.js"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/isaacs"
+      }
+    },
+    "node_modules/run-parallel": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
+      "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/feross"
+        },
+        {
+          "type": "patreon",
+          "url": "https://www.patreon.com/feross"
+        },
+        {
+          "type": "consulting",
+          "url": "https://feross.org/support"
+        }
+      ],
+      "dependencies": {
+        "queue-microtask": "^1.2.2"
+      }
+    },
+    "node_modules/safe-buffer": {
+      "version": "5.2.1",
+      "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+      "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/feross"
+        },
+        {
+          "type": "patreon",
+          "url": "https://www.patreon.com/feross"
+        },
+        {
+          "type": "consulting",
+          "url": "https://feross.org/support"
+        }
+      ]
+    },
+    "node_modules/safe-regex-test": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz",
+      "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "get-intrinsic": "^1.1.3",
+        "is-regex": "^1.1.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/safer-buffer": {
+      "version": "2.1.2",
+      "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+      "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+      "dev": true
+    },
+    "node_modules/sass": {
+      "version": "1.62.1",
+      "resolved": "https://registry.npmjs.org/sass/-/sass-1.62.1.tgz",
+      "integrity": "sha512-NHpxIzN29MXvWiuswfc1W3I0N8SXBd8UR26WntmDlRYf0bSADnwnOjsyMZ3lMezSlArD33Vs3YFhp7dWvL770A==",
+      "dev": true,
+      "dependencies": {
+        "chokidar": ">=3.0.0 <4.0.0",
+        "immutable": "^4.0.0",
+        "source-map-js": ">=0.6.2 <2.0.0"
+      },
+      "bin": {
+        "sass": "sass.js"
+      },
+      "engines": {
+        "node": ">=14.0.0"
+      }
+    },
+    "node_modules/sass-loader": {
+      "version": "13.3.1",
+      "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-13.3.1.tgz",
+      "integrity": "sha512-cBTxmgyVA1nXPvIK4brjJMXOMJ2v2YrQEuHqLw3LylGb3gsR6jAvdjHMcy/+JGTmmIF9SauTrLLR7bsWDMWqgg==",
+      "dev": true,
+      "dependencies": {
+        "klona": "^2.0.6",
+        "neo-async": "^2.6.2"
+      },
+      "engines": {
+        "node": ">= 14.15.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      },
+      "peerDependencies": {
+        "fibers": ">= 3.1.0",
+        "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
+        "sass": "^1.3.0",
+        "sass-embedded": "*",
+        "webpack": "^5.0.0"
+      },
+      "peerDependenciesMeta": {
+        "fibers": {
+          "optional": true
+        },
+        "node-sass": {
+          "optional": true
+        },
+        "sass": {
+          "optional": true
+        },
+        "sass-embedded": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/scheduler": {
+      "version": "0.23.0",
+      "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
+      "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
+      "dependencies": {
+        "loose-envify": "^1.1.0"
+      }
+    },
+    "node_modules/schema-utils": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.0.1.tgz",
+      "integrity": "sha512-lELhBAAly9NowEsX0yZBlw9ahZG+sK/1RJ21EpzdYHKEs13Vku3LJ+MIPhh4sMs0oCCeufZQEQbMekiA4vuVIQ==",
+      "dev": true,
+      "dependencies": {
+        "@types/json-schema": "^7.0.9",
+        "ajv": "^8.9.0",
+        "ajv-formats": "^2.1.1",
+        "ajv-keywords": "^5.1.0"
+      },
+      "engines": {
+        "node": ">= 12.13.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      }
+    },
+    "node_modules/schema-utils/node_modules/ajv": {
+      "version": "8.12.0",
+      "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",
+      "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",
+      "dev": true,
+      "dependencies": {
+        "fast-deep-equal": "^3.1.1",
+        "json-schema-traverse": "^1.0.0",
+        "require-from-string": "^2.0.2",
+        "uri-js": "^4.2.2"
+      },
+      "funding": {
+        "type": "github",
+        "url": "https://github.com/sponsors/epoberezkin"
+      }
+    },
+    "node_modules/schema-utils/node_modules/ajv-keywords": {
+      "version": "5.1.0",
+      "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz",
+      "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==",
+      "dev": true,
+      "dependencies": {
+        "fast-deep-equal": "^3.1.3"
+      },
+      "peerDependencies": {
+        "ajv": "^8.8.2"
+      }
+    },
+    "node_modules/schema-utils/node_modules/json-schema-traverse": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+      "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+      "dev": true
+    },
+    "node_modules/seek-bzip": {
+      "version": "1.0.6",
+      "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.6.tgz",
+      "integrity": "sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "commander": "^2.8.1"
+      },
+      "bin": {
+        "seek-bunzip": "bin/seek-bunzip",
+        "seek-table": "bin/seek-bzip-table"
+      }
+    },
+    "node_modules/select-hose": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz",
+      "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==",
+      "dev": true
+    },
+    "node_modules/selfsigned": {
+      "version": "2.1.1",
+      "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.1.1.tgz",
+      "integrity": "sha512-GSL3aowiF7wa/WtSFwnUrludWFoNhftq8bUkH9pkzjpN2XSPOAYEgg6e0sS9s0rZwgJzJiQRPU18A6clnoW5wQ==",
+      "dev": true,
+      "dependencies": {
+        "node-forge": "^1"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/semver": {
+      "version": "6.3.0",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+      "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+      "dev": true,
+      "bin": {
+        "semver": "bin/semver.js"
+      }
+    },
+    "node_modules/semver-regex": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/semver-regex/-/semver-regex-2.0.0.tgz",
+      "integrity": "sha512-mUdIBBvdn0PLOeP3TEkMH7HHeUP3GjsXCwKarjv/kGmUFOYg1VqEemKhoQpWMu6X2I8kHeuVdGibLGkVK+/5Qw==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/semver-truncate": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/semver-truncate/-/semver-truncate-1.1.2.tgz",
+      "integrity": "sha512-V1fGg9i4CL3qesB6U0L6XAm4xOJiHmt4QAacazumuasc03BvtFGIMCduv01JWQ69Nv+JST9TqhSCiJoxoY031w==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "semver": "^5.3.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/semver-truncate/node_modules/semver": {
+      "version": "5.7.1",
+      "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
+      "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
+      "dev": true,
+      "optional": true,
+      "bin": {
+        "semver": "bin/semver"
+      }
+    },
+    "node_modules/send": {
+      "version": "0.18.0",
+      "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",
+      "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==",
+      "dev": true,
+      "dependencies": {
+        "debug": "2.6.9",
+        "depd": "2.0.0",
+        "destroy": "1.2.0",
+        "encodeurl": "~1.0.2",
+        "escape-html": "~1.0.3",
+        "etag": "~1.8.1",
+        "fresh": "0.5.2",
+        "http-errors": "2.0.0",
+        "mime": "1.6.0",
+        "ms": "2.1.3",
+        "on-finished": "2.4.1",
+        "range-parser": "~1.2.1",
+        "statuses": "2.0.1"
+      },
+      "engines": {
+        "node": ">= 0.8.0"
+      }
+    },
+    "node_modules/send/node_modules/debug": {
+      "version": "2.6.9",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+      "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+      "dev": true,
+      "dependencies": {
+        "ms": "2.0.0"
+      }
+    },
+    "node_modules/send/node_modules/debug/node_modules/ms": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+      "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+      "dev": true
+    },
+    "node_modules/send/node_modules/ms": {
+      "version": "2.1.3",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+      "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+      "dev": true
+    },
+    "node_modules/serialize-javascript": {
+      "version": "6.0.1",
+      "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz",
+      "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==",
+      "dev": true,
+      "dependencies": {
+        "randombytes": "^2.1.0"
+      }
+    },
+    "node_modules/serve-index": {
+      "version": "1.9.1",
+      "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz",
+      "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==",
+      "dev": true,
+      "dependencies": {
+        "accepts": "~1.3.4",
+        "batch": "0.6.1",
+        "debug": "2.6.9",
+        "escape-html": "~1.0.3",
+        "http-errors": "~1.6.2",
+        "mime-types": "~2.1.17",
+        "parseurl": "~1.3.2"
+      },
+      "engines": {
+        "node": ">= 0.8.0"
+      }
+    },
+    "node_modules/serve-index/node_modules/debug": {
+      "version": "2.6.9",
+      "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+      "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+      "dev": true,
+      "dependencies": {
+        "ms": "2.0.0"
+      }
+    },
+    "node_modules/serve-index/node_modules/depd": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
+      "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/serve-index/node_modules/http-errors": {
+      "version": "1.6.3",
+      "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz",
+      "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==",
+      "dev": true,
+      "dependencies": {
+        "depd": "~1.1.2",
+        "inherits": "2.0.3",
+        "setprototypeof": "1.1.0",
+        "statuses": ">= 1.4.0 < 2"
+      },
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/serve-index/node_modules/inherits": {
+      "version": "2.0.3",
+      "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
+      "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==",
+      "dev": true
+    },
+    "node_modules/serve-index/node_modules/ms": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+      "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+      "dev": true
+    },
+    "node_modules/serve-index/node_modules/setprototypeof": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz",
+      "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==",
+      "dev": true
+    },
+    "node_modules/serve-index/node_modules/statuses": {
+      "version": "1.5.0",
+      "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz",
+      "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/serve-static": {
+      "version": "1.15.0",
+      "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz",
+      "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",
+      "dev": true,
+      "dependencies": {
+        "encodeurl": "~1.0.2",
+        "escape-html": "~1.0.3",
+        "parseurl": "~1.3.3",
+        "send": "0.18.0"
+      },
+      "engines": {
+        "node": ">= 0.8.0"
+      }
+    },
+    "node_modules/setprototypeof": {
+      "version": "1.2.0",
+      "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
+      "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
+      "dev": true
+    },
+    "node_modules/shallow-clone": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz",
+      "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==",
+      "dev": true,
+      "dependencies": {
+        "kind-of": "^6.0.2"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/shebang-command": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+      "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+      "dev": true,
+      "dependencies": {
+        "shebang-regex": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/shebang-regex": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+      "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/shell-quote": {
+      "version": "1.8.1",
+      "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz",
+      "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==",
+      "dev": true,
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/side-channel": {
+      "version": "1.0.4",
+      "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
+      "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.0",
+        "get-intrinsic": "^1.0.2",
+        "object-inspect": "^1.9.0"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/signal-exit": {
+      "version": "3.0.7",
+      "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+      "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+      "dev": true
+    },
+    "node_modules/slash": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
+      "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/sockjs": {
+      "version": "0.3.24",
+      "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.24.tgz",
+      "integrity": "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ==",
+      "dev": true,
+      "dependencies": {
+        "faye-websocket": "^0.11.3",
+        "uuid": "^8.3.2",
+        "websocket-driver": "^0.7.4"
+      }
+    },
+    "node_modules/sockjs/node_modules/uuid": {
+      "version": "8.3.2",
+      "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
+      "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
+      "dev": true,
+      "bin": {
+        "uuid": "dist/bin/uuid"
+      }
+    },
+    "node_modules/sort-keys": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz",
+      "integrity": "sha512-vzn8aSqKgytVik0iwdBEi+zevbTYZogewTUM6dtpmGwEcdzbub/TX4bCzRhebDCRC3QzXgJsLRKB2V/Oof7HXg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "is-plain-obj": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/sort-keys-length": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/sort-keys-length/-/sort-keys-length-1.0.1.tgz",
+      "integrity": "sha512-GRbEOUqCxemTAk/b32F2xa8wDTs+Z1QHOkbhJDQTvv/6G3ZkbJ+frYWsTcc7cBB3Fu4wy4XlLCuNtJuMn7Gsvw==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "sort-keys": "^1.0.0"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/source-map": {
+      "version": "0.6.1",
+      "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+      "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/source-map-js": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
+      "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/source-map-support": {
+      "version": "0.5.21",
+      "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
+      "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
+      "dev": true,
+      "dependencies": {
+        "buffer-from": "^1.0.0",
+        "source-map": "^0.6.0"
+      }
+    },
+    "node_modules/spdy": {
+      "version": "4.0.2",
+      "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz",
+      "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==",
+      "dev": true,
+      "dependencies": {
+        "debug": "^4.1.0",
+        "handle-thing": "^2.0.0",
+        "http-deceiver": "^1.2.7",
+        "select-hose": "^2.0.0",
+        "spdy-transport": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=6.0.0"
+      }
+    },
+    "node_modules/spdy-transport": {
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz",
+      "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==",
+      "dev": true,
+      "dependencies": {
+        "debug": "^4.1.0",
+        "detect-node": "^2.0.4",
+        "hpack.js": "^2.1.6",
+        "obuf": "^1.1.2",
+        "readable-stream": "^3.0.6",
+        "wbuf": "^1.7.3"
+      }
+    },
+    "node_modules/spdy-transport/node_modules/readable-stream": {
+      "version": "3.6.2",
+      "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
+      "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
+      "dev": true,
+      "dependencies": {
+        "inherits": "^2.0.3",
+        "string_decoder": "^1.1.1",
+        "util-deprecate": "^1.0.1"
+      },
+      "engines": {
+        "node": ">= 6"
+      }
+    },
+    "node_modules/stable": {
+      "version": "0.1.8",
+      "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz",
+      "integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==",
+      "deprecated": "Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/statuses": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
+      "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/strict-uri-encode": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz",
+      "integrity": "sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/string_decoder": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
+      "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
+      "dev": true,
+      "dependencies": {
+        "safe-buffer": "~5.1.0"
+      }
+    },
+    "node_modules/string_decoder/node_modules/safe-buffer": {
+      "version": "5.1.2",
+      "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
+      "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+      "dev": true
+    },
+    "node_modules/string.prototype.matchall": {
+      "version": "4.0.8",
+      "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz",
+      "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.1.4",
+        "es-abstract": "^1.20.4",
+        "get-intrinsic": "^1.1.3",
+        "has-symbols": "^1.0.3",
+        "internal-slot": "^1.0.3",
+        "regexp.prototype.flags": "^1.4.3",
+        "side-channel": "^1.0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/string.prototype.trim": {
+      "version": "1.2.7",
+      "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz",
+      "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.1.4",
+        "es-abstract": "^1.20.4"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/string.prototype.trimend": {
+      "version": "1.0.6",
+      "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz",
+      "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.1.4",
+        "es-abstract": "^1.20.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/string.prototype.trimstart": {
+      "version": "1.0.6",
+      "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz",
+      "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "define-properties": "^1.1.4",
+        "es-abstract": "^1.20.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/strip-ansi": {
+      "version": "6.0.1",
+      "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+      "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+      "dev": true,
+      "dependencies": {
+        "ansi-regex": "^5.0.1"
+      },
+      "engines": {
+        "node": ">=8"
+      }
+    },
+    "node_modules/strip-dirs": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-2.1.0.tgz",
+      "integrity": "sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "is-natural-number": "^4.0.1"
+      }
+    },
+    "node_modules/strip-eof": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
+      "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/strip-final-newline": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
+      "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
+      "dev": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/strip-json-comments": {
+      "version": "3.1.1",
+      "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+      "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+      "dev": true,
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/strip-outer": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz",
+      "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "escape-string-regexp": "^1.0.2"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/strnum": {
+      "version": "1.0.5",
+      "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz",
+      "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/style-loader": {
+      "version": "3.3.3",
+      "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-3.3.3.tgz",
+      "integrity": "sha512-53BiGLXAcll9maCYtZi2RCQZKa8NQQai5C4horqKyRmHj9H7QmcUyucrH+4KW/gBQbXM2AsB0axoEcFZPlfPcw==",
+      "dev": true,
+      "engines": {
+        "node": ">= 12.13.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      },
+      "peerDependencies": {
+        "webpack": "^5.0.0"
+      }
+    },
+    "node_modules/supports-color": {
+      "version": "5.5.0",
+      "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
+      "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
+      "dev": true,
+      "dependencies": {
+        "has-flag": "^3.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/supports-preserve-symlinks-flag": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+      "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/survey-core": {
+      "version": "1.9.90",
+      "resolved": "https://registry.npmjs.org/survey-core/-/survey-core-1.9.90.tgz",
+      "integrity": "sha512-hwke6n4kUtDEChJM+xPO9Okd3ND1ExjQXuuqZOFhv28x3qRpzTb8DZydlfcei0Yt5o3I3DHxI4p+UHFvjKNBhA=="
+    },
+    "node_modules/survey-react-ui": {
+      "version": "1.9.90",
+      "resolved": "https://registry.npmjs.org/survey-react-ui/-/survey-react-ui-1.9.90.tgz",
+      "integrity": "sha512-NKgQoJEgdc58YE+BweVDIhv7/9IqDbn1N8tu+oDSP4pOjRlohRABUSbPqusGELLVCT2SHrWWJK4WklY8jpYwOA==",
+      "dependencies": {
+        "react": "^16.5.0 || ^17.0.1 || ^18.1.0",
+        "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0",
+        "survey-core": "1.9.90"
+      }
+    },
+    "node_modules/svgo": {
+      "version": "2.8.0",
+      "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz",
+      "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "@trysound/sax": "0.2.0",
+        "commander": "^7.2.0",
+        "css-select": "^4.1.3",
+        "css-tree": "^1.1.3",
+        "csso": "^4.2.0",
+        "picocolors": "^1.0.0",
+        "stable": "^0.1.8"
+      },
+      "bin": {
+        "svgo": "bin/svgo"
+      },
+      "engines": {
+        "node": ">=10.13.0"
+      }
+    },
+    "node_modules/svgo/node_modules/commander": {
+      "version": "7.2.0",
+      "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz",
+      "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">= 10"
+      }
+    },
+    "node_modules/tapable": {
+      "version": "2.2.1",
+      "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",
+      "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/tar-stream": {
+      "version": "1.6.2",
+      "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz",
+      "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "bl": "^1.0.0",
+        "buffer-alloc": "^1.2.0",
+        "end-of-stream": "^1.0.0",
+        "fs-constants": "^1.0.0",
+        "readable-stream": "^2.3.0",
+        "to-buffer": "^1.1.1",
+        "xtend": "^4.0.0"
+      },
+      "engines": {
+        "node": ">= 0.8.0"
+      }
+    },
+    "node_modules/temp-dir": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-1.0.0.tgz",
+      "integrity": "sha512-xZFXEGbG7SNC3itwBzI3RYjq/cEhBkx2hJuKGIUOcEULmkQExXiHat2z/qkISYsuR+IKumhEfKKbV5qXmhICFQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/tempfile": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/tempfile/-/tempfile-2.0.0.tgz",
+      "integrity": "sha512-ZOn6nJUgvgC09+doCEF3oB+r3ag7kUvlsXEGX069QRD60p+P3uP7XG9N2/at+EyIRGSN//ZY3LyEotA1YpmjuA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "temp-dir": "^1.0.0",
+        "uuid": "^3.0.1"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/terser": {
+      "version": "5.17.7",
+      "resolved": "https://registry.npmjs.org/terser/-/terser-5.17.7.tgz",
+      "integrity": "sha512-/bi0Zm2C6VAexlGgLlVxA0P2lru/sdLyfCVaRMfKVo9nWxbmz7f/sD8VPybPeSUJaJcwmCJis9pBIhcVcG1QcQ==",
+      "dev": true,
+      "dependencies": {
+        "@jridgewell/source-map": "^0.3.3",
+        "acorn": "^8.8.2",
+        "commander": "^2.20.0",
+        "source-map-support": "~0.5.20"
+      },
+      "bin": {
+        "terser": "bin/terser"
+      },
+      "engines": {
+        "node": ">=10"
+      }
+    },
+    "node_modules/terser-webpack-plugin": {
+      "version": "5.3.9",
+      "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.9.tgz",
+      "integrity": "sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==",
+      "dev": true,
+      "dependencies": {
+        "@jridgewell/trace-mapping": "^0.3.17",
+        "jest-worker": "^27.4.5",
+        "schema-utils": "^3.1.1",
+        "serialize-javascript": "^6.0.1",
+        "terser": "^5.16.8"
+      },
+      "engines": {
+        "node": ">= 10.13.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      },
+      "peerDependencies": {
+        "webpack": "^5.1.0"
+      },
+      "peerDependenciesMeta": {
+        "@swc/core": {
+          "optional": true
+        },
+        "esbuild": {
+          "optional": true
+        },
+        "uglify-js": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/terser-webpack-plugin/node_modules/schema-utils": {
+      "version": "3.1.2",
+      "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz",
+      "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==",
+      "dev": true,
+      "dependencies": {
+        "@types/json-schema": "^7.0.8",
+        "ajv": "^6.12.5",
+        "ajv-keywords": "^3.5.2"
+      },
+      "engines": {
+        "node": ">= 10.13.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      }
+    },
+    "node_modules/text-table": {
+      "version": "0.2.0",
+      "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",
+      "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",
+      "dev": true
+    },
+    "node_modules/through": {
+      "version": "2.3.8",
+      "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
+      "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/thunky": {
+      "version": "1.1.0",
+      "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz",
+      "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==",
+      "dev": true
+    },
+    "node_modules/timed-out": {
+      "version": "4.0.1",
+      "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz",
+      "integrity": "sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/to-buffer": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz",
+      "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==",
+      "dev": true,
+      "optional": true
+    },
+    "node_modules/to-fast-properties": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
+      "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==",
+      "dev": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/to-regex-range": {
+      "version": "5.0.1",
+      "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+      "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+      "dev": true,
+      "dependencies": {
+        "is-number": "^7.0.0"
+      },
+      "engines": {
+        "node": ">=8.0"
+      }
+    },
+    "node_modules/toidentifier": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
+      "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.6"
+      }
+    },
+    "node_modules/trim-repeated": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz",
+      "integrity": "sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "escape-string-regexp": "^1.0.2"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/ts-node": {
+      "version": "10.9.1",
+      "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz",
+      "integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==",
+      "dev": true,
+      "dependencies": {
+        "@cspotcode/source-map-support": "^0.8.0",
+        "@tsconfig/node10": "^1.0.7",
+        "@tsconfig/node12": "^1.0.7",
+        "@tsconfig/node14": "^1.0.0",
+        "@tsconfig/node16": "^1.0.2",
+        "acorn": "^8.4.1",
+        "acorn-walk": "^8.1.1",
+        "arg": "^4.1.0",
+        "create-require": "^1.1.0",
+        "diff": "^4.0.1",
+        "make-error": "^1.1.1",
+        "v8-compile-cache-lib": "^3.0.1",
+        "yn": "3.1.1"
+      },
+      "bin": {
+        "ts-node": "dist/bin.js",
+        "ts-node-cwd": "dist/bin-cwd.js",
+        "ts-node-esm": "dist/bin-esm.js",
+        "ts-node-script": "dist/bin-script.js",
+        "ts-node-transpile-only": "dist/bin-transpile.js",
+        "ts-script": "dist/bin-script-deprecated.js"
+      },
+      "peerDependencies": {
+        "@swc/core": ">=1.2.50",
+        "@swc/wasm": ">=1.2.50",
+        "@types/node": "*",
+        "typescript": ">=2.7"
+      },
+      "peerDependenciesMeta": {
+        "@swc/core": {
+          "optional": true
+        },
+        "@swc/wasm": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/tslib": {
+      "version": "2.5.3",
+      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.3.tgz",
+      "integrity": "sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w=="
+    },
+    "node_modules/tsutils": {
+      "version": "3.21.0",
+      "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",
+      "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",
+      "dev": true,
+      "dependencies": {
+        "tslib": "^1.8.1"
+      },
+      "engines": {
+        "node": ">= 6"
+      },
+      "peerDependencies": {
+        "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
+      }
+    },
+    "node_modules/tsutils/node_modules/tslib": {
+      "version": "1.14.1",
+      "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
+      "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
+      "dev": true
+    },
+    "node_modules/tunnel-agent": {
+      "version": "0.6.0",
+      "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
+      "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "safe-buffer": "^5.0.1"
+      },
+      "engines": {
+        "node": "*"
+      }
+    },
+    "node_modules/type-check": {
+      "version": "0.4.0",
+      "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+      "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+      "dev": true,
+      "dependencies": {
+        "prelude-ls": "^1.2.1"
+      },
+      "engines": {
+        "node": ">= 0.8.0"
+      }
+    },
+    "node_modules/type-fest": {
+      "version": "0.11.0",
+      "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz",
+      "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=8"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    },
+    "node_modules/type-is": {
+      "version": "1.6.18",
+      "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
+      "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
+      "dev": true,
+      "dependencies": {
+        "media-typer": "0.3.0",
+        "mime-types": "~2.1.24"
+      },
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/typed-array-length": {
+      "version": "1.0.4",
+      "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz",
+      "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "for-each": "^0.3.3",
+        "is-typed-array": "^1.1.9"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/typescript": {
+      "version": "5.1.3",
+      "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz",
+      "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==",
+      "dev": true,
+      "bin": {
+        "tsc": "bin/tsc",
+        "tsserver": "bin/tsserver"
+      },
+      "engines": {
+        "node": ">=14.17"
+      }
+    },
+    "node_modules/unbox-primitive": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz",
+      "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==",
+      "dev": true,
+      "dependencies": {
+        "call-bind": "^1.0.2",
+        "has-bigints": "^1.0.2",
+        "has-symbols": "^1.0.3",
+        "which-boxed-primitive": "^1.0.2"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/unbzip2-stream": {
+      "version": "1.4.3",
+      "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz",
+      "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "buffer": "^5.2.1",
+        "through": "^2.3.8"
+      }
+    },
+    "node_modules/uncontrollable": {
+      "version": "7.2.1",
+      "resolved": "https://registry.npmjs.org/uncontrollable/-/uncontrollable-7.2.1.tgz",
+      "integrity": "sha512-svtcfoTADIB0nT9nltgjujTi7BzVmwjZClOmskKu/E8FW9BXzg9os8OLr4f8Dlnk0rYWJIWr4wv9eKUXiQvQwQ==",
+      "dependencies": {
+        "@babel/runtime": "^7.6.3",
+        "@types/react": ">=16.9.11",
+        "invariant": "^2.2.4",
+        "react-lifecycles-compat": "^3.0.4"
+      },
+      "peerDependencies": {
+        "react": ">=15.0.0"
+      }
+    },
+    "node_modules/unicode-canonical-property-names-ecmascript": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz",
+      "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/unicode-match-property-ecmascript": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz",
+      "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==",
+      "dev": true,
+      "dependencies": {
+        "unicode-canonical-property-names-ecmascript": "^2.0.0",
+        "unicode-property-aliases-ecmascript": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/unicode-match-property-value-ecmascript": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz",
+      "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==",
+      "dev": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/unicode-property-aliases-ecmascript": {
+      "version": "2.1.0",
+      "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz",
+      "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==",
+      "dev": true,
+      "engines": {
+        "node": ">=4"
+      }
+    },
+    "node_modules/universalify": {
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
+      "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",
+      "dev": true,
+      "engines": {
+        "node": ">= 10.0.0"
+      }
+    },
+    "node_modules/unpipe": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
+      "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/update-browserslist-db": {
+      "version": "1.0.11",
+      "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz",
+      "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==",
+      "dev": true,
+      "funding": [
+        {
+          "type": "opencollective",
+          "url": "https://opencollective.com/browserslist"
+        },
+        {
+          "type": "tidelift",
+          "url": "https://tidelift.com/funding/github/npm/browserslist"
+        },
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/ai"
+        }
+      ],
+      "dependencies": {
+        "escalade": "^3.1.1",
+        "picocolors": "^1.0.0"
+      },
+      "bin": {
+        "update-browserslist-db": "cli.js"
+      },
+      "peerDependencies": {
+        "browserslist": ">= 4.21.0"
+      }
+    },
+    "node_modules/uri-js": {
+      "version": "4.4.1",
+      "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+      "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+      "dev": true,
+      "dependencies": {
+        "punycode": "^2.1.0"
+      }
+    },
+    "node_modules/url-loader": {
+      "version": "4.1.1",
+      "resolved": "https://registry.npmjs.org/url-loader/-/url-loader-4.1.1.tgz",
+      "integrity": "sha512-3BTV812+AVHHOJQO8O5MkWgZ5aosP7GnROJwvzLS9hWDj00lZ6Z0wNak423Lp9PBZN05N+Jk/N5Si8jRAlGyWA==",
+      "dev": true,
+      "dependencies": {
+        "loader-utils": "^2.0.0",
+        "mime-types": "^2.1.27",
+        "schema-utils": "^3.0.0"
+      },
+      "engines": {
+        "node": ">= 10.13.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      },
+      "peerDependencies": {
+        "file-loader": "*",
+        "webpack": "^4.0.0 || ^5.0.0"
+      },
+      "peerDependenciesMeta": {
+        "file-loader": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/url-loader/node_modules/schema-utils": {
+      "version": "3.1.2",
+      "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz",
+      "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==",
+      "dev": true,
+      "dependencies": {
+        "@types/json-schema": "^7.0.8",
+        "ajv": "^6.12.5",
+        "ajv-keywords": "^3.5.2"
+      },
+      "engines": {
+        "node": ">= 10.13.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      }
+    },
+    "node_modules/url-parse-lax": {
+      "version": "1.0.0",
+      "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz",
+      "integrity": "sha512-BVA4lR5PIviy2PMseNd2jbFQ+jwSwQGdJejf5ctd1rEXt0Ypd7yanUK9+lYechVlN5VaTJGsu2U/3MDDu6KgBA==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "prepend-http": "^1.0.1"
+      },
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/url-to-options": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz",
+      "integrity": "sha512-0kQLIzG4fdk/G5NONku64rSH/x32NOA39LVQqlK8Le6lvTF6GGRJpqaQFGgU+CLwySIqBSMdwYM0sYcW9f6P4A==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">= 4"
+      }
+    },
+    "node_modules/util-deprecate": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+      "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+      "dev": true
+    },
+    "node_modules/utils-merge": {
+      "version": "1.0.1",
+      "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
+      "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.4.0"
+      }
+    },
+    "node_modules/uuid": {
+      "version": "3.4.0",
+      "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
+      "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
+      "deprecated": "Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.",
+      "dev": true,
+      "optional": true,
+      "bin": {
+        "uuid": "bin/uuid"
+      }
+    },
+    "node_modules/v8-compile-cache-lib": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",
+      "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",
+      "dev": true
+    },
+    "node_modules/vary": {
+      "version": "1.1.2",
+      "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
+      "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/warning": {
+      "version": "4.0.3",
+      "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz",
+      "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==",
+      "dependencies": {
+        "loose-envify": "^1.0.0"
+      }
+    },
+    "node_modules/watchpack": {
+      "version": "2.4.0",
+      "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz",
+      "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==",
+      "dev": true,
+      "dependencies": {
+        "glob-to-regexp": "^0.4.1",
+        "graceful-fs": "^4.1.2"
+      },
+      "engines": {
+        "node": ">=10.13.0"
+      }
+    },
+    "node_modules/wbuf": {
+      "version": "1.7.3",
+      "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz",
+      "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==",
+      "dev": true,
+      "dependencies": {
+        "minimalistic-assert": "^1.0.0"
+      }
+    },
+    "node_modules/webpack": {
+      "version": "5.85.0",
+      "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.85.0.tgz",
+      "integrity": "sha512-7gazTiYqwo5OSqwH1tigLDL2r3qDeP2dOKYgd+LlXpsUMqDTklg6tOghexqky0/+6QY38kb/R/uRPUleuL43zg==",
+      "dev": true,
+      "dependencies": {
+        "@types/eslint-scope": "^3.7.3",
+        "@types/estree": "^1.0.0",
+        "@webassemblyjs/ast": "^1.11.5",
+        "@webassemblyjs/wasm-edit": "^1.11.5",
+        "@webassemblyjs/wasm-parser": "^1.11.5",
+        "acorn": "^8.7.1",
+        "acorn-import-assertions": "^1.9.0",
+        "browserslist": "^4.14.5",
+        "chrome-trace-event": "^1.0.2",
+        "enhanced-resolve": "^5.14.1",
+        "es-module-lexer": "^1.2.1",
+        "eslint-scope": "5.1.1",
+        "events": "^3.2.0",
+        "glob-to-regexp": "^0.4.1",
+        "graceful-fs": "^4.2.9",
+        "json-parse-even-better-errors": "^2.3.1",
+        "loader-runner": "^4.2.0",
+        "mime-types": "^2.1.27",
+        "neo-async": "^2.6.2",
+        "schema-utils": "^3.1.2",
+        "tapable": "^2.1.1",
+        "terser-webpack-plugin": "^5.3.7",
+        "watchpack": "^2.4.0",
+        "webpack-sources": "^3.2.3"
+      },
+      "bin": {
+        "webpack": "bin/webpack.js"
+      },
+      "engines": {
+        "node": ">=10.13.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      },
+      "peerDependenciesMeta": {
+        "webpack-cli": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/webpack-cli": {
+      "version": "5.1.2",
+      "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-5.1.2.tgz",
+      "integrity": "sha512-RI4KfVpjX1qdy5Sq4A1ycCxgTZ2rLLtrTJDBYh3A3DpSSDZ+WP4oBlj/CuD70oXz4wB1WqVjg+lMxH/MPYWb5g==",
+      "dev": true,
+      "dependencies": {
+        "@discoveryjs/json-ext": "^0.5.0",
+        "@webpack-cli/configtest": "^2.1.1",
+        "@webpack-cli/info": "^2.0.2",
+        "@webpack-cli/serve": "^2.0.5",
+        "colorette": "^2.0.14",
+        "commander": "^10.0.1",
+        "cross-spawn": "^7.0.3",
+        "envinfo": "^7.7.3",
+        "fastest-levenshtein": "^1.0.12",
+        "import-local": "^3.0.2",
+        "interpret": "^3.1.1",
+        "rechoir": "^0.8.0",
+        "webpack-merge": "^5.7.3"
+      },
+      "bin": {
+        "webpack-cli": "bin/cli.js"
+      },
+      "engines": {
+        "node": ">=14.15.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      },
+      "peerDependencies": {
+        "webpack": "5.x.x"
+      },
+      "peerDependenciesMeta": {
+        "@webpack-cli/generators": {
+          "optional": true
+        },
+        "webpack-bundle-analyzer": {
+          "optional": true
+        },
+        "webpack-dev-server": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/webpack-cli/node_modules/commander": {
+      "version": "10.0.1",
+      "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz",
+      "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==",
+      "dev": true,
+      "engines": {
+        "node": ">=14"
+      }
+    },
+    "node_modules/webpack-dev-middleware": {
+      "version": "5.3.3",
+      "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz",
+      "integrity": "sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA==",
+      "dev": true,
+      "dependencies": {
+        "colorette": "^2.0.10",
+        "memfs": "^3.4.3",
+        "mime-types": "^2.1.31",
+        "range-parser": "^1.2.1",
+        "schema-utils": "^4.0.0"
+      },
+      "engines": {
+        "node": ">= 12.13.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      },
+      "peerDependencies": {
+        "webpack": "^4.0.0 || ^5.0.0"
+      }
+    },
+    "node_modules/webpack-dev-server": {
+      "version": "4.15.0",
+      "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.0.tgz",
+      "integrity": "sha512-HmNB5QeSl1KpulTBQ8UT4FPrByYyaLxpJoQ0+s7EvUrMc16m0ZS1sgb1XGqzmgCPk0c9y+aaXxn11tbLzuM7NQ==",
+      "dev": true,
+      "dependencies": {
+        "@types/bonjour": "^3.5.9",
+        "@types/connect-history-api-fallback": "^1.3.5",
+        "@types/express": "^4.17.13",
+        "@types/serve-index": "^1.9.1",
+        "@types/serve-static": "^1.13.10",
+        "@types/sockjs": "^0.3.33",
+        "@types/ws": "^8.5.1",
+        "ansi-html-community": "^0.0.8",
+        "bonjour-service": "^1.0.11",
+        "chokidar": "^3.5.3",
+        "colorette": "^2.0.10",
+        "compression": "^1.7.4",
+        "connect-history-api-fallback": "^2.0.0",
+        "default-gateway": "^6.0.3",
+        "express": "^4.17.3",
+        "graceful-fs": "^4.2.6",
+        "html-entities": "^2.3.2",
+        "http-proxy-middleware": "^2.0.3",
+        "ipaddr.js": "^2.0.1",
+        "launch-editor": "^2.6.0",
+        "open": "^8.0.9",
+        "p-retry": "^4.5.0",
+        "rimraf": "^3.0.2",
+        "schema-utils": "^4.0.0",
+        "selfsigned": "^2.1.1",
+        "serve-index": "^1.9.1",
+        "sockjs": "^0.3.24",
+        "spdy": "^4.0.2",
+        "webpack-dev-middleware": "^5.3.1",
+        "ws": "^8.13.0"
+      },
+      "bin": {
+        "webpack-dev-server": "bin/webpack-dev-server.js"
+      },
+      "engines": {
+        "node": ">= 12.13.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      },
+      "peerDependencies": {
+        "webpack": "^4.37.0 || ^5.0.0"
+      },
+      "peerDependenciesMeta": {
+        "webpack": {
+          "optional": true
+        },
+        "webpack-cli": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/webpack-merge": {
+      "version": "5.9.0",
+      "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.9.0.tgz",
+      "integrity": "sha512-6NbRQw4+Sy50vYNTw7EyOn41OZItPiXB8GNv3INSoe3PSFaHJEz3SHTrYVaRm2LilNGnFUzh0FAwqPEmU/CwDg==",
+      "dev": true,
+      "dependencies": {
+        "clone-deep": "^4.0.1",
+        "wildcard": "^2.0.0"
+      },
+      "engines": {
+        "node": ">=10.0.0"
+      }
+    },
+    "node_modules/webpack-sources": {
+      "version": "3.2.3",
+      "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz",
+      "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==",
+      "dev": true,
+      "engines": {
+        "node": ">=10.13.0"
+      }
+    },
+    "node_modules/webpack/node_modules/schema-utils": {
+      "version": "3.1.2",
+      "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.2.tgz",
+      "integrity": "sha512-pvjEHOgWc9OWA/f/DE3ohBWTD6EleVLf7iFUkoSwAxttdBhB9QUebQgxER2kWueOvRJXPHNnyrvvh9eZINB8Eg==",
+      "dev": true,
+      "dependencies": {
+        "@types/json-schema": "^7.0.8",
+        "ajv": "^6.12.5",
+        "ajv-keywords": "^3.5.2"
+      },
+      "engines": {
+        "node": ">= 10.13.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/webpack"
+      }
+    },
+    "node_modules/websocket-driver": {
+      "version": "0.7.4",
+      "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz",
+      "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==",
+      "dev": true,
+      "dependencies": {
+        "http-parser-js": ">=0.5.1",
+        "safe-buffer": ">=5.1.0",
+        "websocket-extensions": ">=0.1.1"
+      },
+      "engines": {
+        "node": ">=0.8.0"
+      }
+    },
+    "node_modules/websocket-extensions": {
+      "version": "0.1.4",
+      "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz",
+      "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.8.0"
+      }
+    },
+    "node_modules/which": {
+      "version": "2.0.2",
+      "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+      "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+      "dev": true,
+      "dependencies": {
+        "isexe": "^2.0.0"
+      },
+      "bin": {
+        "node-which": "bin/node-which"
+      },
+      "engines": {
+        "node": ">= 8"
+      }
+    },
+    "node_modules/which-boxed-primitive": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz",
+      "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==",
+      "dev": true,
+      "dependencies": {
+        "is-bigint": "^1.0.1",
+        "is-boolean-object": "^1.1.0",
+        "is-number-object": "^1.0.4",
+        "is-string": "^1.0.5",
+        "is-symbol": "^1.0.3"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/which-typed-array": {
+      "version": "1.1.9",
+      "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz",
+      "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==",
+      "dev": true,
+      "dependencies": {
+        "available-typed-arrays": "^1.0.5",
+        "call-bind": "^1.0.2",
+        "for-each": "^0.3.3",
+        "gopd": "^1.0.1",
+        "has-tostringtag": "^1.0.0",
+        "is-typed-array": "^1.1.10"
+      },
+      "engines": {
+        "node": ">= 0.4"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/wildcard": {
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz",
+      "integrity": "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==",
+      "dev": true
+    },
+    "node_modules/word-wrap": {
+      "version": "1.2.3",
+      "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
+      "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
+      "dev": true,
+      "engines": {
+        "node": ">=0.10.0"
+      }
+    },
+    "node_modules/wrappy": {
+      "version": "1.0.2",
+      "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+      "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+      "dev": true
+    },
+    "node_modules/ws": {
+      "version": "8.13.0",
+      "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz",
+      "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==",
+      "dev": true,
+      "engines": {
+        "node": ">=10.0.0"
+      },
+      "peerDependencies": {
+        "bufferutil": "^4.0.1",
+        "utf-8-validate": ">=5.0.2"
+      },
+      "peerDependenciesMeta": {
+        "bufferutil": {
+          "optional": true
+        },
+        "utf-8-validate": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/xtend": {
+      "version": "4.0.2",
+      "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
+      "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
+      "dev": true,
+      "optional": true,
+      "engines": {
+        "node": ">=0.4"
+      }
+    },
+    "node_modules/yallist": {
+      "version": "3.1.1",
+      "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+      "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+      "dev": true
+    },
+    "node_modules/yaml": {
+      "version": "1.10.2",
+      "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
+      "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
+      "dev": true,
+      "engines": {
+        "node": ">= 6"
+      }
+    },
+    "node_modules/yauzl": {
+      "version": "2.10.0",
+      "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
+      "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==",
+      "dev": true,
+      "optional": true,
+      "dependencies": {
+        "buffer-crc32": "~0.2.3",
+        "fd-slicer": "~1.1.0"
+      }
+    },
+    "node_modules/yn": {
+      "version": "3.1.1",
+      "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
+      "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
+      "dev": true,
+      "engines": {
+        "node": ">=6"
+      }
+    },
+    "node_modules/yocto-queue": {
+      "version": "0.1.0",
+      "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+      "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+      "dev": true,
+      "engines": {
+        "node": ">=10"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/sindresorhus"
+      }
+    }
+  }
+}
diff --git a/survey-frontend/package.json b/survey-frontend/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..a219829c484ec2fee26cd22ba811686aeb097b47
--- /dev/null
+++ b/survey-frontend/package.json
@@ -0,0 +1,50 @@
+{
+  "devDependencies": {
+    "@babel/core": "^7.22.1",
+    "@babel/plugin-proposal-class-properties": "^7.18.6",
+    "@babel/plugin-transform-runtime": "^7.22.4",
+    "@babel/preset-env": "^7.22.4",
+    "@babel/preset-react": "^7.22.3",
+    "@babel/preset-typescript": "^7.21.5",
+    "@babel/runtime": "^7.22.3",
+    "@types/react": "^18.2.8",
+    "@types/react-dom": "^18.2.4",
+    "@types/react-router-dom": "^5.3.3",
+    "@types/webpack": "^5.28.1",
+    "@typescript-eslint/eslint-plugin": "^5.59.8",
+    "@typescript-eslint/parser": "^5.59.8",
+    "babel-loader": "^9.1.2",
+    "css-loader": "^6.8.1",
+    "eslint": "^8.42.0",
+    "eslint-plugin-react": "^7.32.2",
+    "eslint-plugin-react-hooks": "^4.6.0",
+    "fork-ts-checker-webpack-plugin": "^8.0.0",
+    "image-webpack-loader": "^8.1.0",
+    "sass": "^1.62.1",
+    "sass-loader": "^13.3.1",
+    "style-loader": "^3.3.3",
+    "ts-node": "^10.9.1",
+    "typescript": "^5.1.3",
+    "url-loader": "^4.1.1",
+    "webpack": "^5.85.0",
+    "webpack-cli": "^5.1.2",
+    "webpack-dev-server": "^4.15.0"
+  },
+  "resolutions": {
+    "@types/webpack": "^5.28.0",
+    "@types/webpack-dev-server": "^4.7.2"
+  },
+  "scripts": {
+    "start": "webpack serve --mode development --open --port 4001",
+    "build": "webpack --mode production"
+  },
+  "dependencies": {
+    "bootstrap": "^5.3.0",
+    "react": "^18.2.0",
+    "react-bootstrap": "^2.7.4",
+    "react-dom": "^18.2.0",
+    "react-icons": "^4.9.0",
+    "react-router-dom": "^6.11.2",
+    "survey-react-ui": "^1.9.90"
+  }
+}
diff --git a/survey-frontend/src/ProgressBar.tsx b/survey-frontend/src/ProgressBar.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..062a5c74228ae3ba102413e0f9830868279ec612
--- /dev/null
+++ b/survey-frontend/src/ProgressBar.tsx
@@ -0,0 +1,48 @@
+import React from "react";
+
+function ProgressBar({
+  completionPercentage,
+  unansweredPercentage,
+  pages,
+  pageTitle,
+}) {
+  const progressBarContainerStyle: React.CSSProperties = {
+    display: "flex",
+    flexWrap: "wrap",
+    height: "10px",
+    margin: "5px",
+    width: `${100 / pages}%`,
+  };
+
+  const progressBarFillStyle: React.CSSProperties = {
+    height: "100%",
+    transition: "width 0.3s ease",
+  };
+
+  const progressBarFillStyleCopy: React.CSSProperties = {
+    ...progressBarFillStyle,
+    width: `${completionPercentage}%`,
+    backgroundColor: "#1ab394",
+  };
+  const unansweredProgressBarFillStyle: React.CSSProperties = {
+    ...progressBarFillStyle,
+    width: `${unansweredPercentage}%`,
+    backgroundColor: "#9d9d9d",
+  };
+
+  const pageTitleStyle: React.CSSProperties ={
+    width: "100%",
+    textAlign: "center"
+  }
+  
+
+  return (
+    <div style={progressBarContainerStyle}>
+      <div style={progressBarFillStyleCopy} />
+      <div style={unansweredProgressBarFillStyle} />
+      <div style={pageTitleStyle}>{pageTitle}</div>
+    </div>
+  );
+}
+
+export default ProgressBar;
diff --git a/survey-frontend/src/ShowUser.tsx b/survey-frontend/src/ShowUser.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..04affa2543d6b37a97fd32edc110f6dadf0f1f03
--- /dev/null
+++ b/survey-frontend/src/ShowUser.tsx
@@ -0,0 +1,46 @@
+import React, { useState, useEffect } from "react";
+
+interface User {
+    id?: string,
+    name: string,
+    email?: string
+}
+
+async function fetchUser(): Promise<User> {
+    try {
+        const response = await fetch('/api/user');
+        const user = await response.json();
+        return user
+    } catch (error) {
+        return {
+            'name': 'Error Fetching User'
+        }
+    }
+}
+
+
+function ShowUser() {
+    const [user, setUser] = useState<User | null>(null);
+
+    useEffect(() => {
+        // Fetch user
+        fetchUser().then((user) => {
+            setUser(user);
+        });
+    }, []);
+
+    if (!user || user.name.match(/Anonymous/gi)) {
+        return (
+            <>
+                <h2>Not logged in.</h2>
+                <a href="/login">Login</a>
+            </>
+
+        );
+    }
+
+    return <h2>Hello, {user.name}!</h2>;
+
+}
+
+export default ShowUser;
\ No newline at end of file
diff --git a/survey-frontend/src/SurveyComponent.tsx b/survey-frontend/src/SurveyComponent.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..76ae798942a4c1bc83ab6a82d20bb601fd18d034
--- /dev/null
+++ b/survey-frontend/src/SurveyComponent.tsx
@@ -0,0 +1,259 @@
+import React, { useState, useEffect, useRef } from "react";
+import { Model, Serializer, ComputedUpdater, Question } from "survey-core";
+import { Survey } from "survey-react-ui";
+import "survey-core/modern.min.css";
+import './survey.scss';
+import ProgressBar from "./ProgressBar";
+
+Serializer.addProperty("itemvalue", "customDescription:text");
+Serializer.addProperty("question", "hideCheckboxLabels:boolean");
+
+interface Progress {
+  completionPercentage: number;
+  unansweredPercentage: number;
+  totalPages: number;
+  pageTitle: string;
+}
+enum VerificationStatus {
+  New = "new",                   // a question that was not answered last year
+  Answered = "answered",         // a question that was not answered last year but has an answer now
+  Unverified = "unverified",     // a question that has its answered copied from last year
+  Verified = "verified",         // a question for which last years answer was verified
+  Edited = "edited"              // a question for which last years answer was edited
+}
+
+
+function SurveyComponent({ nrenName }) {
+  const [surveyModel, setSurveyModel] = useState<Model>();
+  const [progress, setProgress] = useState<Progress[]>([]);
+  const verificationStatus = useRef<Map<string, VerificationStatus>>(new Map());
+
+  function setVerifyButton(question: Question, state: VerificationStatus) {
+
+    verificationStatus.current.set(question.name, state);
+
+    const btn = document.createElement("button");
+    btn.type = "button";
+    btn.className = "sv-action-bar-item verification";
+    btn.innerHTML = state;
+
+    if (state == VerificationStatus.Unverified) {
+      btn.innerHTML = "Verify last years data";
+      btn.className += " verification-required";
+      btn.onclick = function () {
+        question.validate();
+        setVerifyButton(question, VerificationStatus.Verified)
+      }
+    } else {
+      btn.className += " verification-ok";
+    }
+
+    const selector = '[data-name="' + question.name + '"]';
+    const header = document.querySelector(selector)?.querySelector('h5');
+    const old = header?.querySelector(".verification");
+    if (old) {
+      old.replaceWith(btn);
+    } else {
+      header?.appendChild(btn);
+    }
+  }
+
+  // const surveyComplete = useCallback((sender) => {
+  //   console.log(sender.data);
+  // }, []);
+
+  function saveSurveyData (survey, success?, failure?) {
+    const xhr = new XMLHttpRequest();
+    xhr.open("POST", "/api/survey/save/" + nrenName);
+    xhr.setRequestHeader("Content-Type", "application/json; charset=utf-8");
+    xhr.onload = xhr.onerror = () => {
+      if (xhr.status == 200 && success) {
+        success();
+      } else if (xhr.status != 200 && failure) {
+        failure();
+      }
+    }
+    const saveData = {
+      data: survey.data,
+      page: survey.currentPageNo,
+      verification_status: Object.fromEntries(verificationStatus.current)
+    }
+    xhr.send(JSON.stringify(saveData));
+  }
+
+  async function getModel() {
+    const response = await fetch('/api/survey/open/' + nrenName);
+    const json = await response.json();
+
+    for (const questionName in json["verification_status"]) {
+      verificationStatus.current.set(questionName, json["verification_status"][questionName]);
+    }
+
+    const survey = new Model(json['model']);
+
+    if (json['data'] !== null) {
+      survey.data = json['data'];
+      survey.clearIncorrectValues(true);  // TODO test if this really removes all old values and such
+    }
+    survey.currentPageNo = json['page'];
+
+    survey.addNavigationItem({
+      id: "sv-nav-compendium-complete",
+      title: "Complete",
+      // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+      // @ts-expect-error: visible may be a ComputedUpdater but the types are not (yet?) aware of this
+      visible: new ComputedUpdater(() => survey.isLastPage),
+      action: () => {
+        let firstValidationError = '';
+        const verificationValidator = (survey, options) => {
+          const status = verificationStatus.current.get(options.name);
+          if (status == VerificationStatus.Unverified) {
+            if (firstValidationError == '') {
+              firstValidationError = options.name;
+            }
+            options.error = 'Please verify that last years data is correct by editing the value or pressing the verification button!';
+          }
+        };
+        survey.onValidateQuestion.add(verificationValidator);
+        const validSurvey = survey.validate();
+        survey.onValidateQuestion.remove(verificationValidator);
+        if (validSurvey) {
+          survey.completeLastPage();  // continue with usual completion process
+        } else {
+          survey.focusQuestion(firstValidationError);
+        }
+      },
+      innerCss: "sv-btn sv-btn--navigation sv-footer__complete-btn"
+    });
+
+    survey.addNavigationItem({
+      id: "sv-nav-compendium-save",
+      title: "Save",
+      action: (context) => {
+        console.log(context);
+        saveSurveyData(survey);
+        // notification doesnt show up in the right place, maybe fix with CSS. Also see settings.notifications.lifetime if you want to fix this
+        // but probably easier/better to just use react popup everywhere instead
+        // survey.notify('Saved!', "success");
+      },
+      innerCss: "sv-btn sv-btn--navigation sv-footer__complete-btn"
+    });
+
+    survey.onComplete.add((sender, options) => {
+      options.showSaveInProgress();
+      saveSurveyData(sender, () => options.showSaveSuccess(), () => options.showSaveError());
+    });
+    survey.onPartialSend.add((sender) => {
+      saveSurveyData(sender);
+    });
+
+    survey.onAfterRenderQuestion.add(function (survey, options) {
+      const status = verificationStatus.current.get(options.question.name);
+      if (status) {
+        setVerifyButton(options.question, status);
+      }
+    });
+
+    survey.onValueChanged.add(function (survey, options) {
+      const currentStatus = verificationStatus.current.get(options.question.name);
+      if (currentStatus == VerificationStatus.New) {
+        setVerifyButton(options.question, VerificationStatus.Answered);
+      } else if (currentStatus == VerificationStatus.Unverified) {
+        setVerifyButton(options.question, VerificationStatus.Edited);
+      }
+    });
+
+    survey.onUpdateQuestionCssClasses.add(function (_, options) {
+      if (options.question.hideCheckboxLabels) {
+        const classes = options.cssClasses;
+        classes.root += " hidden-checkbox-labels";
+      }
+    });
+
+    survey.onMatrixAfterCellRender.add((survey, options) => {
+      // get the customDescription for matrix rows and set it in the title
+      // attribute so that it shows up as a hover popup
+      // NB I would have preferred using onAfterRenderQuestion, but unfortunately that is
+      // not always triggered on re-renders (specifically when extra column become visble or invisible)
+
+      if (options.column['indexValue'] == 0 && 'item' in options.row) {
+        const item = options.row['item'] as object;
+        if (item['customDescription'] !== undefined) {
+          options.htmlElement.parentElement?.children[0].setAttribute(
+            "title",
+            item['customDescription']
+          );
+        }
+      }
+    });
+
+    survey.onCurrentPageChanged.add((sender) => {
+      console.log("sender--> " + sender);
+      calculateProgress(sender);
+    });
+
+    setSurveyModel(survey);
+  }
+  const filterCallback = (question) => {
+    return question.value !== null && question.value !== undefined;
+  };
+
+  const calculateProgress = (survey) => {
+    // console.log("survey--> "+ survey);
+    if (survey && survey.pages) {
+      console.log("survey.page--> " + survey.pages);
+      const progressArray: Progress[] = [];
+      survey.pages.forEach((page) => {
+        const sectionQuestions = page.questions.filter(
+          (question) => question.startWithNewLine
+        );
+        const questionCount = sectionQuestions.length;
+        const answeredCount = sectionQuestions.filter(filterCallback).length;
+        const unansweredCount = questionCount - answeredCount;
+        const completionPercentage = answeredCount / questionCount;
+
+
+        progressArray.push({
+          completionPercentage: completionPercentage * 100,
+          unansweredPercentage: (unansweredCount / questionCount) * 100,
+          totalPages: survey.pages.length,
+          pageTitle: page.title,
+        });
+      });
+      setProgress(progressArray);
+    }
+  };
+
+  useEffect(() => {
+    getModel();
+  }, []);
+
+  useEffect(() => {
+    if (surveyModel) {
+      calculateProgress(surveyModel);
+    }
+  }, [surveyModel]);
+
+  if (surveyModel) {
+    return (
+      <div className="survey-container">
+        <div className="survey-progress">
+          {progress.map((sectionProgress, index) => (
+            <ProgressBar
+              key={index}
+              completionPercentage={sectionProgress.completionPercentage}
+              unansweredPercentage={sectionProgress.unansweredPercentage}
+              pages={sectionProgress.totalPages}
+              pageTitle={sectionProgress.pageTitle}
+            />
+          ))}
+        </div>
+        <Survey model={surveyModel} />
+      </div>
+    );
+  } else {
+    return <span>loading...</span>;
+  }
+}
+
+export default SurveyComponent;
diff --git a/survey-frontend/src/SurveySelectionComponent.tsx b/survey-frontend/src/SurveySelectionComponent.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..63c14a2b07d240a6b6a6270af78b0aefef3a11e6
--- /dev/null
+++ b/survey-frontend/src/SurveySelectionComponent.tsx
@@ -0,0 +1,52 @@
+import React, { useState, useEffect } from "react";
+import SurveyComponent from "./SurveyComponent";
+
+
+interface Nren {
+    id: number
+    name: string
+}
+
+function SurveySelectionComponent() {
+    const [nrens, setNrens] = useState<Nren[]>([]);
+    const [selectedNren, setSelectedNren] = useState<Nren | null>(null);
+
+    useEffect(() => {
+      // Fetch organizations from the API
+      fetchNrens();
+    }, []);
+
+    const fetchNrens = async () => {
+      try {
+        const response = await fetch('/api/survey/nrens');
+        const data = await response.json();
+        setNrens(data);
+      } catch (error) {
+        console.error('Error fetching organizations:', error);
+      }
+    };
+
+    const handleNrenSelect = (nren) => {
+      setSelectedNren(nren);
+    };
+
+    if (!selectedNren) {
+      return (
+        <div>
+          <h2>Select an organization:</h2>
+          <ul>
+            {nrens.map((nren) => (
+              <li key={nren.id} onClick={() => handleNrenSelect(nren)}>
+                {nren.name}
+              </li>
+            ))}
+          </ul>
+        </div>
+      );
+    }
+
+    return <SurveyComponent nrenName={selectedNren.name} />;
+
+}
+
+export default SurveySelectionComponent;
\ No newline at end of file
diff --git a/survey-frontend/src/index.tsx b/survey-frontend/src/index.tsx
new file mode 100644
index 0000000000000000000000000000000000000000..b5c70cb4ff7deb6bf81a1c5b4af6f03b0cbf1448
--- /dev/null
+++ b/survey-frontend/src/index.tsx
@@ -0,0 +1,17 @@
+
+import React from 'react';
+import { createRoot } from 'react-dom/client';
+import SurveySelectionComponent from './SurveySelectionComponent';
+import ShowUser from './ShowUser';
+
+
+const container = document.getElementById('root') as HTMLElement;
+const root = createRoot(container);
+
+
+root.render(
+  <React.StrictMode>
+    <ShowUser />
+    <SurveySelectionComponent />
+  </React.StrictMode>
+)
\ No newline at end of file
diff --git a/survey-frontend/src/survey.scss b/survey-frontend/src/survey.scss
new file mode 100644
index 0000000000000000000000000000000000000000..ecaccf3b53bb806ed8ccbd0d5d69cd53e133a551
--- /dev/null
+++ b/survey-frontend/src/survey.scss
@@ -0,0 +1,31 @@
+
+.hidden-checkbox-labels .sv-checkbox .sv-item__control-label {
+	visibility: hidden;
+}
+
+#sv-nav-complete {
+	width: 0px;
+	height: 0px;
+	overflow: hidden;
+	visibility: hidden;
+}
+
+.verification {
+	display: inline-block;
+	margin-left: 20px;
+}
+
+.verification-required {
+	color: red;
+	border-style: solid;
+	border-width: 1px;
+}
+
+.sv-action-bar-item.verification.verification-ok:hover {
+	cursor: auto;
+	background-color: transparent;
+}
+
+.survey-progress {
+	display: flex;
+}
\ No newline at end of file
diff --git a/survey-frontend/static/index.html b/survey-frontend/static/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..4cf0c01e8a7ccd94113583f588a47e35f391d270
--- /dev/null
+++ b/survey-frontend/static/index.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta charset="utf-8"/>
+</head>
+<body>
+  <div id="root"></div>
+  <script src="/survey-bundle.js"></script>
+</body>
+</html>
\ No newline at end of file
diff --git a/survey-frontend/tsconfig.json b/survey-frontend/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..fdc02371afd46c55f86912c148f4b0dab8826f53
--- /dev/null
+++ b/survey-frontend/tsconfig.json
@@ -0,0 +1,21 @@
+{
+  "compilerOptions": {
+    "target": "ES6",
+    "lib": ["dom", "dom.iterable", "esnext"],
+    "allowJs": true,
+    "allowSyntheticDefaultImports": true,
+    "skipLibCheck": true,
+    "esModuleInterop": true,
+    "strict": true,
+    "forceConsistentCasingInFileNames": true,
+    "moduleResolution": "node",
+    "resolveJsonModule": true,
+    "isolatedModules": true,
+    "noEmit": true,
+    "jsx": "react",
+    "declaration": true,
+    "declarationDir": "dist/types",
+    "noImplicitAny": false,
+  },
+  "include": ["src"]
+}
diff --git a/survey-frontend/webpack.config.ts b/survey-frontend/webpack.config.ts
new file mode 100644
index 0000000000000000000000000000000000000000..b3b51315fe230f055bc7deed532a2c6064637966
--- /dev/null
+++ b/survey-frontend/webpack.config.ts
@@ -0,0 +1,100 @@
+import path from "path";
+import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin";
+
+import { Configuration as WebpackConfiguration } from "webpack";
+import { Configuration as WebpackDevServerConfiguration } from "webpack-dev-server";
+
+interface Configuration extends WebpackConfiguration {
+  devServer?: WebpackDevServerConfiguration;
+}
+
+const config: Configuration = {
+  entry: "./src/index.tsx",
+  module: {
+    rules: [
+      {
+        test: /\.(ts|js)x?$/,
+        exclude: /node_modules/,
+        use: {
+          loader: "babel-loader",
+          options: {
+            presets: [
+              "@babel/preset-env",
+              "@babel/preset-react",
+              "@babel/preset-typescript",
+            ],
+          },
+        },
+      },
+      {
+        test: /\.scss$/,
+        exclude: /node_modules/,
+        use: [
+          { loader: "style-loader" },
+          { loader: "css-loader" },
+          { loader: "sass-loader" },
+        ],
+      },
+      {
+        test: /\.css$/,
+        use: [{ loader: "style-loader" }, { loader: "css-loader" }],
+      },
+      {
+        test: /\.(png|svg|jpe?g|gif)$/,
+        include: /images/,
+        use: [
+          {
+            loader: "file-loader",
+            options: {
+              name: "[name].[ext]",
+              outputPath: "images/"
+            },
+          },
+          {
+            loader: "image-webpack-loader",
+            options: {
+              query: {
+                mozjpeg: {
+                  progressive: true,
+                },
+                gifsicle: {
+                  interlaced: true,
+                },
+                optipng: {
+                  optimizationLevel: 7,
+                },
+              },
+            },
+          },
+        ],
+      },
+    ],
+  },
+  resolve: {
+    extensions: [".tsx", ".ts", ".js", ".html"],
+  },
+  output: {
+    path: path.resolve(__dirname, "..", "compendium_v2", "static"),
+    filename: "survey-bundle.js",
+  },
+  devServer: {
+    static: path.resolve(__dirname, "..", "survey-frontend", "static"),
+    compress: true,
+    port: 4001,
+    // Allow SPA urls to work with dev-server
+    historyApiFallback: true,
+    proxy: {
+      "/api": "http://127.0.0.1:5000",
+      "/login": "http://127.0.0.1:5000",
+      "/logout": "http://127.0.0.1:5000",
+      "/authorize": "http://127.0.0.1:5000",
+    },
+  },
+  plugins: [
+    new ForkTsCheckerWebpackPlugin({
+      async: false,
+    }),
+  ],
+};
+
+export default config;
diff --git a/test/conftest.py b/test/conftest.py
index 1374fe29bac869138c83fdbdc2a3cff95a66636d..8fdd0c86cec496325f0f7e6b8bb5a0b3420ba215 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -17,7 +17,8 @@ def _test_data_csv(filename):
 def dummy_config():
     yield {
         'SQLALCHEMY_DATABASE_URI': 'sqlite://',
-        'SURVEY_DATABASE_URI': 'sqlite:///'
+        'SURVEY_DATABASE_URI': 'sqlite:///',
+        'SECRET_KEY': 'testsecret123'
     }
 
 
diff --git a/test/test_conversion.py b/test/test_conversion.py
new file mode 100644
index 0000000000000000000000000000000000000000..73453cf88ad1c5f8bcca067cd4d489bf0ab2a30c
--- /dev/null
+++ b/test/test_conversion.py
@@ -0,0 +1,68 @@
+from sqlalchemy import select
+
+from compendium_v2.db import db
+from compendium_v2.db.model import NREN
+from compendium_v2.db.survey_model import Survey, SurveyResponse
+from compendium_v2.conversion.conversion import _cli, convert_answers
+
+
+def mock_convert_answers(_):
+    return {"data": {}}
+
+
+def mock_query_nren(_):
+    return {16455: "answer1"}
+
+
+def test_queries(app_with_survey_db, mocker):
+
+    with app_with_survey_db.app_context():
+        db.session.add(NREN(name='Restena', country='country'))
+        db.session.commit()
+
+    mocker.patch('compendium_v2.conversion.conversion.convert_answers', mock_convert_answers)
+    mocker.patch('compendium_v2.conversion.conversion.query_nren', mock_query_nren)
+
+    _cli(app_with_survey_db)
+
+    with app_with_survey_db.app_context():
+        surveys = db.session.scalars(select(Survey)).all()
+        assert len(surveys) == 1
+        assert surveys[0].year == 2022
+
+        responses = db.session.scalars(select(SurveyResponse).order_by(SurveyResponse.nren_id)).all()
+        assert len(responses) == 1
+        assert responses[0].answers == {"data": {}}
+
+
+def test_conversion():
+
+    answers = {
+        16455: '"full nren name"',
+        16453: '["ec project1", "ec project2"]',
+        16632: '"3434"',
+        16432: '"suborg name 3"',
+        16410: '"We use a combination of flat fee and usage-based fee"',
+        16474: '"Yes"',
+        16476: '"No"',
+        16491: '["Universities", "Further education"]',
+        16492: '["Research institutes", "Universities"]'
+    }
+
+    converted_answers = convert_answers(answers)
+
+    assert converted_answers == {
+        'data': {
+            'charging_mechanism': 'combination',
+            'suborganization_details': [{}, {}, {}, {'suborganization_name': 'suborg name 3'}],
+            'ec_project_names': [{'ec_project_name': 'ec project1'}, {'ec_project_name': 'ec project2'}],
+            'full_name_english': 'full nren name',
+            'policies': {'connectivity_policy': {'available': ['yes']}, 'acceptable_use_policy': {}},
+            'traffic_load': {'iros': {'peak_to_institutions_from_network': '3434'}},
+            'service_matrix': {
+                'universities': {'service_types': ['security', 'isp_support']},
+                'further_education': {'service_types': ['security']},
+                'institutes': {'service_types': ['isp_support']}
+            }
+        }
+    }
diff --git a/tox.ini b/tox.ini
index 8777ca2a1b15f1c6b00e53932543a55ff88126b9..d05a97cb91b86221594492e0b047e2f2eb972178 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,10 +1,13 @@
 [tox]
-envlist = py39
+envlist = py311
 
 [flake8]
-exclude = venv,.tox,webapp
+exclude = venv,.tox,compendium-frontend,survey-frontend
 max-line-length = 120
 
+[mypy]
+exclude = .tox
+
 [testenv]
 deps =
     coverage