From 51508860f5f83ee3fe0fad2119eed2cad8feb860 Mon Sep 17 00:00:00 2001 From: Stackbit Date: Sat, 2 May 2020 04:42:12 +0000 Subject: [PATCH] initial commit by Stackbit --- .gitignore | 69 + LICENSE.md | 40 + README.md | 34 + README.theme.md | 240 + gatsby-browser.js | 17 + gatsby-config.js | 42 + gatsby-node.js | 5 + gatsby-ssr.js | 25 + netlify.toml | 3 + package-lock.json | 14509 ++++++++++++++++ package.json | 35 + .../gatsby-node.js | 42 + .../package.json | 1 + plugins/gatsby-remark-component/index.js | 37 + plugins/gatsby-remark-component/package.json | 1 + .../gatsby-remark-page-creator/gatsby-node.js | 148 + .../gatsby-remark-page-creator/package.json | 1 + plugins/gatsby-source-data/gatsby-node.js | 88 + plugins/gatsby-source-data/package.json | 1 + src/components/ContentBlock.js | 35 + src/components/CtaBlock.js | 34 + src/components/CtaButtons.js | 16 + src/components/DocsMenu.js | 47 + src/components/DocsSubmenu.js | 18 + src/components/FeaturesBlock.js | 47 + src/components/Footer.js | 28 + src/components/Header.js | 42 + src/components/HeroBlock.js | 33 + src/components/Layout.js | 31 + src/components/Menu.js | 25 + src/components/Social.js | 19 + src/components/index.js | 42 + src/html.js | 33 + src/sass/imports/_animations.scss | 20 + src/sass/imports/_blocks.scss | 417 + src/sass/imports/_content.scss | 243 + src/sass/imports/_docs.scss | 341 + src/sass/imports/_footer.scss | 74 + src/sass/imports/_functions.scss | 69 + src/sass/imports/_general.scss | 452 + src/sass/imports/_header.scss | 324 + src/sass/imports/_icons.scss | 183 + src/sass/imports/_prism.scss | 174 + src/sass/imports/_reset.scss | 211 + src/sass/imports/_structure.scss | 30 + src/sass/main.scss | 37 + src/templates/blog.js | 52 + src/templates/docs.js | 52 + src/templates/home.js | 19 + src/templates/overview.js | 56 + src/templates/page.js | 36 + src/templates/post.js | 40 + src/templates/showcase.js | 46 + src/utils/classNames.js | 7 + src/utils/cycler.js | 7 + src/utils/getPage.js | 7 + src/utils/getPages.js | 7 + src/utils/htmlToReact.js | 26 + src/utils/index.js | 10 + src/utils/link.js | 33 + src/utils/markdownify.js | 9 + src/utils/safePrefix.js | 9 + src/utils/toStyleObj.js | 17 + src/utils/toUrl.js | 14 + ssg-build.sh | 2 + stackbit-build.sh | 17 + stackbit.yaml | 639 + static/assets/css/brands.min.css | 5 + static/assets/css/fontawesome.min.css | 5 + static/assets/js/main.js | 215 + static/assets/js/plugins.js | 22 + static/assets/js/prism.js | 9 + static/assets/webfonts/fa-brands-400.eot | Bin 0 -> 129648 bytes static/assets/webfonts/fa-brands-400.svg | 3452 ++++ static/assets/webfonts/fa-brands-400.ttf | Bin 0 -> 129344 bytes static/assets/webfonts/fa-brands-400.woff | Bin 0 -> 87544 bytes static/assets/webfonts/fa-brands-400.woff2 | Bin 0 -> 74656 bytes static/images/1.jpg | Bin 0 -> 115021 bytes static/images/10.jpg | Bin 0 -> 83004 bytes static/images/2.jpg | Bin 0 -> 143932 bytes static/images/3.jpg | Bin 0 -> 296262 bytes static/images/4.jpg | Bin 0 -> 240094 bytes static/images/5.jpg | Bin 0 -> 79159 bytes static/images/6.jpg | Bin 0 -> 26989 bytes static/images/7.jpg | Bin 0 -> 53322 bytes static/images/8.jpg | Bin 0 -> 49091 bytes static/images/9.jpg | Bin 0 -> 51341 bytes static/images/avatar.png | Bin 0 -> 42244 bytes static/images/logo.svg | 13 + studio-build.js | 31 + studio/config/@sanity/data-aspects.json | 3 + studio/config/@sanity/default-layout.json | 6 + studio/config/@sanity/default-login.json | 7 + studio/deskStructure.js | 21 + studio/dist/index.html | 72 + ...ne@2x-51d0dee815f142768f0f7c8527572703.png | Bin 0 -> 333 bytes studio/dist/static/css/main.css | 1 + studio/dist/static/favicon.ico | Bin 0 -> 1150 bytes studio/dist/static/js/app.bundle.js | 1669 ++ studio/dist/static/js/vendor.bundle.js | 1 + studio/package.json | 26 + studio/sanity.json | 29 + studio/schemas/action.js | 38 + studio/schemas/author.js | 52 + studio/schemas/blog.js | 73 + studio/schemas/config.js | 90 + studio/schemas/contentblock.js | 89 + studio/schemas/ctablock.js | 82 + studio/schemas/doc_sections.js | 54 + studio/schemas/docs.js | 79 + studio/schemas/featuresblock.js | 113 + studio/schemas/footer.js | 87 + studio/schemas/header.js | 63 + studio/schemas/heroblock.js | 89 + studio/schemas/home.js | 80 + studio/schemas/overview.js | 88 + studio/schemas/page.js | 79 + studio/schemas/page_menu_item.js | 46 + studio/schemas/page_menus.js | 34 + studio/schemas/palette.js | 46 + studio/schemas/post.js | 99 + studio/schemas/schema.js | 64 + studio/schemas/showcase.js | 120 + studio/schemas/site_menu_item.js | 53 + studio/schemas/site_menus.js | 58 + studio/schemas/social.js | 79 + studio/static/favicon.ico | Bin 0 -> 1150 bytes 127 files changed, 26810 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 README.theme.md create mode 100644 gatsby-browser.js create mode 100644 gatsby-config.js create mode 100644 gatsby-node.js create mode 100644 gatsby-ssr.js create mode 100644 netlify.toml create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 plugins/gatsby-plugin-stackbit-static-sass/gatsby-node.js create mode 100644 plugins/gatsby-plugin-stackbit-static-sass/package.json create mode 100644 plugins/gatsby-remark-component/index.js create mode 100644 plugins/gatsby-remark-component/package.json create mode 100644 plugins/gatsby-remark-page-creator/gatsby-node.js create mode 100644 plugins/gatsby-remark-page-creator/package.json create mode 100644 plugins/gatsby-source-data/gatsby-node.js create mode 100644 plugins/gatsby-source-data/package.json create mode 100644 src/components/ContentBlock.js create mode 100644 src/components/CtaBlock.js create mode 100644 src/components/CtaButtons.js create mode 100644 src/components/DocsMenu.js create mode 100644 src/components/DocsSubmenu.js create mode 100644 src/components/FeaturesBlock.js create mode 100644 src/components/Footer.js create mode 100644 src/components/Header.js create mode 100644 src/components/HeroBlock.js create mode 100644 src/components/Layout.js create mode 100644 src/components/Menu.js create mode 100644 src/components/Social.js create mode 100644 src/components/index.js create mode 100644 src/html.js create mode 100755 src/sass/imports/_animations.scss create mode 100755 src/sass/imports/_blocks.scss create mode 100755 src/sass/imports/_content.scss create mode 100755 src/sass/imports/_docs.scss create mode 100755 src/sass/imports/_footer.scss create mode 100755 src/sass/imports/_functions.scss create mode 100755 src/sass/imports/_general.scss create mode 100755 src/sass/imports/_header.scss create mode 100755 src/sass/imports/_icons.scss create mode 100755 src/sass/imports/_prism.scss create mode 100755 src/sass/imports/_reset.scss create mode 100755 src/sass/imports/_structure.scss create mode 100644 src/sass/main.scss create mode 100644 src/templates/blog.js create mode 100644 src/templates/docs.js create mode 100644 src/templates/home.js create mode 100644 src/templates/overview.js create mode 100644 src/templates/page.js create mode 100644 src/templates/post.js create mode 100644 src/templates/showcase.js create mode 100644 src/utils/classNames.js create mode 100644 src/utils/cycler.js create mode 100644 src/utils/getPage.js create mode 100644 src/utils/getPages.js create mode 100644 src/utils/htmlToReact.js create mode 100644 src/utils/index.js create mode 100644 src/utils/link.js create mode 100644 src/utils/markdownify.js create mode 100644 src/utils/safePrefix.js create mode 100644 src/utils/toStyleObj.js create mode 100644 src/utils/toUrl.js create mode 100755 ssg-build.sh create mode 100755 stackbit-build.sh create mode 100644 stackbit.yaml create mode 100755 static/assets/css/brands.min.css create mode 100755 static/assets/css/fontawesome.min.css create mode 100755 static/assets/js/main.js create mode 100755 static/assets/js/plugins.js create mode 100755 static/assets/js/prism.js create mode 100755 static/assets/webfonts/fa-brands-400.eot create mode 100755 static/assets/webfonts/fa-brands-400.svg create mode 100755 static/assets/webfonts/fa-brands-400.ttf create mode 100755 static/assets/webfonts/fa-brands-400.woff create mode 100755 static/assets/webfonts/fa-brands-400.woff2 create mode 100755 static/images/1.jpg create mode 100755 static/images/10.jpg create mode 100755 static/images/2.jpg create mode 100755 static/images/3.jpg create mode 100755 static/images/4.jpg create mode 100755 static/images/5.jpg create mode 100755 static/images/6.jpg create mode 100755 static/images/7.jpg create mode 100755 static/images/8.jpg create mode 100755 static/images/9.jpg create mode 100755 static/images/avatar.png create mode 100755 static/images/logo.svg create mode 100644 studio-build.js create mode 100644 studio/config/@sanity/data-aspects.json create mode 100644 studio/config/@sanity/default-layout.json create mode 100644 studio/config/@sanity/default-login.json create mode 100644 studio/deskStructure.js create mode 100644 studio/dist/index.html create mode 100644 studio/dist/static/assets/progressive-disclosure-line@2x-51d0dee815f142768f0f7c8527572703.png create mode 100644 studio/dist/static/css/main.css create mode 100644 studio/dist/static/favicon.ico create mode 100644 studio/dist/static/js/app.bundle.js create mode 100644 studio/dist/static/js/vendor.bundle.js create mode 100644 studio/package.json create mode 100644 studio/sanity.json create mode 100644 studio/schemas/action.js create mode 100644 studio/schemas/author.js create mode 100644 studio/schemas/blog.js create mode 100644 studio/schemas/config.js create mode 100644 studio/schemas/contentblock.js create mode 100644 studio/schemas/ctablock.js create mode 100644 studio/schemas/doc_sections.js create mode 100644 studio/schemas/docs.js create mode 100644 studio/schemas/featuresblock.js create mode 100644 studio/schemas/footer.js create mode 100644 studio/schemas/header.js create mode 100644 studio/schemas/heroblock.js create mode 100644 studio/schemas/home.js create mode 100644 studio/schemas/overview.js create mode 100644 studio/schemas/page.js create mode 100644 studio/schemas/page_menu_item.js create mode 100644 studio/schemas/page_menus.js create mode 100644 studio/schemas/palette.js create mode 100644 studio/schemas/post.js create mode 100644 studio/schemas/schema.js create mode 100644 studio/schemas/showcase.js create mode 100644 studio/schemas/site_menu_item.js create mode 100644 studio/schemas/site_menus.js create mode 100644 studio/schemas/social.js create mode 100644 studio/static/favicon.ico diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e86fe25 --- /dev/null +++ b/.gitignore @@ -0,0 +1,69 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Typescript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# dotenv environment variables file +.env + +# gatsby files +.cache/ +public + +# Mac files +.DS_Store + +# Yarn +yarn-error.log +.pnp/ +.pnp.js +# Yarn Integrity file +.yarn-integrity diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..8ff8459 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,40 @@ +# License Agreement +##### Version 1.02 (02/14/2019) + +This Single Project License Agreement (**“Agreement”**) is between you and Stackbit Inc., a Delaware corporation (“Stackbit”) and governs Your right to use the website project including website theme and other media content (the "Project") obtained from or generated using our services available at www.stackbit.com (the "Services"). By clicking on the “Create Account” button (or any similar button) that is presented to you at the time of sign-up or by using the Site to generate a Project, you indicate that you agree to the terms and conditions of this Agreement. If You are accepting this Agreement on behalf of Your employer or other organization, You are agreeing to these terms for the entity and You represent and warrant that You have authority to bind such entity (party bound to this Agreement is referred to as “You”). + +1. **Definitions**. The capitalized terms shall have the meaning given in the relevant paragraph where such term is defined. In addition, the following terms shall have the meaning set forth below. + + **“Client"** means the person or entity whose website you are designing if you are a web developer, web designer, agency or a marketing agent. + + **“Theme”** means the website theme made available on the Site and generated using the Services, in HTML/JS/CSS electronic source code format together with any related developer documentation. + + **“Project”** means any work that includes a Theme or that is derived from or is a ‘derivative work’ of a Theme, as such terms are used under the United States Copyright Act of 1976, as amended. + +2. **License**. Subject to the terms and conditions of this Agreement, Stackbit hereby grants you a perpetual, non-exclusive, non-transferable, non-sublicensable limited license to use, modify, and display the Theme only as incorporated in a single Project as set forth in Section 3 below. All rights not granted herein are expressly reserved by Stackbit. + +3. **Permitted Use** + + You may use the Theme as it is incorporated into a single Project, either your own Project or the Project of your Client, and You may make modifications to the Theme necessary to fit the requirements of the Project provided that the Project and the use of the Project by You or the Client remains subject to this Agreement. You will own the Project you create, but Stackbit retains all right, title and interest in and to the Theme and other media content that are incorporated in your Project. You must retain and include all copyright notices and the terms of this License without modification in the files of the Project. You and Client must use the Project in compliance with all applicable federal, state and local laws, rules and regulations. + +4. **Prohibited Uses** + + You may not, and shall not permit anyone else to, use the Project or do anything with the Project that is not expressly permitted by this Agreement, including, but not limited to, the following strictly prohibited uses: + + 1. resell, sublicense or other transfer the Project or the Theme or other components thereof or your rights to use the Theme as set forth herein or otherwise make available or allows a person to access or reproduce the Theme as an electronic file, except in connection with the single Project and subject to Section 3 above; + + 2. Use, reproduce or display the Theme or Project in any manner that competitive with the Services or our business (e.g. inclusion as part of an online website builder service, or distribution outside the Services such as on a Theme/themes marketplace or a "freebies" website); + + 3. Use, reproduce or display of the Theme in a fashion that we consider as, or under applicable law is considered, pornographic, obscene, immoral, infringing, defamatory or libelous; and + + 4. Use or display of the Theme in an electronic format that enables it to be downloaded or distributed in any file sharing arrangement. + +5. **Ownership**. Stackbit shall retain and own all right, title and interest, including but not limited to copyright, patent, trade secret and all other intellectual property rights, in and to the Themes. You shall own all right, title and interest, including but not limited to copyright, patent, trade secret and all other intellectual property rights, in and to the Project, subject to Stackbit’s ownership of the Theme and the terms of this license agreement. + +6. **Term and Termination**. This Agreement shall commence on the deployment of a Project through Stackbit’s Services to a repository (such as for example to Github) and continue indefinitely until it is terminated in accordance with Section 6. Stackbit may terminate this Agreement if You breach the Agreement and such breach remains uncured for 15 days following Your receipt of written notice from Stackbit. You may terminate this Agreement for convenience and without cause at any time immediately upon written notice to Stackbit. Upon termination of this Agreement for any reason, You and your Client shall a) cease all use of the Theme and the Project b) destroy or delete all copies and archives of the Theme, Projects, and accompanying materials, and c) if requested, confirm to Stackbit in writing that you have complied with these requirements. Any provisions of this Agreement which expressly or by implication are intended to survive its termination will survive and continue to bind the parties. + +7. **Warranty and Disclaimer**. THE SERVICES, SITE, THEME, PROJECT AND ALL CONTENT AVAILABLE THROUGH THE SITE ARE OFFERED “AS IS” AND WITHOUT WARRANTY, AND STACKBIT MAKES NO REPRESENTATION OR WARRANTY OF ANY KIND, WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, AND SPECIFICALLY DISCLAIMS ALL WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE. + +8. **Limitation of Liability**. Stackbit’s aggregate liability for all claims, losses, liabilities or damages in connection with this Services, Theme, Project or this Agreement or its subject matter, whether as a result of breach of contract, tort (including negligence) or otherwise, regardless of the theory of liability asserted, is limited to no more than the total amount of fees paid to Stackbit under this Agreement, or $100, whichever is greater. In addition, Stackbit will not be liable in any event for lost profits, consequential, indirect, punitive, exemplary or special damages. + +9. **General**. This Agreement shall be governed by the law of the State of California, without reference to conflict of laws principles. The United Nations Convention on contracts for the International Sales of Goods shall not apply. This Agreement, together with the Stackbit Terms of Service at www.stackbit.com/tos/ represents the entire agreement between the parties with regard to the subject matter thereof and supersedes any prior understandings, proposals or agreements concerning the same subject matter. If any provision of this Agreement is found to be unenforceable or invalid, the remainder of such provision shall be enforced to the maximum extent permitted by law. No amendment or modification of this Agreement shall be valid or binding unless in a writing signed by representatives of both parties. You may not assign this Agreement without Stackbit’s prior written consent. Any attempted assignment in violation of this shall be null and void. This Agreement shall be binding upon and inure to the benefit of the parties hereto and their respective permitted successors and assigns. Any notice required or permitted to be given by either party under this Agreement shall be in writing and may be sent via an active Services account dashboard or shall be personally delivered or sent by commercial courier service, or by first class mail (certified or registered if available), or by telecopy confirmed by first class mail (registered or certified if available), to the other party at its address set forth below, or such new address as may from time-to-time be supplied hereunder by the parties hereto. diff --git a/README.md b/README.md new file mode 100644 index 0000000..8ff68f9 --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# Stackbit Libris Theme + +This site was generated by [www.stackbit.com](https://www.stackbit.com), v0.2.90. + +Stackbit Libris Theme original README is located [here](./README.theme.md). + +The content of this site is managed by Sanity.io. Visit https://team-page-cf774.sanity.studio/ to manage site content + +# Running Your Site Locally + +1. Install [Node.js and npm](https://nodejs.org/en/) + +1. Install npm dependencies: + + npm install + +1. get "netlify-api-key" from project menu in [Stackbit dashboard](https://app.stackbit.com/dashboard) + +1. run the following command to assign this key to `STACKBIT_API_KEY` environment variable: + + export STACKBIT_API_KEY={stackbit_netlify_api_key} + +1. run the following command to fetch site contents from Sanity: + + npx @stackbit/stackbit-pull --stackbit-pull-api-url=https://api.stackbit.com/pull/5eacf774d3d62d0019eda51e + +1. [Optional] Running Sanity Studio locally: install sanity-cli `npm install -g @sanity/cli`, navigate to the `/studio` directory, and run `sanity install` and `sanity start`. +You may be required to login with the Sanity CLI. + +1. Starts a development server + + npm run develop + +1. Browse to [http://localhost:8000/](http://localhost:8000/) diff --git a/README.theme.md b/README.theme.md new file mode 100644 index 0000000..ff6df78 --- /dev/null +++ b/README.theme.md @@ -0,0 +1,240 @@ +# Libris + +A documentation theme for Stackbit. [Live Demo](https://themes.stackbit.com/demos/libris/blue) + +[![Create with Stackbit](https://assets.stackbit.com/badge/create-with-stackbit.svg)](https://app.stackbit.com/create?theme=https://github.com/stackbithq/stackbit-theme-libris) + +### Turn themes into CMS-powered websites + +[Stackbit](https://www.stackbit.com/) provisions your theme's content model with a growing selection of headless CMS and pulls the content for you in the format your static site generator expects it. This is powered by a single config file, [stackbit.yaml](https://docs.stackbit.com/uniform/stackbit-yaml/), which defines a [Uniform theme model](https://docs.stackbit.com/uniform/) and enables integration with CMS like Contentful, DatoCMS, Forestry, NetlifyCMS, etc. + +### One theme codebase converts to multiple Static Site Generators + +This theme in particular is written in [Unibit](https://docs.stackbit.com/unibit/), a superset of static site generators. Unibit's powerful transpiling engine enables you to write once and stay SSG agnostic. Themes will automatically work with new generators as they are added and can currently convert to Jekyll, Hugo & Gatsby. + +## Quickstart + +### Unibit CLI + +Develop locally using the Unibit CLI. + +``` +npm install -g @stackbit/unibit +``` + +Start the local development server. + +``` +unibit develop +``` + +Compile a production build into the `public` folder. + +``` +unibit build +``` + +### CodeSandbox + +Develop this theme in the browser using CodeSandbox. + +[Fork in CodeSandbox](https://codesandbox.io/s/github/stackbithq/stackbit-theme-libris) + +# Theme Documentation + +### Editing & adding docs pages + +All documentation pages must be located inside the `content/docs` folder. You can create folders inside this folder 1 level deep. For example: + +- Documentation root page: `docs/index.md` +- Parent section pages: `docs//index.md` +- Child section pages: `docs//.md` + +Documentation pages should contain the following front matter. `title` and `template` are required. + +``` +--- +- `title`: apart from defining the page title, docs layout use this field to + label navigation menu items. +- `weight`: defines the order of the child section page. This field is ignored + for parent section pages. +- `template`: docs +- `excerpt`: Can be defined on a parent section pages to render the description + of the section in the Overview page (`overview.html`). This field is ignored + for child section pages. +--- +``` + +All page inside the `content/docs` folder should use the `docs` layout (`templates/docs.html`). +This layout is responsible for rendering the documentation navigation menu and +uses several properties to control its appearance: + +### Docs menu + +For sections to appear in the docs sidebar menu they must be defined in `doc_sections.yml` located +inside the `data` folder. The order of section in this list will define the appearance order in navigation menu. + +`doc_sections.yml`: + +```yaml +root_folder: /docs/ +sections: + - about + - getting-started + - ui-components + - manage-content + - tools + - faq + - community +``` + +### Example + +Here is an example to a folder structure, several documentation pages and +documentation sections: + +``` +. +├── data +│ ├── doc_sections.yml +│ └── ... +├── content +│ ├── docs +│ │ ├── getting-started +│ │ │ ├── index.md [section parent page] +│ │ │ ├── installation.md [section child page] +│ │ │ └── quick-start.md [section child page] +│ │ ├── guides +│ │ │ ├── index.md [section parent page] +│ │ │ ├── features.md [section child page] +│ │ │ └── overview.md [section child page] +│ │ ├── faq +│ │ │ └── index.md [section parent page] +│ │ └── index.md [documentation root page] +│ └── ... +└── ... +``` + +`content/docs/guides/overview.md`: + + --- + title: Overview + weight: 1 # position guides/overview first + template: docs + --- + +`content/docs/guides/features.md`: + + --- + title: Features + weight: 2 # position guides/features second + template: docs + --- + +`data/doc_sections.yml`: + +```yaml +root_folder: /docs/ +sections: + - getting-started + - guides + - faq +``` + +![Navigation Example](docs/libris-navigation-example.png "Navigation Example") + + +### Callouts + +To add a callout to your documentation, simply use the following html markup: + +``` +
+ Important: + This is the "Important" callout block of text. It indicates a warning or caution. + Use it for an important message. +
+``` + +``` +
+ Note: + This is the "Note" callout block of text. It signifies a general note. +
+``` + +### Syntax Highlighter + +To enable syntax highlighting in your code blocks, add a language identifier. For example, to syntax highlight JavaScript code, specify `javascript` next to the tick marks before the fenced code block: + +```` +```javascript +if (condition) { + code to run if condition is true +} else { + run some other code instead +} +``` +```` + +## Editing the Homepage + +The homepage content uses `content/index.md`. You can edit all of the homepage sections by editing this files front matter. + +## Main Navigation + +The items of the main menu located at the top can be defined either inside the page front matter or inside the `config.yml` file. + +To add a page menu item, you should define the `menus` parametter in the front matter of the page. For instance: + + --- + title: Welcome to Libris + menus: + main: + weight: 2 + title: Docs + template: docs + --- + +To add a global menu item, you should define it inside the root `menus` field inside `config.yml`. For instance: + + menus: + main: + - identifier: github + title: GitHub + url: "https://github.com/" + weight: 6 + +## Additional Templates + +Besides the usual templates (`blog`, `page`, `post`) and documentation templatee mentioned above (`docs`), there are two +additional templates that can be used for pages: + +- `overview` - used to list all the documentation sections in a neat grid. +- `showcase` - used to showcase the users of your product. + +## Social Links + +To display social icons in the footer, update the `social.json` file located in the `data` folder. You can use any icon supported by [Font Awesome](https://fontawesome.com/icons?d=gallery&s=brands) and just need to specify the appropriate Font Awesome class name as the `icon` value. + +## Color palettes + +Libris supports the following color palettes: + +- blue (default) +- green +- navy +- violet + +To change the color palette, update the `palette` variable in config.yml. + +## Credits + +- [Lato](https://fonts.google.com/specimen/Lato). Licensed under the [Open Font License](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL_web). +- [Font Awesome icons](https://fontawesome.com/). Licensed under the [Font Awesome Free License](https://fontawesome.com/license/free). +- [Unsplash images](https://unsplash.com/). Licensed under the (Unsplash License)[https://unsplash.com/license]. +- [Prism syntax highlighter](https://prismjs.com/). Licensed under the (MIT License)[https://opensource.org/licenses/MIT]. +- [Reframe.js](https://github.com/dollarshaveclub/reframe.js). Licensed under the (MIT License)[https://opensource.org/licenses/MIT]. +- [Smooth Scroll](http://github.com/cferdinandi/smooth-scroll). Licensed under the (MIT License)[https://opensource.org/licenses/MIT]. +- [Gumshoe](https://github.com/cferdinandi/gumshoe). Licensed under the (MIT License)[https://opensource.org/licenses/MIT]. +- [clipboard.js](https://zenorocha.github.io/clipboard.js). Licensed under the (MIT License)[https://opensource.org/licenses/MIT]. diff --git a/gatsby-browser.js b/gatsby-browser.js new file mode 100644 index 0000000..f435a67 --- /dev/null +++ b/gatsby-browser.js @@ -0,0 +1,17 @@ +/** + * Implement Gatsby's Browser APIs in this file. + * + * See: https://www.gatsbyjs.org/docs/browser-apis/ + */ + +exports.onInitialClientRender = () => { + if ('onGatsbyInitialClientRender' in window && typeof window.onGatsbyInitialClientRender === 'function') { + window.onGatsbyInitialClientRender(); + } +}; + +exports.onRouteUpdate = () => { + if ('onGatsbyRouteUpdate' in window && typeof window.onGatsbyRouteUpdate === 'function') { + window.onGatsbyRouteUpdate(); + } +}; diff --git a/gatsby-config.js b/gatsby-config.js new file mode 100644 index 0000000..de3209a --- /dev/null +++ b/gatsby-config.js @@ -0,0 +1,42 @@ +module.exports = { + pathPrefix: '/', + siteMetadata: require('./site-metadata.json'), + plugins: [ + `gatsby-plugin-react-helmet`, + `gatsby-source-data`, + { + resolve: `gatsby-source-filesystem`, + options: { + name: `pages`, + path: `${__dirname}/src/pages`, + }, + }, + { + resolve: `gatsby-plugin-stackbit-static-sass`, + options: { + inputFile: `${__dirname}/src/sass/main.scss`, + outputFile: `${__dirname}/public/assets/css/main.css` + }, + }, + { + resolve: `gatsby-transformer-remark`, + options: { + plugins: [`gatsby-remark-component`] + } + }, + { + resolve: `gatsby-remark-page-creator`, + options: { + + } + }, + { + resolve: `@stackbit/gatsby-plugin-menus`, + options: { + sourceUrlPath: `fields.url`, + pageContextProperty: `menus`, + menus: require('./src/data/menus.json'), + } + } + ] +}; diff --git a/gatsby-node.js b/gatsby-node.js new file mode 100644 index 0000000..a1bfac0 --- /dev/null +++ b/gatsby-node.js @@ -0,0 +1,5 @@ +/** + * Implement Gatsby's Node APIs in this file. + * + * See: https://www.gatsbyjs.org/docs/node-apis/ + */ diff --git a/gatsby-ssr.js b/gatsby-ssr.js new file mode 100644 index 0000000..3ddf186 --- /dev/null +++ b/gatsby-ssr.js @@ -0,0 +1,25 @@ +/** + * Implement Gatsby's SSR (Server Side Rendering) APIs in this file. + * + * See: https://www.gatsbyjs.org/docs/ssr-apis/ + */ + +const React = require("react"); +const safePrefix = require("./src/utils/safePrefix").default; + +exports.onRenderBody = function({ setHeadComponents, setPostBodyComponents }) { + + setHeadComponents([ + + ]); + + setPostBodyComponents([ + + diff --git a/studio/dist/static/assets/progressive-disclosure-line@2x-51d0dee815f142768f0f7c8527572703.png b/studio/dist/static/assets/progressive-disclosure-line@2x-51d0dee815f142768f0f7c8527572703.png new file mode 100644 index 0000000000000000000000000000000000000000..caec8ba2b0da5396973c499064bf0519a1260c27 GIT binary patch literal 333 zcmV-T0kZyyP)({KaAw-j{OEDh;eGZleb{YMC~6~(4H7T>mB8NoZm z%N;0zB}8X-+3|3>-Ewg?ma!uj^OO1Q5f-@VG4>*}z!DE4XDz9g)T7=@xVp$oWt?5a z8V!6seU-4^(~KoJvyi>N-O6HHpIH)8k}{o>1)grPnYtGXeRbW18(abm-9qvt;H~!9 zRZ!cwkUYE6q!;EnEIsSrW(z`&0$2*8*1BhuZI@;;&taP=q-7+YQ!2tn7uk&5^GoIW f|0(@1{+8l9Qjvdjf;(%N00000NkvXXu0mjffMJrf literal 0 HcmV?d00001 diff --git a/studio/dist/static/css/main.css b/studio/dist/static/css/main.css new file mode 100644 index 0000000..b5a51e8 --- /dev/null +++ b/studio/dist/static/css/main.css @@ -0,0 +1 @@ +/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}.positioning_absoluteCenter_1T-ll{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);text-align:center}.positioning_center-both_2pPzU{height:100%;width:100%}.positioning_flexCenter_117L1{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:100%;width:100%}@media (min-width:32em){.scrolling_lightScrollbars_OtYnK::-webkit-scrollbar{background-color:transparent;width:.25rem}.scrolling_lightScrollbars_OtYnK::-webkit-scrollbar *{background:transparent}.scrolling_lightScrollbars_OtYnK::-webkit-scrollbar-thumb:window-inactive{opacity:0}.scrolling_lightScrollbars_OtYnK:hover::-webkit-scrollbar{width:.25rem}.scrolling_lightScrollbars_OtYnK:hover::-webkit-scrollbar-thumb{background-color:#999;border-radius:.125rem;border:2px solid rgba(0,0,0,.02)}.scrolling_lightScrollbars_OtYnK:hover::-webkit-scrollbar-track{padding:2px;width:.25rem;background-color:transparent}.scrolling_lightScrollbars_OtYnK::-webkit-scrollbar-thumb{background-color:transparent}.scrolling_lightScrollbars_OtYnK::-webkit-scrollbar-thumb:hover{background-color:#000}}.scrolling_thinLightScrollbars_9qwDy::-webkit-scrollbar{width:3px}@media (min-width:32em){.scrolling_thinLightScrollbars_9qwDy::-webkit-scrollbar{width:3px}}.scrolling_thinLightScrollbars_9qwDy:hover::-webkit-scrollbar{width:3px}@media (min-width:32em){.scrolling_thinLightScrollbars_9qwDy:hover::-webkit-scrollbar{width:3px}}.scrolling_hideScrollbars_1ezuQ{-ms-overflow-style:-ms-autohiding-scrollbar;overflow-style:overflow}.scrolling_touchScroll_13M6t{-webkit-overflow-scrolling:touch}.scrolling_scrollAll_36sAx{overflow:auto}.scrolling_scrollX_1UGH8{overflow-y:hidden;overflow-x:auto}.scrolling_scrollY_S9M7c{overflow-y:auto;overflow-x:hidden}.FullscreenDialog_root_3ofgG{position:fixed;top:0;bottom:0;width:100%;height:100%;left:0;right:0;z-index:1060;overflow:auto;background-color:#f5f5f5;color:#303030}.FullscreenDialog_heading_29WJg{font-size:42px;font-size:2.625rem;margin:0 0 .5em;line-height:1em}.FullscreenDialog_content_1ekVe{color:#303030}.FullscreenDialog_info_2R-DW{color:#fff;background-color:rgba(32,151,172,.95)}.FullscreenDialog_info_2R-DW .FullscreenDialog_closeButton_3g3Yv{background-color:rgba(32,151,172,.3)}.FullscreenDialog_info_2R-DW .FullscreenDialog_content_1ekVe a{color:inherit}.FullscreenDialog_danger_2AVuF{color:#e66666}.FullscreenDialog_danger_2AVuF .FullscreenDialog_content_1ekVe a{color:inherit}.FullscreenDialog_success_2SNCf{color:#fff;background-color:rgba(24,180,102,.95)}.FullscreenDialog_success_2SNCf .FullscreenDialog_closeButton_3g3Yv{background-color:rgba(24,180,102,.3)}.FullscreenDialog_success_2SNCf .FullscreenDialog_content_1ekVe a{color:inherit}.FullscreenDialog_warning_1_ERu{color:#141000;background-color:rgba(255,186,0,.95)}.FullscreenDialog_warning_1_ERu .FullscreenDialog_closeButton_3g3Yv{background-color:rgba(255,186,0,.3)}.FullscreenDialog_warning_1_ERu .FullscreenDialog_content_1ekVe a{color:inherit}.FullscreenDialog_inner_JOtgg{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;max-height:100vh;max-width:100vw}.FullscreenDialog_padding_none_EHzh3{padding:0}.FullscreenDialog_padding_small_393G-{padding:.5rem}.FullscreenDialog_padding_medium_2aQa3{padding:1rem}.FullscreenDialog_padding_large_2y2cu{padding:1.5rem}.FullscreenDialog_isOpened_3YW-a{display:block}.FullscreenDialog_isClosed_2qX-b{display:none}.FullscreenDialog_actionsWrapper_2cmI1{padding-top:2em}.FullscreenDialog_closeButton_3g3Yv{display:block;position:fixed;z-index:1;top:16px;top:1rem;right:16px;right:1rem;font-size:3em;height:1em;width:1em;border:none;color:inherit;outline:none;background-color:transparent;padding:0;margin:0}.FullscreenDialog_centered_DXcKO .FullscreenDialog_closeButton_3g3Yv{position:absolute}.FullscreenDialog_default_24Eoi .FullscreenDialog_closeButton_3g3Yv{color:#303030}.FullscreenDialog_default_24Eoi .FullscreenDialog_closeButton_3g3Yv:hover{color:#000}@-webkit-keyframes DefaultButton_focused_1zzac{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes DefaultButton_focused_1zzac{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}to{-webkit-transform:scale(1);transform:scale(1)}}.DefaultButton_spacing_2dHOV{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.DefaultButton_spacing_2dHOV+.DefaultButton_spacing_2dHOV{margin-left:.5rem}.DefaultButton_borderRadius_3g_Bl{border-radius:4px}.DefaultButton_root_t6uj5{-webkit-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;margin:0;position:relative;outline:none;border:none;color:inherit;font-weight:inherit;font-size:1em;line-height:1.25;font-family:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:border-color .15s,background-color .15s,color .15s,opacity .15s,-webkit-box-shadow .1s;transition:border-color .15s,background-color .15s,color .15s,opacity .15s,-webkit-box-shadow .1s;transition:border-color .15s,background-color .15s,color .15s,opacity .15s,box-shadow .1s;transition:border-color .15s,background-color .15s,color .15s,opacity .15s,box-shadow .1s,-webkit-box-shadow .1s;text-decoration:none;padding:0}.DefaultButton_groupContainer_2wzhS .DefaultButton_borderRadius_3g_Bl:not(:last-child):not(:first-child){border-radius:0}.DefaultButton_groupContainer_2wzhS .DefaultButton_borderRadius_3g_Bl:not(:last-child){border-right:1px solid hsla(0,0%,96.1%,.3)}.DefaultButton_groupContainer_2wzhS .DefaultButton_inverted_29NxY:not(:last-child){border-right:none}.DefaultButton_groupContainer_2wzhS .DefaultButton_inverted_29NxY:not(:last-child):hover{border-right:1px solid}.DefaultButton_groupContainer_2wzhS .DefaultButton_inverted_29NxY:not(:last-child):hover+.DefaultButton_inverted_29NxY{border-left:none}.DefaultButton_groupContainer_2wzhS .DefaultButton_borderRadius_3g_Bl:first-child:not(:last-child){border-radius:4px 0 0 4px}.DefaultButton_groupContainer_2wzhS .DefaultButton_borderRadius_3g_Bl:last-child:not(:first-child){border-radius:0 4px 4px 0}.DefaultButton_groupContainer_2wzhS .DefaultButton_borderRadius_3g_Bl+.DefaultButton_borderRadius_3g_Bl{margin:0}.DefaultButton_root_t6uj5.DefaultButton_bleed_13_oX{padding:0!important;display:-webkit-box;display:-ms-flexbox;display:flex;border-radius:0;height:100%}.DefaultButton_root_t6uj5.DefaultButton_bleed_13_oX .DefaultButton_content_3vpzk{margin:0}span.DefaultButton_inner_BF58_{outline:none;display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:stretch;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:-webkit-fill-available;width:-moz-available;width:stretch}span.DefaultButton_content_3vpzk{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:-webkit-fill-available;width:-moz-available;width:stretch}.DefaultButton_icon_347n7{display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:.5rem}.DefaultButton_icon_347n7>svg{display:block}.DefaultButton_root_t6uj5:focus{-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.5);box-shadow:0 0 0 3px rgba(36,163,227,.5)}.DefaultButton_root_t6uj5:focus .DefaultButton_content_3vpzk{-webkit-animation-name:DefaultButton_focused_1zzac;animation-name:DefaultButton_focused_1zzac;-webkit-animation-duration:.2s;animation-duration:.2s}.DefaultButton_root_t6uj5:not(:focus):focus-within .DefaultButton_inner_BF58_:not(:focus){-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.5);box-shadow:0 0 0 3px rgba(36,163,227,.5);border-radius:4px}.DefaultButton_root_t6uj5:not(:focus):focus-within .DefaultButton_inner_BF58_:not(:focus) .DefaultButton_content_3vpzk{-webkit-animation-name:DefaultButton_focused_1zzac;animation-name:DefaultButton_focused_1zzac;-webkit-animation-duration:.2s;animation-duration:.2s}.DefaultButton_onlyIcon_3hbI1 .DefaultButton_content_3vpzk{margin:.6875em!important}.DefaultButton_onlyIcon_3hbI1 .DefaultButton_icon_347n7{margin-right:0}:not(.DefaultButton_onlyIcon_3hbI1) .DefaultButton_padding_default_1UqSX .DefaultButton_content_3vpzk{margin:.5625em .8125rem}:not(.DefaultButton_onlyIcon_3hbI1) .DefaultButton_padding_small_2-cQ7 .DefaultButton_content_3vpzk{margin:.7em}@media (min-width:32em){:not(.DefaultButton_onlyIcon_3hbI1) .DefaultButton_padding_small_2-cQ7 .DefaultButton_content_3vpzk{margin:.5em .6em}}.DefaultButton_default_2xxhx{background-color:#303030;color:#fff;border:1px solid #303030}.DefaultButton_default_2xxhx .DefaultButton_spinner_kUOGD{background-color:#303030}@media (hover:hover){.DefaultButton_default_2xxhx:not(.DefaultButton_disabled_25U87):hover{background-color:#3d3d3d}}.DefaultButton_default_2xxhx:not(.DefaultButton_disabled_25U87):active{background-color:#303030;outline:0}.DefaultButton_simple_cg-jF{border:1px solid transparent!important;background-color:transparent}.DefaultButton_simple_cg-jF .DefaultButton_spinner_kUOGD{background-color:#fff}@media (hover:hover){.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(48,48,48,.9);background-color:rgba(48,48,48,.05)}}.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):active{background-color:rgba(74,74,74,.1);outline:0}.DefaultButton_inverted_29NxY{color:#303030;border:1px solid rgba(48,48,48,.35);background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.DefaultButton_inverted_29NxY .DefaultButton_spinner_kUOGD{background-color:#fff}@media (hover:hover){.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):hover{border-color:rgba(48,48,48,.7);background-color:rgba(48,48,48,.05)}}.DefaultButton_inverted_29NxY.DefaultButton_root_t6uj5:focus{border-color:rgba(48,48,48,.7);-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.5);box-shadow:0 0 0 3px rgba(36,163,227,.5)}.DefaultButton_color__primary_2utqu{border-color:#156dff;background-color:#156dff;color:#fff}@media (hover:hover){.DefaultButton_color__primary_2utqu:not(.DefaultButton_disabled_25U87):hover{border-color:#156dff;background-color:#2e7eff}}.DefaultButton_color__primary_2utqu .DefaultButton_spinner_kUOGD{color:#fff;background-color:#156dff}.DefaultButton_color__primary_2utqu.DefaultButton_root_t6uj5:focus{border-color:#156dff}.DefaultButton_color__primary_2utqu.DefaultButton_inverted_29NxY{border-color:rgba(36,163,227,.5);background-color:transparent;color:#156dff}.DefaultButton_color__primary_2utqu.DefaultButton_inverted_29NxY.DefaultButton_root_t6uj5:focus{border-color:#24a3e3}.DefaultButton_color__primary_2utqu.DefaultButton_inverted_29NxY .DefaultButton_spinner_kUOGD{background-color:#fff;color:#156dff}@media (hover:hover){.DefaultButton_color__primary_2utqu.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):hover{border-color:#156dff;background-color:rgba(36,163,227,.05)}}.DefaultButton_color__primary_2utqu.DefaultButton_simple_cg-jF{background-color:transparent;color:#156dff}@media (hover:hover){.DefaultButton_color__primary_2utqu.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(36,163,227,.05);border-color:#24a3e3}}.DefaultButton_color__danger_3HNGA{border-color:#e0322d;background-color:#e0322d;color:#fff}.DefaultButton_color__danger_3HNGA .DefaultButton_spinner_kUOGD{background-color:#e0322d;color:#fff}.DefaultButton_color__danger_3HNGA.DefaultButton_root_t6uj5:focus{border-color:#e66666;-webkit-box-shadow:0 0 0 3px rgba(230,102,102,.5);box-shadow:0 0 0 3px rgba(230,102,102,.5)}@media (hover:hover){.DefaultButton_color__danger_3HNGA:not(.DefaultButton_disabled_25U87):hover{background-color:#e34a45}}.DefaultButton_color__danger_3HNGA.DefaultButton_inverted_29NxY{border-color:rgba(230,102,102,.5);background-color:transparent;color:#e0322d}.DefaultButton_color__danger_3HNGA.DefaultButton_inverted_29NxY .DefaultButton_spinner_kUOGD{background-color:#fff;color:#e0322d}@media (hover:hover){.DefaultButton_color__danger_3HNGA.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(230,102,102,.05);border-color:#e66666}}.DefaultButton_color__danger_3HNGA.DefaultButton_simple_cg-jF{background-color:transparent;color:#e0322d}@media (hover:hover){.DefaultButton_color__danger_3HNGA.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(230,102,102,.05)}}.DefaultButton_color__success_u_TJs{border-color:#308654;background-color:#308654;color:#fff}.DefaultButton_color__success_u_TJs .DefaultButton_spinner_kUOGD{background-color:#308654;color:#fff}.DefaultButton_color__success_u_TJs.DefaultButton_root_t6uj5:focus{border-color:#19b366;-webkit-box-shadow:0 0 0 3px rgba(24,180,102,.5);box-shadow:0 0 0 3px rgba(24,180,102,.5)}@media (hover:hover){.DefaultButton_color__success_u_TJs:not(.DefaultButton_disabled_25U87):hover{background-color:#379a60}}.DefaultButton_color__success_u_TJs.DefaultButton_inverted_29NxY{border-color:rgba(24,180,102,.5);background-color:transparent;color:#308654}.DefaultButton_color__success_u_TJs.DefaultButton_inverted_29NxY .DefaultButton_spinner_kUOGD{background-color:#fff;color:#308654}@media (hover:hover){.DefaultButton_color__success_u_TJs.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(24,180,102,.05);border-color:#308654}}.DefaultButton_color__success_u_TJs.DefaultButton_simple_cg-jF{background-color:transparent;color:#19b366}@media (hover:hover){.DefaultButton_color__success_u_TJs.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(24,180,102,.05)}}.DefaultButton_color__warning_2p0P5{border-color:#ffba00;background-color:#ffba00;color:#141000}.DefaultButton_color__warning_2p0P5 .DefaultButton_spinner_kUOGD{background-color:#ffba00;color:#141000}.DefaultButton_color__warning_2p0P5.DefaultButton_root_t6uj5:focus{border-color:#ffba00;-webkit-box-shadow:0 0 0 3px rgba(255,186,0,.5);box-shadow:0 0 0 3px rgba(255,186,0,.5)}@media (hover:hover){.DefaultButton_color__warning_2p0P5:not(.DefaultButton_disabled_25U87):hover{background-color:#ffc21a}}.DefaultButton_color__warning_2p0P5.DefaultButton_inverted_29NxY{border-color:rgba(255,186,0,.5);background-color:transparent;color:#ffba00}.DefaultButton_color__warning_2p0P5.DefaultButton_inverted_29NxY .DefaultButton_spinner_kUOGD{background-color:#fff;color:#ffba00}@media (hover:hover){.DefaultButton_color__warning_2p0P5.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(255,186,0,.05);border-color:#ffba00}}.DefaultButton_color__warning_2p0P5.DefaultButton_simple_cg-jF{background-color:transparent;color:#ffba00}@media (hover:hover){.DefaultButton_color__warning_2p0P5.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(255,186,0,.05)}}.DefaultButton_color__white_3mSBf{border-color:#fff;background-color:#fff;color:#303030}.DefaultButton_color__white_3mSBf.DefaultButton_root_t6uj5:focus{outline-color:#fff}.DefaultButton_color__white_3mSBf .DefaultButton_spinner_kUOGD{background-color:#fff}@media (hover:hover){.DefaultButton_color__white_3mSBf:not(.DefaultButton_disabled_25U87):hover{background-color:#f2f2f2}}.DefaultButton_color__white_3mSBf.DefaultButton_inverted_29NxY{border-color:#fff;background-color:transparent;color:#fff}.DefaultButton_color__white_3mSBf.DefaultButton_inverted_29NxY .DefaultButton_spinner_kUOGD{background-color:#fff;color:#303030}.DefaultButton_color__white_3mSBf.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):focus{outline-color:#fff;border-color:#fff}@media (hover:hover){.DefaultButton_color__white_3mSBf.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):hover{background-color:hsla(0,0%,100%,.4);color:#fff}}.DefaultButton_color__white_3mSBf.DefaultButton_simple_cg-jF{border-color:transparent;background-color:transparent;color:#fff}.DefaultButton_color__white_3mSBf.DefaultButton_simple_cg-jF .DefaultButton_spinner_kUOGD{background-color:#fff;color:#303030}@media (hover:hover){.DefaultButton_color__white_3mSBf.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):hover{background-color:hsla(0,0%,100%,.4);color:#fff}}.DefaultButton_spinner_kUOGD{position:absolute;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;top:0;left:0;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;opacity:.9}.DefaultButton_disabled_25U87{opacity:.2}@-webkit-keyframes Spinner_spin_2IovK{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes Spinner_spin_2IovK{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes Spinner_appear_7cQE_{0%{opacity:0}to{opacity:1}}@keyframes Spinner_appear_7cQE_{0%{opacity:0}to{opacity:1}}.Spinner_block_31Jam{display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.Spinner_block_31Jam .Spinner_inner_VdWnf{display:-webkit-box;display:-ms-flexbox;display:flex}.Spinner_block_31Jam .Spinner_message_324_5{margin-left:.5em;display:block}.Spinner_inline_3cQNM,.Spinner_inline_3cQNM .Spinner_inner_VdWnf{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.Spinner_inline_3cQNM .Spinner_icon_fb038{height:1em;width:1em;display:block;-ms-flex-item-align:center;align-self:center}.Spinner_inline_3cQNM .Spinner_message_324_5{margin-left:.5em;display:block}.Spinner_message_324_5:empty{display:none}.Spinner_inline_3cQNM.Spinner_center_RisPA .Spinner_message_324_5{margin-left:1em}.Spinner_icon_fb038{display:block;-webkit-animation-name:Spinner_spin_2IovK;animation-name:Spinner_spin_2IovK;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-transform-origin:center center;transform-origin:center center;shape-rendering:geometricPrecision;height:1em;width:1em}.Spinner_icon_fb038 svg{display:block;padding:0;margin:0;height:inherit;width:inherit;shape-rendering:geometricPrecision}.Spinner_center_RisPA{background-color:hsla(0,0%,96.1%,.5);z-index:3000;height:100%;width:100%;top:0;left:0;-webkit-box-sizing:border-box;box-sizing:border-box;opacity:0;-webkit-animation-name:Spinner_appear_7cQE_;animation-name:Spinner_appear_7cQE_;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:once;animation-iteration-count:once;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (min-width:32em){.Spinner_center_RisPA{background-color:hsla(0,0%,96.1%,.1)}}.Spinner_center_RisPA .Spinner_inner_VdWnf{position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.Spinner_center_RisPA .Spinner_icon_fb038{height:2em;width:2em}.Spinner_center_RisPA .Spinner_message_324_5{text-align:center;display:block;font-weight:300;white-space:pre-wrap;padding-top:.5em;-ms-flex-item-align:center;align-self:center}.Spinner_fullscreen_2aSTL{background-color:hsla(0,0%,96.1%,.9);color:#303030;position:fixed;z-index:1060}.Portal_captureTabFocus_1nqlt{position:absolute;height:0;width:0}.ButtonGrid_root_2YSJ3{width:100%;display:grid;grid-gap:.5rem;grid-template-columns:repeat(auto-fit,minmax(6rem,1fr))}.ButtonGrid_root_2YSJ3[data-buttons="1"]{display:block;grid-template-columns:unset}@media (min-width:32em){.ButtonGrid_root_2YSJ3{grid-template-columns:repeat(auto-fill,minmax(8rem,1fr))}}.ButtonGrid_root_2YSJ3>*{min-width:96px;min-width:6rem}.ButtonGrid_root_2YSJ3:not([data-buttons="1"])>*{margin:0!important;width:-webkit-fill-available;width:-moz-available;width:stretch;display:-webkit-box;display:-ms-flexbox;display:flex}.ButtonGrid_alignStart_3nQ6U{direction:ltr}.ButtonGrid_alignEnd_34kxH{direction:rtl}.ButtonGrid_root_2YSJ3>*{direction:ltr}.ButtonGrid_small_1fvj-{font-size:14px;font-size:.875rem}.ButtonGrid_secondary_2iOae{display:contents}.ButtonGrid_secondary_2iOae:not([data-buttons="1"])>*{margin:0!important;width:-webkit-fill-available;width:-moz-available;width:stretch}@media (min-width:32em){.ButtonGrid_secondary_2iOae{display:-webkit-box;display:-ms-flexbox;display:flex;grid-column:span 1/-1}}.text-blocks_default_2ZHzK{display:block}.text-blocks_root_2QRzu{font-size:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Droid Sans,Helvetica Neue,Fira Sans,sans-serif;line-height:1.5;color:#303030;margin:0;padding:0}.text-blocks_lead_3oqqn{font-size:20px;font-size:1.25rem;padding-bottom:1rem}.text-blocks_small_YOrZq{font-size:14px;font-size:.875rem}.text-blocks_description_2qcZa{color:rgba(48,48,48,.8)}.text-blocks_paragraph_2rRXi{padding-bottom:1rem}.text-blocks_blockquote_3ViKJ{position:relative;color:#999;font-size:1.25em;font-family:Georgia,Times New Roman,Times,serif;font-style:italic;margin:0;padding:.5em .5em .5em 2.5em;background-image:url("data:image/svg+xml;utf8,");background-repeat:no-repeat;background-position:0 0;background-origin:border-box;background-size:2em}.text-blocks_blockquoteSmall_23jMu{color:#b3b3b3}.LoginDialogContent_root_21L06{display:block;text-align:center;height:100vh;overflow:auto}.LoginDialogContent_title_2y9la{text-align:center;text-transform:uppercase}.LoginDialogContent_description_2Vh8t{text-align:center;font-size:14px;font-size:.875rem;color:#303030}.LoginDialogContent_sanityLogo_1g-zs{width:128px;width:8rem;margin:4rem auto}.LoginDialogContent_branding_3Y2vV{margin:0 auto 4rem}.LoginDialogContent_projectNameHidden_13BBf{display:none}.LoginDialogContent_brandLogoContainer_1daIF{height:3em}.LoginDialogContent_brandLogoContainer_1daIF svg{height:4em;width:auto;max-width:70vw}.LoginDialogContent_providers_PRqEP{display:block;margin:0;padding:0;text-align:center}.LoginDialogContent_inner_19WKW{display:block}.LoginDialogContent_provider_3gQ8U{display:inline-block;margin:1em;padding:0}.LoginDialogContent_providerButton_1u-vD{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;border:none;background-color:transparent;padding:1em;outline:none!important;cursor:pointer}.LoginDialogContent_providerButton_1u-vD:hover{background-color:#f2f2f2}.LoginDialogContent_providerButton_1u-vD:active{background-color:#156dff}.LoginDialogContent_providerName_18p1Y{padding-top:.5em;display:block}.LoginDialogContent_providerLogo_3mZX2 svg{height:4em;width:auto}@media (min-width:32em){.LoginDialogContent_providerLogo_3mZX2 svg{height:7em}}.LoginDialog_error_3X6oM a{color:#fff}.CookieTest_error_nHhmd a{color:#fff}.CookieTest_root_3f8fr{display:block;text-align:center}.CookieTest_sanityLogo_2hTjj{width:128px;width:8rem;margin:4rem auto}.CookieTest_inner_3w2gB{display:block}.CookieTest_branding_xqQVb{margin:0 auto 4rem}.CookieTest_projectName_3DpfI{font-weight:100}.CookieTest_projectNameHidden_647QV{display:none}.CookieTest_brandLogoContainer_2HpJ3{height:3em}.CookieTest_brandLogoContainer_2HpJ3 svg{height:4em;width:auto;max-width:70vw}.CookieTest_title_F4ORi{text-align:center;font-weight:100;text-transform:uppercase}.CookieTest_description_2g5La{text-align:center;font-size:14px;font-size:.875rem;color:#303030}.CookieTest_acceptCookieForm_3eDHn{margin-top:2em;margin-bottom:2em}.DialogContent_root_3-efC{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}.DialogContent_padding_none_QxWbh{padding:0}.DialogContent_padding_small_1em72{padding:.5rem}.DialogContent_padding_medium_1jmHG{padding:1rem}.DialogContent_padding_large_7f9KE{padding:1.5rem}.DialogContent_small_1GRRA{width:calc(100vw - 4rem)}@media (min-width:32em){.DialogContent_small_1GRRA{max-width:20rem}}.DialogContent_medium_300hf{width:calc(100vw - 4rem)}@media (min-width:32em){.DialogContent_medium_300hf{width:27rem}}@media (min-width:40em){.DialogContent_medium_300hf{width:33rem}}@media (min-width:60em){.DialogContent_medium_300hf{width:35rem}}.DialogContent_large_3YlVz{width:calc(100vw - 4rem)}@media (min-width:32em){.DialogContent_large_3YlVz{width:28rem}}@media (min-width:40em){.DialogContent_large_3YlVz{width:40rem}}@media (min-width:60em){.DialogContent_large_3YlVz{width:50rem}}.text-input_root_3I0je{-webkit-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid hsla(0,0%,9%,.2);display:block;width:100%;outline:none;line-height:2em;font-size:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;padding:.2em .5em;border-radius:2px;-webkit-transition:-webkit-box-shadow 50ms linear;transition:-webkit-box-shadow 50ms linear;transition:box-shadow 50ms linear;transition:box-shadow 50ms linear,-webkit-box-shadow 50ms linear;color:#303030;background-color:#fff;-webkit-box-shadow:none;box-shadow:none}.text-input_root_3I0je:disabled{opacity:.5}.text-input_root_3I0je::-webkit-input-placeholder{color:rgba(48,48,48,.8)}.text-input_root_3I0je::-moz-placeholder{color:rgba(48,48,48,.8)}.text-input_root_3I0je::-ms-input-placeholder{color:rgba(48,48,48,.8)}.text-input_root_3I0je::placeholder{color:rgba(48,48,48,.8)}.text-input_textInput_2io_4:-moz-read-only{opacity:.5}.text-input_textInput_2io_4:read-only{opacity:.5}.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):hover{box-shadow:none;border-color:#999}.text-input_textInput_2io_4:not(:disabled):not(:read-only):hover{-webkit-box-shadow:none;box-shadow:none;border-color:#999}.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):focus,.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):focus-within{box-shadow:0 0 0 3px rgba(36,163,227,.42);background-color:#fff;border-color:#24a3e3}.text-input_textInput_2io_4:not(:disabled):not(:read-only):focus,.text-input_textInput_2io_4:not(:disabled):not(:read-only):focus-within{-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42);background-color:#fff;border-color:#24a3e3}.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):focus-within:invalid,.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):focus:invalid{box-shadow:0 0 0 3px rgba(230,102,102,.42)}.text-input_textInput_2io_4:not(:disabled):not(:read-only):focus-within:invalid,.text-input_textInput_2io_4:not(:disabled):not(:read-only):focus:invalid{-webkit-box-shadow:0 0 0 3px rgba(230,102,102,.42);box-shadow:0 0 0 3px rgba(230,102,102,.42)}.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):active{border-color:#24a3e3}.text-input_textInput_2io_4:not(:disabled):not(:read-only):active{border-color:#24a3e3}.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):invalid{border-color:#e66666;background-color:#fff;box-shadow:none}.text-input_textInput_2io_4:not(:disabled):not(:read-only):invalid{border-color:#e66666;background-color:#fff;-webkit-box-shadow:none;box-shadow:none}.clear-button_root_KE6l2{color:#303030;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background-color:transparent;-webkit-transition:all .1s linear;transition:all .1s linear;padding:0;margin:0;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.clear-button_root_KE6l2:focus,.clear-button_root_KE6l2:hover{color:#e66666;-webkit-transform:scale(1.5);transform:scale(1.5)}.clear-button_root_KE6l2:active{-webkit-transform:scale(2);transform:scale(2)}.clear-button_root_KE6l2 svg{display:block}.DefaultTextInput_container_1b8rk,.DefaultTextInput_input_2fAXM{position:relative}.DefaultTextInput_isClearable_7j1QL .DefaultTextInput_input_2fAXM{padding-right:2em}.DefaultTextInput_input_2fAXM:disabled{background-color:transparent}.DefaultTextInput_input_2fAXM[type=number]::-webkit-inner-spin-button,.DefaultTextInput_input_2fAXM[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.DefaultTextInput_clearButton_QvE8T{position:absolute;top:0;right:.5em;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.DefaultTextInput_clearButton_QvE8T svg{color:inherit}.validation_validationIconError_HpBhp{color:#999}.validation_validationList_3QdNe{margin:0;padding:0;font-size:14px;font-size:.875rem;color:#e66666}.validation_validationListClosed_2tvFr{height:0}.validation_validationListItem_cFUj7{font-size:14px;font-size:.875rem}.validation_validationListItemError_1655p{color:#e66666}.validation_validationListItemWarning_2W708{color:#ffba00}.DefaultFormField_root_3QGtQ{display:block;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.DefaultFormField_root_3QGtQ+.DefaultFormField_root_3QGtQ{margin-top:1rem}.DefaultFormField_block_2tdpo{display:block}.DefaultFormField_inline_3o7F0{display:inline}.DefaultFormField_content_U3zQg,.DefaultFormField_label_1FMvw{display:block}.DefaultFormField_inline_3o7F0 .DefaultFormField_content_U3zQg{-ms-flex-preferred-size:77%;flex-basis:77%;-webkit-box-flex:10;-ms-flex-positive:10;flex-grow:10;display:inline-block}.DefaultFormField_label_1FMvw+.DefaultFormField_content_U3zQg{margin-top:.5rem}.DefaultFormField_inline_3o7F0 .DefaultFormField_description_3aTVL{font-size:10px;font-size:.625rem}.DefaultFormField_label_1FMvw+.DefaultFormField_description_3aTVL{margin-top:.16667rem}.DefaultFormField_description_3aTVL+.DefaultFormField_content_U3zQg{margin-top:.5rem}.DefaultFormField_header_ImKa_{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:.5rem}.DefaultFormField_headerMain_hydTj{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.DefaultFormField_headerStatus_5ZyE3{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 .5rem;-ms-flex-line-pack:center;align-content:center}.DefaultFormField_validationStatus_1iws4{cursor:default}.DefaultFormField_root_3QGtQ:focus-within .DefaultFormField_validationIconError_C8VNS{text-shadow:0 0 5px #e66666;color:#e66666}.DefaultFormField_validationList_1UnYJ{padding-bottom:.5rem}.DefaultFormField_labelAndDescriptionWrapper_39JrJ{display:block}.DefaultFormField_inline_3o7F0 .DefaultFormField_labelAndDescriptionWrapper_39JrJ{-ms-flex-preferred-size:33%;flex-basis:33%;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.DefaultFormField_wrapped_2Rmzj{padding:1rem;background-color:#fff;border:1px solid #b3b3b3;overflow:hidden;max-width:100%}.DefaultFormField_inner_7F6xv{display:block}.DefaultFormField_inline_3o7F0 .DefaultFormField_inner_7F6xv{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.forms_headingLevel_1_3BxP7{font-size:20px;font-size:1.25rem;font-weight:400}.forms_headingLevel_2_1Zg1B{font-size:16px;font-size:1rem;font-weight:400}.forms_headingLevel_3_2tlXD,.forms_headingLevel_4_1vANl,.forms_headingLevel_5_1RcxH{font-size:16px;font-size:1rem}.forms_label_3nwoh{font-size:16px;font-size:1rem;font-weight:400}.DefaultLabel_root_1R-0M{display:block;color:#303030}.ValidationStatus_root_39ZFD{opacity:1;outline:none}.ValidationStatus_root_39ZFD:hover{opacity:1}.ValidationStatus_error_126vJ{color:#e66666}.ValidationStatus_warning_3QjKV{color:#ffba00}.ValidationStatus_ok_2f9jf{color:#19b366;display:none}.ValidationList_root_1RpVY{margin:0;padding:0;display:block;font-size:14px;font-size:.875rem;max-height:80vh;overflow:auto}.ValidationList_block_axUGS{text-align:left;margin:0;padding:0}.ValidationList_block_axUGS>h3{margin:0;padding:0;font-weight:400}.ValidationList_block_axUGS>ul{margin:0;padding:0}.ValidationListItem_item_14b6e{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;width:100%;padding:.5rem;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none}.ValidationListItem_item_14b6e.ValidationListItem_truncate_1oAWY{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ValidationListItem_error_2F8Xm{color:#e66666}.ValidationListItem_error_2F8Xm:focus{background-color:rgba(230,102,102,.15)}.ValidationListItem_error_2F8Xm:not(:last-child){border-bottom:1px solid rgba(230,102,102,.1)}.ValidationListItem_warning_1HrNt{color:#ffba00}.ValidationListItem_warning_1HrNt:focus,.ValidationListItem_warning_1HrNt:hover{background-color:rgba(255,186,0,.1)}.ValidationListItem_warning_1HrNt:not(:last-child){border-bottom:1px solid rgba(255,186,0,.1)}.ValidationListItem_interactiveItem_2rQd6{border-radius:4px}.ValidationListItem_interactiveItem_2rQd6.ValidationListItem_error_2F8Xm:hover{background-color:rgba(230,102,102,.1)}.ValidationListItem_icon_rsLmZ{display:-webkit-box;display:-ms-flexbox;display:flex;padding:1rem 1.5rem 1rem 1rem}.ValidationListItem_content_iQ11F{display:block;padding-right:2em;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding-top:1em}.ValidationListItem_truncate_1oAWY .ValidationListItem_content_iQ11F{padding-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ValidationListItem_path_12oRX{display:block;text-transform:uppercase;font-size:12px;font-size:.75rem}.ValidationListItem_message_2cU1Y{font-size:16px;font-size:1rem}.ValidationListItem_link_3csX4{cursor:pointer;text-align:right;display:block;margin-left:auto;text-decoration:underline;white-space:nowrap;padding-right:1rem}.backgrounds_frosted_2rBwe{background-color:rgba(0,0,0,.12)}.backgrounds_listItemStates_32_ku{position:relative}.backgrounds_listItemStates_32_ku:active:after{z-index:1;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(36,163,227,.25);opacity:.5;pointer-events:none}@media (hover:hover){.backgrounds_listItemStates_32_ku:hover:after{z-index:1;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(36,163,227,.15);pointer-events:none}.backgrounds_listItemStates_32_ku:hover:active:after{z-index:1;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(36,163,227,.25);pointer-events:none}}.shadows_shadow-0dp_38N1D{-webkit-box-shadow:none;box-shadow:none}.shadows_shadow-1dp_XM5Y5{-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,.1),0 3px 1px -2px rgba(0,0,0,.08),0 1px 5px 0 rgba(0,0,0,.02);box-shadow:0 2px 2px 0 rgba(0,0,0,.1),0 3px 1px -2px rgba(0,0,0,.08),0 1px 5px 0 rgba(0,0,0,.02)}.shadows_shadow-6dp_3hP4o{-webkit-box-shadow:0 3px 3px 0 rgba(0,0,0,.1),0 1px 7px 0 rgba(0,0,0,.08),0 3px 1px -1px rgba(0,0,0,.02);box-shadow:0 3px 3px 0 rgba(0,0,0,.1),0 1px 7px 0 rgba(0,0,0,.08),0 3px 1px -1px rgba(0,0,0,.02)}.shadows_shadow-12dp_1NhBJ{-webkit-box-shadow:0 8px 17px 2px rgba(0,0,0,.1),0 3px 14px 2px rgba(0,0,0,.08),0 5px 5px -3px rgba(0,0,0,.02);box-shadow:0 8px 17px 2px rgba(0,0,0,.1),0 3px 14px 2px rgba(0,0,0,.08),0 5px 5px -3px rgba(0,0,0,.02)}.shadows_shadow-16dp_SXfIC{-webkit-box-shadow:0 16px 24px 2px rgba(0,0,0,.1),0 6px 30px 5px rgba(0,0,0,.08),0 8px 10px -7px rgba(0,0,0,.02);box-shadow:0 16px 24px 2px rgba(0,0,0,.1),0 6px 30px 5px rgba(0,0,0,.08),0 8px 10px -7px rgba(0,0,0,.02)}.shadows_shadow-24dp_2lGyX{-webkit-box-shadow:0 24px 38px 3px rgba(0,0,0,.1),0 9px 46px 8px rgba(0,0,0,.08),0 11px 15px -7px rgba(0,0,0,.02);box-shadow:0 24px 38px 3px rgba(0,0,0,.1),0 9px 46px 8px rgba(0,0,0,.08),0 11px 15px -7px rgba(0,0,0,.02)}@-webkit-keyframes DefaultDialog_reveal_31rxF{0%{-webkit-transform:scale(.9);transform:scale(.9)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes DefaultDialog_reveal_31rxF{0%{-webkit-transform:scale(.9);transform:scale(.9)}to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes DefaultDialog_fadeIn_270j0{0%{opacity:0}to{opacity:1}}@keyframes DefaultDialog_fadeIn_270j0{0%{opacity:0}to{opacity:1}}.DefaultDialog_root_1Xv5C{position:fixed;z-index:1060;top:0;left:0;bottom:0;width:100vw;height:100vh;color:#303030}.DefaultDialog_overlay_1XNWo{-webkit-animation-name:DefaultDialog_fadeIn_270j0;animation-name:DefaultDialog_fadeIn_270j0;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-timing-function:cubic-bezier(0,0,0,1);animation-timing-function:cubic-bezier(0,0,0,1);-webkit-animation-iteration-count:once;animation-iteration-count:once;top:0;left:0;bottom:0;width:100vw;height:100vh;position:absolute}.DefaultDialog_dialog_1ENXR{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;border:0;border-radius:6px;padding:0;-webkit-animation-name:DefaultDialog_reveal_31rxF;animation-name:DefaultDialog_reveal_31rxF;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-timing-function:cubic-bezier(0,0,0,1);animation-timing-function:cubic-bezier(0,0,0,1);-webkit-animation-iteration-count:once;animation-iteration-count:once;-webkit-transform-origin:center;transform-origin:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:calc(100% - 2rem);max-height:calc(100% - 8rem)}@media (min-width:32em){.DefaultDialog_dialog_1ENXR{width:auto;height:auto}}.DefaultDialog_isClosed_1KbOY{display:none}.DefaultDialog_isOpen_l3vbU{display:-webkit-box;display:-ms-flexbox;display:flex}.DefaultDialog_header_1Gf2r{position:relative;height:3.375em;min-height:3.375em;line-height:3.375em;background-color:#fff;color:#303030;border-radius:6px 6px 0 0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.DefaultDialog_header_1Gf2r:after{content:"";width:100%;background:-webkit-gradient(linear,left bottom,left top,from(transparent),color-stop(75%,rgba(0,0,0,.04)),to(rgba(0,0,0,.12)));background:linear-gradient(0deg,transparent 0,rgba(0,0,0,.04) 75%,rgba(0,0,0,.12));height:.25em;top:3.375em;position:absolute;left:0;pointer-events:none;opacity:.5;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.DefaultDialog_danger_3_IkR .DefaultDialog_header_1Gf2r{background-color:#e66666;color:#fff}.DefaultDialog_success_1Kylb .DefaultDialog_header_1Gf2r{background-color:#19b366;color:#fff}.DefaultDialog_warning_2zuOi .DefaultDialog_header_1Gf2r{background-color:#ffba00;color:#141000}.DefaultDialog_inner_1BOYd{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;max-width:100%;max-height:100%}.DefaultDialog_content_1RD9K{border-radius:6px 6px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff}.DefaultDialog_contentWithoutFooter_3e1jr{border-radius:6px}.DefaultDialog_header_1Gf2r+.DefaultDialog_content_1RD9K{border-top-left-radius:0!important;border-top-right-radius:0!important}.DefaultDialog_title_33_i-{line-height:inherit;padding:0 1rem;margin:0;font-size:1.25em;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (min-width:32em){.DefaultDialog_title_33_i-{margin-right:2rem}}.DefaultDialog_closeButton_Z-eQz{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;outline:none;background-color:transparent;color:inherit;border:none;position:relative;width:3.375em;min-width:3.375em;margin:0;padding:0}.DefaultDialog_closeButton_Z-eQz .DefaultDialog_closeButtonIcon_xfx4R{-webkit-transition:-webkit-transform .1s linear;transition:-webkit-transform .1s linear;transition:transform .1s linear;transition:transform .1s linear,-webkit-transform .1s linear;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.DefaultDialog_closeButton_Z-eQz .DefaultDialog_closeButtonIcon_xfx4R>svg{font-size:1.5625em;position:absolute}@media (hover:hover){.DefaultDialog_closeButton_Z-eQz{opacity:.7}.DefaultDialog_closeButton_Z-eQz:hover{opacity:1}}.DefaultDialog_closeButtonOutside_1Rh-u{position:absolute;outline:none;color:#000;border:none;border-radius:50%;background-color:#fff;font-size:16px;font-size:1rem;top:-16px;top:-1rem;right:-16px;right:-1rem;z-index:1;height:32px;height:2rem;width:32px;width:2rem;-webkit-transition:-webkit-transform .1s linear;transition:-webkit-transform .1s linear;transition:transform .1s linear;transition:transform .1s linear,-webkit-transform .1s linear;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.DefaultDialog_closeButtonOutside_1Rh-u:hover .DefaultDialog_closeButtonIcon_xfx4R{-webkit-transform:scale(1.2);transform:scale(1.2)}.DefaultDialog_closeButtonOutside_1Rh-u:active .DefaultDialog_closeButtonIcon_xfx4R{-webkit-transform:scale(.8);transform:scale(.8)}.DefaultDialog_footer_2Gr-Z{min-height:72px;min-height:4.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;padding:1rem;background-color:#fff;border-radius:0 0 6px 6px;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.DefaultDialog_footer_2Gr-Z:before{content:"";width:100%;background:-webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(70%,rgba(0,0,0,.02)),to(rgba(0,0,0,.07)));background:linear-gradient(180deg,transparent 0,rgba(0,0,0,.02) 70%,rgba(0,0,0,.07));height:.25em;top:-4px;top:-.25rem;position:absolute;left:0;pointer-events:none;opacity:0;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.DefaultDialog_footerWithShadow_2AYBS:before{opacity:1}@-webkit-keyframes DefaultDialog_reveal_31rxF{0%{-webkit-transform:scale(.9);transform:scale(.9)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes DefaultDialog_reveal_31rxF{0%{-webkit-transform:scale(.9);transform:scale(.9)}to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes DefaultDialog_fadeIn_270j0{0%{opacity:0}to{opacity:1}}@keyframes DefaultDialog_fadeIn_270j0{0%{opacity:0}to{opacity:1}}.DefaultDialog_root_1Xv5C{position:fixed;z-index:1060;top:0;left:0;bottom:0;width:100vw;height:100vh;color:#303030}.DefaultDialog_overlay_1XNWo{-webkit-animation-name:DefaultDialog_fadeIn_270j0;animation-name:DefaultDialog_fadeIn_270j0;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-timing-function:cubic-bezier(0,0,0,1);animation-timing-function:cubic-bezier(0,0,0,1);-webkit-animation-iteration-count:once;animation-iteration-count:once;top:0;left:0;bottom:0;width:100vw;height:100vh;position:absolute}.DefaultDialog_dialog_1ENXR{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;border:0;border-radius:6px;padding:0;-webkit-animation-name:DefaultDialog_reveal_31rxF;animation-name:DefaultDialog_reveal_31rxF;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-timing-function:cubic-bezier(0,0,0,1);animation-timing-function:cubic-bezier(0,0,0,1);-webkit-animation-iteration-count:once;animation-iteration-count:once;-webkit-transform-origin:center;transform-origin:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:calc(100% - 2rem);max-height:calc(100% - 8rem)}@media (min-width:32em){.DefaultDialog_dialog_1ENXR{width:auto;height:auto}}.DefaultDialog_isClosed_1KbOY{display:none}.DefaultDialog_isOpen_l3vbU{display:-webkit-box;display:-ms-flexbox;display:flex}.DefaultDialog_header_1Gf2r{position:relative;height:3.375em;min-height:3.375em;line-height:3.375em;background-color:#fff;color:#303030;border-radius:6px 6px 0 0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.DefaultDialog_header_1Gf2r:after{content:"";width:100%;background:-webkit-gradient(linear,left bottom,left top,from(transparent),color-stop(75%,rgba(0,0,0,.04)),to(rgba(0,0,0,.12)));background:linear-gradient(0deg,transparent 0,rgba(0,0,0,.04) 75%,rgba(0,0,0,.12));height:.25em;top:3.375em;position:absolute;left:0;pointer-events:none;opacity:.5;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.DefaultDialog_danger_3_IkR .DefaultDialog_header_1Gf2r{background-color:#e66666;color:#fff}.DefaultDialog_success_1Kylb .DefaultDialog_header_1Gf2r{background-color:#19b366;color:#fff}.DefaultDialog_warning_2zuOi .DefaultDialog_header_1Gf2r{background-color:#ffba00;color:#141000}.DefaultDialog_inner_1BOYd{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;max-width:100%;max-height:100%}.DefaultDialog_content_1RD9K{border-radius:6px 6px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff}.DefaultDialog_contentWithoutFooter_3e1jr{border-radius:6px}.DefaultDialog_header_1Gf2r+.DefaultDialog_content_1RD9K{border-top-left-radius:0!important;border-top-right-radius:0!important}.DefaultDialog_title_33_i-{line-height:inherit;padding:0 1rem;margin:0;font-size:1.25em;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media (min-width:32em){.DefaultDialog_title_33_i-{margin-right:2rem}}.DefaultDialog_closeButton_Z-eQz{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;outline:none;background-color:transparent;color:inherit;border:none;position:relative;width:3.375em;min-width:3.375em;margin:0;padding:0}.DefaultDialog_closeButton_Z-eQz .DefaultDialog_closeButtonIcon_xfx4R{-webkit-transition:-webkit-transform .1s linear;transition:-webkit-transform .1s linear;transition:transform .1s linear;transition:transform .1s linear,-webkit-transform .1s linear;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.DefaultDialog_closeButton_Z-eQz .DefaultDialog_closeButtonIcon_xfx4R>svg{font-size:1.5625em;position:absolute}@media (hover:hover){.DefaultDialog_closeButton_Z-eQz{opacity:.7}.DefaultDialog_closeButton_Z-eQz:hover{opacity:1}}.DefaultDialog_closeButtonOutside_1Rh-u{position:absolute;outline:none;color:#000;border:none;border-radius:50%;background-color:#fff;font-size:16px;font-size:1rem;top:-16px;top:-1rem;right:-16px;right:-1rem;z-index:1;height:32px;height:2rem;width:32px;width:2rem;-webkit-transition:-webkit-transform .1s linear;transition:-webkit-transform .1s linear;transition:transform .1s linear;transition:transform .1s linear,-webkit-transform .1s linear;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.DefaultDialog_closeButtonOutside_1Rh-u:hover .DefaultDialog_closeButtonIcon_xfx4R{-webkit-transform:scale(1.2);transform:scale(1.2)}.DefaultDialog_closeButtonOutside_1Rh-u:active .DefaultDialog_closeButtonIcon_xfx4R{-webkit-transform:scale(.8);transform:scale(.8)}.DefaultDialog_footer_2Gr-Z{min-height:72px;min-height:4.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;padding:1rem;background-color:#fff;border-radius:0 0 6px 6px;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.DefaultDialog_footer_2Gr-Z:before{content:"";width:100%;background:-webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(70%,rgba(0,0,0,.02)),to(rgba(0,0,0,.07)));background:linear-gradient(180deg,transparent 0,rgba(0,0,0,.02) 70%,rgba(0,0,0,.07));height:.25em;top:-4px;top:-.25rem;position:absolute;left:0;pointer-events:none;opacity:0;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.DefaultDialog_footerWithShadow_2AYBS:before{opacity:1}.ConfirmDialog_inner_3HEga{overflow:hidden;height:100%}.ConfirmDialog_content_25HMW{padding:1.5rem}.ConfirmDialog_footer_bDhsZ{padding:1rem;text-align:right}.DefaultFormField_root_3QGtQ{display:block;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.DefaultFormField_root_3QGtQ+.DefaultFormField_root_3QGtQ{margin-top:1rem}.DefaultFormField_block_2tdpo{display:block}.DefaultFormField_inline_3o7F0{display:inline}.DefaultFormField_content_U3zQg,.DefaultFormField_label_1FMvw{display:block}.DefaultFormField_inline_3o7F0 .DefaultFormField_content_U3zQg{-ms-flex-preferred-size:77%;flex-basis:77%;-webkit-box-flex:10;-ms-flex-positive:10;flex-grow:10;display:inline-block}.DefaultFormField_label_1FMvw+.DefaultFormField_content_U3zQg{margin-top:.5rem}.DefaultFormField_inline_3o7F0 .DefaultFormField_description_3aTVL{font-size:10px;font-size:.625rem}.DefaultFormField_label_1FMvw+.DefaultFormField_description_3aTVL{margin-top:.16667rem}.DefaultFormField_description_3aTVL+.DefaultFormField_content_U3zQg{margin-top:.5rem}.DefaultFormField_header_ImKa_{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:.5rem}.DefaultFormField_headerMain_hydTj{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.DefaultFormField_headerStatus_5ZyE3{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 .5rem;-ms-flex-line-pack:center;align-content:center}.DefaultFormField_validationStatus_1iws4{cursor:default}.DefaultFormField_root_3QGtQ:focus-within .DefaultFormField_validationIconError_C8VNS{text-shadow:0 0 5px #e66666;color:#e66666}.DefaultFormField_validationList_1UnYJ{padding-bottom:.5rem}.DefaultFormField_labelAndDescriptionWrapper_39JrJ{display:block}.DefaultFormField_inline_3o7F0 .DefaultFormField_labelAndDescriptionWrapper_39JrJ{-ms-flex-preferred-size:33%;flex-basis:33%;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.DefaultFormField_wrapped_2Rmzj{padding:1rem;background-color:#fff;border:1px solid #b3b3b3;overflow:hidden;max-width:100%}.DefaultFormField_inner_7F6xv{display:block}.DefaultFormField_inline_3o7F0 .DefaultFormField_inner_7F6xv{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.DefaultFieldset_root_2vneH{outline:none}.DefaultFieldset_root_2vneH .DefaultFieldset_root_2vneH{margin:0}.DefaultFieldset_root_2vneH+.DefaultFieldset_root_2vneH{margin-top:1rem}.DefaultFieldset_fieldset_1vyaf{margin:0;padding:0;border:none;min-width:0}.DefaultFieldset_header_2jymZ{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:.5rem}.DefaultFieldset_headerMain_2imKb{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.DefaultFieldset_headerStatus_29g-K{padding:0 .5rem}.DefaultFieldset_description_QAEkj{margin:0;padding:0;display:block}@media (min-width:32em){.DefaultFieldset_columns4_1BBtN .DefaultFieldset_fieldWrapper_uk3jA{display:grid;grid-gap:1rem;grid-template-columns:repeat(4,1fr)}.DefaultFieldset_columns3_7dlj4 .DefaultFieldset_fieldWrapper_uk3jA{display:grid;grid-gap:1rem;grid-template-columns:repeat(3,1fr)}.DefaultFieldset_columns2_gXwMF .DefaultFieldset_fieldWrapper_uk3jA{display:grid;grid-gap:1rem;grid-template-columns:repeat(2,1fr)}}.DefaultFieldset_transparent_16LaJ{background-color:transparent}.DefaultFieldset_content_2Jef8{position:relative;display:block;background-color:transparent;-webkit-transition:all .1s linear;transition:all .1s linear}.DefaultFieldset_transparent_16LaJ .DefaultFieldset_content_2Jef8{background-color:transparent}.DefaultFieldset_hasErrors_3-jSD:focus-within .DefaultFieldset_content_2Jef8{-webkit-box-shadow:0 0 0 3px rgba(230,102,102,.42)!important;box-shadow:0 0 0 3px rgba(230,102,102,.42)!important}.DefaultFieldset_contentCollapsible_2xzTQ{border:1px solid red!important}.DefaultFieldset_contentCollapsible_2xzTQ:empty{display:none}.DefaultFieldset_content_2Jef8 .DefaultFieldset_content_2Jef8 .DefaultFieldset_content_2Jef8{border:none;padding:0!important;-webkit-box-shadow:none;box-shadow:none}.DefaultFieldset_level1_YEwrL,.DefaultFieldset_level2_imqVx,.DefaultFieldset_level3_2SRp7,.DefaultFieldset_level4_2iia1{display:block;-webkit-box-shadow:none;box-shadow:none}.DefaultFieldset_inner_3UhJR{display:block}.DefaultFieldset_arrow_10Y-o{display:inline-block;width:1em;height:1em;overflow:hidden;line-height:1;padding:0;position:relative;vertical-align:middle;-webkit-transition:-webkit-transform .1s linear;transition:-webkit-transform .1s linear;transition:transform .1s linear;transition:transform .1s linear,-webkit-transform .1s linear;-webkit-transform:rotate(-90deg);transform:rotate(-90deg);margin:-.1em .25em 0 0}.DefaultFieldset_arrow_10Y-o.DefaultFieldset_isOpen_1tZIA{-webkit-transform:rotate(0);transform:rotate(0)}.DefaultFieldset_arrow_10Y-o svg{position:absolute;-webkit-transform:scale(1.2);transform:scale(1.2)}.DefaultFieldset_legend_3q-NS{color:#303030;display:block;width:100%;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.DefaultFieldset_level2_imqVx .DefaultFieldset_legend_3q-NS,.DefaultFieldset_level3_2SRp7 .DefaultFieldset_legend_3q-NS,.DefaultFieldset_level4_2iia1 .DefaultFieldset_legend_3q-NS,.DefaultFieldset_level5_2j9UZ .DefaultFieldset_legend_3q-NS{font-size:16px;font-size:1rem;text-transform:none}.DefaultFieldset_legend_3q-NS+.DefaultFieldset_description_QAEkj{margin-top:.16667rem}.DefaultFieldset_description_QAEkj+.DefaultFieldset_content_2Jef8,.DefaultFieldset_legend_3q-NS+.DefaultFieldset_content_2Jef8{margin-top:.5rem}.DefaultFieldset_canFocus_22QTS>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_canFocus_22QTS>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{padding:.5rem;border-radius:6px;-webkit-box-shadow:none;box-shadow:none}@media (min-width:32em){.DefaultFieldset_canFocus_22QTS>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_canFocus_22QTS>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{padding:1rem}}.DefaultFieldset_level1_YEwrL>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level1_YEwrL>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;padding:.5rem;border:1px solid hsla(0,0%,9%,.1);border-radius:6px}@media (min-width:32em){.DefaultFieldset_level1_YEwrL>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level1_YEwrL>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{padding:1rem}}.DefaultFieldset_level2_imqVx>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level2_imqVx>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;padding:.5rem;border-radius:6px;border:1px solid hsla(0,0%,9%,.1)}@media (min-width:32em){.DefaultFieldset_level2_imqVx>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level2_imqVx>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{padding:1rem}}.DefaultFieldset_level1_YEwrL:focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level1_YEwrL:focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level2_imqVx:focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level2_imqVx:focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8,.DefaultFieldset_root_2vneH:not(.DefaultFieldset_level1_YEwrL):focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_root_2vneH:not(.DefaultFieldset_level1_YEwrL):focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8,.DefaultFieldset_root_2vneH:not(.DefaultFieldset_level2_imqVx):focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_root_2vneH:not(.DefaultFieldset_level2_imqVx):focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42)}.DefaultFieldset_debugNestingLevel_k2GGu{display:none}.DefaultFieldset_root_2vneH{outline:none}.DefaultFieldset_root_2vneH .DefaultFieldset_root_2vneH{margin:0}.DefaultFieldset_root_2vneH+.DefaultFieldset_root_2vneH{margin-top:1rem}.DefaultFieldset_fieldset_1vyaf{margin:0;padding:0;border:none;min-width:0}.DefaultFieldset_header_2jymZ{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:.5rem}.DefaultFieldset_headerMain_2imKb{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.DefaultFieldset_headerStatus_29g-K{padding:0 .5rem}.DefaultFieldset_description_QAEkj{margin:0;padding:0;display:block}@media (min-width:32em){.DefaultFieldset_columns4_1BBtN .DefaultFieldset_fieldWrapper_uk3jA{display:grid;grid-gap:1rem;grid-template-columns:repeat(4,1fr)}.DefaultFieldset_columns3_7dlj4 .DefaultFieldset_fieldWrapper_uk3jA{display:grid;grid-gap:1rem;grid-template-columns:repeat(3,1fr)}.DefaultFieldset_columns2_gXwMF .DefaultFieldset_fieldWrapper_uk3jA{display:grid;grid-gap:1rem;grid-template-columns:repeat(2,1fr)}}.DefaultFieldset_transparent_16LaJ{background-color:transparent}.DefaultFieldset_content_2Jef8{position:relative;display:block;background-color:transparent;-webkit-transition:all .1s linear;transition:all .1s linear}.DefaultFieldset_transparent_16LaJ .DefaultFieldset_content_2Jef8{background-color:transparent}.DefaultFieldset_hasErrors_3-jSD:focus-within .DefaultFieldset_content_2Jef8{-webkit-box-shadow:0 0 0 3px rgba(230,102,102,.42)!important;box-shadow:0 0 0 3px rgba(230,102,102,.42)!important}.DefaultFieldset_contentCollapsible_2xzTQ{border:1px solid red!important}.DefaultFieldset_contentCollapsible_2xzTQ:empty{display:none}.DefaultFieldset_content_2Jef8 .DefaultFieldset_content_2Jef8 .DefaultFieldset_content_2Jef8{border:none;padding:0!important;-webkit-box-shadow:none;box-shadow:none}.DefaultFieldset_level1_YEwrL,.DefaultFieldset_level2_imqVx,.DefaultFieldset_level3_2SRp7,.DefaultFieldset_level4_2iia1{display:block;-webkit-box-shadow:none;box-shadow:none}.DefaultFieldset_inner_3UhJR{display:block}.DefaultFieldset_arrow_10Y-o{display:inline-block;width:1em;height:1em;overflow:hidden;line-height:1;padding:0;position:relative;vertical-align:middle;-webkit-transition:-webkit-transform .1s linear;transition:-webkit-transform .1s linear;transition:transform .1s linear;transition:transform .1s linear,-webkit-transform .1s linear;-webkit-transform:rotate(-90deg);transform:rotate(-90deg);margin:-.1em .25em 0 0}.DefaultFieldset_arrow_10Y-o.DefaultFieldset_isOpen_1tZIA{-webkit-transform:rotate(0);transform:rotate(0)}.DefaultFieldset_arrow_10Y-o svg{position:absolute;-webkit-transform:scale(1.2);transform:scale(1.2)}.DefaultFieldset_legend_3q-NS{color:#303030;display:block;width:100%;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.DefaultFieldset_level2_imqVx .DefaultFieldset_legend_3q-NS,.DefaultFieldset_level3_2SRp7 .DefaultFieldset_legend_3q-NS,.DefaultFieldset_level4_2iia1 .DefaultFieldset_legend_3q-NS,.DefaultFieldset_level5_2j9UZ .DefaultFieldset_legend_3q-NS{font-size:16px;font-size:1rem;text-transform:none}.DefaultFieldset_legend_3q-NS+.DefaultFieldset_description_QAEkj{margin-top:.16667rem}.DefaultFieldset_description_QAEkj+.DefaultFieldset_content_2Jef8,.DefaultFieldset_legend_3q-NS+.DefaultFieldset_content_2Jef8{margin-top:.5rem}.DefaultFieldset_canFocus_22QTS>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_canFocus_22QTS>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{padding:.5rem;border-radius:6px;-webkit-box-shadow:none;box-shadow:none}@media (min-width:32em){.DefaultFieldset_canFocus_22QTS>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_canFocus_22QTS>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{padding:1rem}}.DefaultFieldset_level1_YEwrL>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level1_YEwrL>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;padding:.5rem;border:1px solid hsla(0,0%,9%,.1);border-radius:6px}@media (min-width:32em){.DefaultFieldset_level1_YEwrL>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level1_YEwrL>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{padding:1rem}}.DefaultFieldset_level2_imqVx>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level2_imqVx>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{background-color:transparent;-webkit-box-shadow:none;box-shadow:none;padding:.5rem;border-radius:6px;border:1px solid hsla(0,0%,9%,.1)}@media (min-width:32em){.DefaultFieldset_level2_imqVx>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level2_imqVx>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{padding:1rem}}.DefaultFieldset_level1_YEwrL:focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level1_YEwrL:focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level2_imqVx:focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_level2_imqVx:focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8,.DefaultFieldset_root_2vneH:not(.DefaultFieldset_level1_YEwrL):focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_root_2vneH:not(.DefaultFieldset_level1_YEwrL):focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8,.DefaultFieldset_root_2vneH:not(.DefaultFieldset_level2_imqVx):focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_animateHeight_1RaiU>.DefaultFieldset_content_2Jef8,.DefaultFieldset_root_2vneH:not(.DefaultFieldset_level2_imqVx):focus>.DefaultFieldset_fieldset_1vyaf>.DefaultFieldset_inner_3UhJR>.DefaultFieldset_content_2Jef8{-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42)}.DefaultFieldset_debugNestingLevel_k2GGu{display:none}.InvalidValueInput_root_3Yk9X{padding:1.5rem;background-color:#ffba00;color:#141000}.InvalidValueInput_root_3Yk9X h3{margin:0;padding:0}.InvalidValueInput_removeButtonWrapper_ogU8w{padding-top:1rem}textarea.InvalidValueInput_currentValueDump_rOHWB{border:0;width:100%;margin:0;padding:0;height:0;font-family:monospace}.Field_root_1XEv8{display:block;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.Field_root_1XEv8+.Field_root_1XEv8{margin-top:1.5rem}.UnknownFields_root_3wL8M{margin-top:3rem}.UnknownFields_heading_28mky{color:#ffba00}.UnknownFields_inspectValue_2SvVE{border:1px solid #aaa;max-height:200px;overflow-y:scroll;background-color:#fff}.UnknownFields_content_GvOr7{border-top:1px solid #ffba00;border-bottom:1px solid #ffba00;padding:1rem .5rem}.ActivateOnFocus_root_2MJJH{position:relative;width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none!important}.ActivateOnFocus_eventHandler_37uyh{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}.ActivateOnFocus_hasFocus_2oTZO .ActivateOnFocus_eventHandler_37uyh{pointer-events:none}.ActivateOnFocus_content_22X9c{position:relative;z-index:0}.ActivateOnFocus_overlay_1QSw7{background-color:hsla(0,0%,100%,.95);z-index:2;width:100%;height:100%;position:absolute;top:0;left:0;-webkit-transition:opacity .1s linear;transition:opacity .1s linear;opacity:0}.ActivateOnFocus_noFocus_3OCEk:hover .ActivateOnFocus_overlay_1QSw7{opacity:.9}.ActivateOnFocus_hasFocus_2oTZO .ActivateOnFocus_overlay_1QSw7{opacity:0}.ActivateOnFocus_message_2uqBa{z-index:3;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:opacity .1s linear;transition:opacity .1s linear;opacity:0;text-align:center}.ActivateOnFocus_noFocus_3OCEk:hover .ActivateOnFocus_message_2uqBa{opacity:1}.ActivateOnFocus_hasFocus_2oTZO .ActivateOnFocus_message_2uqBa{opacity:0}.ActivateOnFocus_stringMessage_2Ro96{font-size:24px;font-size:1.5rem;pointer-events:none;text-transform:uppercase}.ActivateOnFocus_hasFocus_2oTZO .ActivateOnFocus_stringMessage_2Ro96{pointer-events:none}.ActivateOnFocus_html_yjREn{pointer-events:auto;font-size:1em}@-webkit-keyframes DefaultButton_focused_1zzac{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes DefaultButton_focused_1zzac{0%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}to{-webkit-transform:scale(1);transform:scale(1)}}.DefaultButton_spacing_2dHOV{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.DefaultButton_spacing_2dHOV+.DefaultButton_spacing_2dHOV{margin-left:.5rem}.DefaultButton_borderRadius_3g_Bl{border-radius:4px}.DefaultButton_root_t6uj5{-webkit-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;margin:0;position:relative;outline:none;border:none;color:inherit;font-weight:inherit;font-size:1em;line-height:1.25;font-family:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:border-color .15s,background-color .15s,color .15s,opacity .15s,-webkit-box-shadow .1s;transition:border-color .15s,background-color .15s,color .15s,opacity .15s,-webkit-box-shadow .1s;transition:border-color .15s,background-color .15s,color .15s,opacity .15s,box-shadow .1s;transition:border-color .15s,background-color .15s,color .15s,opacity .15s,box-shadow .1s,-webkit-box-shadow .1s;text-decoration:none;padding:0}.DefaultButton_groupContainer_2wzhS .DefaultButton_borderRadius_3g_Bl:not(:last-child):not(:first-child){border-radius:0}.DefaultButton_groupContainer_2wzhS .DefaultButton_borderRadius_3g_Bl:not(:last-child){border-right:1px solid hsla(0,0%,96.1%,.3)}.DefaultButton_groupContainer_2wzhS .DefaultButton_inverted_29NxY:not(:last-child){border-right:none}.DefaultButton_groupContainer_2wzhS .DefaultButton_inverted_29NxY:not(:last-child):hover{border-right:1px solid}.DefaultButton_groupContainer_2wzhS .DefaultButton_inverted_29NxY:not(:last-child):hover+.DefaultButton_inverted_29NxY{border-left:none}.DefaultButton_groupContainer_2wzhS .DefaultButton_borderRadius_3g_Bl:first-child:not(:last-child){border-radius:4px 0 0 4px}.DefaultButton_groupContainer_2wzhS .DefaultButton_borderRadius_3g_Bl:last-child:not(:first-child){border-radius:0 4px 4px 0}.DefaultButton_groupContainer_2wzhS .DefaultButton_borderRadius_3g_Bl+.DefaultButton_borderRadius_3g_Bl{margin:0}.DefaultButton_root_t6uj5.DefaultButton_bleed_13_oX{padding:0!important;display:-webkit-box;display:-ms-flexbox;display:flex;border-radius:0;height:100%}.DefaultButton_root_t6uj5.DefaultButton_bleed_13_oX .DefaultButton_content_3vpzk{margin:0}span.DefaultButton_inner_BF58_{outline:none;display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:stretch;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:-webkit-fill-available;width:-moz-available;width:stretch}span.DefaultButton_content_3vpzk{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:-webkit-fill-available;width:-moz-available;width:stretch}.DefaultButton_icon_347n7{display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:.5rem}.DefaultButton_icon_347n7>svg{display:block}.DefaultButton_root_t6uj5:focus{-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.5);box-shadow:0 0 0 3px rgba(36,163,227,.5)}.DefaultButton_root_t6uj5:focus .DefaultButton_content_3vpzk{-webkit-animation-name:DefaultButton_focused_1zzac;animation-name:DefaultButton_focused_1zzac;-webkit-animation-duration:.2s;animation-duration:.2s}.DefaultButton_root_t6uj5:not(:focus):focus-within .DefaultButton_inner_BF58_:not(:focus){-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.5);box-shadow:0 0 0 3px rgba(36,163,227,.5);border-radius:4px}.DefaultButton_root_t6uj5:not(:focus):focus-within .DefaultButton_inner_BF58_:not(:focus) .DefaultButton_content_3vpzk{-webkit-animation-name:DefaultButton_focused_1zzac;animation-name:DefaultButton_focused_1zzac;-webkit-animation-duration:.2s;animation-duration:.2s}.DefaultButton_onlyIcon_3hbI1 .DefaultButton_content_3vpzk{margin:.6875em!important}.DefaultButton_onlyIcon_3hbI1 .DefaultButton_icon_347n7{margin-right:0}:not(.DefaultButton_onlyIcon_3hbI1) .DefaultButton_padding_default_1UqSX .DefaultButton_content_3vpzk{margin:.5625em .8125rem}:not(.DefaultButton_onlyIcon_3hbI1) .DefaultButton_padding_small_2-cQ7 .DefaultButton_content_3vpzk{margin:.7em}@media (min-width:32em){:not(.DefaultButton_onlyIcon_3hbI1) .DefaultButton_padding_small_2-cQ7 .DefaultButton_content_3vpzk{margin:.5em .6em}}.DefaultButton_default_2xxhx{background-color:#303030;color:#fff;border:1px solid #303030}.DefaultButton_default_2xxhx .DefaultButton_spinner_kUOGD{background-color:#303030}@media (hover:hover){.DefaultButton_default_2xxhx:not(.DefaultButton_disabled_25U87):hover{background-color:#3d3d3d}}.DefaultButton_default_2xxhx:not(.DefaultButton_disabled_25U87):active{background-color:#303030;outline:0}.DefaultButton_simple_cg-jF{border:1px solid transparent!important;background-color:transparent}.DefaultButton_simple_cg-jF .DefaultButton_spinner_kUOGD{background-color:#fff}@media (hover:hover){.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(48,48,48,.9);background-color:rgba(48,48,48,.05)}}.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):active{background-color:rgba(74,74,74,.1);outline:0}.DefaultButton_inverted_29NxY{color:#303030;border:1px solid rgba(48,48,48,.35);background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.DefaultButton_inverted_29NxY .DefaultButton_spinner_kUOGD{background-color:#fff}@media (hover:hover){.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):hover{border-color:rgba(48,48,48,.7);background-color:rgba(48,48,48,.05)}}.DefaultButton_inverted_29NxY.DefaultButton_root_t6uj5:focus{border-color:rgba(48,48,48,.7);-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.5);box-shadow:0 0 0 3px rgba(36,163,227,.5)}.DefaultButton_color__primary_2utqu{border-color:#156dff;background-color:#156dff;color:#fff}@media (hover:hover){.DefaultButton_color__primary_2utqu:not(.DefaultButton_disabled_25U87):hover{border-color:#156dff;background-color:#2e7eff}}.DefaultButton_color__primary_2utqu .DefaultButton_spinner_kUOGD{color:#fff;background-color:#156dff}.DefaultButton_color__primary_2utqu.DefaultButton_root_t6uj5:focus{border-color:#156dff}.DefaultButton_color__primary_2utqu.DefaultButton_inverted_29NxY{border-color:rgba(36,163,227,.5);background-color:transparent;color:#156dff}.DefaultButton_color__primary_2utqu.DefaultButton_inverted_29NxY.DefaultButton_root_t6uj5:focus{border-color:#24a3e3}.DefaultButton_color__primary_2utqu.DefaultButton_inverted_29NxY .DefaultButton_spinner_kUOGD{background-color:#fff;color:#156dff}@media (hover:hover){.DefaultButton_color__primary_2utqu.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):hover{border-color:#156dff;background-color:rgba(36,163,227,.05)}}.DefaultButton_color__primary_2utqu.DefaultButton_simple_cg-jF{background-color:transparent;color:#156dff}@media (hover:hover){.DefaultButton_color__primary_2utqu.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(36,163,227,.05);border-color:#24a3e3}}.DefaultButton_color__danger_3HNGA{border-color:#e0322d;background-color:#e0322d;color:#fff}.DefaultButton_color__danger_3HNGA .DefaultButton_spinner_kUOGD{background-color:#e0322d;color:#fff}.DefaultButton_color__danger_3HNGA.DefaultButton_root_t6uj5:focus{border-color:#e66666;-webkit-box-shadow:0 0 0 3px rgba(230,102,102,.5);box-shadow:0 0 0 3px rgba(230,102,102,.5)}@media (hover:hover){.DefaultButton_color__danger_3HNGA:not(.DefaultButton_disabled_25U87):hover{background-color:#e34a45}}.DefaultButton_color__danger_3HNGA.DefaultButton_inverted_29NxY{border-color:rgba(230,102,102,.5);background-color:transparent;color:#e0322d}.DefaultButton_color__danger_3HNGA.DefaultButton_inverted_29NxY .DefaultButton_spinner_kUOGD{background-color:#fff;color:#e0322d}@media (hover:hover){.DefaultButton_color__danger_3HNGA.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(230,102,102,.05);border-color:#e66666}}.DefaultButton_color__danger_3HNGA.DefaultButton_simple_cg-jF{background-color:transparent;color:#e0322d}@media (hover:hover){.DefaultButton_color__danger_3HNGA.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(230,102,102,.05)}}.DefaultButton_color__success_u_TJs{border-color:#308654;background-color:#308654;color:#fff}.DefaultButton_color__success_u_TJs .DefaultButton_spinner_kUOGD{background-color:#308654;color:#fff}.DefaultButton_color__success_u_TJs.DefaultButton_root_t6uj5:focus{border-color:#19b366;-webkit-box-shadow:0 0 0 3px rgba(24,180,102,.5);box-shadow:0 0 0 3px rgba(24,180,102,.5)}@media (hover:hover){.DefaultButton_color__success_u_TJs:not(.DefaultButton_disabled_25U87):hover{background-color:#379a60}}.DefaultButton_color__success_u_TJs.DefaultButton_inverted_29NxY{border-color:rgba(24,180,102,.5);background-color:transparent;color:#308654}.DefaultButton_color__success_u_TJs.DefaultButton_inverted_29NxY .DefaultButton_spinner_kUOGD{background-color:#fff;color:#308654}@media (hover:hover){.DefaultButton_color__success_u_TJs.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(24,180,102,.05);border-color:#308654}}.DefaultButton_color__success_u_TJs.DefaultButton_simple_cg-jF{background-color:transparent;color:#19b366}@media (hover:hover){.DefaultButton_color__success_u_TJs.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(24,180,102,.05)}}.DefaultButton_color__warning_2p0P5{border-color:#ffba00;background-color:#ffba00;color:#141000}.DefaultButton_color__warning_2p0P5 .DefaultButton_spinner_kUOGD{background-color:#ffba00;color:#141000}.DefaultButton_color__warning_2p0P5.DefaultButton_root_t6uj5:focus{border-color:#ffba00;-webkit-box-shadow:0 0 0 3px rgba(255,186,0,.5);box-shadow:0 0 0 3px rgba(255,186,0,.5)}@media (hover:hover){.DefaultButton_color__warning_2p0P5:not(.DefaultButton_disabled_25U87):hover{background-color:#ffc21a}}.DefaultButton_color__warning_2p0P5.DefaultButton_inverted_29NxY{border-color:rgba(255,186,0,.5);background-color:transparent;color:#ffba00}.DefaultButton_color__warning_2p0P5.DefaultButton_inverted_29NxY .DefaultButton_spinner_kUOGD{background-color:#fff;color:#ffba00}@media (hover:hover){.DefaultButton_color__warning_2p0P5.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(255,186,0,.05);border-color:#ffba00}}.DefaultButton_color__warning_2p0P5.DefaultButton_simple_cg-jF{background-color:transparent;color:#ffba00}@media (hover:hover){.DefaultButton_color__warning_2p0P5.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):hover{background-color:rgba(255,186,0,.05)}}.DefaultButton_color__white_3mSBf{border-color:#fff;background-color:#fff;color:#303030}.DefaultButton_color__white_3mSBf.DefaultButton_root_t6uj5:focus{outline-color:#fff}.DefaultButton_color__white_3mSBf .DefaultButton_spinner_kUOGD{background-color:#fff}@media (hover:hover){.DefaultButton_color__white_3mSBf:not(.DefaultButton_disabled_25U87):hover{background-color:#f2f2f2}}.DefaultButton_color__white_3mSBf.DefaultButton_inverted_29NxY{border-color:#fff;background-color:transparent;color:#fff}.DefaultButton_color__white_3mSBf.DefaultButton_inverted_29NxY .DefaultButton_spinner_kUOGD{background-color:#fff;color:#303030}.DefaultButton_color__white_3mSBf.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):focus{outline-color:#fff;border-color:#fff}@media (hover:hover){.DefaultButton_color__white_3mSBf.DefaultButton_inverted_29NxY:not(.DefaultButton_disabled_25U87):hover{background-color:hsla(0,0%,100%,.4);color:#fff}}.DefaultButton_color__white_3mSBf.DefaultButton_simple_cg-jF{border-color:transparent;background-color:transparent;color:#fff}.DefaultButton_color__white_3mSBf.DefaultButton_simple_cg-jF .DefaultButton_spinner_kUOGD{background-color:#fff;color:#303030}@media (hover:hover){.DefaultButton_color__white_3mSBf.DefaultButton_simple_cg-jF:not(.DefaultButton_disabled_25U87):hover{background-color:hsla(0,0%,100%,.4);color:#fff}}.DefaultButton_spinner_kUOGD{position:absolute;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;top:0;left:0;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;opacity:.9}.DefaultButton_disabled_25U87{opacity:.2}.selectable_item_LB4ab{background-color:rgba(21,109,255,0);color:#303030;cursor:default}@media (hover:hover) and (min-width:32em){.selectable_item_LB4ab:hover{background-color:rgba(36,163,227,.15);color:#303030}}.selectable_item_LB4ab:focus{outline:none}@media (hover:hover){.selectable_item_LB4ab:focus{background-color:rgba(36,163,227,.25);color:#303030}}.selectable_item_LB4ab:active{background-color:rgba(36,163,227,.25);color:#303030}.selectable_selected_21Ajz{background-color:#156dff!important;color:#fff!important}@media (hover:hover){.selectable_selected_21Ajz:hover{background-color:#156dff!important;color:#fff!important}}.selectable_selected_21Ajz:focus{outline:none}@media (hover:hover){.selectable_selected_21Ajz:focus{background-color:#156dff!important;color:#fff!important}}.selectable_highlighted_1kR7E,.selectable_highlighted_1kR7E.selectable_selected_21Ajz{background-color:rgba(36,163,227,.25)}.DropDownButton_outer_p3ITE{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.DropDownButton_button_3vwxp{position:relative}.DropDownButton_inner_1qPt-{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;outline:noene}.DropDownButton_arrow_1zIbz{margin-left:.5em}.DropDownButton_list_t94Wr{display:block}.DropDownButton_listItem_1JW-V{white-space:pre}.DropDownButton_list_t94Wr .DropDownButton_listItem_1JW-V{padding:.5em}.DropDownButton_popper_2OjzA{position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;overflow:auto;max-height:calc(100vh - 2rem)}.DefaultList_root_8B-Db{display:block;margin:0;padding:0}.DefaultList_divider_1CnzD{width:100%;height:0;padding:0;margin:0;background:none;border-top:1px solid hsla(0,0%,9%,.1);border-bottom:none;-webkit-box-sizing:border-box;box-sizing:border-box}.DefaultListItem_root_2MZTj{display:block;margin:0;padding:0}.Poppable_portal_Z0ndc{position:fixed;z-index:1060;top:0;left:0}.helpers_resetList_WfyWz{display:block;margin:0;padding:0}.helpers_resetListItem__Z6e9{display:block;list-style-type:none;margin:0;padding:0}.helpers_noLink_3cjz9,.helpers_resetLink_1w3sf{color:inherit;text-decoration:none}.helpers_noLink_3cjz9:hover,.helpers_resetLink_1w3sf:hover{color:inherit}.helpers_movingItem_1oAqL{z-index:3000;position:relative;background-color:#fff;-webkit-box-sizing:content-box;box-sizing:content-box;overflow:visible}.DefaultListItem_root_2MZTj{display:block;margin:0;padding:0}.ArrayInput_root_39W2v{display:block;position:relative}.ArrayInput_list_ONVXk{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ArrayInput_listReadOnly_mbCrC{opacity:.5}.ArrayInput_list_ONVXk+.ArrayInput_functions__wAte{padding-top:.5rem}@media (min-width:32em){.ArrayInput_list_ONVXk+.ArrayInput_functions__wAte{padding-top:1rem}}.ArrayInput_popupAnchor_GD87i{position:absolute;top:75%;left:2em}.ArrayInput_listItem_3kNvG{padding:0;cursor:default}.ArrayInput_gridItem_duYcg{display:block}.ArrayInput_popupAnchorRelative_3eBzi{margin-left:-1rem;margin-right:-1rem}.ArrayInput_popupAnchorRelative_3eBzi.ArrayInput_sortable_22uFC{margin-left:-3.5rem}.ArrayInput_warning_25Lon{padding:1rem;border:2px dashed #ffba00}.ArrayInput_missingKeysWarning_3VmkB{padding:1em}.ArrayInput_fixMissingKeysButtonWrapper_1TZae{margin:1em 0}.ArrayInput_nonObjectsWarning_1gmQO{padding:1em}@-webkit-keyframes DefaultSnackbar_reveal_oCdtz{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes DefaultSnackbar_reveal_oCdtz{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.DefaultSnackbar_root_3m0fm{position:fixed;z-index:2010;bottom:0;left:0;width:100%;-webkit-transition:-webkit-transform .2s linear;transition:-webkit-transform .2s linear;transition:transform .2s linear;transition:transform .2s linear,-webkit-transform .2s linear;-webkit-animation-name:DefaultSnackbar_reveal_oCdtz;animation-name:DefaultSnackbar_reveal_oCdtz;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:once;animation-iteration-count:once}.DefaultSnackbar_inner_2ruE3{position:relative;display:block;padding:1rem;min-height:16px;min-height:1rem}.DefaultSnackbar_info_1BsJD .DefaultSnackbar_inner_2ruE3{background-color:rgba(32,151,172,.9);color:#fff}.DefaultSnackbar_warning_ipHII .DefaultSnackbar_inner_2ruE3{background-color:rgba(255,186,0,.9);color:#141000}.DefaultSnackbar_success_YmZ-u .DefaultSnackbar_inner_2ruE3{background-color:rgba(24,180,102,.9);color:#fff}.DefaultSnackbar_error_3fSoK .DefaultSnackbar_inner_2ruE3{background-color:rgba(230,102,102,.9);color:#fff}.DefaultSnackbar_danger_2B8xb .DefaultSnackbar_inner_2ruE3{background-color:rgba(230,102,102,.9);color:#fff}.DefaultSnackbar_action_2-rLc{float:right;font-size:.8em;-webkit-transform:translate(.5rem,-.5em);transform:translate(.5rem,-.5em)}.DefaultSnackbar_visible_aR3ZC{-webkit-transform:translateY(0);transform:translateY(0)}.DefaultSnackbar_hidden_2hcRf{-webkit-transform:translateY(100%);transform:translateY(100%)}.UploadTarget_overlay_24mXL{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;top:0;left:0;right:0;bottom:0;background-color:hsla(0,0%,100%,.7);z-index:3}.UploadTarget_dragStatusInner_2FRF2{text-align:center}.UploadTarget_pasteInput_3Z_Gm{outline:none;color:transparent;text-shadow:0 0 0 grey;text-align:center;width:100%;padding:1rem;border-radius:4px;border:1px solid #24a3e3;-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42)}.UploadTarget_pasteInput_3Z_Gm *{display:none}.GridList_root_1oGwd{display:grid;grid-template-columns:repeat(auto-fill,minmax(5rem,1fr));grid-gap:.5rem;margin:0;padding:0}@media (min-width:32em){.GridList_root_1oGwd{grid-template-columns:repeat(auto-fill,minmax(7rem,1fr))}}.GridItem_root_2kMDm{display:block;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;list-style:none}.SortableGridItem_root_3Ic5I{cursor:move}.DragHandle_dragHandle_1r8ft{position:absolute;right:1em;cursor:move;font-size:1em;height:1.5em;width:1.5em;line-height:100%;display:inline-block;opacity:.5;-webkit-box-sizing:border-box;box-sizing:border-box;padding:.5em .75em;border:1px solid transparent;z-index:1}.DragHandle_dragHandle_1r8ft:hover{opacity:1}@-webkit-keyframes EditItemFoldOut_appear_12EYl{0%{opacity:0}to{opacity:1}}@keyframes EditItemFoldOut_appear_12EYl{0%{opacity:0}to{opacity:1}}.EditItemFoldOut_root_1M-gZ{position:relative;display:block;width:100%;z-index:1060}.EditItemFoldOut_wrapper_2JAnW{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #24a3e3;background-color:#fff;border-radius:0 0 4px 4px;margin-left:-1rem;margin-right:-1rem;position:relative;-webkit-animation:EditItemFoldOut_appear_12EYl .2s linear;animation:EditItemFoldOut_appear_12EYl .2s linear;width:calc(100% + 2rem)}.EditItemFoldOut_wrapper_2JAnW:after{content:"";-webkit-box-sizing:content-box;box-sizing:content-box;display:block;position:absolute;top:-16px;top:-1rem;left:0;height:0;width:0;margin-left:-1px;margin-top:-1px;border-color:transparent;border-bottom:1rem solid #136790;border-left:1rem solid transparent;z-index:-1}.EditItemFoldOut_wrapper_2JAnW:before{content:"";-webkit-box-sizing:content-box;box-sizing:content-box;display:block;position:absolute;top:-16px;top:-1rem;right:0;height:0;width:0;margin-right:-1px;margin-top:-1px;border-color:transparent;border-bottom:1rem solid #136790;border-right:1rem solid transparent;z-index:-1}.EditItemFoldOut_head_Es946{background-color:#24a3e3;padding:.5rem;height:1.5em;color:#fff}.EditItemFoldOut_close_2Zjjs{pointer-events:auto;outline:none;color:#fff;display:block;border:none;background-color:transparent;float:right}.EditItemFoldOut_closeDark_3ebGe{color:#000}.EditItemFoldOut_content_14YU9{padding:1rem}@-webkit-keyframes PopOver_reveal_3o5UQ{0%{-webkit-transform:scale(.9);transform:scale(.9)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes PopOver_reveal_3o5UQ{0%{-webkit-transform:scale(.9);transform:scale(.9)}to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes PopOver_fadeIn_2DQzW{0%{opacity:0}to{opacity:1}}@keyframes PopOver_fadeIn_2DQzW{0%{opacity:0}to{opacity:1}}.PopOver_overlay_14Fq3{position:absolute;top:0;left:0;height:100%;width:100%;background-color:rgba(0,0,0,.12);opacity:.75;z-index:1060;pointer-events:none;-webkit-animation-name:PopOver_fadeIn_2DQzW;animation-name:PopOver_fadeIn_2DQzW;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-timing-function:cubic-bezier(0,0,0,1);animation-timing-function:cubic-bezier(0,0,0,1);-webkit-animation-iteration-count:once;animation-iteration-count:once}.PopOver_target_1GB6Q{position:absolute;top:0;left:0;width:100%;height:100%}.PopOver_popper_3HmB5{font-size:16px;font-size:1rem;z-index:1060;position:relative}@media (max-width:31.9375em){.PopOver_responsive_3SqHC .PopOver_popper_3HmB5{position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;top:0;left:0;right:0;height:100vh;width:100vw;overflow:auto}}.PopOver_popperAnimation_1Ic1P{-webkit-animation-name:PopOver_reveal_3o5UQ;animation-name:PopOver_reveal_3o5UQ;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-timing-function:cubic-bezier(0,0,0,1);animation-timing-function:cubic-bezier(0,0,0,1);-webkit-animation-iteration-count:once;animation-iteration-count:once}.PopOver_arrow_cHwWX{height:.5em;width:.5em;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg);background-color:#fff;position:absolute;z-index:1;-webkit-clip-path:polygon(0 0,100% 100%,0 100%);clip-path:polygon(0 0,100% 100%,0 100%)}.PopOver_color_danger_1IJ7D .PopOver_arrow_cHwWX{background-color:#e66666}.PopOver_popper_3HmB5[data-placement^=bottom] .PopOver_arrow_cHwWX{top:0;bottom:unset;-webkit-transform:translateY(-50%) rotate(135deg);transform:translateY(-50%) rotate(135deg)}.PopOver_popper_3HmB5[data-placement^=top] .PopOver_arrow_cHwWX{top:unset;bottom:0;-webkit-transform:translate(-50%,50%) rotate(-45deg);transform:translate(-50%,50%) rotate(-45deg)}.PopOver_popper_3HmB5[data-placement^=right] .PopOver_arrow_cHwWX{right:unset;left:0;-webkit-transform:translate(-50%) rotate(45deg);transform:translate(-50%) rotate(45deg)}.PopOver_popper_3HmB5[data-placement^=left] .PopOver_arrow_cHwWX{left:unset;right:0;-webkit-transform:translate(50%) rotate(225deg);transform:translate(50%) rotate(225deg)}.PopOver_arrowShadow_2J68n{-webkit-clip-path:unset;clip-path:unset;background-color:transparent;z-index:-1;-webkit-box-shadow:0 0 16px #000;box-shadow:0 0 16px #000;opacity:.1}.PopOver_popover_1tv5y{z-index:0;background-color:#fff;border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;color:#303030}.PopOver_color_danger_1IJ7D .PopOver_popover_1tv5y{background-color:#e66666;color:#fff}@media (max-width:31.9375em){.PopOver_responsive_3SqHC .PopOver_popover_1tv5y{-webkit-box-shadow:none;box-shadow:none;position:fixed!important;-webkit-box-sizing:border-box;box-sizing:border-box;top:0!important;left:0!important;height:100vh!important;width:100vw!important;margin:0!important;-webkit-transform:translate(0)!important;transform:translate(0)!important;min-width:100vw!important;padding-bottom:3rem;overflow:hidden}}.PopOver_close_1ck-q{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:transparent;font-size:1.5em;border:none;cursor:pointer;outline:none;color:inherit;margin-right:.1em}.PopOver_closeOutsideHeader_3wDRA{position:absolute;border:0;top:8px;top:.5rem;right:0;z-index:1}.PopOver_color_danger_1IJ7D .PopOver_closeOutsideHeader_3wDRA{color:#fff}.PopOver_closeOutsideHeader_3wDRA:hover{color:#000}.PopOver_content_2TO3i{height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:auto;max-height:calc(100vh - 10rem);max-width:90vw}@media (max-width:31.9375em){.PopOver_responsive_3SqHC .PopOver_content_2TO3i{max-height:calc(100vh - 3rem)!important}}.PopOver_contentWithActions_1_6j8{padding-bottom:5rem}.PopOver_content_2TO3i.PopOver_padding_none_2Lglw{padding:0}.PopOver_content_2TO3i.PopOver_padding_small_2MzcO{padding:.5rem}.PopOver_content_2TO3i.PopOver_padding_medium_2tWrL{padding:1rem}.PopOver_content_2TO3i.PopOver_padding_large_J6wDm{padding:1.5rem}.PopOver_responsive_3SqHC .PopOver_head_3vA6P{font-size:1em;padding:.5em;overflow:hidden;position:fixed;top:0;width:100%;left:0;z-index:2}@media (min-width:32em){.PopOver_responsive_3SqHC .PopOver_head_3vA6P{display:none}}.PopOver_header_JY7qv{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;height:3rem;border-bottom:1px solid rgba(48,48,48,.1);-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.PopOver_title_2xOed{font-size:1.25em;font-weight:700;margin:0;padding:.5rem 1rem}@media (max-width:31.9375em){.PopOver_responsive_3SqHC .PopOver_title_2xOed{height:3rem;line-height:3rem;padding:0 .5rem}}.PopOver_primaryFunctions_3gyY4{margin-top:1em}.PopOver_paddingDummy_1IEz-{padding:0;margin:0}.ConfirmButton_root_32Z1W{display:inline-block;position:relative}.ConfirmButton_root_32Z1W:hover{color:#e66666}.ConfirmButton_wrapper_2xJDY{padding:.5rem}.DragHandle_default_28zIQ{cursor:ns-resize;font-size:1em;display:block;opacity:.5;-webkit-box-sizing:border-box;box-sizing:border-box;padding:.5em;border:1px solid transparent;z-index:1}.DragHandle_default_28zIQ:hover{opacity:1}.DragHandle_default_28zIQ svg{font-size:inherit;display:block}.ItemValue_root_ygwSH{position:relative}.ItemValue_inner_3068o{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ItemValue_popupAnchor_5mt0z{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(36,163,227,.25)}.ItemValue_editRootFold_16my7{position:relative;width:calc(100% + 2rem);margin-left:-1rem}.ItemValue_warning_2FlVC{border:1px dashed #ffba00}.ItemValue_missingKeyMessage_2UoJD{color:#ffba00;position:absolute;top:1px;right:1px;z-index:200;padding:.2em .4em;background-color:#fff}.ItemValue_linkToReference_1YvEV{z-index:2;-webkit-transition:opacity .1s linear,-webkit-transform .1s linear;transition:opacity .1s linear,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear;transition:transform .1s linear,opacity .1s linear,-webkit-transform .1s linear;-webkit-transform:scale(1.2);transform:scale(1.2)}.ItemValue_linkToReference_1YvEV:hover{opacity:1;color:#24a3e3}.ItemValue_linkToReference_1YvEV:hover svg{color:#24a3e3}.ItemValue_linkToReference_1YvEV:active{opacity:1;color:#303030}.ItemValue_linkToReference_1YvEV:active svg,.ItemValue_linkToReference_1YvEV svg{color:#303030}.ItemValue_previewWrapper_1qSmD{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-width:0}.ItemValue_previewWrapper_1qSmD:focus{-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42)}.ItemValue_previewWrapperHelper_jenlx{outline:none;padding:.5rem 0;-webkit-box-sizing:border-box;box-sizing:border-box}.ItemValue_innerWithError_3qipr .ItemValue_previewWrapperHelper_jenlx:focus{-webkit-box-shadow:0 0 0 3px rgba(230,102,102,.42);box-shadow:0 0 0 3px rgba(230,102,102,.42)}.ItemValue_functions_2hRZR{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;font-size:14px;font-size:.875rem;color:rgba(48,48,48,.8);margin-left:.5rem}.ItemValue_functions_2hRZR>*{margin-right:.5rem}.ItemValue_functionsInGrid_2Au0z{background-color:hsla(0,0%,100%,.7);position:absolute;top:8px;top:.5rem;right:8px;right:.5rem;font-size:10px;font-size:.625rem;border-radius:4px;z-index:1;color:#303030}.ItemValue_functionsInGrid_2Au0z>*{margin:0}@-webkit-keyframes animation_placeHolderShimmer_2ZJMj{0%{background-position:-100% 0}to{background-position:100% 0}}@keyframes animation_placeHolderShimmer_2ZJMj{0%{background-position:-100% 0}to{background-position:100% 0}}.animation_animation-fast-out-slow-in_2YVcX{-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.animation_animation-linear-out-slow-in_1s63H{-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.animation_animation-fast-out-linear-in_4Kj8l{-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:cubic-bezier(.4,0,1,1);transition-timing-function:cubic-bezier(.4,0,1,1)}.animation_animation-default_3Mciu{-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:ease;transition-timing-function:ease}.animation_animated-loading-background_2OJao{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:animation_placeHolderShimmer_2ZJMj;animation-name:animation_placeHolderShimmer_2ZJMj;-webkit-animation-timing-function:linear;animation-timing-function:linear;background:#f6f7f8;background:-webkit-gradient(linear,left top,right top,color-stop(8%,#eee),color-stop(18%,#ddd),color-stop(33%,#eee));background:linear-gradient(90deg,#eee 8%,#ddd 18%,#eee 33%);background-size:800px 104px;height:100%;position:relative}@-webkit-keyframes Switch_placeHolderShimmer_-H0l2{0%{background-position:-100% 0}to{background-position:100% 0}}@keyframes Switch_placeHolderShimmer_-H0l2{0%{background-position:-100% 0}to{background-position:100% 0}}.Switch_animation-fast-out-slow-in_1HeXC{-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.Switch_animation-linear-out-slow-in_2sck8{-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.Switch_animation-fast-out-linear-in_3Orwm{-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:cubic-bezier(.4,0,1,1);transition-timing-function:cubic-bezier(.4,0,1,1)}.Switch_animation-default_1hguP{-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-timing-function:ease;transition-timing-function:ease}.Switch_animated-loading-background_20B5w{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:Switch_placeHolderShimmer_-H0l2;animation-name:Switch_placeHolderShimmer_-H0l2;-webkit-animation-timing-function:linear;animation-timing-function:linear;background:#f6f7f8;background:-webkit-gradient(linear,left top,right top,color-stop(8%,#eee),color-stop(18%,#ddd),color-stop(33%,#eee));background:linear-gradient(90deg,#eee 8%,#ddd 18%,#eee 33%);background-size:800px 104px;height:100%;position:relative}.Switch_root_20lIJ{display:inline-block!important;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative}.Switch_inner_g_t-b{display:-webkit-box;display:-ms-flexbox;display:flex}.Switch_switchWrapper_112tB{position:relative;min-width:2.5em}.Switch_switch_-U6Fu{background:#b3b3b3;position:absolute;left:0;top:5.6px;top:.35rem;height:9.6px;height:.6rem;width:32px;width:2rem;border-radius:.6rem;cursor:default}.Switch_isChecked_2406B .Switch_switch_-U6Fu{background:#b3b3b3}.Switch_isDisabled_23LU9 .Switch_switch_-U6Fu{background:#e66666;cursor:auto}.Switch_isDisabled_23LU9{pointer-events:none;opacity:.5}.Switch_hasFocus_2q-fL,.Switch_isChecked_2406B,.Switch_unchecked_37xfy{display:block}.Switch_thumb_3fDNK{background:#fff;position:absolute;left:0;top:0;height:20px;height:1.25rem;width:20px;width:1.25rem;border-radius:50%;cursor:default;-webkit-transition-property:left;transition-property:left;z-index:1}.Switch_isDisabled_23LU9 .Switch_thumb_3fDNK{background:#fff;cursor:auto}.Switch_thumbChecked_1m6oJ{background:#24a3e3;left:12px;left:.75rem}.Switch_isDisabled_23LU9.Switch_isChecked_2406B .Switch_thumb_3fDNK{background:#e66666}.Switch_thumbIndeterminate_3RNSw{left:6px;left:.375rem}.Switch_focusHelper_2fzwk{position:absolute;top:50%;left:50%;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:calc(1.25rem + 6px);height:calc(1.25rem + 6px);border-radius:50%;background-color:transparent;-webkit-transform:translate(-50%,-50%) scale(.5);transform:translate(-50%,-50%) scale(.5);-webkit-transition:background-color .1s linear,-webkit-transform .15s linear;transition:background-color .1s linear,-webkit-transform .15s linear;transition:background-color .1s linear,transform .15s linear;transition:background-color .1s linear,transform .15s linear,-webkit-transform .15s linear}.Switch_hasFocus_2q-fL .Switch_focusHelper_2fzwk,.Switch_root_20lIJ:active .Switch_focusHelper_2fzwk{background-color:rgba(36,163,227,.2);-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}.Switch_input_2-jJE{position:absolute;width:0;height:0;margin:0;padding:0;opacity:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none}.Switch_label_2ArTG{display:inline-block;position:relative;cursor:default;margin:0}.Switch_isDisabled_23LU9 .Switch_label_2ArTG{cursor:auto}.Switch_description_D1rqX{position:relative;display:block}.Switch_track_2Tii6{background:#b3b3b3;position:absolute;left:0;top:5.6px;top:.35rem;height:9.6px;height:.6rem;width:32px;width:2rem;border-radius:.6rem;cursor:default}.Switch_isChecked_2406B .Switch_track_2Tii6{background:rgba(36,163,227,.4)}.Switch_isDisabled_23LU9 .Switch_track_2Tii6{background:#e66666;opacity:.5;cursor:default}.Checkbox_root_2guLc{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;z-index:1;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0 0 0 1.25em;width:auto}.Checkbox_isDisabled_-pmm6{opacity:.5;pointer-events:none}.Checkbox_isEnabled_2T8hP{opacity:1}.Checkbox_input_1U_6_{line-height:1em;position:absolute;width:0;height:0;margin:0;padding:0;opacity:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none}.Checkbox_boxOutline_lX5OT{position:absolute;top:0;left:0;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;width:1em;height:1em;margin:0;cursor:default;overflow:hidden;border:.1em solid #24a3e3;border-radius:10%;z-index:2;background-color:#fff}.Checkbox_focusHelper_3op0J{position:absolute;top:-.25em;left:-.25em;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;width:1.5em;height:1.5em;border-radius:10%;background-color:transparent;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transition:background-color .1s linear,-webkit-transform .15s linear;transition:background-color .1s linear,-webkit-transform .15s linear;transition:background-color .1s linear,transform .15s linear;transition:background-color .1s linear,transform .15s linear,-webkit-transform .15s linear}.Checkbox_hasFocus_1507B .Checkbox_focusHelper_3op0J,.Checkbox_root_2guLc:active .Checkbox_focusHelper_3op0J{background-color:rgba(36,163,227,.4);-webkit-transform:scale(1);transform:scale(1)}.Checkbox_tickOutline_h-fdm{position:absolute;top:50%;left:50%;height:1em;width:1em;border-radius:10%;background-color:#24a3e3;opacity:0;-webkit-transform:translate3d(-50%,-50%,1px) scale(0);transform:translate3d(-50%,-50%,1px) scale(0);-webkit-transition:background,-webkit-transform .1s linear;transition:background,-webkit-transform .1s linear;transition:background,transform .1s linear;transition:background,transform .1s linear,-webkit-transform .1s linear}.Checkbox_isChecked_2gJpe .Checkbox_tickOutline_h-fdm{background-color:#24a3e3;opacity:1;-webkit-transform:translate3d(-50%,-50%,1px) scale(.55);transform:translate3d(-50%,-50%,1px) scale(.55);-webkit-transition:background,-webkit-transform .1s linear;transition:background,-webkit-transform .1s linear;transition:background,transform .1s linear;transition:background,transform .1s linear,-webkit-transform .1s linear}.Checkbox_indeterminate_27Jxh .Checkbox_tickOutline_h-fdm{opacity:1;background-color:#24a3e3;-webkit-transform:translate3d(-50%,-50%,1px) scale(.5,.2);transform:translate3d(-50%,-50%,1px) scale(.5,.2);-webkit-transition:background,-webkit-transform .1s linear;transition:background,-webkit-transform .1s linear;transition:background,transform .1s linear;transition:background,transform .1s linear,-webkit-transform .1s linear}.Checkbox_label_1KSgg{cursor:default;font-size:1em;line-height:1em;margin:0}.text-input_root_3I0je{-webkit-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid hsla(0,0%,9%,.2);display:block;width:100%;outline:none;line-height:2em;font-size:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;padding:.2em .5em;border-radius:2px;-webkit-transition:-webkit-box-shadow 50ms linear;transition:-webkit-box-shadow 50ms linear;transition:box-shadow 50ms linear;transition:box-shadow 50ms linear,-webkit-box-shadow 50ms linear;color:#303030;background-color:#fff;-webkit-box-shadow:none;box-shadow:none}.text-input_root_3I0je:disabled{opacity:.5}.text-input_root_3I0je::-webkit-input-placeholder{color:rgba(48,48,48,.8)}.text-input_root_3I0je::-moz-placeholder{color:rgba(48,48,48,.8)}.text-input_root_3I0je::-ms-input-placeholder{color:rgba(48,48,48,.8)}.text-input_root_3I0je::placeholder{color:rgba(48,48,48,.8)}.text-input_textInput_2io_4:-moz-read-only{opacity:.5}.text-input_textInput_2io_4:read-only{opacity:.5}.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):hover{box-shadow:none;border-color:#999}.text-input_textInput_2io_4:not(:disabled):not(:read-only):hover{-webkit-box-shadow:none;box-shadow:none;border-color:#999}.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):focus,.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):focus-within{box-shadow:0 0 0 3px rgba(36,163,227,.42);background-color:#fff;border-color:#24a3e3}.text-input_textInput_2io_4:not(:disabled):not(:read-only):focus,.text-input_textInput_2io_4:not(:disabled):not(:read-only):focus-within{-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42);background-color:#fff;border-color:#24a3e3}.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):focus-within:invalid,.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):focus:invalid{box-shadow:0 0 0 3px rgba(230,102,102,.42)}.text-input_textInput_2io_4:not(:disabled):not(:read-only):focus-within:invalid,.text-input_textInput_2io_4:not(:disabled):not(:read-only):focus:invalid{-webkit-box-shadow:0 0 0 3px rgba(230,102,102,.42);box-shadow:0 0 0 3px rgba(230,102,102,.42)}.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):active{border-color:#24a3e3}.text-input_textInput_2io_4:not(:disabled):not(:read-only):active{border-color:#24a3e3}.text-input_textInput_2io_4:not(:disabled):not(:-moz-read-only):invalid{border-color:#e66666;background-color:#fff;box-shadow:none}.text-input_textInput_2io_4:not(:disabled):not(:read-only):invalid{border-color:#e66666;background-color:#fff;-webkit-box-shadow:none;box-shadow:none}.textarea_root_hYKBu{resize:vertical;padding:.5em;min-height:6em;line-height:1.5em;-webkit-transition:none;transition:none}.DefaultTextArea_root_3avq-{width:100%;position:relative}.DefaultTextArea_textarea_10owa{position:relative;width:100%}.DefaultTextArea_clearButton_3xwlf{position:absolute;z-index:1;top:.5em;right:.5em}.DefaultTextArea_clearButton_3xwlf svg{color:inherit}.headings_root_1MVCX{text-align:left;display:block;font-family:inherit;font-weight:700;line-height:1.1em;color:inherit;margin:0;padding:0}.headings_heading1_2x6UB{font-size:42px;font-size:2.625rem;padding-bottom:1rem;padding-top:1rem}.headings_heading2_2Yx9A{font-size:32px;font-size:2rem;padding-top:1rem;padding-bottom:1rem}.headings_heading3_GT1QW{font-size:28px;font-size:1.75rem;padding-top:1rem;padding-bottom:1rem}.headings_heading4_1qUjH{font-size:20px;font-size:1.25rem;padding-top:1rem;padding-bottom:1rem}.headings_heading5_1fjAm{font-size:16px;font-size:1rem;padding-top:.5rem;padding-bottom:.5rem}.headings_heading6_3Bcty{font-size:14px;font-size:.875rem;padding-top:.5rem;padding-bottom:.5rem}.CardPreview_root_28r45{display:block;max-width:100%;position:relative;background-color:#fff}.CardPreview_heading_DczLq{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.CardPreview_ellipsis_1BzYf{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.CardPreview_title_3Q33L{text-transform:none;color:inherit;margin:0;padding:0!important;min-width:0;line-height:1.3em}.CardPreview_subtitle_29gco{font-size:.75em;text-transform:none;font-weight:300;padding:0;margin:0 0 .5em;color:inherit}.CardPreview_date_2on4H{font-size:12px;font-size:.75rem;margin-bottom:.5em}.CardPreview_mediaContainer_njEL1{display:block;background-color:hsla(0,0%,70.2%,.5)}.CardPreview_media_Y3Szb{position:relative;width:100%;overflow:hidden;background-image:-webkit-gradient(linear,left top,right top,from(rgba(48,48,48,.1)),color-stop(10%,rgba(48,48,48,.05)),to(rgba(48,48,48,.1)));background-image:linear-gradient(90deg,rgba(48,48,48,.1),rgba(48,48,48,.05) 10%,rgba(48,48,48,.1))}.CardPreview_media_Y3Szb img{display:block;width:100%;height:auto}.CardPreview_mediaString_1yCLo{padding:5px;font-size:14px;font-size:.875rem;color:#999}.CardPreview_mediaPadding_3EfJP{position:relative}.CardPreview_mediaContent_qP2DJ{position:absolute;top:0;left:0;height:100%;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.CardPreview_mediaContent_qP2DJ .sanity-studio__preview-fallback-icon{width:4em;height:4em;opacity:.5}.CardPreview_mediaContentRelative_3W8k_{position:relative}.CardPreview_description_3Hqxd{font-size:12px;font-size:.75rem;color:inherit;font-weight:400;padding:0;margin:0}.CardPreview_meta_1rxhi{padding:1em;background-color:inherit}.CardPreview_img_3_lYB{display:block;width:100%;height:auto}.CardPreview_placeholder_2XQMt{position:relative}.CardPreview_placeholder_2XQMt .CardPreview_media_Y3Szb{background-image:-webkit-gradient(linear,left top,right top,from(rgba(48,48,48,.1)),color-stop(10%,rgba(48,48,48,.05)),to(rgba(48,48,48,.1)));background-image:linear-gradient(90deg,rgba(48,48,48,.1),rgba(48,48,48,.05) 10%,rgba(48,48,48,.1))}.CardPreview_placeholder_2XQMt .CardPreview_meta_1rxhi{position:relative}.CardPreview_placeholder_2XQMt .CardPreview_title_3Q33L{background-image:-webkit-gradient(linear,left top,right top,from(rgba(48,48,48,.1)),color-stop(10%,rgba(48,48,48,.05)),to(rgba(48,48,48,.1)));background-image:linear-gradient(90deg,rgba(48,48,48,.1),rgba(48,48,48,.05) 10%,rgba(48,48,48,.1));width:70%;height:.8em;margin-bottom:.2em}.CardPreview_placeholder_2XQMt .CardPreview_subtitle_29gco{background-image:-webkit-gradient(linear,left top,right top,from(rgba(48,48,48,.1)),color-stop(10%,rgba(48,48,48,.05)),to(rgba(48,48,48,.1)));background-image:linear-gradient(90deg,rgba(48,48,48,.1),rgba(48,48,48,.05) 10%,rgba(48,48,48,.1));height:1em}.CardPreview_placeholder_2XQMt .CardPreview_date_2on4H{background-image:-webkit-gradient(linear,left top,right top,from(rgba(48,48,48,.1)),color-stop(10%,rgba(48,48,48,.05)),to(rgba(48,48,48,.1)));background-image:linear-gradient(90deg,rgba(48,48,48,.1),rgba(48,48,48,.05) 10%,rgba(48,48,48,.1));width:64px;width:4rem;height:.8em;margin-bottom:.2em}.CardPreview_placeholder_2XQMt .CardPreview_description_1_3hyKp{background-image:-webkit-gradient(linear,left top,right top,from(rgba(48,48,48,.1)),color-stop(10%,rgba(48,48,48,.05)),to(rgba(48,48,48,.1)));background-image:linear-gradient(90deg,rgba(48,48,48,.1),rgba(48,48,48,.05) 10%,rgba(48,48,48,.1));width:calc(100% - 2rem);height:.8em;margin-bottom:.2em}.CardPreview_placeholder_2XQMt .CardPreview_description_2_1qadG{background-image:-webkit-gradient(linear,left top,right top,from(rgba(48,48,48,.1)),color-stop(10%,rgba(48,48,48,.05)),to(rgba(48,48,48,.1)));background-image:linear-gradient(90deg,rgba(48,48,48,.1),rgba(48,48,48,.05) 10%,rgba(48,48,48,.1));width:calc(50% - 2rem);height:.8em;margin-bottom:.2em}@-webkit-keyframes DefaultPreview_progressGlow_3QFOh{0%{-webkit-box-shadow:0 0 3px #24a3e3;box-shadow:0 0 3px #24a3e3}to{-webkit-box-shadow:0 0 15px #24a3e3;box-shadow:0 0 15px #24a3e3}}@keyframes DefaultPreview_progressGlow_3QFOh{0%{-webkit-box-shadow:0 0 3px #24a3e3;box-shadow:0 0 3px #24a3e3}to{-webkit-box-shadow:0 0 15px #24a3e3;box-shadow:0 0 15px #24a3e3}}.DefaultPreview_root_1MM-_{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:2.5em;position:relative;clear:both}.DefaultPreview_heading_1fm-z{min-width:0;margin-right:.5rem;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden}.DefaultPreview_ellipsis_3S--u{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.DefaultPreview_title_3P-N4{font-size:1em;line-height:2.5em;color:inherit;font-weight:400;text-transform:none;padding:0;margin:0;max-width:100%}.DefaultPreview_hasSubtitle_1tjaC .DefaultPreview_title_3P-N4{line-height:1.3em}.DefaultPreview_subtitle_3Bk9o{color:inherit;margin:0;padding:0 0 .25em;line-height:1.5em;height:1.5em;font-size:.7em;font-weight:300}.DefaultPreview_media_2wwhl{position:relative;-ms-flex-preferred-size:40px;flex-basis:40px;-ms-flex-preferred-size:2.5rem;flex-basis:2.5rem;min-width:40px;min-width:2.5rem;margin-right:.5rem;font-size:.5em;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box}.DefaultPreview_placeholder_3JbeB .DefaultPreview_media_2wwhl{width:40px;width:2.5rem;height:40px;height:2.5rem}.DefaultPreview_media_2wwhl img{display:block;width:40px;width:2.5rem;height:40px;height:2.5rem;-o-object-fit:contain;object-fit:contain}.DefaultPreview_media_2wwhl svg{font-size:24px;font-size:1.5rem;color:inherit}.DefaultPreview_mediaString_zaM9Z{padding:5px;font-size:10px;font-size:.625rem;color:#999}.DefaultPreview_placeholder_3JbeB .DefaultPreview_heading_1fm-z{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:100%}.DefaultPreview_placeholder_3JbeB .DefaultPreview_title_3P-N4{width:80%;color:transparent;background-color:hsla(0,0%,9%,.1)}.DefaultPreview_placeholder_3JbeB .DefaultPreview_subtitle_3Bk9o{width:40%;color:transparent;background-color:hsla(0,0%,9%,.1)}.DefaultPreview_placeholder_3JbeB .DefaultPreview_media_2wwhl{border-color:transparent;color:transparent;background-color:hsla(0,0%,9%,.1)}.DefaultPreview_animation_BvIkL{position:absolute;top:0;left:0;height:100%;width:100%;z-index:-1}.DefaultPreview_status_1wyLm{vertical-align:middle;line-height:40px;line-height:2.5rem;margin-left:auto;white-space:nowrap;opacity:.7;color:currentColor}.DefaultPreview_progress_1KSJq{position:absolute;background-color:rgba(36,163,227,.05);width:100%;height:100%;left:0;top:0}.DefaultPreview_progressBar_2-srP{height:100%;position:absolute;bottom:0;left:0;background-color:rgba(36,163,227,.2);z-index:1}.DefaultPreview_progressBar_2-srP:after{position:absolute;height:2px;bottom:0;left:0;width:100%;content:"";background-color:#24a3e3;-webkit-box-shadow:0 0 3px #24a3e3;box-shadow:0 0 3px #24a3e3;z-index:2}.DetailPreview_root_3zDPn{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:5em;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;position:relative}.DetailPreview_top_1NFF0{display:-webkit-box;display:-ms-flexbox;display:flex;min-width:0;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.DetailPreview_heading_2B5sa{display:block;min-width:0}.DetailPreview_content_N67Dv{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-width:0}.DetailPreview_ellipsis_yN-Sh{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.DetailPreview_title_1N4Vu{color:inherit;font-weight:500;text-transform:none;margin:0;padding:0;min-width:0}.DetailPreview_subtitle_2aHXs{color:inherit;padding:0;margin:-.25em 0 0;font-size:.8em;font-weight:300;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.DetailPreview_description_uym-8{padding:0;margin:.25em 0 0;font-size:.75em;line-height:1em;overflow:hidden;height:2em}.DetailPreview_media_2Acua{-ms-flex-preferred-size:5em;flex-basis:5em;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-width:5em;width:5em;max-width:5em;overflow:hidden;position:relative;margin-right:.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.DetailPreview_media_2Acua>img{display:block;width:5em;height:5em;-o-object-fit:contain;object-fit:contain}.DetailPreview_media_2Acua svg{font-size:48px;font-size:3rem;color:inherit}.DetailPreview_status_2QLAZ{color:rgba(82,82,82,.88)}.DetailPreview_mediaString_edjbP{padding:5px;font-size:14px;font-size:.875rem;color:#999}.DetailPreview_placeholder_2EIU2 .DetailPreview_top_1NFF0{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}.DetailPreview_placeholder_2EIU2 .DetailPreview_content_N67Dv{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:100%}.DetailPreview_placeholder_2EIU2 .DetailPreview_title_1N4Vu{width:80%;color:transparent;background-color:hsla(0,0%,9%,.1)}.DetailPreview_placeholder_2EIU2 .DetailPreview_subtitle_2aHXs{width:70%;color:transparent;background-color:hsla(0,0%,9%,.1)}.DetailPreview_placeholder_2EIU2 .DetailPreview_description_uym-8{width:90%;color:transparent;background-color:hsla(0,0%,9%,.1)}.DetailPreview_placeholder_2EIU2 .DetailPreview_media_2Acua{border-color:transparent;color:transparent;background-color:hsla(0,0%,9%,.1)}.InlinePreview_media_1pRUL,.InlinePreview_root_1xWI1{display:inline;position:relative}.InlinePreview_media_1pRUL img{height:1.4ex;display:inline;-o-object-fit:cover;object-fit:cover}.InlinePreview_media_1pRUL div{display:inline}.InlinePreview_title_PP_sg:empty{display:none}.InlinePreview_media_1pRUL:not(:empty)+.InlinePreview_title_PP_sg:not(:empty){padding-left:.2em}.MediaPreview_root_20Ghq{position:relative;overflow:hidden;width:100%}.MediaPreview_title_2BuhY{font-size:1em;font-weight:100;text-transform:uppercase;margin:0}.MediaPreview_subtitle_18kSI{font-size:1em;font-weight:300;margin:0}.MediaPreview_description_g6AkU{max-width:80%;color:#fff;font-weight:100;margin:1em auto;opacity:.5}.MediaPreview_mediaContainer_1Ys-X{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f2f2f2}.MediaPreview_mediaContainer_1Ys-X>img{height:100%;width:100%}.MediaPreview_mediaContainer_1Ys-X .sanity-studio__preview-fallback-icon{width:2em;height:2em;opacity:.5}.MediaPreview_progress_2Vfp9{position:absolute;width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:hsla(0,0%,100%,.7)}.MediaPreview_mediaString_2fLwB{padding:.5rem;font-size:14px;font-size:.875rem;color:#999;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%;-webkit-box-sizing:border-obx;box-sizing:border-obx}.MediaPreview_meta_2EINs{position:absolute;opacity:0;top:0;left:0;bottom:0;right:0;width:100%;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center;z-index:1;-webkit-transition:opacity .3s ease-out;transition:opacity .3s ease-out;display:none}.MediaPreview_root_20Ghq:hover .MediaPreview_meta_2EINs{-webkit-transition-duration:.1s;transition-duration:.1s;opacity:1}.MediaPreview_metaInner_361v1{padding:.5em}.MediaPreview_placeholder_2s7Os{height:100%;width:100%;background-image:-webkit-gradient(linear,left top,right top,from(rgba(48,48,48,.1)),color-stop(10%,rgba(48,48,48,.05)),to(rgba(48,48,48,.1)));background-image:linear-gradient(90deg,rgba(48,48,48,.1),rgba(48,48,48,.05) 10%,rgba(48,48,48,.1))}.MediaPreview_placeholder_2s7Os .MediaPreview_media_2loFh{x:0;y:0;height:100%;width:100%}@-webkit-keyframes ProgressCircle_finish_3f8mB{0%{stroke-width:1em}10%{stroke-width:.5em}90%{-webkit-transform:scale(.9);transform:scale(.9)}to{-webkit-transform:scale(2);transform:scale(2);opacity:0;stroke-width:1px}}@keyframes ProgressCircle_finish_3f8mB{0%{stroke-width:1em}10%{stroke-width:.5em}90%{-webkit-transform:scale(.9);transform:scale(.9)}to{-webkit-transform:scale(2);transform:scale(2);opacity:0;stroke-width:1px}}@-webkit-keyframes ProgressCircle_rotate_2BkhD{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ProgressCircle_rotate_2BkhD{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes ProgressCircle_strokeWidth_3x7fo{0%{stroke-width:0}50%{stroke-width:1px}to{stroke-width:0}}@keyframes ProgressCircle_strokeWidth_3x7fo{0%{stroke-width:0}50%{stroke-width:1px}to{stroke-width:0}}@-webkit-keyframes ProgressCircle_strokeDash_39xSC{0%{stroke-dasharray:0,314.15927;stroke-dashoffset:0}50%{stroke-dasharray:314.15927,0;stroke-dashoffset:0}to{stroke-dasharray:314.15927,314.15927;stroke-dashoffset:-314.15927}}@keyframes ProgressCircle_strokeDash_39xSC{0%{stroke-dasharray:0,314.15927;stroke-dashoffset:0}50%{stroke-dasharray:314.15927,0;stroke-dashoffset:0}to{stroke-dasharray:314.15927,314.15927;stroke-dashoffset:-314.15927}}.ProgressCircle_root_XbDXd{width:100%;display:block}.ProgressCircle_svg_Er1mt{display:block;margin:0 auto}.ProgressCircle_background_kjXzJ{stroke:#000;stroke-width:.5em;opacity:.05;fill:none;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.ProgressCircle_completed_ilSTH .ProgressCircle_background_kjXzJ{opacity:0}.ProgressCircle_foreground_3CjNY{-webkit-transform-origin:center center;transform-origin:center center;stroke:#000;fill:none;stroke-width:.5em;-webkit-transition:stroke .2s linear,opacity .3s linear;transition:stroke .2s linear,opacity .3s linear}.ProgressCircle_completed_ilSTH .ProgressCircle_foreground_3CjNY{stroke:#19b366;-webkit-animation-name:ProgressCircle_finish_3f8mB;animation-name:ProgressCircle_finish_3f8mB;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.ProgressCircle_hundredPercent_1wRSN .ProgressCircle_foreground_3CjNY{stroke:#19b366}.ProgressCircle_activeCircle_2bzjS{-webkit-transform-origin:center center;transform-origin:center center;stroke:#000;fill:none;stroke-width:1px;stroke-dasharray:0,314.15927;-webkit-animation:ProgressCircle_strokeDash_39xSC 6s ease-out infinite,ProgressCircle_strokeWidth_3x7fo 3s ease-out infinite,ProgressCircle_rotate_2BkhD 18s linear infinite;animation:ProgressCircle_strokeDash_39xSC 6s ease-out infinite,ProgressCircle_strokeWidth_3x7fo 3s ease-out infinite,ProgressCircle_rotate_2BkhD 18s linear infinite}.ProgressCircle_completed_ilSTH .ProgressCircle_activeCircle_2bzjS{opacity:0}.ProgressCircle_text_3OJmD{font-weight:400;font-size:1em;fill:inherit;-webkit-transform-origin:center center;transform-origin:center center}.ProgressCircle_completed_ilSTH .ProgressCircle_text_3OJmD{-webkit-animation-name:ProgressCircle_finish_3f8mB;animation-name:ProgressCircle_finish_3f8mB;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.ProgressCircle_percent_yFsIa{font-weight:400}.ProgressCircle_status_3W2Y9{fill:inherit;font-weight:400;font-size:.7em}.ProgressCircle_completed_ilSTH .ProgressCircle_status_3W2Y9{-webkit-animation-name:ProgressCircle_finish_3f8mB;animation-name:ProgressCircle_finish_3f8mB;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes DefaultPreview_progressGlow_3QFOh{0%{-webkit-box-shadow:0 0 3px #24a3e3;box-shadow:0 0 3px #24a3e3}to{-webkit-box-shadow:0 0 15px #24a3e3;box-shadow:0 0 15px #24a3e3}}@keyframes DefaultPreview_progressGlow_3QFOh{0%{-webkit-box-shadow:0 0 3px #24a3e3;box-shadow:0 0 3px #24a3e3}to{-webkit-box-shadow:0 0 15px #24a3e3;box-shadow:0 0 15px #24a3e3}}.DefaultPreview_root_1MM-_{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:100%;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:2.5em;position:relative;clear:both}.DefaultPreview_heading_1fm-z{min-width:0;margin-right:.5rem;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden}.DefaultPreview_ellipsis_3S--u{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.DefaultPreview_title_3P-N4{font-size:1em;line-height:2.5em;color:inherit;font-weight:400;text-transform:none;padding:0;margin:0;max-width:100%}.DefaultPreview_hasSubtitle_1tjaC .DefaultPreview_title_3P-N4{line-height:1.3em}.DefaultPreview_subtitle_3Bk9o{color:inherit;margin:0;padding:0 0 .25em;line-height:1.5em;height:1.5em;font-size:.7em;font-weight:300}.DefaultPreview_media_2wwhl{position:relative;-ms-flex-preferred-size:40px;flex-basis:40px;-ms-flex-preferred-size:2.5rem;flex-basis:2.5rem;min-width:40px;min-width:2.5rem;margin-right:.5rem;font-size:.5em;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box}.DefaultPreview_placeholder_3JbeB .DefaultPreview_media_2wwhl{width:40px;width:2.5rem;height:40px;height:2.5rem}.DefaultPreview_media_2wwhl img{display:block;width:40px;width:2.5rem;height:40px;height:2.5rem;-o-object-fit:contain;object-fit:contain}.DefaultPreview_media_2wwhl svg{font-size:24px;font-size:1.5rem;color:inherit}.DefaultPreview_mediaString_zaM9Z{padding:5px;font-size:10px;font-size:.625rem;color:#999}.DefaultPreview_placeholder_3JbeB .DefaultPreview_heading_1fm-z{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:100%}.DefaultPreview_placeholder_3JbeB .DefaultPreview_title_3P-N4{width:80%;color:transparent;background-color:hsla(0,0%,9%,.1)}.DefaultPreview_placeholder_3JbeB .DefaultPreview_subtitle_3Bk9o{width:40%;color:transparent;background-color:hsla(0,0%,9%,.1)}.DefaultPreview_placeholder_3JbeB .DefaultPreview_media_2wwhl{border-color:transparent;color:transparent;background-color:hsla(0,0%,9%,.1)}.DefaultPreview_animation_BvIkL{position:absolute;top:0;left:0;height:100%;width:100%;z-index:-1}.DefaultPreview_status_1wyLm{vertical-align:middle;line-height:40px;line-height:2.5rem;margin-left:auto;white-space:nowrap;opacity:.7;color:currentColor}.DefaultPreview_progress_1KSJq{position:absolute;background-color:rgba(36,163,227,.05);width:100%;height:100%;left:0;top:0}.DefaultPreview_progressBar_2-srP{height:100%;position:absolute;bottom:0;left:0;background-color:rgba(36,163,227,.2);z-index:1}.DefaultPreview_progressBar_2-srP:after{position:absolute;height:2px;bottom:0;left:0;width:100%;content:"";background-color:#24a3e3;-webkit-box-shadow:0 0 3px #24a3e3;box-shadow:0 0 3px #24a3e3;z-index:2}.BlockPreview_root_3E7di{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;width:100%}.BlockPreview_header_1uKk-{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;padding:.5em}.BlockPreview_heading_3ElTc{vertical-align:baseline;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center;min-height:40px;min-height:2.5rem}.BlockPreview_ellipsis_1A9Ub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.BlockPreview_subtitle_3qpxc,.BlockPreview_title_3j6uo{line-height:1.2em;margin:0;padding:0}.BlockPreview_description_2iJZm{margin:0;font-size:12px;font-size:.75rem;padding:.5rem 1rem 0 0;max-height:5em;position:relative;-webkit-mask-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(transparent));-webkit-mask-image:linear-gradient(180deg,#fff,transparent);mask-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(transparent));mask-image:linear-gradient(180deg,#fff,transparent)}.BlockPreview_status_1e9Qp{color:#fff;background-color:#999;padding:.25em .5em;font-size:14px;font-size:.875rem;margin-left:auto}.BlockPreview_media_3bzTt{height:40px;height:2.5rem;width:40px;width:2.5rem;min-width:40px;min-width:2.5rem;margin-right:.5em;position:relative;overflow:hidden}.BlockPreview_media_3bzTt img{width:100%;height:100%;display:block;-o-object-fit:cover;object-fit:cover}.BlockPreview_media_3bzTt svg{display:block;height:40px!important;height:2.5rem!important;width:40px!important;width:2.5rem!important}.BlockPreview_media_3bzTt:empty{display:none}.BlockImagePreview_root_a6Z_t{display:block;pointer-events:none}.BlockImagePreview_preview_Djeo8{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.BlockImagePreview_heading_3Bzep{padding:1rem}.BlockImagePreview_media_3K9MK+.BlockImagePreview_heading_3Bzep{padding-left:0}.BlockImagePreview_media_3K9MK+.BlockImagePreview_heading_3Bzep:empty{padding:0}.BlockImagePreview_title_3EHKS{font-size:16px;font-size:1rem;margin:0;padding:1rem}.BlockImagePreview_title_3EHKS:empty{display:none}.BlockImagePreview_media_3K9MK{padding:1rem;min-width:25%}.BlockImagePreview_media_3K9MK img{display:block;max-width:100%;height:auto;pointer-events:none}.BlockImagePreview_media_3K9MK:empty{display:none}.BlockImagePreview_subtitle_SWHnN{margin:0;padding:0;font-size:14px;font-size:.875rem}.BlockImagePreview_description_x8V6G{font-size:12px;font-size:.75rem}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__year-read-view--down-arrow{margin-left:-8px;position:absolute}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow:before,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow:before,.react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view--down-arrow:before{-webkit-box-sizing:content-box;box-sizing:content-box;position:absolute;border:8px solid transparent;height:0;width:1px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker__month-read-view--down-arrow:before,.react-datepicker__month-year-read-view--down-arrow:before,.react-datepicker__year-read-view--down-arrow:before{content:"";z-index:-1;border-width:8px;left:-8px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__year-read-view--down-arrow{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow:before,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow:before,.react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view--down-arrow:before{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker__month-read-view--down-arrow:before,.react-datepicker__month-year-read-view--down-arrow:before,.react-datepicker__year-read-view--down-arrow:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block}.react-datepicker{font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12.8px;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{margin-top:10px}.react-datepicker-popper[data-placement^=top]{margin-bottom:10px}.react-datepicker-popper[data-placement^=right]{margin-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{margin-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:4.8px;border-top-left-radius:.3rem;border-top-right-radius:4.8px;border-top-right-radius:.3rem;padding-top:8px;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__year-dropdown-container--select{display:inline-block;margin:0 2px}.react-datepicker-time__header,.react-datepicker__current-month{margin-top:0;color:#000;font-weight:700;font-size:15.104px;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{background:none;line-height:27.2px;line-height:1.7rem;text-align:center;cursor:pointer;position:absolute;top:10px;width:0;padding:0;border:.45rem solid transparent;z-index:1;height:10px;width:10px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:10px;border-right-color:#ccc}.react-datepicker__navigation--previous:hover{border-right-color:#b3b3b3}.react-datepicker__navigation--previous--disabled,.react-datepicker__navigation--previous--disabled:hover{border-right-color:#e6e6e6;cursor:default}.react-datepicker__navigation--next{right:10px;border-left-color:#ccc}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:80px}.react-datepicker__navigation--next:hover{border-left-color:#b3b3b3}.react-datepicker__navigation--next--disabled,.react-datepicker__navigation--next--disabled:hover{border-left-color:#e6e6e6;cursor:default}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px;border-top-color:#ccc}.react-datepicker__navigation--years-previous:hover{border-top-color:#b3b3b3}.react-datepicker__navigation--years-upcoming{top:-4px;border-bottom-color:#ccc}.react-datepicker__navigation--years-upcoming:hover{border-bottom-color:#b3b3b3}.react-datepicker__month-container{float:left}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:70px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-72px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:#fff}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:70px;overflow-x:hidden;margin:0 auto;text-align:center}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;-webkit-box-sizing:content-box;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__week-number{color:#ccc;display:inline-block;width:27.2px;width:1.7rem;line-height:27.2px;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day-names,.react-datepicker__week{white-space:nowrap}.react-datepicker__day,.react-datepicker__day-name,.react-datepicker__time-name{color:#000;display:inline-block;width:27.2px;width:1.7rem;line-height:27.2px;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day{cursor:pointer}.react-datepicker__day:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today{font-weight:700}.react-datepicker__day--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2{color:green}.react-datepicker__day--in-range,.react-datepicker__day--in-selecting-range,.react-datepicker__day--selected{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--in-range:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--selected:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected{border-radius:.3rem;background-color:#2a87d0;color:#fff}.react-datepicker__day--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range){background-color:rgba(33,107,165,.5)}.react-datepicker-cssmodules_react-datepicker__month--selecting-range_2iB0p .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover{background-color:transparent}.react-datepicker__input-container{position:relative;display:inline-block}.react-datepicker__month-read-view,.react-datepicker__month-year-read-view,.react-datepicker__year-read-view{border:1px solid transparent;border-radius:.3rem}.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover,.react-datepicker__year-read-view:hover{cursor:pointer}.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__year-read-view--down-arrow{border-top-color:#ccc;float:right;margin-left:20px;top:8px;position:relative;border-width:.45rem}.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown,.react-datepicker__year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover,.react-datepicker__year-dropdown:hover{cursor:pointer}.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable,.react-datepicker__year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__month-option,.react-datepicker__month-year-option,.react-datepicker__year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type,.react-datepicker__year-option:first-of-type{border-top-left-radius:4.8px;border-top-left-radius:.3rem;border-top-right-radius:4.8px;border-top-right-radius:.3rem}.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type,.react-datepicker__year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom-left-radius:4.8px;border-bottom-left-radius:.3rem;border-bottom-right-radius:4.8px;border-bottom-right-radius:.3rem}.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover,.react-datepicker__year-option:hover{background-color:#ccc}.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected,.react-datepicker__year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{background-color:transparent;border:0;cursor:pointer;outline:0;padding:0;vertical-align:middle;position:absolute;height:16px;width:16px;top:25%;right:7px}.react-datepicker__close-icon:after{background-color:#216ba5;border-radius:50%;bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;content:"\D7";cursor:pointer;font-size:12px;height:16px;width:16px;line-height:1;margin:-8px auto 0;padding:2px;position:absolute;right:0;text-align:center}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:rgba(0,0,0,.8);left:0;top:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__time-name{width:48px;width:3rem;line-height:48px;line-height:3rem}@media (max-height:550px),(max-width:400px){.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker-time__header,.react-datepicker__portal .react-datepicker__current-month{font-size:23.04px;font-size:1.44rem}.react-datepicker__portal .react-datepicker__navigation{border:.81rem solid transparent}.react-datepicker__portal .react-datepicker__navigation--previous{border-right-color:#ccc}.react-datepicker__portal .react-datepicker__navigation--previous:hover{border-right-color:#b3b3b3}.react-datepicker__portal .react-datepicker__navigation--previous--disabled,.react-datepicker__portal .react-datepicker__navigation--previous--disabled:hover{border-right-color:#e6e6e6;cursor:default}.react-datepicker__portal .react-datepicker__navigation--next{border-left-color:#ccc}.react-datepicker__portal .react-datepicker__navigation--next:hover{border-left-color:#b3b3b3}.react-datepicker__portal .react-datepicker__navigation--next--disabled,.react-datepicker__portal .react-datepicker__navigation--next--disabled:hover{border-left-color:#e6e6e6;cursor:default}.BaseDateTimeInput_shadow-0dp_2XOQd{-webkit-box-shadow:none;box-shadow:none}.BaseDateTimeInput_shadow-1dp_1l4Ym{-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,.1),0 3px 1px -2px rgba(0,0,0,.08),0 1px 5px 0 rgba(0,0,0,.02);box-shadow:0 2px 2px 0 rgba(0,0,0,.1),0 3px 1px -2px rgba(0,0,0,.08),0 1px 5px 0 rgba(0,0,0,.02)}.BaseDateTimeInput_shadow-6dp_3huzq{-webkit-box-shadow:0 3px 3px 0 rgba(0,0,0,.1),0 1px 7px 0 rgba(0,0,0,.08),0 3px 1px -1px rgba(0,0,0,.02);box-shadow:0 3px 3px 0 rgba(0,0,0,.1),0 1px 7px 0 rgba(0,0,0,.08),0 3px 1px -1px rgba(0,0,0,.02)}.BaseDateTimeInput_shadow-12dp_FaS-i{-webkit-box-shadow:0 8px 17px 2px rgba(0,0,0,.1),0 3px 14px 2px rgba(0,0,0,.08),0 5px 5px -3px rgba(0,0,0,.02);box-shadow:0 8px 17px 2px rgba(0,0,0,.1),0 3px 14px 2px rgba(0,0,0,.08),0 5px 5px -3px rgba(0,0,0,.02)}.BaseDateTimeInput_shadow-16dp_3aXkC{-webkit-box-shadow:0 16px 24px 2px rgba(0,0,0,.1),0 6px 30px 5px rgba(0,0,0,.08),0 8px 10px -7px rgba(0,0,0,.02);box-shadow:0 16px 24px 2px rgba(0,0,0,.1),0 6px 30px 5px rgba(0,0,0,.08),0 8px 10px -7px rgba(0,0,0,.02)}.BaseDateTimeInput_shadow-24dp_21gpb{-webkit-box-shadow:0 24px 38px 3px rgba(0,0,0,.1),0 9px 46px 8px rgba(0,0,0,.08),0 11px 15px -7px rgba(0,0,0,.02);box-shadow:0 24px 38px 3px rgba(0,0,0,.1),0 9px 46px 8px rgba(0,0,0,.08),0 11px 15px -7px rgba(0,0,0,.02)}.BaseDateTimeInput_selectButton_u3SzB{font-size:12px;font-size:.75rem}.BaseDateTimeInput_selectButton_u3SzB>span{padding:.5em!important}.BaseDateTimeInput_root_2CDFh{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;opacity:1!important;padding:0;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;position:relative}.BaseDateTimeInput_root_2CDFh>div{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.BaseDateTimeInput_root_2CDFh:hover{-webkit-box-shadow:none;box-shadow:none;border-color:#999}.BaseDateTimeInput_root_2CDFh:focus,.BaseDateTimeInput_root_2CDFh:focus-within{-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42)}.BaseDateTimeInput_root_2CDFh:active{border-color:#24a3e3}.BaseDateTimeInput_root_2CDFh .react-datepicker-wrapper{position:relative;display:block;width:100%}.BaseDateTimeInput_root_2CDFh .react-datepicker__input-container{width:100%;display:block}.BaseDateTimeInput_rootInvalid_3yO4q{border-color:#e66666;background-color:#fff;-webkit-box-shadow:none;box-shadow:none}.BaseDateTimeInput_rootInvalid_3yO4q:focus,.BaseDateTimeInput_rootInvalid_3yO4q:focus-within{-webkit-box-shadow:0 0 0 3px rgba(230,102,102,.42)!important;box-shadow:0 0 0 3px rgba(230,102,102,.42)!important}.BaseDateTimeInput_inputWrapper_39Kdq{width:100%;position:relative}.BaseDateTimeInput_buttonWrapper_2rsLS{margin-left:auto}.BaseDateTimeInput_input_MnObH{width:100%;border:none;outline:none;background-color:inherit;color:inherit;padding:.7em}.BaseDateTimeInput_portal_3PGGp{z-index:1060;position:fixed;top:0;left:0;bottom:0;width:100%;height:100%}.BaseDateTimeInput_portalClosed_1ltp0{display:none}.BaseDateTimeInput_popper_V4KJu{background-color:transparent}.BaseDateTimeInput_popper_V4KJu[data-placement^=bottom] .react-datepicker__triangle{border-bottom-color:#1f292e!important}.BaseDateTimeInput_popper_V4KJu[data-placement^=bottom] .react-datepicker__triangle:before{display:none}.BaseDateTimeInput_datepicker_1VgC3{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Droid Sans,Helvetica Neue,Fira Sans,sans-serif;border:0}.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__current-month{color:#e8e8e8}.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__header{background-color:#1f292e;color:#e8e8e8;border:0;border-top-right-radius:0!important}.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker-time__header{color:#e8e8e8}.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__time-container{border-color:#1f292e}.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__header--time,.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__time-container{background-color:#1f292e;border-top-left-radius:0!important;border-top-right-radius:4px!important}.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__day-name{color:#e8e8e8}.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__day--selected{background-color:#156dff;color:#fff}.BaseDateTimeInput_datepicker_1VgC3 li.react-datepicker__time-list-item{height:2em!important;line-height:2em!important}.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__month-dropdown-container,.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__year-dropdown-container{position:relative}.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__month-dropdown-container:before,.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__year-dropdown-container:before{z-index:2;content:"";position:absolute;height:2em;width:2em;top:2px;right:2px;color:#303030;background-color:#fff;-webkit-transform:scale(.8);transform:scale(.8);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z' fill='currentColor'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");pointer-events:none}.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__month-select,.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__year-select{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:.5em 2.5em .5em .5em;border:1px solid hsla(0,0%,9%,.2);display:block;outline:none;font-size:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:2px;color:#303030;background-color:#fff}.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__month-select:hover,.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__year-select:hover{border-color:#999}.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__month-select:focus,.BaseDateTimeInput_datepicker_1VgC3 .react-datepicker__year-select:focus{border-color:#24a3e3}.BaseDateTimeInput_deprecationWarning_2X3ik{padding:1rem;border:3px dashed #ffba00}.BaseDateTimeInput_deprecationWarning_2X3ik>code{font-weight:700}.SlugInput_wrapper__RCkE{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.SlugInput_input_2YC_h{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.SlugInput_button_1Nojo{margin-left:.5em}.EditNode_formBuilderInputWrapper_ZOzWI{padding:.5rem}.EditNode_editBlockContainerFold_2o9M1{position:absolute;left:0;top:50%;height:1px;width:100%}.Markers_root_19gOm{display:-webkit-box;display:-ms-flexbox;display:flex}.Markers_markerGroup_ef1xj{display:inline-block;padding-right:.5rem}.BlockExtras_root_2Ze__{width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;overflow:hidden;font-size:12px;font-size:.75rem;z-index:0}.BlockExtras_content_3FHuJ{margin-left:calc(100% - 10rem);pointer-events:all;border-left:2px solid transparent;padding-left:.5rem;height:100%}.BlockExtras_content_3FHuJ:hover:before{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;left:0;width:100%;height:100%;pointer-events:none;background-color:rgba(48,48,48,.05)}.BlockExtras_hasFullScreen_1Bu5C{overflow:visible}.BlockExtras_hasFullScreen_1Bu5C .BlockExtras_content_3FHuJ{margin-left:100%}.BlockExtras_withError_3hl4x .BlockExtras_content_3FHuJ{border-left:2px solid #e66666}.BlockExtras_withError_3hl4x .BlockExtras_content_3FHuJ:hover:before{background-color:rgba(230,102,102,.1)}.BlockExtras_withWarning_fO2cj{border-left:2px solid #ffba00}.BlockExtras_withWarning_fO2cj:hover:before{background-color:rgba(255,186,0,.1)}.BlockExtras_blockActions_3r3ij .BlockExtras_content_3FHuJ{color:#303030;border-left:2px solid #303030}.BlockExtras_markers_2aapZ .BlockExtras_content_3FHuJ{border-left:2px solid #2097ac;color:#303030}.Spacing_default_3xObI{display:block;margin:0;padding:.5rem 0}.Spacing_xsmallToxSmall_1TM1y+.Spacing_xsmallToxSmall_1TM1y{padding-top:.25rem}.Spacing_smallToSmall_2wSI0+.Spacing_smallToSmall_2wSI0{padding-top:.8rem}.Spacing_largeToLarge_25X6i+.Spacing_largeToLarge_25X6i{padding-top:1.5rem}.Spacing_noneToNone_3olVM+.Spacing_noneToNone_3olVM{padding-top:0}@-webkit-keyframes BlockObject_fade_1lAhR{0%{opacity:0}to{opacity:1}}@keyframes BlockObject_fade_1lAhR{0%{opacity:0}to{opacity:1}}.BlockObject_root_3dJRM{width:100%}.BlockObject_previewContainer_1qka8{width:100%;display:block;cursor:move;position:relative;border-radius:2px;border:1px solid hsla(0,0%,9%,.2);-webkit-box-shadow:none;box-shadow:none;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;min-height:56px;min-height:3.5rem}.BlockObject_previewContainer_1qka8:hover{background-color:rgba(36,163,227,.2);-webkit-box-shadow:none;box-shadow:none}.BlockObject_root_3dJRM.BlockObject_hasErrors_2AC-m>.BlockObject_previewContainer_1qka8{-webkit-box-shadow:none;box-shadow:none}.BlockObject_root_3dJRM.BlockObject_focused_1I0_t>.BlockObject_previewContainer_1qka8{border:1px solid #24a3e3;background-color:rgba(36,163,227,.25);-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42)}.BlockObject_root_3dJRM.BlockObject_selected_1u3cI:not(.BlockObject_focused_1I0_t)>.BlockObject_previewContainer_1qka8{background-color:rgba(36,163,227,.2)}.BlockObject_root_3dJRM.BlockObject_focused_1I0_t.BlockObject_selected_1u3cI>.BlockObject_previewContainer_1qka8{border:1px solid #24a3e3}.BlockObject_root_3dJRM.BlockObject_selected_1u3cI.BlockObject_hasErrors_2AC-m>.BlockObject_previewContainer_1qka8{-webkit-box-shadow:none;box-shadow:none;border:1px solid #be7380}.BlockObject_root_3dJRM.BlockObject_focused_1I0_t.BlockObject_hasErrors_2AC-m>.BlockObject_previewContainer_1qka8{-webkit-box-shadow:0 0 0 3px rgba(230,102,102,.42);box-shadow:0 0 0 3px rgba(230,102,102,.42);background-color:rgba(230,102,102,.25);border:1px solid #e66666}.BlockObject_root_3dJRM.BlockObject_focused_1I0_t.BlockObject_hasErrors_2AC-m>.BlockObject_previewContainer_1qka8:hover{background-color:rgba(230,102,102,.45)}.BlockObject_header_1Q_Qj{z-index:1;position:absolute;top:8px;top:.5rem;right:8px;right:.5rem;display:none;opacity:0}.BlockObject_focused_1I0_t .BlockObject_header_1Q_Qj{display:block!important;opacity:1!important}@media (hover:hover){.BlockObject_preview_2-ubH:hover .BlockObject_header_1Q_Qj{display:block;opacity:1}}.BlockObject_type_j3LHP{display:block;text-transform:uppercase;opacity:1;padding-right:.5rem}.BlockObject_validationStatus_1bLe0{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-right:.5rem}.BlockObject_linkToReference_hrMt4{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:opacity .1s linear,-webkit-transform .1s linear;transition:opacity .1s linear,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear;transition:transform .1s linear,opacity .1s linear,-webkit-transform .1s linear;margin-right:.5rem}.BlockObject_linkToReference_hrMt4:hover{opacity:1;color:#24a3e3}.BlockObject_linkToReference_hrMt4:hover svg{color:#24a3e3}.BlockObject_linkToReference_hrMt4:active{opacity:1;color:#303030}.BlockObject_linkToReference_hrMt4 svg,.BlockObject_linkToReference_hrMt4:active svg{color:#303030}.BlockObject_isDragging_WnmDq{opacity:.15}.BlockObject_functions_1qzcC{display:-webkit-box;display:-ms-flexbox;display:flex}.BlockObject_menuContainer_1EK0I{position:absolute}.BlockObject_menuItem_2Wbd9{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.BlockObject_menuItemDanger_1G2AL{color:#e66666}.ListItem_root_2UR6G{width:auto;position:relative;display:block;-webkit-transform:translateZ(0);transform:translateZ(0);left:24px;left:1.5rem}.ListItem_level-2_3fUu9{left:3em}.ListItem_level-3_LZkvG{left:6em}.ListItem_level-4_IIPQ2{left:9em}.ListItem_level-5_2mQPs{left:12em}.ListItem_level-6_1P-3w{left:16em}.ListItem_level-7_1jr40{left:18em}.ListItem_level-8_M1NU7{left:21em}.ListItem_level-9_MQEsO{left:24em}.ListItem_level-10_gePaj{left:27em}.ListItem_root_2UR6G>.ListItem_item_1g7pS{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;padding:0;width:100%}.ListItem_root_2UR6G>.ListItem_item_1g7pS:before{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;vertical-align:top}.ListItem_root_2UR6G>.ListItem_item_1g7pS>*{word-break:break-word;margin-right:1.5rem}.ListItem_bullet_mtSyX>.ListItem_item_1g7pS:before{content:"\25CF "}.ListItem_bullet_mtSyX.ListItem_level-2_3fUu9>.ListItem_item_1g7pS:before{content:"\25CB "}.ListItem_bullet_mtSyX.ListItem_level-3_LZkvG>.ListItem_item_1g7pS:before{content:"\25A0 "}.ListItem_bullet_mtSyX.ListItem_level-5_2mQPs>.ListItem_item_1g7pS:before{content:"\25CB "}.ListItem_bullet_mtSyX.ListItem_level-6_1P-3w>.ListItem_item_1g7pS:before{content:"\25A0 "}.ListItem_bullet_mtSyX.ListItem_level-8_M1NU7>.ListItem_item_1g7pS:before{content:"\25CB "}.ListItem_bullet_mtSyX.ListItem_level-9_MQEsO>.ListItem_item_1g7pS:before{content:"\25A0 "}.ListItem_bullet_mtSyX>.ListItem_item_1g7pS:before{min-width:1.5em}.ListItem_number_3RV_j.ListItem_level-1_LiLx4{counter-increment:listItemNumber;counter-reset:listItemAlpha}.ListItem_number_3RV_j.ListItem_level-2_3fUu9{counter-increment:listItemAlpha;counter-reset:listItemRoman}.ListItem_number_3RV_j.ListItem_level-3_LZkvG{counter-increment:listItemRoman;counter-reset:listItemNumberNext}.ListItem_number_3RV_j.ListItem_level-4_IIPQ2{counter-increment:listItemNumberNext;counter-reset:listItemLetterNext}.ListItem_number_3RV_j.ListItem_level-5_2mQPs{counter-increment:listItemLetterNext;counter-reset:listItemRomanNext}.ListItem_number_3RV_j.ListItem_level-6_1P-3w{counter-increment:listItemRomanNext;counter-reset:listItemNumberNextNext}.ListItem_number_3RV_j.ListItem_level-7_1jr40{counter-increment:listItemNumberNextNext;counter-reset:listItemAlphaNextNext}.ListItem_number_3RV_j.ListItem_level-8_M1NU7{counter-increment:listItemAlphaNextNext;counter-reset:listItemRomanNextNext}.ListItem_number_3RV_j.ListItem_level-9_MQEsO{counter-increment:listItemRomanNextNext;counter-reset:listItemNumberNextNextNext}.ListItem_number_3RV_j.ListItem_level-10_gePaj{counter-increment:listItemNumberNextNextNext}.ListItem_number_3RV_j+:not(.ListItem_number_3RV_j){counter-reset:listItemNumber}.ListItem_number_3RV_j.ListItem_level-2_3fUu9>.ListItem_item_1g7pS:before{content:counter(listItemAlpha,lower-alpha) ". "}.ListItem_number_3RV_j.ListItem_level-3_LZkvG>.ListItem_item_1g7pS:before{content:counter(listItemRoman,lower-roman) ". "}.ListItem_number_3RV_j.ListItem_level-4_IIPQ2>.ListItem_item_1g7pS:before{content:counter(listItemNumberNext) ". "}.ListItem_number_3RV_j.ListItem_level-5_2mQPs>.ListItem_item_1g7pS:before{content:counter(listItemLetterNext,lower-alpha) ". "}.ListItem_number_3RV_j.ListItem_level-6_1P-3w>.ListItem_item_1g7pS:before{content:counter(listItemRomanNext,lower-roman) ". "}.ListItem_number_3RV_j.ListItem_level-7_1jr40>.ListItem_item_1g7pS:before{content:counter(listItemNumberNextNext) ". "}.ListItem_number_3RV_j.ListItem_level-8_M1NU7>.ListItem_item_1g7pS:before{content:counter(listItemAlphaNextNext,lower-alpha) ". "}.ListItem_number_3RV_j.ListItem_level-9_MQEsO>.ListItem_item_1g7pS:before{content:counter(listItemRomanNextNext,lower-roman) ". "}.ListItem_number_3RV_j.ListItem_level-10_gePaj>.ListItem_item_1g7pS:before{content:counter(listItemNumberNextNextNext) ". "}.ListItem_number_3RV_j>.ListItem_item_1g7pS:before{min-width:1.6em;content:counter(listItemNumber) ". "}.Header_root_I2xSd{text-transform:none;font-family:inherit}.Decorator_root_2JWqc{display:inline}.Decorator_strong_1vZCN{font-weight:700}.Decorator_em_3Cmhb{font-style:italic}.Decorator_underline_13FF2{text-decoration:underline}.Decorator_overline_3aw8b{text-decoration:overline}.Decorator_strike-through_TOUmQ{text-decoration:line-through}.Decorator_code_3GbPp{font-family:monospace;background-color:#eee;color:#333;padding:.1em .3em}.InlineObject_root_3Zj8Q{display:inline-block;position:relative;margin:0 1px}.InlineObject_previewContainer_1LBJE{position:relative;display:inline;cursor:move;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid transparent;background-color:#f2f2f2;height:1em;padding:0 .25em;border-radius:2px}.InlineObject_previewContainer_1LBJE:hover{background-color:rgba(36,163,227,.15);-webkit-box-shadow:none;box-shadow:none}.InlineObject_root_3Zj8Q.InlineObject_hasErrors_1amzU>.InlineObject_previewContainer_1LBJE{-webkit-box-shadow:none;box-shadow:none;background-color:rgba(230,102,102,.15);border:1px solid #e66666}.InlineObject_root_3Zj8Q.InlineObject_focused_1p5S3>.InlineObject_previewContainer_1LBJE{border:1px solid #24a3e3;background-color:rgba(36,163,227,.25);-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42)}.InlineObject_root_3Zj8Q.InlineObject_selected_3XieI>.InlineObject_previewContainer_1LBJE{background-color:rgba(36,163,227,.2)}.InlineObject_root_3Zj8Q.InlineObject_focused_1p5S3.InlineObject_selected_3XieI>.InlineObject_previewContainer_1LBJE{border:1px solid #24a3e3}.InlineObject_root_3Zj8Q.InlineObject_selected_3XieI.InlineObject_hasErrors_1amzU>.InlineObject_previewContainer_1LBJE{-webkit-box-shadow:none;box-shadow:none;border:1px solid #be7380;background-color:#be7380}.InlineObject_root_3Zj8Q.InlineObject_focused_1p5S3.InlineObject_hasErrors_1amzU>.InlineObject_previewContainer_1LBJE{-webkit-box-shadow:0 0 0 3px rgba(230,102,102,.42);box-shadow:0 0 0 3px rgba(230,102,102,.42);border:1px solid #e66666;background-color:rgba(230,102,102,.3)}.InlineObject_root_3Zj8Q.InlineObject_hasErrors_1amzU>.InlineObject_previewContainer_1LBJE:hover{background-color:rgba(230,102,102,.25);border:1px solid #e66666}.InlineObject_root_3Zj8Q.InlineObject_focused_1p5S3.InlineObject_hasErrors_1amzU>.InlineObject_previewContainer_1LBJE:hover{background-color:rgba(230,102,102,.45)}.InlineObject_functions_2n2vH{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;font-size:14px;font-size:.875rem;color:rgba(48,48,48,.8);margin-left:.5rem}.InlineObject_functions_2n2vH>*{margin-right:.5rem}.InlineObject_linkToReference_2eD50{z-index:2;-webkit-transition:opacity .1s linear,-webkit-transform .1s linear;transition:opacity .1s linear,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear;transition:transform .1s linear,opacity .1s linear,-webkit-transform .1s linear;-webkit-transform:scale(1.2);transform:scale(1.2)}.InlineObject_linkToReference_2eD50 svg{color:inherit}.InlineObject_linkToReference_2eD50:hover{opacity:1;color:#24a3e3}.InlineObject_linkToReference_2eD50:active{opacity:1;color:#303030}.Span_root_2a8Bi{text-decoration:none;display:inline;position:relative;border-bottom:2px dotted #303030}.Span_valid_NWMMz{background-color:rgba(48,48,48,.1);border-color:#303030}.Span_valid_NWMMz:hover{background-color:rgba(48,48,48,.2);border-color:#303030}.Span_error_2J5gt{border-color:#e66666;background-color:rgba(230,102,102,.1)}.Span_error_2J5gt:hover{background-color:rgba(230,102,102,.3);border-color:#e66666}.Editor_root_3ldkz{position:relative;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:inherit;margin:0;padding:0}.Editor_blockExtras_3WOAA{position:absolute;height:100%;top:0;left:0;right:0;pointer-events:none}.Editor_fullscreen_1SKZJ .Editor_blockExtras_3WOAA{padding-left:0}.Editor_editor_2yaEe{height:100%;margin:0;padding:0}.Editor_root_3ldkz.Editor_hasBlockExtras_3Ysmy:not(.Editor_fullscreen_1SKZJ) .Editor_editor_2yaEe{padding-right:10rem}.Editor_editor_2yaEe div[data-slate-void=true]+div[data-slate-void=true]{padding-top:.5rem}.Editor_editor_2yaEe>*{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;word-break:break-word;padding-left:.5rem;padding-right:.5rem}@media (min-width:32em){.Editor_editor_2yaEe>*{padding-left:1rem;padding-right:1rem}}.Editor_fullscreen_1SKZJ .Editor_editor_2yaEe>*{padding-left:.5rem;padding-right:.5rem}@media (min-width:32em){.Editor_fullscreen_1SKZJ .Editor_editor_2yaEe>*{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:60em){.Editor_fullscreen_1SKZJ .Editor_editor_2yaEe>*{padding-left:4rem;padding-right:4rem}}.Editor_editor_2yaEe>:first-child{padding-top:.5rem}@media (min-width:32em){.Editor_editor_2yaEe>:first-child{margin-top:1rem}}@media (min-width:32em){.Editor_fullscreen_1SKZJ .Editor_editor_2yaEe>:first-child{margin-top:1.5rem}}@media (min-width:60em){.Editor_fullscreen_1SKZJ .Editor_editor_2yaEe>:first-child{margin-top:4rem}}.Editor_blockDragMarker_2p2Ir{display:block;background-color:#24a3e3;width:100%;height:2px;position:absolute;pointer-events:none}.ToggleButton_selected_1rkLy{background-color:#136790!important;color:#fff!important}.AnnotationButtons_root_1YBQu{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.CollapsibleButtonGroup_root_2UcXP{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.CollapsibleButtonGroup_popup_f4f18{display:-webkit-box;display:-ms-flexbox;display:flex;top:100%;z-index:1;position:absolute;background-color:#fff;padding:.5rem}.DefaultSelect_root_2FQGX{display:block;position:relative;outline:none;color:inherit}.DefaultSelect_root_2FQGX:hover .DefaultSelect_arrow_3n1vi{color:#24a3e3}.DefaultSelect_root_2FQGX:focus-within .DefaultSelect_arrow_3n1vi{color:#24a3e3}.DefaultSelect_disabled_1imH4{opacity:.5}.DefaultSelect_select_3xha0{-webkit-box-sizing:border-box;box-sizing:border-box;min-width:112px;min-width:7rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;overflow:hidden;height:2.5em;margin-right:2.5em}.DefaultSelect_select_3xha0:not(:disabled):hover{-webkit-box-shadow:none;box-shadow:none;border-color:#999}.DefaultSelect_select_3xha0:not(:disabled):focus,.DefaultSelect_select_3xha0:not(:disabled):focus-within{-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42);border-color:#24a3e3}.DefaultSelect_select_3xha0:not(:disabled):active{border-color:#24a3e3}.DefaultSelect_select_3xha0:not(:disabled):invalid{border-color:#e66666;background-color:#fff;-webkit-box-shadow:none;box-shadow:none}.DefaultSelect_selectContainer_AGEPt{position:relative;color:hsla(0,0%,9%,.2)}.DefaultSelect_hasFocus_2NooG .DefaultSelect_selectContainer_AGEPt,.DefaultSelect_selectContainer_AGEPt:hover{color:#24a3e3}.DefaultSelect_selectContainerDisabled_3IDqZ{opacity:.5;color:#303030}.DefaultSelect_selectContainerDisabled_3IDqZ:hover{color:inherit}.DefaultSelect_root_2FQGX:hover .DefaultSelect_selectContainerDisabled_3IDqZ{border-color:#999}.DefaultSelect_hasFocus_2NooG .DefaultSelect_selectContainerDisabled_3IDqZ{color:inherit}.DefaultSelect_selectContainerDisabled_3IDqZ:focus{border-color:#24a3e3;-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42)}.DefaultSelect_functions_38pkB{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;position:absolute;top:0;right:0;height:100%;cursor:default;z-index:1;pointer-events:none;color:#303030}.DefaultSelect_functions_38pkB>*{pointer-events:auto}.DefaultSelect_functions_38pkB .DefaultSelect_arrow_3n1vi{pointer-events:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:2.5em;color:inherit}.DefaultSelect_functions_38pkB>:not(:first-child){margin-left:.5em}.DefaultSelect_functions_38pkB svg{color:inherit}.DefaultSelect_selectContainerDisabled_3IDqZ .DefaultSelect_functions_38pkB{opacity:.5}.StyleSelect_root_1X5gC{display:block;outline:none;position:relative}.StyleSelect_root_1X5gC:focus{-webkit-box-shadow:0 0 2px 1px #24a3e3,0 0 4px 0 rgba(36,163,227,.6),0 0 10px 5px rgba(36,163,227,.1);box-shadow:0 0 2px 1px #24a3e3,0 0 4px 0 rgba(36,163,227,.6),0 0 10px 5px rgba(36,163,227,.1)}.StyleSelect_inner_2tLqz{cursor:default}.StyleSelect_transparent_1sNeF .StyleSelect_inner_2tLqz{-webkit-transition:all .05s linear;transition:all .05s linear;background-color:transparent;border:1px solid rgba(50,50,50,.08)}.StyleSelect_transparent_1sNeF .StyleSelect_inner_2tLqz:hover{background-color:#fff;border-color:#b3b3b3}.StyleSelect_title_tvaC-{padding-right:1em;color:#303030}.StyleSelect_transparent_1sNeF:not(:hover) .StyleSelect_inner_2tLqz{-webkit-box-shadow:none;box-shadow:none}.StyleSelect_selectContainer_28cbn{display:-webkit-box;display:-ms-flexbox;display:flex}.StyleSelect_arrow_3Fr13{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:.5em;margin-left:auto}.StyleSelect_popper_36odm{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;position:relative;max-height:inherit;overflow:auto}.StyleSelect_list_2EMmA{margin:0;padding:0;display:block}.StyleSelect_item_1Ed8X{position:relative;border-bottom:1px solid #b3b3b3;white-space:nowrap;overflow:hidden;min-height:2em;cursor:default;padding-right:1em;color:inherit}.StyleSelect_item_1Ed8X:last-child{border:0}.StyleSelect_itemContent_1na0r{margin-left:2em;padding:.5em 0}.StyleSelect_itemSelected_2Ww-i,.StyleSelect_itemSelected_2Ww-i:hover{background-color:#156dff;color:#fff}.StyleSelect_itemIcon_35Nyf{display:block;position:absolute;-webkit-transform:translateY(-50%);transform:translateY(-50%);top:50%;left:.5em;font-size:1em;width:2em;overflow:hidden}.DecoratorButtons_root_LzqWk{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.DecoratorButtons_buttonWrapper_Glo1k+.DecoratorButtons_buttonWrapper_Glo1k{margin-left:.1em}.InsertMenu_item_1pnDH{display:-webkit-box;display:-ms-flexbox;display:flex;padding:.25rem;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.InsertMenu_icon_6qtw0{margin-right:.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ListItemButtons_root_3AuCF{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.Toolbar_root_1d5yJ{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;-ms-flex-wrap:nowrap;flex-wrap:nowrap;padding-bottom:.5rem;font-size:14px;font-size:.875rem}.Toolbar_root_1d5yJ.Toolbar_fullscreen_B0Iz2{position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;width:100vw;top:0;left:0;right:0;z-index:1;padding:.5rem;background-color:#fff;-webkit-box-shadow:0 0 8px hsla(0,0%,9%,.35);box-shadow:0 0 8px hsla(0,0%,9%,.35)}@media (min-width:32em){.Toolbar_root_1d5yJ.Toolbar_fullscreen_B0Iz2{padding:.5rem;font-size:1rem}}.Toolbar_primary_14URT{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow-x:scroll;-webkit-overflow-scrolling:touch}.Toolbar_primary_14URT::scrollbar{display:none}@media (min-width:32em){.Toolbar_primary_14URT{overflow:hidden}}.Toolbar_secondary_3BgGd:before{position:absolute;content:"";right:100%;top:0;height:100%;width:1em;z-index:2;background:radial-gradient(hsla(0,0%,9%,.2),hsla(0,0%,9%,0) 70%);background-position:.5em 0;background-repeat:no-repeat;border-right:1px solid hsla(0,0%,9%,.05)}@media (min-width:32em){.Toolbar_secondary_3BgGd:before{display:none}}.Toolbar_primaryInner_1btO4{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;padding-right:1em}@media (min-width:32em){.Toolbar_primaryInner_1btO4{padding-right:0}}.Toolbar_primaryInner_1btO4:after{position:absolute;content:"";right:0;top:0;height:100%;width:2em;z-index:3;background:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(40%,#fff));background:linear-gradient(90deg,hsla(0,0%,100%,0),#fff 40%);background-position:.5em 0;background-repeat:no-repeat}@media (min-width:32em){.Toolbar_primaryInner_1btO4:after{display:none}}.Toolbar_primaryInnerCollapsed_2Jriq{display:none}.Toolbar_primaryInnerCollapsedOpen_1-1_F{position:absolute;top:1em;left:1em;z-index:10}.Toolbar_secondary_3BgGd{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.Toolbar_group_1We6V{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.Toolbar_group_1We6V:not(:empty)+.Toolbar_group_1We6V{border-left:1px solid #eee;padding-left:.25em;margin-left:.25em}.Toolbar_fullscreenButtonContainer_2OJTj{margin-left:auto;width:2.5em;height:100%}.Toolbar_fullscreenButtonContainer_2OJTj svg{-webkit-transform:scale(1.5);transform:scale(1.5)}.Toolbar_showMoreButton_1zVdQ{border:1px solid green;position:relative}.PrimaryGroup_root_18s2Y{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#fff}.PrimaryGroup_isPopped_Y0f_8{position:relative;z-index:20;padding:.5rem;height:2.5em}.PrimaryGroup_blockStyleSelect_wzeOm{min-width:8em;white-space:nowrap}.PrimaryGroup_blockStyleGroup_HUbt9:not(:empty)+.PrimaryGroup_group_1CDn8{border-left:none}.Toolbar_root_1d5yJ{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;-ms-flex-wrap:nowrap;flex-wrap:nowrap;padding-bottom:.5rem;font-size:14px;font-size:.875rem}.Toolbar_root_1d5yJ.Toolbar_fullscreen_B0Iz2{position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;width:100vw;top:0;left:0;right:0;z-index:1;padding:.5rem;background-color:#fff;-webkit-box-shadow:0 0 8px hsla(0,0%,9%,.35);box-shadow:0 0 8px hsla(0,0%,9%,.35)}@media (min-width:32em){.Toolbar_root_1d5yJ.Toolbar_fullscreen_B0Iz2{padding:.5rem;font-size:1rem}}.Toolbar_primary_14URT{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow-x:scroll;-webkit-overflow-scrolling:touch}.Toolbar_primary_14URT::scrollbar{display:none}@media (min-width:32em){.Toolbar_primary_14URT{overflow:hidden}}.Toolbar_secondary_3BgGd:before{position:absolute;content:"";right:100%;top:0;height:100%;width:1em;z-index:2;background:radial-gradient(hsla(0,0%,9%,.2),hsla(0,0%,9%,0) 70%);background-position:.5em 0;background-repeat:no-repeat;border-right:1px solid hsla(0,0%,9%,.05)}@media (min-width:32em){.Toolbar_secondary_3BgGd:before{display:none}}.Toolbar_primaryInner_1btO4{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;padding-right:1em}@media (min-width:32em){.Toolbar_primaryInner_1btO4{padding-right:0}}.Toolbar_primaryInner_1btO4:after{position:absolute;content:"";right:0;top:0;height:100%;width:2em;z-index:3;background:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(40%,#fff));background:linear-gradient(90deg,hsla(0,0%,100%,0),#fff 40%);background-position:.5em 0;background-repeat:no-repeat}@media (min-width:32em){.Toolbar_primaryInner_1btO4:after{display:none}}.Toolbar_primaryInnerCollapsed_2Jriq{display:none}.Toolbar_primaryInnerCollapsedOpen_1-1_F{position:absolute;top:1em;left:1em;z-index:10}.Toolbar_secondary_3BgGd{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.Toolbar_group_1We6V{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.Toolbar_group_1We6V:not(:empty)+.Toolbar_group_1We6V{border-left:1px solid #eee;padding-left:.25em;margin-left:.25em}.Toolbar_fullscreenButtonContainer_2OJTj{margin-left:auto;width:2.5em;height:100%}.Toolbar_fullscreenButtonContainer_2OJTj svg{-webkit-transform:scale(1.5);transform:scale(1.5)}.Toolbar_showMoreButton_1zVdQ{border:1px solid green;position:relative}.BlockEditor_root_2gSN5{display:block;position:relative}.BlockEditor_fullscreen_3hQVv{position:fixed;top:0;left:0;z-index:1060;background-color:#f5f5f5;width:100vw;height:100vh}.BlockEditor_scrollContainer_11kcc{display:block;height:240px;height:15rem;padding-bottom:2rem;border:1px solid hsla(0,0%,9%,.2);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow-y:overlay}.BlockEditor_scrollContainer_11kcc.BlockEditor_hasBlockExtras_2W5B2:after{content:"";position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;width:160px;width:10rem;background-color:#eee;border-left:1px solid #ccc;top:1px;right:1px;height:calc(100% - 2px);z-index:-1}.BlockEditor_fullscreen_3hQVv .BlockEditor_scrollContainer_11kcc{position:absolute;top:0;left:0;height:100vh;width:100vw;background-color:#f0f0f0;background-image:unset;border:none}.BlockEditor_fullscreen_3hQVv .BlockEditor_scrollContainer_11kcc:before{display:none}.BlockEditor_focus_2KQw2:not(.BlockEditor_fullscreen_3hQVv) .BlockEditor_scrollContainer_11kcc{border:1px solid #24a3e3;-webkit-box-shadow:0 0 8px rgba(36,163,227,.35);box-shadow:0 0 8px rgba(36,163,227,.35)}.BlockEditor_editorWrapper_1XNew{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.BlockEditor_fullscreen_3hQVv .BlockEditor_editorWrapper_1XNew{max-width:50em;min-height:90vh;background-color:#fff;width:95vw;-webkit-box-sizing:border-box;box-sizing:border-box;padding-bottom:4rem;margin:5rem auto 3rem}@media (min-width:32em){.BlockEditor_fullscreen_3hQVv .BlockEditor_editorWrapper_1XNew{width:90vw;margin:5rem auto}}.BlockEditor_root_2gSN5 :not(.BlockEditor_fullscreen_3hQVv) .BlockEditor_editorWrapper_1XNew{-webkit-box-shadow:none;box-shadow:none}.BlockEditor_activeOnFocus_3rJ2a>div,.BlockEditor_activeOnFocus_3rJ2a>h3{padding:0;text-transform:uppercase;margin:0 0 .5rem}.BlockEditor_activeOnFocus_3rJ2a>button{margin-bottom:.5rem}.BlockEditor_shortcutHint_-K3EJ{font-size:12px;font-size:.75rem;color:rgba(48,48,48,.5)}.BlockEditor_keyboardShortcut_swE3R{font-size:12px;font-size:.75rem;opacity:#b3b3b3;text-transform:none}.BlockEditor_loading_2frr2{position:absolute;width:100%;height:100%;background-color:#fff;z-index:99999;opacity:.5}.BlockEditor_readOnlyFullscreenButtonContainer_1Tzal{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;height:100%;font-size:12.8px;font-size:.8rem;border:none}.BlockEditor_readOnlyFullscreenButtonContainer_1Tzal svg{-webkit-transform:scale(1.5);transform:scale(1.5)}.BlockEditor_fullscreen_3hQVv .BlockEditor_readOnlyFullscreenButtonContainer_1Tzal{height:auto;background-color:#f0f0f0}.Input_focusSkipper_38kmL{position:absolute;height:1px;width:1px;margin:0;overflow:hidden;clip:rect(1px,1px,1px,1px);padding:.2em;background-color:#f5f5f5;border:1px dotted #24a3e3}.Input_focusSkipper_38kmL:focus{z-index:20;width:auto;height:auto;clip:auto;outline:none}.SyncWrapper_root_MHwuu{position:relative}.SyncWrapper_warning_1V2Vl{padding:2em;background-color:rgba(255,186,0,.9);color:#fff}.SyncWrapper_isOutOfSyncWarning_7-jA4{position:absolute;top:2em;bottom:0;left:0;right:0}.SearchableSelect_selectContainer_3_V1E input{padding-right:4em}.SearchableSelect_arrowAndSpinnerContainer_2ia3a{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-left:1px solid hsla(0,0%,9%,.2);min-width:2.5em}.SearchableSelect_arrow_11ODg{-webkit-transition:opacity .1s linear,-webkit-transform .1s linear;transition:opacity .1s linear,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear;transition:transform .1s linear,opacity .1s linear,-webkit-transform .1s linear;outline:none;-webkit-user-select:initial;-moz-user-select:initial;-ms-user-select:initial;user-select:initial;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:1em}.SearchableSelect_arrow_11ODg svg{display:block;-webkit-transform:scale(1);transform:scale(1)}.SearchableSelect_arrow_11ODg:focus,.SearchableSelect_arrow_11ODg:hover{color:#24a3e3}.SearchableSelect_arrow_11ODg:focus svg,.SearchableSelect_arrow_11ODg:hover svg{color:inherit;opacity:1;-webkit-transform:scale(1.3);transform:scale(1.3)}.SearchableSelect_popper_C4tEi{position:relative;z-index:1060}.SearchableSelect_listContainer_3zV--{display:block;min-height:56px;min-height:3.5rem;max-height:320px;max-height:20rem;overflow:auto;border:1px solid hsla(0,0%,9%,.2);-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;-webkit-transition:max-height .1s linear;transition:max-height .1s linear}.SearchableSelect_listContainerNoResult_3Pcc6{max-height:64px;max-height:4rem}.SearchableSelect_listContainerHidden_27api{display:none}.SearchableSelect_noResultText_jmnbg{position:absolute;width:100%;opacity:1;padding:1rem;-webkit-transition:opacity .1s ease-out;transition:opacity .1s ease-out;-webkit-transition-delay:.1s;transition-delay:.1s}.SearchableSelect_noResultTextHidden_2WKNw{-webkit-transition:none;transition:none;opacity:0}.SearchableSelect_spinner_38ytg{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:1em}.SearchableSelect_spinner_38ytg svg{display:block}.SearchableSelect_item_3eUnv{padding:.5rem}.SearchableSelect_openItem_FXykN{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transition:opacity .1s linear,-webkit-transform .1s linear;transition:opacity .1s linear,-webkit-transform .1s linear;transition:transform .1s linear,opacity .1s linear;transition:transform .1s linear,opacity .1s linear,-webkit-transform .1s linear;opacity:.6;cursor:pointer;outline:none}.SearchableSelect_openItem_FXykN:last-child{margin-right:1rem}.SearchableSelect_openItem_FXykN a,.SearchableSelect_openItem_FXykN button{outline:none}.SearchableSelect_openItem_FXykN:focus,.SearchableSelect_openItem_FXykN:focus-within,.SearchableSelect_openItem_FXykN:hover{opacity:1;-webkit-transform:scale(1.3);transform:scale(1.3);color:#24a3e3}.SearchableSelect_openItem_FXykN:focus-within svg,.SearchableSelect_openItem_FXykN:focus svg,.SearchableSelect_openItem_FXykN:hover svg{color:#24a3e3}.SearchableSelect_openItem_FXykN:active{opacity:1;color:#303030}.SearchableSelect_openItem_FXykN:active svg{color:#303030}.SearchableSelect_openItem_FXykN svg{display:block;color:#303030}.SelectMenu_root_MGuCT{height:100%;position:relative}.SelectMenu_scrollContainer_2x2FO{-webkit-transform:translateZ(0);transform:translateZ(0)}.SelectMenu_list_G5aJi{margin:0;padding:0;display:block}.SelectMenu_item_3uk-S{display:block;margin:0;padding:0}.ReferenceInput_weakRefMismatchWarning_3vCdt{padding:1rem}.ReferenceInput_hasWarnings_3L7Ou{border:1px dashed #ffba00}.ReferenceInput_hasWarnings_3L7Ou input{color:#303030}@-webkit-keyframes ProgressBar_progressBarStripes_LSAcZ{0%{background-position:1rem 0}to{background-position:0 0}}@keyframes ProgressBar_progressBarStripes_LSAcZ{0%{background-position:1rem 0}to{background-position:0 0}}.ProgressBar_root_2zp9h{border:1px solid #000;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:2px;height:25px;width:100%;clear:both;-webkit-transition:border-color .5s linear;transition:border-color .5s linear}.ProgressBar_inner_3LF2f{width:100%;position:relative}.ProgressBar_completed_2ZbeH{border-color:#19b366}.ProgressBar_barContainer_wGpCM{position:relative;width:100%;height:25px;padding:2px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:rgba(0,0,0,.05);margin-bottom:.2em}.ProgressBar_bar_3Vjlx{border-radius:2px;height:19px;-webkit-transition:width .1s linear,background-color .3s linear,background-image .5s linear;transition:width .1s linear,background-color .3s linear,background-image .5s linear;max-width:100%;background-color:#000;background-size:1rem 1rem}.ProgressBar_completed_2ZbeH .ProgressBar_bar_3Vjlx{background-color:#19b366}.ProgressBar_isInProgress_2d1wE .ProgressBar_bar_3Vjlx{-webkit-animation:ProgressBar_progressBarStripes_LSAcZ .5s linear infinite;animation:ProgressBar_progressBarStripes_LSAcZ .5s linear infinite;background-image:linear-gradient(45deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent)}.ProgressBar_percent_Fj-F-{float:right}.ProgressBar_percent_Fj-F-,.ProgressBar_text_2cbDK{font-size:12px;font-size:.75rem}.FileInput_root_1Fc5V{display:block}.FileInput_content_3WZxt{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}@media (min-width:32em){.FileInput_content_3WZxt{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.FileInput_fileName_3WPj7+.FileInput_functions_YHR2-{margin-top:1rem}.FileInput_uploadState_gIr6_{background-color:hsla(0,0%,100%,.9);width:100%;height:100%;position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.FileInput_uploadState_gIr6_>div{width:90%}.FileInput_cancelButton_2A6dT{margin-top:1rem}.FileInput_assetWrapper_12j7V{padding:1.5rem}.FileInput_fieldsWrapper_6dKQG{-ms-flex-preferred-size:480px;flex-basis:480px;-ms-flex-preferred-size:30rem;flex-basis:30rem}.FileInput_previewAsset_3yuiT{text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.FileInput_previewAsset_3yuiT a{display:block}.FileInput_fileIcon_i3zmr{font-size:3em;margin-right:1rem}.UploadPlaceholder_root_2HjMn{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;text-align:center;height:100%}.UploadPlaceholder_inner_1ZtUj{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:justify;align-content:space-between}.UploadPlaceholder_iconContainer_RMhd0{font-size:48px;font-size:3rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:.5rem}.UploadPlaceholder_strong_2kZZN{font-weight:500;margin:0;padding:0}.UploadPlaceholder_dropFile_YFFOZ,.UploadPlaceholder_pasteFile_Ijl4r{padding:1rem;display:none}@media (min-width:32em){.UploadPlaceholder_dropFile_YFFOZ,.UploadPlaceholder_pasteFile_Ijl4r{display:block}}.UploadPlaceholder_pasteFile_Ijl4r{opacity:.2;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.UploadPlaceholder_hasFocus_nUCSD .UploadPlaceholder_pasteFile_Ijl4r{opacity:1}.Field_root_1XEv8{display:block;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.Field_root_1XEv8+.Field_root_1XEv8{margin-top:1.5rem}.ImageInput_content_2kjmm{display:grid;grid-gap:1rem}.ImageInput_assetWrapper_28yiN{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-height:160px;min-height:10rem;position:relative;-webkit-transition:background-color .1s linear;transition:background-color .1s linear;max-height:288px;max-height:18rem;overflow:hidden;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;border-bottom:1px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#f5f5f5;background-image:linear-gradient(45deg,hsla(0,0%,9%,.05) 25%,transparent 0),linear-gradient(-45deg,hsla(0,0%,9%,.05) 25%,transparent 0),linear-gradient(45deg,transparent 75%,hsla(0,0%,9%,.05) 0),linear-gradient(-45deg,transparent 75%,hsla(0,0%,9%,.05) 0);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}@media (min-width:32em){.ImageInput_assetWrapper_28yiN{min-height:12rem;max-height:27rem;min-width:12rem;height:auto}.ImageInput_noContent_2cvNm .ImageInput_assetWrapper_28yiN{-ms-flex-preferred-size:100%;flex-basis:100%}}.ImageInput_uploadState_1WNWT{position:absolute;height:100%;width:100%;background-color:hsla(0,0%,96.1%,.9);z-index:1}.ImageInput_fieldsWrapper_2EWP7{margin-top:1rem}.ImageInput_content_2kjmm+.ImageInput_functions_3XNjc{margin-top:.5rem}@media (min-width:32em){.ImageInput_content_2kjmm+.ImageInput_functions_3XNjc{margin-top:1rem}}.ImageInput_advancedEditFields_2b0Yw{margin-bottom:1rem}.ImageTool_root_13lTU{width:100%;height:100%;position:relative;display:block}.ImageTool_canvas_32Ipl{display:block;position:relative;max-width:100%;max-height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.HotspotImage_root_jike8{position:relative;width:100%}.ImageToolInput_root_172-6{padding-bottom:1rem}.ImageToolInput_wrapper_kwLmp{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media (min-width:32em){.ImageToolInput_wrapper_kwLmp{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}}.ImageToolInput_previewsContainer_5ajAA{-ms-flex-preferred-size:30vw;flex-basis:30vw}.ImageToolInput_previewsContainer_5ajAA h2{margin-bottom:0;font-weight:400}.ImageToolInput_imageToolContainer_2bgjA{position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;max-height:70vh;min-width:250px}@media (min-width:32em){.ImageToolInput_imageToolContainer_2bgjA{min-width:500px;margin-right:1rem;max-height:60vh;max-width:70vw}}.ImageToolInput_previews_2ggjI{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:1rem}.ImageToolInput_previewImage_jnI-C{background-color:#eee}.ImageToolInput_preview_CFOlU h4{font-size:14px;font-size:.875rem;margin-bottom:.5rem;font-weight:400}.SelectAsset_root_3wDrs{display:block;position:relative;min-height:calc(100vh - 12em)}.SelectAsset_imageList_3lr2E{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.SelectAsset_imageList_3lr2E:after{content:"";-webkit-box-flex:999999999;-ms-flex-positive:999999999;flex-grow:999999999}.SelectAsset_loadMore_3_33T{margin:1rem 0}.SelectAsset_noAssets_1qZEN{font-size:20px;font-size:1.25rem}.Asset_image_1JPdV{position:absolute;top:0;width:100%;vertical-align:bottom;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff}.Asset_item_2jJaG{background-color:#f2f2f2;display:block;margin:.25rem;position:relative;overflow:hidden;cursor:default;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.Asset_padder_3ns3d{display:block}.Asset_menuContainer_184jy{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:10;top:.2em;right:.2em;opacity:1;font-size:14px;font-size:.875rem}.Asset_menuContainer_184jy [class^=DefaultButton_content]{margin:.2em!important}@media (hover:hover){.Asset_menuContainer_184jy{opacity:.5}.Asset_menuContainer_184jy:hover{opacity:1}}.Asset_spinnerContainer_1Y_0R{position:absolute;z-index:9;top:0;left:0;width:100%;height:100%;background-color:hsla(0,0%,100%,.5);color:#303030}.Asset_menuItem_l3iyk{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.Asset_menuItemDanger_1rEcf{color:#e66666}.Asset_intentLink_f81HJ{color:inherit;text-decoration:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding-bottom:.5rem}.Asset_dialogContent_2UgQx{display:grid;grid-gap:1rem}@media (min-width:32em){.Asset_dialogContent_2UgQx{grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}}.Asset_dialogSubtitle_uvYZ_{margin:0;padding:0}.Asset_referringDocumentsDescription_3kjVV{margin-bottom:1rem}.Asset_openDocLink_2nR2B{font-size:14px;font-size:.875rem;white-space:nowrap}.OptionsArrayInput_error_1PKjg{font-size:12.8px;font-size:.8rem;padding:1em;margin-bottom:.5rem}.OptionsArrayInput_itemWrapperVertical_25vLc{display:block;margin-bottom:.5rem}.OptionsArrayInput_itemWrapperHorizontal_1ihUn{display:inline-block;line-height:2em;margin-right:1em}.DefaultList_root_8B-Db{display:block;margin:0;padding:0}.DefaultList_divider_1CnzD{width:100%;height:0;padding:0;margin:0;background:none;border-top:1px solid hsla(0,0%,9%,.1);border-bottom:none;-webkit-box-sizing:border-box;box-sizing:border-box}.ArrayOfPrimitivesInput_root_J04Ly{display:block}.ArrayOfPrimitivesInput_deleteButton_gRd2e{position:absolute;z-index:1;top:0;right:0;font-size:.9em;margin-right:0;-webkit-box-sizing:border-box;box-sizing:border-box}.ArrayOfPrimitivesInput_item_38pNT{display:block;margin:0;padding:.5rem 0}.ArrayOfPrimitivesInput_addButton_2wu1e{margin-top:1rem}.ArrayOfPrimitivesInput_inputLabel_iAEVx{display:none}.ArrayOfPrimitivesInput_list_suyLe+.ArrayOfPrimitivesInput_functions_37DSB{padding-top:1rem}.Item_root_2PrXZ{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:.1em;margin:.1em}.Item_root_2PrXZ.Item_media_2e8Yt{height:15em;width:15em}.Item_input_zrpbw{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.Item_deleteButton_3gHXM{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;z-index:1}.Item_dragHandle_2k1io{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;cursor:ns-resize;opacity:.5;font-size:1em;padding:.5em;border:1px solid transparent;z-index:1}.Item_dragHandle_2k1io:hover{opacity:1}.Item_functions_3fbKI{font-size:14px;font-size:.875rem;color:rgba(48,48,48,.8);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:1rem}.Item_functions_3fbKI>*{margin-right:.5rem}.TextField_root_IZlMm{display:block;position:relative}.TextField_rootReadOnly_ThE2m{opacity:.5}.TextField_tags_1q5G9{display:block;margin:0;padding:0;float:left}.TextField_tag_1kV8u{display:inline-block;background-color:#f2f2f2;border-radius:2px;color:grey;border:1px solid #ccc;-webkit-box-sizing:border-box;box-sizing:border-box;margin-right:.25em;padding:0 .5em;font-size:1em;line-height:1.45em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;position:relative}.TextField_clearTag_3A5bt{right:0;top:0;cursor:pointer;height:100%;font-size:1em;padding-left:.5em}.TextField_clearTag_3A5bt:hover{color:#000}.TextField_inner_M1EMQ{display:block}.TextField_content_1ma8z{display:block;overflow:hidden}@media (hover:hover){.TextField_content_1ma8z:hover{-webkit-box-shadow:none;box-shadow:none;border-color:#999}}.TextField_content_1ma8z:focus,.TextField_content_1ma8z:focus-within{-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42);background-color:#fff;border-color:#24a3e3}.TextField_content_1ma8z:focus-within:invalid,.TextField_content_1ma8z:focus:invalid{-webkit-box-shadow:0 0 0 3px rgba(230,102,102,.42);box-shadow:0 0 0 3px rgba(230,102,102,.42)}.TextField_content_1ma8z:active{border-color:#24a3e3}.TextField_content_1ma8z:invalid{border-color:#e66666;background-color:#fff;-webkit-box-shadow:none;box-shadow:none}.TextField_input_6S7XF{display:inline-block;color:inherit;background-color:transparent;border:none;line-height:1em;width:-webkit-fill-available;width:-moz-available;width:stretch;margin:.2em 0 0;padding:0 0 0 .1em;z-index:1}.TextField_input_6S7XF:focus{outline:none}.DefaultSelect_root_2FQGX{display:block;position:relative;outline:none;color:inherit}.DefaultSelect_root_2FQGX:hover .DefaultSelect_arrow_3n1vi{color:#24a3e3}.DefaultSelect_root_2FQGX:focus-within .DefaultSelect_arrow_3n1vi{color:#24a3e3}.DefaultSelect_disabled_1imH4{opacity:.5}.DefaultSelect_select_3xha0{-webkit-box-sizing:border-box;box-sizing:border-box;min-width:112px;min-width:7rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;overflow:hidden;height:2.5em;margin-right:2.5em}.DefaultSelect_select_3xha0:not(:disabled):hover{-webkit-box-shadow:none;box-shadow:none;border-color:#999}.DefaultSelect_select_3xha0:not(:disabled):focus,.DefaultSelect_select_3xha0:not(:disabled):focus-within{-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42);border-color:#24a3e3}.DefaultSelect_select_3xha0:not(:disabled):active{border-color:#24a3e3}.DefaultSelect_select_3xha0:not(:disabled):invalid{border-color:#e66666;background-color:#fff;-webkit-box-shadow:none;box-shadow:none}.DefaultSelect_selectContainer_AGEPt{position:relative;color:hsla(0,0%,9%,.2)}.DefaultSelect_hasFocus_2NooG .DefaultSelect_selectContainer_AGEPt,.DefaultSelect_selectContainer_AGEPt:hover{color:#24a3e3}.DefaultSelect_selectContainerDisabled_3IDqZ{opacity:.5;color:#303030}.DefaultSelect_selectContainerDisabled_3IDqZ:hover{color:inherit}.DefaultSelect_root_2FQGX:hover .DefaultSelect_selectContainerDisabled_3IDqZ{border-color:#999}.DefaultSelect_hasFocus_2NooG .DefaultSelect_selectContainerDisabled_3IDqZ{color:inherit}.DefaultSelect_selectContainerDisabled_3IDqZ:focus{border-color:#24a3e3;-webkit-box-shadow:0 0 0 3px rgba(36,163,227,.42);box-shadow:0 0 0 3px rgba(36,163,227,.42)}.DefaultSelect_functions_38pkB{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;position:absolute;top:0;right:0;height:100%;cursor:default;z-index:1;pointer-events:none;color:#303030}.DefaultSelect_functions_38pkB>*{pointer-events:auto}.DefaultSelect_functions_38pkB .DefaultSelect_arrow_3n1vi{pointer-events:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:2.5em;color:inherit}.DefaultSelect_functions_38pkB>:not(:first-child){margin-left:.5em}.DefaultSelect_functions_38pkB svg{color:inherit}.DefaultSelect_selectContainerDisabled_3IDqZ .DefaultSelect_functions_38pkB{opacity:.5}.RadioSelect_root_1vqdm{display:block}.RadioSelect_vertical_147Xx .RadioSelect_item_1zl1l+.RadioSelect_item_1zl1l{margin-top:.5em}.RadioSelect_horizontal_CzHyb .RadioSelect_radioContainer_3ulVO{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.RadioSelect_container_14NhL{display:block}.RadioSelect_item_1zl1l{margin-right:1rem}.RadioButtonDefault_root_xsrod{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;z-index:1;vertical-align:middle;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;height:16px;height:1rem;margin:0;padding:0 0 0 calc(1rem + .25em)}.RadioButtonDefault_isDisabled_6pFfN{opacity:.5;pointer-events:none}.RadioButtonDefault_input_Xffq4{line-height:16px;line-height:1rem;position:absolute;width:0;height:0;margin:0;padding:0;opacity:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none}.RadioButtonDefault_circleOutline_2-nnI{position:absolute;top:0;left:0;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;width:16px;width:1rem;height:16px;height:1rem;margin:0;cursor:default;overflow:hidden;border:2px solid #24a3e3;border-radius:100%;z-index:2}.RadioButtonDefault_isChecked_3qP-D .RadioButtonDefault_circleOutline_2-nnI{border:2px solid #24a3e3}.RadioButtonDefault_focusHelper_3IApq{position:absolute;top:-4px;top:-.25rem;left:-4px;left:-.25rem;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;width:24px;width:1.5rem;height:24px;height:1.5rem;border-radius:50%;background-color:transparent;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transition:background-color .1s linear,-webkit-transform .15s linear;transition:background-color .1s linear,-webkit-transform .15s linear;transition:background-color .1s linear,transform .15s linear;transition:background-color .1s linear,transform .15s linear,-webkit-transform .15s linear}.RadioButtonDefault_isFocused_37vMT .RadioButtonDefault_focusHelper_3IApq,.RadioButtonDefault_root_xsrod:active .RadioButtonDefault_focusHelper_3IApq{background-color:rgba(36,163,227,.4);-webkit-transform:scale(1);transform:scale(1)}.RadioButtonDefault_tickOutline_3PAX_{position:absolute;top:0;left:0;height:100%;width:100%;background:transparent;-webkit-transition-timing-function:linear;transition-timing-function:linear;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:background,-webkit-transform;transition-property:background,-webkit-transform;transition-property:background,transform;transition-property:background,transform,-webkit-transform;-webkit-transform:scale(.1);transform:scale(.1);border-radius:50%}.RadioButtonDefault_isChecked_3qP-D .RadioButtonDefault_tickOutline_3PAX_{background-color:#24a3e3;-webkit-transform:scale(.7);transform:scale(.7)}.RadioButtonDefault_label_1wHQx{position:relative;cursor:default;font-size:1em;line-height:16px;line-height:1rem;margin:0}.MarkdownInput_tabs_33pTY{border-bottom:1px solid #999;padding-top:5px;min-height:40px}.MarkdownInput_tab_20lJV{background:#f2f2f2;border-bottom-right-radius:0;border-bottom-left-radius:0}.MarkdownInput_activeTab_pE4OA{border:1px solid #999;border-bottom:0}.MarkdownInput_previewFocusTarget_3OzGu{position:absolute;top:0;left:0;width:1px;height:1px;opacity:0}.MarkdownInput_preview_21DkE{background-color:#fff;border:1px solid hsla(0,0%,9%,.2);padding:.5em}.Controls_actionButtons_X6aNl{float:right}.Controls_staticActionButtons_UDP10{min-height:20px}.Controls_button_2CLPl{color:#586069;background:transparent;border:0;display:inline-block;height:30px;width:30px;padding:0}.Controls_button_2CLPl:hover{color:#24a3e3}.Controls_buttonGroupStart_34ntN{margin-left:20px}.Controls_buttonGroupStart_34ntN:first-child{margin-left:0}.Preview_root_v4L4W{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:14.4px;font-size:.9rem}.Preview_removedHtml_2dzlI{background-size:32px;background-repeat:repeat-x;background-position:0 15px}.Preview_removedHtmlInner_3lBVI{background:#fff;color:#ccc;border:1px solid #ccc;border-radius:5px;max-width:150px;text-align:center;margin:0 auto;line-height:42px;font-style:italic}.Preview_escapedHtml_3_poM{border:1px solid #ccc;border-radius:5px;padding:.5em;background:#f8f8f8;font-family:monospace;font-size:17.6px;font-size:1.1rem;white-space:pre;margin-top:1.5rem}.Preview_escapedHtml_3_poM:before{content:"Escaped HTML:";display:block;position:absolute;margin-top:-1.5rem;padding:2px 5px;background:#f8f8f8;border:1px solid #ccc}.Preview_root_v4L4W img{max-width:100%}.Preview_root_v4L4W h1,.Preview_root_v4L4W h2{border-bottom:1px solid #eaecef}.Preview_root_v4L4W ol,.Preview_root_v4L4W ul{padding-left:2em}.Preview_root_v4L4W pre{border:1px solid #ccc;background:#f8f8f8;color:#333;padding:.5em;overflow-x:auto}.Preview_root_v4L4W blockquote{color:#666;margin:0;padding:0 1em;border-left:.5em solid #eee;white-space:pre-line}.Preview_root_v4L4W table{border-collapse:collapse}.Preview_root_v4L4W tr{border-top:1px solid #c6cbd1;background:#fff}.Preview_root_v4L4W td,.Preview_root_v4L4W th{padding:6px 13px;border:1px solid #dfe2e5}.Preview_root_v4L4W table tr:nth-child(2n){background:#f6f8fa}.Preview_root_v4L4W kbd{display:inline-block;padding:3px 5px;font-size:11px;line-height:10px;color:#444d56;vertical-align:middle;background-color:#fafbfc;border:1px solid #c6cbd1;border-bottom-color:#959da5;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 #959da5;box-shadow:inset 0 -1px 0 #959da5;font:15px SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}.ColorPickerFields_fields_1k1Dm{display:-webkit-box;display:-ms-flexbox;display:flex;width:200px}.ColorPickerFields_single_2KLMg{-webkit-box-flex:1;-ms-flex:1;flex:1;padding-right:.5em}.ColorPickerFields_alpha_ZQE9f{-webkit-box-flex:1;-ms-flex:1;flex:1}.ColorPickerFields_double_2F-Ve{-webkit-box-flex:2;-ms-flex:2;flex:2;padding-right:.5em}.ColorPickerFields_disableAlpha_3sH60{@nest .alpha{display:none}}.ColorPicker_saturation_1jpJW{height:5em;margin-bottom:.5rem;position:relative;overflow:hidden;border-radius:2px 2px 0 0}.ColorPicker_hue_3HlDc{height:10px;margin-bottom:.5rem;position:relative;overflow:hidden;border-radius:5px;-webkit-box-shadow:0 0 3px hsla(0,0%,60%,.5);box-shadow:0 0 3px hsla(0,0%,60%,.5)}.ColorPicker_alpha_DbdT0{height:10px;position:relative;overflow:hidden;border-radius:5px;margin-bottom:.5rem;-webkit-box-shadow:0 0 3px hsla(0,0%,60%,.5);box-shadow:0 0 3px hsla(0,0%,60%,.5)}.ColorPicker_controls_1081L{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:.7em;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.ColorPicker_color_37R_w{position:absolute;top:0;left:0;width:100%;height:100%}.ColorPicker_preview_31l2F{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-width:4em;position:relative;border-radius:6px;overflow:hidden;-webkit-box-shadow:0 0 3px hsla(0,0%,60%,.5);box-shadow:0 0 3px hsla(0,0%,60%,.5)}.ColorPicker_fields_3P-Qs{display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:1rem}.ColorPicker_fields_3P-Qs button:last-child{margin-left:.5rem}.ColorPicker_readOnly_3U6ce{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-top:6rem;background-color:#fff;font-size:16px;font-size:1rem;z-index:2;position:relative;width:100%;padding:.5rem}.ColorPicker_readOnly_3U6ce h3{padding:0;margin:0}.ColorPicker_readOnly_3U6ce p{padding:0;margin:0;font-size:14px;font-size:.875rem;color:rgba(48,48,48,.8)}.DeskTool_deskTool_h0a8u{display:block}@media (min-width:32em){.DeskTool_deskTool_h0a8u{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}}.DeskTool_createButtonContainer_1YrpJ{position:absolute;top:0;left:0;z-index:1;font-size:16px;font-size:1rem;font-weight:100}.DeskTool_createButton_2KucK{padding-left:.5rem}.DeskTool_nothingSelected_1gjcL{color:rgba(48,48,48,.5)}@media (min-width:32em){.SplitController_root_1_Pta{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%}}.SplitController_root_1_Pta .Pane1{background-color:inherit;-webkit-transition:width .2s linear;transition:width .2s linear}.SplitController_splitPane_18bcQ,.SplitController_splitWrapper_24AHo{display:block}.SplitController_splitWrapperResizing_172Lr .Pane1{-webkit-transition:unset!important;transition:unset!important}.SplitController_singleWrapper_2k9c8 .Pane1{max-width:100%!important;-webkit-box-flex:1!important;-ms-flex:1!important;flex:1!important}.SplitController_singleWrapper_2k9c8 .Pane2,.SplitController_singleWrapper_2k9c8 .SplitController_Resizer_1fQXJ{display:none}.SplitController_Resizer_1fQXJ{background:hsla(0,0%,9%,.1);z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box;background-clip:padding-box}.SplitController_Resizer_1fQXJ:hover{opacity:.2;-webkit-transition:border .2s ease,opacity .1s ease;transition:border .2s ease,opacity .1s ease}.SplitController_vertical_3_E5x .SplitController_Resizer_1fQXJ{width:11px;margin:0 -5px;border-left:5px solid hsla(0,0%,9%,0);border-right:5px solid hsla(0,0%,9%,0);cursor:col-resize}.SplitController_vertical_3_E5x .SplitController_Resizer_1fQXJ:hover{border-left:5px solid hsla(0,0%,9%,.25);border-right:5px solid hsla(0,0%,9%,.25)}.SplitController_disabled_3_IsL .SplitController_Resizer_1fQXJ{cursor:not-allowed}.SplitController_disabled_3_IsL .SplitController_Resizer_1fQXJ:hover{border-color:transparent}.SplitController_ResizerIsCollapsed_2oq7p{display:none;pointer-events:none}.SplitController_hideResize_2CP7G>.SplitController_splitPane_18bcQ>.SplitController_Resizer_1fQXJ,.SplitController_lastPane_cbghY .SplitController_Resizer_1fQXJ{display:none}.DefaultMenu_root_354i-{background-color:#fff;color:#303030;font-size:14px;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:left;overflow:auto;overflow-x:hidden;padding:.25rem 0;border-radius:4px}.DefaultMenu_item_17VCr{white-space:nowrap;position:relative}.DefaultMenu_isDisabled_2ij2o{opacity:.4}.DefaultMenu_isDisabled_2ij2o:hover{background-color:inherit}.DefaultMenu_iconContainer_2INio{margin-right:.5em}.DefaultMenu_link_1Kmh9{display:block;position:relative;line-height:3em;padding:0 1em;cursor:default;text-decoration:none;color:inherit;outline:none}.DefaultMenu_dangerLink_sC_gm{color:#e66666}.DefaultMenu_divider_ZXRHA{margin-top:calc(.5rem + 1px)}.DefaultMenu_divider_ZXRHA:before{content:"";display:block;position:absolute;width:100%;left:0;top:calc(-.25rem - 1px);border-top:1px solid hsla(0,0%,9%,.1)}.ScrollContainer_scrollContainer_RkYhF{position:absolute;top:0;left:0;height:100%;width:100%;overflow:auto}.DefaultPane_root_4AmYb{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background-color:#fff;min-height:calc(100vh - 3.0625em);width:100%}@media (min-width:32em){.DefaultPane_root_4AmYb{-webkit-transition:-webkit-box-shadow .1s linear;transition:-webkit-box-shadow .1s linear;transition:box-shadow .1s linear;transition:box-shadow .1s linear,-webkit-box-shadow .1s linear;position:relative;height:100%;top:auto;left:auto;min-height:0;overflow:hidden}}.DefaultPane_isDisabled_3lAn9{display:none}@media (min-width:32em){.DefaultPane_isDisabled_3lAn9{display:-webkit-box;display:-ms-flexbox;display:flex}}.DefaultPane_isActive_1siOT{display:-webkit-box;display:-ms-flexbox;display:flex}@media (min-width:32em){.DefaultPane_isCollapsed_2s79X{margin-right:0;border-color:#ccc;padding:0;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-transition:-webkit-box-shadow .2s linear .2s;transition:-webkit-box-shadow .2s linear .2s;transition:box-shadow .2s linear .2s;transition:box-shadow .2s linear .2s,-webkit-box-shadow .2s linear .2s;background-image:-webkit-gradient(linear,left top,right top,from(transparent),to(rgba(48,48,48,.1)));background-image:linear-gradient(90deg,transparent,rgba(48,48,48,.1));background-size:.8rem 100%;background-repeat:no-repeat;background-position:100%;height:100%;overflow:hidden}}.DefaultPane_header_3ctgw{position:-webkit-sticky;position:sticky;top:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;line-height:55px;line-height:3.4375rem;width:100%;height:55px;height:3.4375rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:inherit;z-index:10}.DefaultPane_isCollapsed_2s79X .DefaultPane_header_3ctgw{background-color:transparent}.DefaultPane_headerContent_3dqTZ{z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:end;align-self:flex-end;-webkit-box-sizing:border-box;box-sizing:border-box;height:55px;height:3.4375rem;padding-left:1rem;width:100%}.DefaultPane_isCollapsed_2s79X .DefaultPane_headerContent_3dqTZ{min-width:100vh}.DefaultPane_buttonWrapper_28Zyv{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;position:relative}.DefaultPane_actionButton_2jpqC{-webkit-appearance:none;-moz-appearance:none;appearance:none;font:inherit;background-color:transparent;border:0;border-radius:0;color:inherit;width:2.1875em;margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;outline:none}.DefaultPane_actionButton_2jpqC:focus{background-color:rgba(36,163,227,.2)}.DefaultPane_actionButtonInner_3JxkP{outline:none;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.DefaultPane_actionButtonInner_3JxkP>svg{font-size:1.5625em}@media (hover:hover){.DefaultPane_actionButtonInner_3JxkP>svg{opacity:.6}.DefaultPane_actionButton_2jpqC:focus .DefaultPane_actionButtonInner_3JxkP>svg,.DefaultPane_actionButtonInner_3JxkP:hover>svg{opacity:1}}.DefaultPane_menuWrapper_3Wl0g{z-index:2}.DefaultPane_isCollapsed_2s79X .DefaultPane_menuWrapper_3Wl0g{display:none}.DefaultPane_actions_3IHYn{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.DefaultPane_isCollapsed_2s79X .DefaultPane_actions_3IHYn{display:none}.DefaultPane_menuContainer_iIJye{position:absolute;right:0;bottom:0}.DefaultPane_menuContainer_iIJye>div{position:absolute;right:8px;right:.5rem}.DefaultPane_menuButton_1vQbY{display:block;text-align:center}.DefaultPane_title_1kt9V{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;z-index:-1;display:block;padding:0 .25em 0 0;font-size:20px;font-size:1.25rem;font-weight:700;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;white-space:nowrap;overflow:hidden;max-width:100%;width:-webkit-fill-available;width:-moz-available;width:stretch;text-overflow:ellipsis;margin:0 auto 0 0;-webkit-transform-origin:.5em 1.5em;transform-origin:.5em 1.5em;-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-transition:-webkit-transform .2s linear;transition:-webkit-transform .2s linear;transition:transform .2s linear;transition:transform .2s linear,-webkit-transform .2s linear}.DefaultPane_isCollapsed_2s79X .DefaultPane_title_1kt9V{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.DefaultPane_functions_1SFxw{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-ms-flex-wrap:nowrap;flex-wrap:nowrap;opacity:1;z-index:1;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-left:1em}.DefaultPane_main_1fnq9{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:block;position:relative;opacity:1;-webkit-transition:opacity .2s linear .2s;transition:opacity .2s linear .2s}.DefaultPane_isCollapsed_2s79X .DefaultPane_main_1fnq9{opacity:0;-webkit-transition:opacity 0 0;transition:opacity 0 0}.DefaultPane_scrollContainer_1WlAM{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}@media (min-width:32em){.DefaultPane_scrollContainer_1WlAM{position:absolute;top:0;left:0;right:0;height:100%}}@media (max-width:31.9375em){.DefaultPane_scrollContainer_1WlAM{-webkit-transform:none;-webkit-transform:initial;transform:none;position:static;top:auto;left:auto;height:auto;width:auto;overflow:visible;overflow:initial}}.DefaultPane_isCollapsed_2s79X .DefaultPane_scrollContainer_1WlAM{display:none}.DefaultPane_notScrollable_1SzH1{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}@media (min-width:32em){.DefaultPane_notScrollable_1SzH1{position:absolute;top:0;left:0;right:0;height:100%}}@media (max-width:31.9375em){.DefaultPane_notScrollable_1SzH1{-webkit-transform:none;-webkit-transform:initial;transform:none;position:static;top:auto;left:auto;height:auto;width:auto;overflow:visible;overflow:initial}}.DefaultPane_isCollapsed_2s79X .DefaultPane_functionsButton_1_tk3{display:none}.DefaultPane_functionsButtonText_2Uorv{white-space:nowrap;text-overflow:ellipsis}.DefaultPane_functionsSmall_1ZWA_ .DefaultPane_functionsButtonText_2Uorv,.DefaultPane_isCollapsed_2s79X .DefaultPane_functionsButtonText_2Uorv{display:none}.LoadingPane_root_3Cf_o{display:block;top:0;left:0;height:100%;width:100%;bottom:0;right:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}@media (max-width:31.9375em){.LoadingPane_root_3Cf_o{min-height:calc(100vh - 12rem)}}.DocumentsListPane_root_O9Hu-{display:block;top:0;left:0;height:100%;width:100%;bottom:0;right:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}@media (max-width:31.9375em){.DocumentsListPane_root_O9Hu-{min-height:calc(100vh - 3.0625em)}}.DocumentsListPane_empty_4urxd{display:block;height:100%;text-align:center;position:relative}.DocumentsListPane_empty_4urxd>div{position:absolute;width:100%;left:50%;top:20%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.DocumentsListPane_empty_4urxd h3{padding:1rem;font-size:20px;font-size:1.25rem;opacity:.8;font-weight:400}.DocumentsListPane_link_3syeq{display:block;color:inherit;text-decoration:inherit;outline:none;height:100%}.DocumentsListPane_item_2b38H{height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.DocumentsListPane_layout__default_2fANL .DocumentsListPane_item_2b38H,.DocumentsListPane_layout__detail_3ypjn .DocumentsListPane_item_2b38H{padding:.5rem 1rem}.DocumentsListPane_item_2b38H>span{display:block}.DocumentsListPane_itemStatus_1raEr{z-index:2;position:relative;opacity:.7;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.DocumentsListPane_itemStatus_1raEr:hover{opacity:1}.DocumentsListPane_selectedItem_3wHlc .DocumentsListPane_itemStatus_1raEr{color:#fff}.ListView_cardList_3qvDq{display:grid;grid-template-columns:repeat(auto-fill,minmax(12rem,1fr));grid-gap:1rem;margin:0;padding:1rem}.ListView_cardListItem_croNE{background-color:#fff}.ListView_mediaList_1-qM3{display:grid;grid-template-columns:repeat(auto-fill,minmax(5rem,1fr));grid-gap:.5rem;margin:0;padding:1rem}@media (max-width:31.9375em){.ListView_scroll_Z6OkK{height:auto!important}}@media (min-width:32em){.enhanceWithAvailableHeight_root_3HYE9{position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%}}.ItemStatus_itemStatus_qz9UQ{z-index:2;position:relative;opacity:.7;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.ItemStatus_itemStatus_qz9UQ:hover{opacity:1}.ItemStatus_selectedItem_2Tqpj .ItemStatus_itemStatus_qz9UQ{color:#fff}.ItemStatus_itemStatus_qz9UQ>i{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.PaneItem_item_5-POL{position:relative;margin:0;padding:0}.PaneItem_linkWrapper_2Cqdp{display:block;text-decoration:inherit;outline:none;height:100%;margin:0;padding:.5rem 1rem}.PaneItem_link_1t_BS{color:inherit}.UserComponentPane_noHeader_30Vu3{display:none}.UnknownPaneType_root_d9Jnq{padding-left:1rem}.ErrorPane_root_1qf1k{display:block;top:0;left:0;height:100%;width:100%;bottom:0;right:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}@media (max-width:31.9375em){.ErrorPane_root_1qf1k{min-height:calc(100vh - 12rem)}}.ErrorPane_message_2f2Q5{position:absolute;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.EditorWrapper_deletedDocumentInner_3RRLv,.EditorWrapper_errorInner_1YHRa,.EditorWrapper_unknownSchemaTypeInner_3r1Wp{padding:1rem}.EditorWrapper_errorDetails_1uxyO{width:100%;margin-top:1em;height:10em;white-space:pre;background:transparent;border:0;padding:.5rem 0;font-size:10px;font-size:.625rem;font-family:SF Mono,Menlo,Monaco,Consolas,Courier New,monospace;line-height:1.5em}.EditorWrapper_jsonDump_13T5E{white-space:pre-wrap;padding:1rem}.Hotkeys_root_3-G2l{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1.5em}.Hotkeys_key_KMYmT{color:inherit;border:1px solid;padding:0 .3em;border-radius:.2em;min-width:1em;text-align:center}.Hotkeys_seperator_eXlNL{color:inherit;padding:0 .2em}.ReferringDocumentsList_item_1zpJ-{padding:1px 0}.ReferringDocumentsList_link_3XeuN{color:inherit}.json-inspector .json-inspector,.json-inspector .json-inspector__selection{font:14px/1.4 Consolas,monospace;background:#f5f5f5}.json-inspector .json-inspector__leaf{padding-left:18px}.json-inspector>.json-inspector__leaf_root>.json-inspector__line>.json-inspector__key{display:none}.json-inspector .json-inspector__leaf_root>.json-inspector__leaf:hover{background:rgba(0,0,0,.05)}.json-inspector .json-inspector__leaf_root>.json-inspector__leaf:nth-child(2n){background:rgba(0,0,0,.025)}.json-inspector .json-inspector__leaf_root>.json-inspector__leaf{margin-bottom:.2em}.json-inspector .json-inspector__line{display:block;position:relative;cursor:default}.json-inspector .json-inspector__line:after{content:"";position:absolute;top:0;left:-200px;right:-50px;bottom:0;z-index:-1;pointer-events:none}.json-inspector .json-inspector__line:hover:after{background:rgba(0,0,0,.06)}.json-inspector .json-inspector__leaf_composite>.json-inspector__line{cursor:pointer}.json-inspector .json-inspector__leaf_composite>.json-inspector__line:before{content:"\25B7 ";color:#bbb;margin-left:-18px;font-size:90%}.json-inspector .json-inspector__leaf_expanded.json-inspector__leaf_composite>.json-inspector__line:before{color:#999;content:"\25BD ";font-size:90%}.json-inspector .json-inspector__flatpath,.json-inspector .json-inspector__radio{display:none}.json-inspector .json-inspector__value{margin-left:5px}.json-inspector .json-inspector__search{min-width:300px;margin:0 10px 10px 0;padding:2px}.json-inspector .json-inspector__key{color:#505050}.json-inspector .json-inspector__not-found,.json-inspector .json-inspector__value_helper,.json-inspector .json-inspector__value_null{color:#b0b0b0}.json-inspector .json-inspector__value_string{color:#75921a}.json-inspector .json-inspector__value_boolean{color:#008fd8}.json-inspector .json-inspector__value_number{color:#dc6c40}.json-inspector .json-inspector__hl{background:#ff0;-webkit-box-shadow:0 -1px 0 2px #ff0;box-shadow:0 -1px 0 2px #ff0;border-radius:2px}.json-inspector .json-inspector__show-original{display:inline-block;padding:0 6px;color:#666;cursor:pointer}.json-inspector .json-inspector__show-original:hover{color:#111}.json-inspector .json-inspector__show-original:before{content:"\2942"}.json-inspector .json-inspector__show-original:hover:after{content:" expand"}.InspectView_content_1xV1t{padding:1rem;border:1px solid hsla(0,0%,9%,.2);-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff}.InspectView_toolbar_3F-nm{margin-bottom:1rem}.InspectView_raw_1YjmF{white-space:pre-wrap;font:14px/1.4 Consolas,monospace;outline:none}.PresenceCircle_root_3C13c{display:block;position:relative;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:1em;height:1em;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:50%;background-size:100%;background-color:#303030;border:.0625em solid transparent;-webkit-transition:-webkit-transform .4s cubic-bezier(.075,.82,.165,1),-webkit-box-shadow .1s ease;transition:-webkit-transform .4s cubic-bezier(.075,.82,.165,1),-webkit-box-shadow .1s ease;transition:transform .4s cubic-bezier(.075,.82,.165,1),box-shadow .1s ease;transition:transform .4s cubic-bezier(.075,.82,.165,1),box-shadow .1s ease,-webkit-transform .4s cubic-bezier(.075,.82,.165,1),-webkit-box-shadow .1s ease;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PresenceCircle_root_3C13c.PresenceCircle_hoverAnimation_1Wo_H:hover{-webkit-box-shadow:1px 1px 10px rgba(0,0,0,.2);box-shadow:1px 1px 10px rgba(0,0,0,.2);-webkit-transform:scale(1.7);transform:scale(1.7)}.PresenceCircle_initials_1CcRF{display:block;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:#fff;font-size:10px;font-size:.625rem}.PresenceList_root_1_jra{display:block;font-size:14px;font-size:.875rem;margin:0;padding:0}.PresenceList_item_CgGEv{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0;padding:.5rem;-webkit-box-sizing:border-box;box-sizing:border-box}.PresenceList_circle_2VULV{font-size:2em;margin-right:.5em}.EventIcon-module_root_kiDYq{position:relative;height:calc(.5em + 1px);width:calc(.5em + 1px);background:none;-webkit-box-sizing:border-box;box-sizing:border-box;border-collapse:separate;opacity:.2}[data-is-selected=true] .EventIcon-module_root_kiDYq{opacity:1}.EventIcon-module_created_2kdQp,.EventIcon-module_edited_3aCNM{border-radius:50%;border:1px solid}.EventIcon-module_published_2ho9x{border-radius:50%;background:currentColor}[data-is-current-version=true] .EventIcon-module_published_2ho9x{opacity:1;background-color:#19b366}[data-is-current-version=true][data-is-selected=true] .EventIcon-module_published_2ho9x{border:1px solid}.EventIcon-module_unpublished_FTTYO{background:currentColor}.EventIcon-module_unpublished_FTTYO:before{content:"";display:block;position:absolute;top:0;left:.25em;bottom:0;border-left:1px solid}.ListItem-modules_root_1Obub{position:relative;padding:.875rem 1rem 1rem 2rem;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%}.ListItem-modules_startLine_2SEZe{height:calc(1rem - 1px);width:0;position:absolute;top:0;left:calc(1rem + 3px);border-left:1px solid;opacity:.2}.ListItem-modules_root_1Obub:first-child .ListItem-modules_startLine_2SEZe{display:none}.ListItem-modules_selected_2IQu0 .ListItem-modules_startLine_2SEZe{opacity:1}.ListItem-modules_endLine_3SOIG{height:calc(100% - .5rem - .5em - 1px - .5rem + 1px);width:0;position:absolute;top:calc(1rem + .5em);left:calc(1rem + 3px);border-left:1px solid;opacity:.2}.ListItem-modules_root_1Obub:last-child .ListItem-modules_endLine_3SOIG{display:none}.ListItem-modules_selected_2IQu0 .ListItem-modules_endLine_3SOIG{opacity:1}.ListItem-modules_icon_1bHCa{position:absolute;top:calc(1rem - 1px);left:calc(1rem + 3px - .25em)}.ListItem-modules_status_Mpnzq{text-transform:uppercase;font-size:12px;font-size:.75rem;letter-spacing:.5px;line-height:1}.ListItem-modules_users_2i-Rr{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:20px;font-size:1.25rem}.ListItem-modules_userIcons_3MM7T{display:-webkit-box;display:-ms-flexbox;display:flex}.ListItem-modules_user_ciaqF{width:.5em;height:.5em;position:relative}.ListItem-modules_user_ciaqF+.ListItem-modules_user_ciaqF{margin-left:1px}.ListItem-modules_userInner_1yfHt{position:absolute;top:0;left:0;-webkit-transform:translateY(-25%);transform:translateY(-25%)}.ListItem-modules_userInner_1yfHt>*{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:50%;background-clip:padding-box;background-repeat:no-repeat;background-position:50% 50%}.ListItem-modules_user_ciaqF:last-child .ListItem-modules_userInner_1yfHt{-webkit-clip-path:none!important;clip-path:none!important}.ListItem-modules_userName_3-mWt{margin-left:1rem;font-size:12px;font-size:.75rem}.ListItem-modules_title_3wtBW{font-weight:600;margin-bottom:.5rem;margin-top:1px}.ListItem-modules_children_2ibLt{padding:1rem 0}.ListItem-modules_truncatedInfo_3RxoG{margin:.5rem 0 1rem}.ListItem-modules_truncatedInfo_3RxoG p{font-size:12px;font-size:.75rem;margin:0 0 .5rem}.History_root_23Bow{min-width:260px;max-width:320px;background-color:#fafafa;height:100%;width:100%;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.History_header_aP5hx{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:1rem;height:55px;height:3.4375rem;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:55px;min-height:3.4375rem;font-weight:500}.History_closeButton_3cq4X{font-size:1.5em}.History_list_2K5RZ{height:100%;overflow:auto;-webkit-overflow-scrolling:touch}@-webkit-keyframes Editor_spin_cAm8G{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes Editor_spin_cAm8G{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@media (min-width:32em){.Editor_paneWrapper_24drj{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%}}@media (min-width:32em){.Editor_paneWrapperWithHistory_SBnLb{-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;display:-webkit-box;display:-ms-flexbox;display:flex}}.Editor_pane_3I-hG{display:block;position:relative}@media (min-width:32em){.Editor_pane_3I-hG{background-color:transparent;height:100%}}.Editor_loading_1a65V{min-height:100%}.Editor_menuItem_3P03e{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:-webkit-fill-available;width:-moz-available;width:stretch}.Editor_hotkey_273OJ{color:inherit;font-size:.8em;margin-left:.6em;padding-right:1em;opacity:.5}.Editor_top_2MrpN{margin:0 1rem;color:rgba(48,48,48,.8)}.Editor_publishInfo_35k4d{display:grid;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(48,48,48,.8);position:fixed;bottom:0;left:0;right:0;width:100%;background-color:#fff;z-index:900;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition:-webkit-transform .3s ease-in,-webkit-box-shadow .2s ease-in;transition:-webkit-transform .3s ease-in,-webkit-box-shadow .2s ease-in;transition:transform .3s ease-in,box-shadow .2s ease-in;transition:transform .3s ease-in,box-shadow .2s ease-in,-webkit-transform .3s ease-in,-webkit-box-shadow .2s ease-in;grid-template-areas:"publishButton publishInfoUndoButton";grid-template-columns:auto auto;grid-template-rows:2.5em;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:16px;font-size:1rem;grid-gap:.5em;-webkit-box-shadow:0 0 2px rgba(0,0,0,.2);box-shadow:0 0 2px rgba(0,0,0,.2);padding:.5rem 1rem}@supports (padding-bottom:env(safe-area-inset-bottom)){.Editor_publishInfo_35k4d{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}}@media (max-height:32em){.Editor_publishInfo_35k4d{position:relative}}@media (min-width:375px){.Editor_publishInfo_35k4d{grid-template-columns:50% 50%}}@media (min-width:32em){.Editor_publishInfo_35k4d{position:absolute;grid-template-columns:10em 10em;padding:.5rem 1rem}}.Editor_publishInfoHidden_2qRFD{-webkit-transform:translateY(100%);transform:translateY(100%);-webkit-box-shadow:0 0 0 #000;box-shadow:0 0 0 #000}.Editor_publishButton_3HXrQ{grid-area:publishButton;justify-self:stretch}.Editor_publishButton_3HXrQ>*{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.Editor_publishInfoUndoButton_1CxXi{position:relative;grid-area:publishInfoUndoButton}.Editor_publishInfoUndoButton_1CxXi>*{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.Editor_popOverText_3ef12{font-size:1em;line-height:1.25;margin-bottom:1em;text-align:center;max-width:18em}.Editor_errors_1o7Q9{margin-left:1rem;color:#e66666}.Editor_warnings_NVe5x{margin-left:1rem;color:#ffba00}.Editor_editor_7ly3E{padding:1rem 1rem 8rem;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.Editor_syncStatus_JCnkX{display:block;opacity:1;font-size:12px;font-size:.75rem;padding:0 .5rem;white-space:nowrap}.Editor_syncStatusReconnecting_1ZjDx{color:#e66666}.Editor_syncStatusSyncing_2jtRv{color:#19b366}.Editor_overlay_rtQq8{position:absolute;background-color:hsla(0,0%,100%,.8);height:100%;width:100%;z-index:200}.Editor_typeMisMatchMessage_1nED8{padding:10em 3em}.Editor_paneFunctions_9bS_5{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;padding-right:0}@media (min-width:32em){.Editor_paneFunctions_9bS_5{font-size:1em}}.Editor_syncSpinnerContainer_3QcxT{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.Editor_syncSpinner_w1ZB4{display:block}.Editor_syncSpinner_w1ZB4>svg{display:block;-webkit-transform-origin:center center;transform-origin:center center;-webkit-animation-name:Editor_spin_cAm8G;animation-name:Editor_spin_cAm8G;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.Editor_spinnerContainer_105tZ{position:fixed;top:0;left:0;width:100%;z-index:10;height:100%;background-color:hsla(0,0%,100%,.6)}@media (min-width:32em){.Editor_spinnerContainer_105tZ{position:absolute;height:calc(100vh - 6rem)}}.Editor_statusBadges_21IDI{font-size:11px;font-size:.6875rem;color:rgba(48,48,48,.5)}.Editor_editedTime_3w3zM{display:inline-block;cursor:default;font-size:12px;font-size:.75rem;pointer-events:none}.Editor_editedTime_3w3zM:first-letter{text-transform:uppercase}.Editor_editedTimeClickable_7iM-H{cursor:pointer}@media (min-width:32em){.Editor_editedTimeClickable_7iM-H{pointer-events:auto}}@media (hover:hover){.Editor_editedTimeClickable_7iM-H:hover{text-decoration:underline}}.Editor_statusBadges_21IDI:not(:empty)+.Editor_editedTime_3w3zM{margin-left:.5rem}.DefaultBadge-modules_root_3jLf5{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:2px;padding:.31909em .45455em;line-height:1;text-transform:uppercase;font-weight:600;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;text-align:center;border:.09091em solid transparent;-webkit-transform:translateZ(0);transform:translateZ(0);cursor:default}.DefaultBadge-modules_root_3jLf5+.DefaultBadge-modules_root_3jLf5{margin-left:.25em}.DefaultBadge-modules_default_2espm{background-color:#303030;border-color:#303030;color:#fff}.DefaultBadge-modules_default_2espm[data-color=success]{background-color:#19b366;border-color:#19b366;color:#fff}.DefaultBadge-modules_default_2espm[data-color=info]{background-color:#2097ac;border-color:#2097ac;color:#fff}.DefaultBadge-modules_default_2espm[data-color=warning]{background-color:#ffba00;border-color:#ffba00;color:#141000}.DefaultBadge-modules_default_2espm[data-color=danger]{background-color:#e66666;border-color:#e66666;color:#fff}.DefaultBadge-modules_default_2espm[data-color=neutral]{background-color:#999;border-color:#999;color:#fff}.DefaultBadge-modules_inverted_1v_Lg{color:inherit;background-color:transparent;border-color:currentColor}.DefaultBadge-modules_inverted_1v_Lg[data-color=success]{border-color:#3cc380;color:#308854}.DefaultBadge-modules_inverted_1v_Lg[data-color=success][data-faded=true]{color:#3cc380}.DefaultBadge-modules_inverted_1v_Lg[data-color=info]{border-color:#28bdd7;color:#188ba0}.DefaultBadge-modules_inverted_1v_Lg[data-color=info][data-faded=true]{color:#28bdd7}.DefaultBadge-modules_inverted_1v_Lg[data-color=warning]{border-color:#ffc233;color:#eb9800}.DefaultBadge-modules_inverted_1v_Lg[data-color=warning][data-faded=true]{border-color:#ffc233}.DefaultBadge-modules_inverted_1v_Lg[data-color=danger]{border-color:#f98686;color:#ea2e2e}.DefaultBadge-modules_inverted_1v_Lg[data-color=danger][data-faded=true]{color:#f98686}.DefaultBadge-modules_inverted_1v_Lg[data-color=neutral]{border-color:#b3b3b3;color:#999}.DefaultBadge-modules_inverted_1v_Lg[data-color=neutral][data-faded=true]{border-color:#b3b3b3;color:#b3b3b3}.DefaultList_root_8B-Db{display:block;margin:0;padding:0}.DefaultList_divider_1CnzD{width:100%;height:0;padding:0;margin:0;background:none;border-top:1px solid hsla(0,0%,9%,.1);border-bottom:none;-webkit-box-sizing:border-box;box-sizing:border-box}.StructureError_root_1ipYu{display:block;height:100vh;width:100vw;overflow-y:auto;color:#303030}.StructureError_body_2WOg1{display:block;margin:0;padding:1.5rem}.StructureError_path_lUHMv{font-size:20px;font-size:1.25rem;word-spacing:-.25em}.StructureError_segment_3AgeG{font-weight:300}.StructureError_segment_3AgeG:not(:last-child):after{padding:0 .5em;content:"\279D"}.StructureError_title_l96MC{margin:0;background-color:#e66666;font-size:20px;font-size:1.25rem;padding:1.5rem;color:#fff}.StructureError_problem_1kDNR{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;font-size:12px;font-size:.75rem;margin:0 0 1rem;color:#e66666}.StructureError_problem_1kDNR .StructureError_problemSeverity_2GyZQ{color:#e66666;border-right:2px solid #e66666}.StructureError_problemContent_1lwt-{font-size:16px;font-size:1rem}.StructureError_problemSeverity_2GyZQ{padding:1em;margin-right:1em;min-width:4em;text-align:center}.StructureError_problemSeverityIcon_Rzr5O{display:block;font-size:2em}.StructureError_problemSeverityText_145Ft{display:block;font-size:10px;font-size:.625rem;margin:1em 0;font-weight:700;text-transform:uppercase}.StructureError_problemLink_18VLp{clear:both;margin:1em 0;display:inline-block;color:#303030}.StructureError_problemLink_18VLp:hover{color:#24a3e3}.StructureError_problemMessage_2CCrC{padding-top:.5em;font-family:SF Mono,Menlo,Monaco,Consolas,Courier New,monospace;white-space:pre-wrap}.MissingDocumentTypesMessage_root_jeff-{text-align:left}@-webkit-keyframes DefaultLayout_loadingScreen_2oSup{0%{opacity:1}to{opacity:0}}@keyframes DefaultLayout_loadingScreen_2oSup{0%{opacity:1}to{opacity:0}}[data-env=development] .undefined:before{position:absolute;background-color:rgba(255,0,0,.5);color:#fff;content:'FIXME: "undefined" as className!';z-index:1000;font-size:12px;line-height:1.2;padding:2px 4px}.DefaultLayout_root_b1e5d{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;max-width:100%;width:100vw;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:calc(100vh - 3.0625em)}.DefaultLayout_root_b1e5d:before{content:"";display:block;z-index:4000;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.24);pointer-events:none;opacity:0;-webkit-transition:opacity .15s ease-in-out;transition:opacity .15s ease-in-out}.DefaultLayout_root_b1e5d.DefaultLayout_isOverlayVisible_3E0LS:before{pointer-events:all;opacity:1}@media (min-width:32em){.DefaultLayout_root_b1e5d.DefaultLayout_isOverlayVisible_3E0LS:before{opacity:.5}}@media (min-width:32em){.DefaultLayout_root_b1e5d{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:hidden;height:100vh}}.DefaultLayout_navBar_1_Gka{background-color:#1f292e;color:#e8e8e8;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.DefaultLayout_loadingScreen_2oSup{display:block;position:fixed;top:0;left:0;opacity:1;-webkit-transition:opacity .5s linear;transition:opacity .5s linear;z-index:5000;-webkit-animation-name:DefaultLayout_loadingScreen_2oSup;animation-name:DefaultLayout_loadingScreen_2oSup;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-delay:1s;animation-delay:1s}.DefaultLayout_loadingScreenLoaded_30DUO{display:none}.DefaultLayout_navigation_16A2k{border-bottom:1px solid hsla(0,0%,9%,.2)}.DefaultLayout_toolContainer_1eNru{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;max-width:100%;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:block;margin-top:0;margin-left:env(safe-area-inset-left);margin-right:env(safe-area-inset-right)}@media (min-width:32em){.DefaultLayout_toolContainer_1eNru{max-height:calc(100vh - 3.0625em);overflow-y:auto}}.DefaultLayout_sideMenuContainer_18Toi{color:#444}.DefaultLayout_mainArea_2Xk1j{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}@media (min-width:32em){.DefaultLayout_mainArea_2Xk1j{padding-top:0}}.DefaultLayout_root_b1e5d.DefaultLayout_isOverlayVisible_3E0LS .DefaultLayout_mainArea_2Xk1j{overflow:hidden;height:calc(100vh - 3.0625em)}.RenderTool_error_2WjWG{display:block;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 10px}@media (min-width:40em){.RenderTool_error_2WjWG{display:-webkit-box;display:-ms-flexbox;display:flex}}.RenderTool_errorSplash_1kjkJ{-webkit-box-flex:0.4;-ms-flex:0.4;flex:0.4;max-width:400px;text-align:center;min-width:212px;margin:20px auto}@media (min-width:40em){.RenderTool_errorSplash_1kjkJ{margin:20px 0}}.RenderTool_errorSplash_1kjkJ svg{max-height:35vh}@media (min-width:40em){.RenderTool_errorSplash_1kjkJ svg{max-height:50vh}}.RenderTool_errorDetails_36k6L{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:auto;max-width:800px}.RenderTool_errorComponentStack_1HUFa,.RenderTool_errorStackTraceWrapper_jC9PS{font-size:.9em}.RenderTool_errorStackTrace_YmaIU{white-space:pre-wrap}.RenderTool_errorActionButton_Rg45T button{margin:0 5px}.ActionModal_modal_1iXRp{display:-webkit-box;display:-ms-flexbox;display:flex}.ActionModal_contentWrapper_dvyTe{width:100vw;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ActionModal_title_q_g9H{margin:0;padding:0;text-align:center;color:inherit}@media (min-width:32em){.ActionModal_title_q_g9H{margin-top:3rem;margin-bottom:3rem;font-size:3em}}.ActionModal_list_3h1Iz{display:grid;grid-gap:.5rem;grid-template-columns:repeat(2,1fr);padding:0;margin:0;font-size:1em;color:inherit;max-width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}@media (min-width:25rem){.ActionModal_list_3h1Iz{grid-template-columns:repeat(3,1fr)}}@media (min-width:32em){.ActionModal_list_3h1Iz{grid-gap:1rem;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr))}}.ActionModal_listItem_2Pmj3{display:block;color:inherit}.ActionModal_icon_2tWRv{-ms-flex-preferred-size:64px;flex-basis:64px;-ms-flex-preferred-size:4rem;flex-basis:4rem;font-size:48px;font-size:3rem;margin-bottom:1rem}.ActionModal_actionLink_1cOPS{text-decoration:none;color:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center;font-weight:300;position:relative;padding:.5rem}@media (min-width:32em){.ActionModal_actionLink_1cOPS{padding:1rem}}.ToolSwitcherWidget_root_2M1_C{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;padding:0;-ms-flex-item-align:stretch;align-self:stretch}.ToolSwitcherWidget_rootVertical_34mal{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ToolSwitcherWidget_rootHorizontal_2uDjS{-ms-flex-line-pack:start;align-content:flex-start;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.ToolSwitcherWidget_item_3nGL_{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;position:relative;text-align:center}.ToolSwitcherWidget_rootVertical_34mal .ToolSwitcherWidget_item_3nGL_{width:100%}.ToolSwitcherWidget_link_17SPa{text-decoration:none;color:inherit;outline:none}.ToolSwitcherWidget_link_17SPa:focus{background:rgba(36,163,227,.25)}@media (hover:hover){.ToolSwitcherItem_root_1qYUw{opacity:.6}.ToolSwitcherItem_root_1qYUw:hover{opacity:1}}a:focus .ToolSwitcherItem_root_1qYUw{opacity:1}.ToolSwitcherItem_inner_1MBi5{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;text-decoration:none;padding:.75em;white-space:nowrap;outline:none;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ToolSwitcherItem_horizontal_oRAeZ{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.ToolSwitcherItem_vertical_3pSXi{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}.ToolSwitcherItem_rootActive_29T07{opacity:1}.ToolSwitcherItem_iconContainer_Neoqi{display:block;font-size:1.5625em;line-height:1}.ToolSwitcherItem_iconContainer_Neoqi>svg{display:block}.ToolSwitcherItem_toolName_2fPJa{font-size:.875em;line-height:1.21429;padding:0 .25em}.ToolSwitcherItem_vertical_3pSXi .ToolSwitcherItem_toolName_2fPJa{padding-left:.5em}.Branding_root_32lhs{text-decoration:none;color:inherit;font-weight:400;width:100%;outline:none;padding:1em;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}@media (min-width:32em){.Branding_root_32lhs{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.Branding_projectName_2Zo-i{display:block;color:inherit;font-size:inherit;margin:0;padding:0;line-height:1.0625;font-weight:600;white-space:nowrap;text-overflow:ellipsis;width:100%;overflow:hidden}@media (min-width:32em){.Branding_projectName_2Zo-i{width:unset;max-width:12em}}.Branding_brandLogoContainer_1sF86{display:block;cursor:pointer;color:inherit}.Branding_brandLogoContainer_1sF86 svg{display:block;fill:currentColor;height:1em;width:auto}.LoginStatus_root_m4UGS{display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.LoginStatus_button_2Thif{-webkit-font-smoothing:antialiased;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:0;border-radius:0;background:none;color:inherit;font:inherit;padding:0;margin:0 auto;display:block}.LoginStatus_button_2Thif:focus{background-color:rgba(36,163,227,.2)}.LoginStatus_inner_3nWUd{padding:.5em 1em;position:relative;outline:none}.LoginStatus_inner_3nWUd:after{content:"";position:absolute;display:block;-webkit-box-sizing:border-box;box-sizing:border-box;top:.5em;left:1em;right:1em;bottom:.5em;border:1px solid hsla(0,0%,100%,.15);border-radius:50%}.LoginStatus_userImage_2N9IP{display:block;height:2.0625em;width:2.0625em;border-radius:50%}.LoginStatus_userImageMissing_8AkLt{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#24a3e3;color:#fff;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;border:none}.LoginStatus_userName_2vmS9{display:none}.LoginStatus_userMenu_ZnTDy{position:absolute;top:32px;top:2rem;right:16px;right:1rem;z-index:1060}.FullscreenError_container_31RIo{top:0;left:0;right:0;bottom:0;background:red;position:absolute;z-index:999999;color:#fff}.FullscreenError_content_2ULHo{max-width:600px;margin:0 auto}.FullscreenError_content_2ULHo a{color:#fff;font-weight:700}.FullscreenError_closeButton_15Rl0{color:#fff;float:right;margin:10px;font-size:2em;background:transparent;border:1px solid #fff}.UpdateNotifierDialog_content_Pb2Q1{text-align:center;margin:1.5rem}.UpdateNotifierDialog_versionsTable_2OjUP{border-collapse:collapse;border-bottom:1px solid #ccc;margin:0 auto 3rem}.UpdateNotifierDialog_versionsTable_2OjUP td,.UpdateNotifierDialog_versionsTable_2OjUP th{padding:.5rem;text-align:left}.UpdateNotifierDialog_versionsTable_2OjUP tr td{border-top:1px solid #ccc}.UpdateNotifierDialog_upgradeText_MJR0V{margin-bottom:3rem}.UpdateNotifierDialog_code_319vw{background:#333;color:#fff;padding:.5rem}.SanityStatus_root_2DJul{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.SanityStatus_root_2DJul span{font-size:14px;line-height:25px}.SanityStatus_root_2DJul span>svg{font-size:25px;vertical-align:top}.SanityStatus_button_1Lgyb{-webkit-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;background:none;border:0;border-radius:0;font:inherit;color:inherit;line-height:1.5625;margin:0;padding:0;outline:none}@media (hover:hover){.SanityStatus_button_1Lgyb{opacity:.7}.SanityStatus_button_1Lgyb:hover{opacity:1}}.SanityStatus_button_1Lgyb:focus{opacity:1;background:rgba(36,163,227,.25)}.SanityStatus_buttonInner_AK1y_{outline:none;padding:.75em}.SanityStatus_low_26exq{color:#6cb8ff}.SanityStatus_medium_bPhlQ{color:#ffba00}.SanityStatus_high_3yj1u{color:#e66666}.SearchField_root_2fBCC{position:relative}.SearchField_root_2fBCC:not(.SearchField_isBleeding_3tUoZ){background:hsla(0,0%,100%,.1);border-radius:3px;height:33px}.SearchField_root_2fBCC.SearchField_isFocused_seZZ-:not(.SearchField_isBleeding_3tUoZ){background:#fff;color:#444}.SearchField_root_2fBCC.SearchField_isOpen_y8qlK:not(.SearchField_isBleeding_3tUoZ){border-bottom-left-radius:0;border-bottom-right-radius:0}.SearchField_inputField_17gAw{display:-webkit-box;display:-ms-flexbox;display:flex}.SearchField_isBleeding_3tUoZ .SearchField_inputField_17gAw{background:#fff;position:fixed;top:0;left:0;right:0;z-index:160}.SearchField_root_2fBCC.SearchField_isBleeding_3tUoZ.SearchField_isOpen_y8qlK .SearchField_inputField_17gAw:after{content:"";display:block;position:absolute;left:0;right:0;bottom:-1px;border-bottom:1px solid rgba(0,0,0,.1)}.SearchField_root_2fBCC:not(.SearchField_isBleeding_3tUoZ) .SearchField_inputField_17gAw{height:100%}.SearchField_label_8owZ2{pointer-events:none;position:absolute;top:0;left:0;width:33px;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.SearchField_label_8owZ2>svg{font-size:1.25em;opacity:.6}.SearchField_isBleeding_3tUoZ .SearchField_label_8owZ2{display:none}.SearchField_input_1Pt1o{-webkit-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:0;outline:none;color:inherit;width:100%;margin:0;background-color:transparent;font-family:inherit;font-size:.9375em;line-height:1.13333;padding-left:33px;padding-bottom:2px;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap}.SearchField_input_1Pt1o::-webkit-input-placeholder{color:inherit;opacity:.6}.SearchField_input_1Pt1o::-moz-placeholder{color:inherit;opacity:.6}.SearchField_input_1Pt1o::-ms-input-placeholder{color:inherit;opacity:.6}.SearchField_input_1Pt1o::placeholder{color:inherit;opacity:.6}.SearchField_isBleeding_3tUoZ .SearchField_input_1Pt1o{font-size:1em;line-height:1.25;padding:calc(1em - 2px) 1em calc(1em - 1px)}.SearchField_input_1Pt1o::-ms-clear{display:none}.SearchField_clearButton_30110{position:relative;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;min-width:33px;opacity:.6}.SearchField_clearButton_30110>svg{font-size:1.5625em}.SearchField_root_2fBCC:not(.SearchField_isBleeding_3tUoZ):not(.SearchField_hasValue_1EOo1) .SearchField_clearButton_30110{display:none}.SearchField_root_2fBCC:not(.SearchField_isBleeding_3tUoZ) .SearchField_clearButton_30110>svg{font-size:20px}.SearchField_isBleeding_3tUoZ .SearchField_clearButton_30110{min-width:3.0625em}.SearchField_clearButtonWithValue_1b49q{display:-webkit-box;display:-ms-flexbox;display:flex}@media (min-width:32em){.SearchField_clearButtonWithValue_1b49q{display:-webkit-box;display:-ms-flexbox;display:flex}}.SearchField_hotkeys_18X0u{display:none;margin-left:auto;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:.7em;-webkit-box-align:center;-ms-flex-align:center;align-items:center;opacity:.6}.SearchField_root_2fBCC:not(.SearchField_isBleeding_3tUoZ):not(.SearchField_hasValue_1EOo1) .SearchField_hotkeys_18X0u{padding-right:.75em}@media (min-width:32em){.SearchField_isFocused_seZZ- .SearchField_hotkeys_18X0u{display:-webkit-box;display:-ms-flexbox;display:flex}}.SearchField_results_tSBaI{display:none;position:absolute;background:#fff;color:#444;top:33px;left:0;width:100%;z-index:150}.SearchField_root_2fBCC.SearchField_isBleeding_3tUoZ .SearchField_results_tSBaI{top:3.0625em;-webkit-box-shadow:none;box-shadow:none}.SearchField_root_2fBCC:not(.SearchField_isBleeding_3tUoZ) .SearchField_results_tSBaI{border-bottom-left-radius:3px;border-bottom-right-radius:3px;max-height:80vh;overflow:auto}@media (max-height:429px){.SearchField_root_2fBCC:not(.SearchField_isBleeding_3tUoZ) .SearchField_results_tSBaI{max-height:calc(100vh - 49px)}}.SearchField_root_2fBCC.SearchField_isOpen_y8qlK .SearchField_results_tSBaI{display:block}.SearchResults_root_3WfP_{list-style:none;margin:0;padding:0}.SearchResults_root_3WfP_.SearchResults_isLoading_2T2Hv{height:8em}.SearchResults_root_3WfP_.SearchResults_noResults_1CI1T{height:8em;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center}.SearchResults_sharedItem_3R2up{display:block;outline:none;position:relative;padding:.5rem}.SearchResults_itemType_IN5Pe{text-transform:uppercase;font-size:10px;font-size:.625rem}@media (hover:hover){.SpaceSwitcher_root_4yaJe{opacity:.7}.SpaceSwitcher_root_4yaJe:hover{opacity:1}}.NavBar_root_3R8dL{display:grid;grid-template-areas:"hamburger createButton branding extras searchButton";grid-template-columns:3.0625em 3.0625em auto auto 3.0625em;grid-template-rows:3.0625em;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}@media (min-width:32em){.NavBar_root_3R8dL{grid-template-rows:3.0625em;grid-template-areas:" hamburger branding createButton search extras";grid-template-columns:-webkit-max-content -webkit-max-content 3.0625em minmax(240px,100%) -webkit-max-content;grid-template-columns:max-content max-content 3.0625em minmax(240px,100%) max-content}.NavBar_root_3R8dL.NavBar_withToolSwitcher_2TLU0{grid-template-areas:" branding createButton search spaceSwitcher toolSwitcher extras sanityStatus loginStatus";grid-template-columns:-webkit-max-content 3.0625em minmax(240px,400px) -webkit-max-content auto -webkit-max-content -webkit-max-content 4.0625em;grid-template-columns:max-content 3.0625em minmax(240px,400px) max-content auto max-content max-content 4.0625em}}.NavBar_root_3R8dL>a{text-decoration:none;color:inherit}.NavBar_branding_18L90{grid-area:branding;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}@media (min-width:32em){.NavBar_branding_18L90{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;overflow:visible}}a.NavBar_branding_18L90{outline:none}a.NavBar_branding_18L90:focus{background-color:rgba(36,163,227,.2)}.NavBar_hamburger_J58Rb{grid-area:hamburger;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}@media (min-width:32em){.NavBar_withToolSwitcher_2TLU0 .NavBar_hamburger_J58Rb{display:none}}.NavBar_hamburgerButton_2-MF2{-webkit-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;outline:none;border:0;border-radius:0;margin:0;padding:0;background:none;color:inherit;font:inherit}@media (hover:hover){.NavBar_hamburgerButton_2-MF2{opacity:.7}.NavBar_hamburgerButton_2-MF2:hover{opacity:1}}.NavBar_hamburgerButton_2-MF2:focus{opacity:1;background-color:rgba(36,163,227,.2)}.NavBar_hamburgerButtonInner_26fco{outline:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:.75em}.NavBar_hamburgerButtonInner_26fco>svg{font-size:1.5625em}.NavBar_spaceSwitcher_1vPPm{display:none;grid-area:spaceSwitcher;font-size:.8125em;padding:.5rem;-webkit-box-sizing:border-box;box-sizing:border-box}@media (min-width:32em){.NavBar_withToolSwitcher_2TLU0 .NavBar_spaceSwitcher_1vPPm{display:-webkit-box;display:-ms-flexbox;display:flex}}.NavBar_toolSwitcher_7g3sr{display:none;grid-area:toolSwitcher}@media (min-width:32em){.NavBar_withToolSwitcher_2TLU0 .NavBar_toolSwitcher_7g3sr{display:-webkit-box;display:-ms-flexbox;display:flex}}.NavBar_sanityStatus_3brEP{grid-area:sanityStatus;display:none;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}@media (min-width:32em){.NavBar_withToolSwitcher_2TLU0 .NavBar_sanityStatus_3brEP{display:-webkit-box;display:-ms-flexbox;display:flex}}.NavBar_loginStatus_1MEn9{grid-area:loginStatus;display:none;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}@media (min-width:32em){.NavBar_withToolSwitcher_2TLU0 .NavBar_loginStatus_1MEn9{display:-webkit-box;display:-ms-flexbox;display:flex}}.NavBar_extras_14kVM{grid-area:extras}.NavBar_search_3Hd56{grid-area:search}@media (max-width:31.9375em){.NavBar_search_3Hd56{position:absolute;z-index:4001;width:100%}.NavBar_search_3Hd56>div{display:none;background:#f5f5f5;color:#323232}.NavBar_search_3Hd56.NavBar_searchIsOpen_2gN70>div{display:block}}@media (min-width:32em){.NavBar_search_3Hd56{position:relative;justify-self:stretch;padding:.5rem}.NavBar_search_3Hd56.NavBar_searchIsOpen_2gN70{z-index:4001}}.NavBar_createButton_CiBLe{grid-area:createButton;-webkit-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:0;border-radius:0;background:none;color:inherit;font:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;position:relative;margin:0;padding:0}@media (hover:hover){.NavBar_createButton_CiBLe{opacity:.7}.NavBar_createButton_CiBLe:hover{opacity:1}}.NavBar_createButton_CiBLe:focus{opacity:1;background-color:rgba(36,163,227,.2)}.NavBar_createButton_CiBLe{@nest > [data-tooltipped]{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}.NavBar_createButtonInner_2yeWi{outline:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center;padding:.75em}.NavBar_createButtonIcon_2uVwz{display:inline-block;font-size:1.5625em;line-height:1}.NavBar_createButtonIcon_2uVwz>svg{display:block}@media (min-width:32em){.NavBar_createButtonIcon_2uVwz{display:block}}.NavBar_createButtonText_1KQG7{display:none;font-size:1em}.NavBar_searchButton_1UE6F{-webkit-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;border:0;border-radius:0;background:none;color:inherit;font:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;grid-area:searchButton;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0;padding:0}@media (hover:hover){.NavBar_searchButton_1UE6F{opacity:.7}.NavBar_searchButton_1UE6F:hover{opacity:1}}.NavBar_searchButton_1UE6F:focus{opacity:1;background-color:rgba(36,163,227,.2)}@media (min-width:32em){.NavBar_searchButton_1UE6F{display:none}}.NavBar_root_3R8dL[data-search-open=true] .NavBar_searchButton_1UE6F{display:none}.NavBar_searchButtonInner_qlrAy{outline:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:.75em}.NavBar_searchButtonInner_qlrAy>svg{font-size:1.5625em}.NavBar_searchButtonIcon_16A5f{display:inline-block;font-size:1.5625em;line-height:1}.NavBar_searchButtonIcon_16A5f>svg{display:block}@media (min-width:32em){.NavBar_searchButtonIcon_16A5f{display:block}}.NavBar_searchButtonText_2yR2s{display:none}.SchemaErrors_root_TaJvy{display:block;height:100vh;width:100vw;overflow-y:auto;color:#303030}.SchemaErrors_title_2tmRX{margin:0;background-color:#e66666;font-size:20px;font-size:1.25rem;padding:1.5rem;color:#fff}.SchemaErrors_list_2voDX{display:block;margin:0;padding:1.5rem}.SchemaErrors_path_3frFF{font-size:20px;font-size:1.25rem;word-spacing:-.25em}.SchemaErrors_segment_1YYBl:not(:last-child):after{padding:0 .5em;content:"\279D"}.SchemaErrors_problems_x_v-n{display:block;margin:0;padding:0}.SchemaErrors_problem_1jYUf{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0;color:#303030;font-size:12px;font-size:.75rem;margin:0 0 1rem}.SchemaErrors_problemSeverity_B9JOS{padding:1em;margin-right:1em;min-width:4em;text-align:center}.SchemaErrors_problemSeverityIcon_G-2hw{display:block;font-size:2em}.SchemaErrors_problemSeverityText_2Mxf3{display:block;font-size:10px;font-size:.625rem;margin:1em 0;font-weight:700;text-transform:uppercase}.SchemaErrors_problemLink_1_LFq{clear:both;margin:1em 0;display:inline-block;color:#303030}.SchemaErrors_problemLink_1_LFq:hover{color:#24a3e3}.SchemaErrors_problemMessage_uM0UQ{padding-top:.5em;font-family:SF Mono,Menlo,Monaco,Consolas,Courier New,monospace}.SchemaErrors_problem_error_1AQWZ{color:#e66666}.SchemaErrors_problem_error_1AQWZ .SchemaErrors_problemSeverity_B9JOS{color:#e66666;border-right:2px solid #e66666}.SchemaErrors_problem_warning_1An2F .SchemaErrors_problemSeverity_B9JOS{color:#ffba00;border-right:2px solid #ffba00}.SchemaErrors_listItem_1SZUY{display:block;padding:.5em 0}.SchemaErrors_arrow_3Dgcy{padding:0 .5em}.SchemaErrors_pathSegmentTypeName_3HOJr{font-weight:700}.SchemaErrors_pathSegmentTypeType_3uQmo{font-weight:300;font-size:14px;font-size:.875rem}.SchemaErrors_pathSegmentProperty_2EZhW{font-weight:300}.SideMenu_root_3kkLY{position:fixed;z-index:4001;top:0;left:0;width:100%;height:100%;pointer-events:none}.SideMenu_root_3kkLY>div{position:relative;min-width:200px;max-width:280px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background:#fff;color:#171717;margin-right:4.59375em;height:100%;-webkit-transition:-webkit-transform .2s ease-in-out;transition:-webkit-transform .2s ease-in-out;transition:transform .2s ease-in-out;transition:transform .2s ease-in-out,-webkit-transform .2s ease-in-out;-webkit-transform:translate(-100%);transform:translate(-100%);pointer-events:all;padding-left:env(safe-area-inset-left)}.SideMenu_root_3kkLY.SideMenu_isOpen_3Bm4d>div{-webkit-transform:translate(0);transform:translate(0)}.SideMenu_closeButton_gQv-U{-webkit-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;top:.375em;right:.375em;font:inherit;border:0;border-radius:0;margin:0;padding:.75em;background:none;color:inherit;outline:none}.SideMenu_closeButton_gQv-U>svg{font-size:25px;display:block}.SideMenu_userProfile_1biQR{display:-webkit-box;display:-ms-flexbox;display:flex;padding:.875em}.SideMenu_userProfileImage_1Xc0v{width:2.0625em;height:2.0625em;border-radius:50%}.SideMenu_userProfileImageMissing_2CBYQ{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#24a3e3;color:#fff;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;border:none}.SideMenu_userProfileText_12T7a{line-height:2.0625em;padding:0 .5rem;vertical-align:top}.SideMenu_spaceSwitcher_114ML{padding:.5rem 1rem}.SideMenu_toolSwitcher_2_I48{padding:0 calc(.5rem + .25em)}.SideMenu_menuBottom_183Iy{margin-top:auto;padding-bottom:1em}.SideMenu_sanityStudioLogoContainer_2hPhD{color:inherit;opacity:.5;padding:.5rem}.SideMenu_sanityStudioLogoContainer_2hPhD svg{height:12.8px;height:.8rem;width:auto}.SideMenu_signOutButton_3kWNv>a{white-space:nowrap;color:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:.75em;opacity:.6;cursor:default}.SideMenu_signOutButton_3kWNv>a:hover{opacity:1}.SideMenu_signOutButtonIconContainer_2vnkp{display:inline-block}.SideMenu_signOutButtonIconContainer_2vnkp>svg{font-size:25px;display:block}.SideMenu_signOutButtonText_1kBfe{font-size:.875em;line-height:1.21429;padding-left:.5em}.ErrorHandler_errorMessageHeader_1jpcM{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tippy-touch{cursor:pointer!important}.tippy-notransition{-webkit-transition:none!important;transition:none!important}.tippy-popper{max-width:400px;-webkit-perspective:800px;perspective:800px;z-index:1060!important;outline:0;-webkit-transition-timing-function:cubic-bezier(.165,.84,.44,1);transition-timing-function:cubic-bezier(.165,.84,.44,1);pointer-events:none}.tippy-popper.html-template{max-width:calc(100% - 20px)}.tippy-popper[x-placement^=top] [x-arrow]{border-top:7px solid #1f292e;border-right:7px solid transparent;border-left:7px solid transparent;bottom:-7px;margin:0 9px}.tippy-popper[x-placement^=top] [x-arrow].arrow-small{border-top:5px solid #1f292e;border-right:5px solid transparent;border-left:5px solid transparent;bottom:-5px}.tippy-popper[x-placement^=top] [x-arrow].arrow-big{border-top:10px solid #1f292e;border-right:10px solid transparent;border-left:10px solid transparent;bottom:-10px}.tippy-popper[x-placement^=top] [x-circle]{-webkit-transform-origin:0 33%;transform-origin:0 33%}.tippy-popper[x-placement^=top] [x-circle].enter{-webkit-transform:scale(1) translate(-50%,-55%);transform:scale(1) translate(-50%,-55%);opacity:1}.tippy-popper[x-placement^=top] [x-circle].leave{-webkit-transform:scale(.15) translate(-50%,-50%);transform:scale(.15) translate(-50%,-50%);opacity:0}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-arrow]{border-top:7px solid #fff;border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-top:5px solid #fff;border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-top:10px solid #fff;border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,.7)}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-arrow]{border-top:7px solid rgba(0,0,0,.7);border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-top:5px solid rgba(0,0,0,.7);border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=top] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-top:10px solid rgba(0,0,0,.7);border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateY(-10px) rotateX(0);transform:translateY(-10px) rotateX(0)}.tippy-popper[x-placement^=top] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateY(0) rotateX(90deg);transform:translateY(0) rotateX(90deg)}.tippy-popper[x-placement^=top] [data-animation=fade].enter{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade].leave{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift].enter{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift].leave{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=top] [data-animation=scale].enter{opacity:1;-webkit-transform:translateY(-10px) scale(1);transform:translateY(-10px) scale(1)}.tippy-popper[x-placement^=top] [data-animation=scale].leave{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=bottom] [x-arrow]{border-bottom:7px solid #1f292e;border-right:7px solid transparent;border-left:7px solid transparent;top:-7px;margin:0 9px}.tippy-popper[x-placement^=bottom] [x-arrow].arrow-small{border-bottom:5px solid #1f292e;border-right:5px solid transparent;border-left:5px solid transparent;top:-5px}.tippy-popper[x-placement^=bottom] [x-arrow].arrow-big{border-bottom:10px solid #1f292e;border-right:10px solid transparent;border-left:10px solid transparent;top:-10px}.tippy-popper[x-placement^=bottom] [x-circle]{-webkit-transform-origin:0 -50%;transform-origin:0 -50%}.tippy-popper[x-placement^=bottom] [x-circle].enter{-webkit-transform:scale(1) translate(-50%,-45%);transform:scale(1) translate(-50%,-45%);opacity:1}.tippy-popper[x-placement^=bottom] [x-circle].leave{-webkit-transform:scale(.15) translate(-50%,-5%);transform:scale(.15) translate(-50%,-5%);opacity:0}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-arrow]{border-bottom:7px solid #fff;border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-bottom:5px solid #fff;border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-bottom:10px solid #fff;border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,.7)}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-arrow]{border-bottom:7px solid rgba(0,0,0,.7);border-right:7px solid transparent;border-left:7px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-bottom:5px solid rgba(0,0,0,.7);border-right:5px solid transparent;border-left:5px solid transparent}.tippy-popper[x-placement^=bottom] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-bottom:10px solid rgba(0,0,0,.7);border-right:10px solid transparent;border-left:10px solid transparent}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateY(10px) rotateX(0);transform:translateY(10px) rotateX(0)}.tippy-popper[x-placement^=bottom] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateY(0) rotateX(-90deg);transform:translateY(0) rotateX(-90deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade].enter{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade].leave{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift].enter{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift].leave{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=bottom] [data-animation=scale].enter{opacity:1;-webkit-transform:translateY(10px) scale(1);transform:translateY(10px) scale(1)}.tippy-popper[x-placement^=bottom] [data-animation=scale].leave{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=left] [x-arrow]{border-left:7px solid #1f292e;border-top:7px solid transparent;border-bottom:7px solid transparent;right:-7px;margin:6px 0}.tippy-popper[x-placement^=left] [x-arrow].arrow-small{border-left:5px solid #1f292e;border-top:5px solid transparent;border-bottom:5px solid transparent;right:-5px}.tippy-popper[x-placement^=left] [x-arrow].arrow-big{border-left:10px solid #1f292e;border-top:10px solid transparent;border-bottom:10px solid transparent;right:-10px}.tippy-popper[x-placement^=left] [x-circle]{-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=left] [x-circle].enter{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%);opacity:1}.tippy-popper[x-placement^=left] [x-circle].leave{-webkit-transform:scale(.15) translate(-50%,-50%);transform:scale(.15) translate(-50%,-50%);opacity:0}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-arrow]{border-left:7px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-left:5px solid #fff;border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-left:10px solid #fff;border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,.7)}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-arrow]{border-left:7px solid rgba(0,0,0,.7);border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-left:5px solid rgba(0,0,0,.7);border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=left] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-left:10px solid rgba(0,0,0,.7);border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=left] [data-animation=perspective]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateX(-10px) rotateY(0);transform:translateX(-10px) rotateY(0)}.tippy-popper[x-placement^=left] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateX(0) rotateY(-90deg);transform:translateX(0) rotateY(-90deg)}.tippy-popper[x-placement^=left] [data-animation=fade].enter{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=fade].leave{opacity:0;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift].enter{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift].leave{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=left] [data-animation=scale].enter{opacity:1;-webkit-transform:translateX(-10px) scale(1);transform:translateX(-10px) scale(1)}.tippy-popper[x-placement^=left] [data-animation=scale].leave{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-popper[x-placement^=right] [x-arrow]{border-right:7px solid #1f292e;border-top:7px solid transparent;border-bottom:7px solid transparent;left:-7px;margin:6px 0}.tippy-popper[x-placement^=right] [x-arrow].arrow-small{border-right:5px solid #1f292e;border-top:5px solid transparent;border-bottom:5px solid transparent;left:-5px}.tippy-popper[x-placement^=right] [x-arrow].arrow-big{border-right:10px solid #1f292e;border-top:10px solid transparent;border-bottom:10px solid transparent;left:-10px}.tippy-popper[x-placement^=right] [x-circle]{-webkit-transform-origin:-50% 0;transform-origin:-50% 0}.tippy-popper[x-placement^=right] [x-circle].enter{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%);opacity:1}.tippy-popper[x-placement^=right] [x-circle].leave{-webkit-transform:scale(.15) translate(-50%,-50%);transform:scale(.15) translate(-50%,-50%);opacity:0}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-circle]{background-color:#fff}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-arrow]{border-right:7px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-arrow].arrow-small{border-right:5px solid #fff;border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.light-theme [x-arrow].arrow-big{border-right:10px solid #fff;border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-circle]{background-color:rgba(0,0,0,.7)}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-arrow]{border-right:7px solid rgba(0,0,0,.7);border-top:7px solid transparent;border-bottom:7px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-arrow].arrow-small{border-right:5px solid rgba(0,0,0,.7);border-top:5px solid transparent;border-bottom:5px solid transparent}.tippy-popper[x-placement^=right] .tippy-tooltip.transparent-theme [x-arrow].arrow-big{border-right:10px solid rgba(0,0,0,.7);border-top:10px solid transparent;border-bottom:10px solid transparent}.tippy-popper[x-placement^=right] [data-animation=perspective]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=perspective].enter{opacity:1;-webkit-transform:translateX(10px) rotateY(0);transform:translateX(10px) rotateY(0)}.tippy-popper[x-placement^=right] [data-animation=perspective].leave{opacity:0;-webkit-transform:translateX(0) rotateY(90deg);transform:translateX(0) rotateY(90deg)}.tippy-popper[x-placement^=right] [data-animation=fade].enter{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=fade].leave{opacity:0;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift].enter{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift].leave{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=right] [data-animation=scale].enter{opacity:1;-webkit-transform:translateX(10px) scale(1);transform:translateX(10px) scale(1)}.tippy-popper[x-placement^=right] [data-animation=scale].leave{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-popper .tippy-tooltip.transparent-theme{background-color:rgba(0,0,0,.7)}.tippy-popper .tippy-tooltip.transparent-theme[data-animatefill]{background-color:transparent}.tippy-popper .tippy-tooltip.light-theme{color:#26323d;-webkit-box-shadow:0 4px 20px 4px rgba(0,20,60,.1),0 4px 80px -8px rgba(0,20,60,.2);box-shadow:0 4px 20px 4px rgba(0,20,60,.1),0 4px 80px -8px rgba(0,20,60,.2);background-color:#fff}.tippy-popper .tippy-tooltip.light-theme[data-animatefill]{background-color:transparent}.tippy-tooltip{position:relative;color:#fff;border-radius:4px;font-size:14px;font-size:.875rem;padding:.375rem .75rem;text-align:center;will-change:transform;-moz-osx-font-smoothing:grayscale;background-color:#1f292e}.tippy-tooltip--small{padding:.25rem .4375rem;font-size:12px;font-size:.75rem}.tippy-tooltip--big{padding:.5rem 1rem;font-size:20px;font-size:1.25rem}.tippy-tooltip[data-animatefill]{overflow:hidden;background-color:transparent}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia]{-webkit-transition-timing-function:cubic-bezier(.53,2,.36,.85);transition-timing-function:cubic-bezier(.53,2,.36,.85)}.tippy-tooltip [x-arrow]{position:absolute;width:0;height:0}.tippy-tooltip [x-circle]{position:absolute;will-change:transform;background-color:#1f292e;border-radius:50%;width:130%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;overflow:hidden;-webkit-transition:all ease;transition:all ease}.tippy-tooltip.noPadding-theme{padding:0!important}.tippy-tooltip [x-circle]:before{content:"";padding-top:90%;float:left}@media (max-width:31.9375em){.tippy-popper{max-width:calc(100% - 20px)}}a{color:#24a3e3}::-moz-selection{background:rgba(36,163,227,.2)}::selection{background:rgba(36,163,227,.2)}:focus{outline-color:rgba(36,163,227,.4)}body#sanityBody{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Droid Sans,Helvetica Neue,Fira Sans,sans-serif;line-height:1.5;color:#303030;background-color:#f5f5f5;margin:0;padding:0;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0)}.SanityRoot_root_102GA{display:block} \ No newline at end of file diff --git a/studio/dist/static/favicon.ico b/studio/dist/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..7305cdbf5c90a28ce1786cd0f85e8cad9f37e5ba GIT binary patch literal 1150 zcma)*y-R{o6vj_c)DUS6K`k}eu-5cQA<#OdgnLGzB$wTd$c)i|fbVYR4R)9Zj)&s8x&#UD_cjfVTR;fqG zH$kq(JyRPrd%&GpUgDO?`+U9udSu|viKiw{eM#2?D}g|u+vIf)H-~N=|4TEzU5!2W z;oHTpXLHw1YjNm@@hza&J-^kwRq}mHV@C9Pj!86+mfjwzr^4ZIuj$h{ToioT^|t&T zE{2yI);QqCLB*!eb6zLZ7X5zzNTZ{^f-bIJVuoj!O(YVX^@{d0yvN`M?|d_*_Jf;H za2NFRs2lp;Svv~!`KRhgCe&lPKLz==$#Z8Ma7Q)%otR{;2z{5yFTi(=E4Dfh^fUDS zd(WyjP(m|lu5F)dZ`M4Z&x7^?1&{)9{RZq>&A&!PN0&&(T+=F)}return new Date(A+D+T)}var L,B,z;return new Date(e)}},function(e,t,n){"use strict";t.a=function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};var 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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(427);n.d(t,"audit",function(){return r.a});var o=n(892);n.d(t,"auditTime",function(){return o.a});var i=n(893);n.d(t,"buffer",function(){return i.a});var a=n(894);n.d(t,"bufferCount",function(){return a.a});var s=n(895);n.d(t,"bufferTime",function(){return s.a});var u=n(896);n.d(t,"bufferToggle",function(){return u.a});var l=n(897);n.d(t,"bufferWhen",function(){return l.a});var c=n(898);n.d(t,"catchError",function(){return c.a});var f=n(899);n.d(t,"combineAll",function(){return f.a});var d=n(900);n.d(t,"combineLatest",function(){return d.a});var p=n(901);n.d(t,"concat",function(){return p.a});var h=n(374);n.d(t,"concatAll",function(){return h.a});var v=n(428);n.d(t,"concatMap",function(){return v.a});var m=n(902);n.d(t,"concatMapTo",function(){return m.a});var y=n(903);n.d(t,"count",function(){return y.a});var g=n(904);n.d(t,"debounce",function(){return g.a});var b=n(905);n.d(t,"debounceTime",function(){return b.a});var _=n(132);n.d(t,"defaultIfEmpty",function(){return _.a});var w=n(906);n.d(t,"delay",function(){return w.a});var O=n(907);n.d(t,"delayWhen",function(){return O.a});var k=n(908);n.d(t,"dematerialize",function(){return k.a});var E=n(909);n.d(t,"distinct",function(){return E.a});var S=n(430);n.d(t,"distinctUntilChanged",function(){return S.a});var x=n(910);n.d(t,"distinctUntilKeyChanged",function(){return x.a});var C=n(911);n.d(t,"elementAt",function(){return C.a});var P=n(912);n.d(t,"endWith",function(){return P.a});var j=n(913);n.d(t,"every",function(){return j.a});var M=n(914);n.d(t,"exhaust",function(){return M.a});var T=n(915);n.d(t,"exhaustMap",function(){return T.a});var A=n(916);n.d(t,"expand",function(){return A.a});var D=n(101);n.d(t,"filter",function(){return D.a});var I=n(917);n.d(t,"finalize",function(){return I.a});var N=n(431);n.d(t,"find",function(){return N.b});var R=n(918);n.d(t,"findIndex",function(){return R.a});var F=n(919);n.d(t,"first",function(){return F.a});var L=n(364);n.d(t,"groupBy",function(){return L.b});var B=n(920);n.d(t,"ignoreElements",function(){return B.a});var z=n(921);n.d(t,"isEmpty",function(){return z.a});var W=n(922);n.d(t,"last",function(){return W.a});var U=n(35);n.d(t,"map",function(){return U.a});var H=n(923);n.d(t,"mapTo",function(){return H.a});var q=n(924);n.d(t,"materialize",function(){return q.a});var V=n(925);n.d(t,"max",function(){return V.a});var Y=n(926);n.d(t,"merge",function(){return Y.a});var G=n(236);n.d(t,"mergeAll",function(){return G.a});var K=n(127);n.d(t,"mergeMap",function(){return K.a}),n.d(t,"flatMap",function(){return K.a});var J=n(927);n.d(t,"mergeMapTo",function(){return J.a});var $=n(928);n.d(t,"mergeScan",function(){return $.a});var Z=n(929);n.d(t,"min",function(){return Z.a});var X=n(109);n.d(t,"multicast",function(){return X.a});var Q=n(368);n.d(t,"observeOn",function(){return Q.b});var ee=n(930);n.d(t,"onErrorResumeNext",function(){return ee.a});var te=n(931);n.d(t,"pairwise",function(){return te.a});var ne=n(932);n.d(t,"partition",function(){return ne.a});var re=n(933);n.d(t,"pluck",function(){return re.a});var oe=n(934);n.d(t,"publish",function(){return oe.a});var ie=n(935);n.d(t,"publishBehavior",function(){return ie.a});var ae=n(936);n.d(t,"publishLast",function(){return ae.a});var se=n(937);n.d(t,"publishReplay",function(){return se.a});var ue=n(938);n.d(t,"race",function(){return ue.a});var le=n(179);n.d(t,"reduce",function(){return le.a});var ce=n(939);n.d(t,"repeat",function(){return ce.a});var fe=n(940);n.d(t,"repeatWhen",function(){return fe.a});var de=n(941);n.d(t,"retry",function(){return de.a});var pe=n(942);n.d(t,"retryWhen",function(){return pe.a});var he=n(230);n.d(t,"refCount",function(){return he.a});var ve=n(943);n.d(t,"sample",function(){return ve.a});var me=n(944);n.d(t,"sampleTime",function(){return me.a});var ye=n(265);n.d(t,"scan",function(){return ye.a});var ge=n(945);n.d(t,"sequenceEqual",function(){return ge.a});var be=n(946);n.d(t,"share",function(){return be.a});var _e=n(947);n.d(t,"shareReplay",function(){return _e.a});var we=n(948);n.d(t,"single",function(){return we.a});var Oe=n(949);n.d(t,"skip",function(){return Oe.a});var ke=n(950);n.d(t,"skipLast",function(){return ke.a});var Ee=n(951);n.d(t,"skipUntil",function(){return Ee.a});var Se=n(952);n.d(t,"skipWhile",function(){return Se.a});var xe=n(953);n.d(t,"startWith",function(){return xe.a});var Ce=n(954);n.d(t,"subscribeOn",function(){return Ce.a});var Pe=n(956);n.d(t,"switchAll",function(){return Pe.a});var je=n(266);n.d(t,"switchMap",function(){return je.a});var Me=n(957);n.d(t,"switchMapTo",function(){return Me.a});var Te=n(263);n.d(t,"take",function(){return Te.a});var Ae=n(264);n.d(t,"takeLast",function(){return Ae.a});var De=n(958);n.d(t,"takeUntil",function(){return De.a});var Ie=n(959);n.d(t,"takeWhile",function(){return Ie.a});var Ne=n(960);n.d(t,"tap",function(){return Ne.a});var Re=n(432);n.d(t,"throttle",function(){return Re.b});var Fe=n(961);n.d(t,"throttleTime",function(){return Fe.a});var Le=n(178);n.d(t,"throwIfEmpty",function(){return Le.a});var Be=n(962);n.d(t,"timeInterval",function(){return Be.a});var ze=n(963);n.d(t,"timeout",function(){return ze.a});var We=n(433);n.d(t,"timeoutWith",function(){return We.a});var Ue=n(964);n.d(t,"timestamp",function(){return Ue.a});var He=n(965);n.d(t,"toArray",function(){return He.a});var qe=n(966);n.d(t,"window",function(){return qe.a});var Ve=n(967);n.d(t,"windowCount",function(){return Ve.a});var Ye=n(968);n.d(t,"windowTime",function(){return Ye.a});var Ge=n(969);n.d(t,"windowToggle",function(){return Ge.a});var Ke=n(970);n.d(t,"windowWhen",function(){return Ke.a});var Je=n(971);n.d(t,"withLatestFrom",function(){return Je.a});var $e=n(972);n.d(t,"zip",function(){return $e.a});var Ze=n(973);n.d(t,"zipAll",function(){return Ze.a})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(3),o=n(120),i=n(360),a=n(21),s=n(228),u=n(154),l=n(226),c=function(e){function t(n,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.a;break;case 1:if(!n){a.destination=i.a;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new f(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new f(a,n,r,o)}return a}return r.a(t,e),t.prototype[s.a]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.a),f=function(e){function t(t,n,r,a){var s,u=e.call(this)||this;u._parentSubscriber=t;var l=u;return Object(o.a)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==i.a&&(l=Object.create(n),Object(o.a)(l.unsubscribe)&&u.add(l.unsubscribe.bind(l)),l.unsubscribe=u.unsubscribe.bind(u))),u._context=l,u._next=s,u._error=r,u._complete=a,u}return r.a(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw e;Object(l.a)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Object(l.a)(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9);n.d(t,"Observable",function(){return r.a});var o=n(362);n.d(t,"ConnectableObservable",function(){return o.a});var i=n(364);n.d(t,"GroupedObservable",function(){return i.a});var a=n(99);n.d(t,"observable",function(){return a.a});var s=n(28);n.d(t,"Subject",function(){return s.a});var u=n(365);n.d(t,"BehaviorSubject",function(){return u.a});var l=n(231);n.d(t,"ReplaySubject",function(){return l.a});var c=n(159);n.d(t,"AsyncSubject",function(){return c.a});var f=n(370);n.d(t,"asapScheduler",function(){return f.a});var d=n(31);n.d(t,"asyncScheduler",function(){return d.a});var p=n(366);n.d(t,"queueScheduler",function(){return p.a});var h=n(740);n.d(t,"animationFrameScheduler",function(){return h.a});var v=n(743);n.d(t,"VirtualTimeScheduler",function(){return v.b}),n.d(t,"VirtualAction",function(){return v.a});var m=n(367);n.d(t,"Scheduler",function(){return m.a});var y=n(21);n.d(t,"Subscription",function(){return y.a});var g=n(5);n.d(t,"Subscriber",function(){return g.a});var b=n(157);n.d(t,"Notification",function(){return b.a}),n.d(t,"NotificationKind",function(){return b.b});var _=n(229);n.d(t,"pipe",function(){return _.a});var w=n(155);n.d(t,"noop",function(){return w.a});var O=n(100);n.d(t,"identity",function(){return O.a});var k=n(744);n.d(t,"isObservable",function(){return k.a});var E=n(124);n.d(t,"ArgumentOutOfRangeError",function(){return E.a});var S=n(125);n.d(t,"EmptyError",function(){return S.a});var x=n(156);n.d(t,"ObjectUnsubscribedError",function(){return x.a});var C=n(361);n.d(t,"UnsubscriptionError",function(){return C.a});var P=n(371);n.d(t,"TimeoutError",function(){return P.a});var j=n(745);n.d(t,"bindCallback",function(){return j.a});var M=n(746);n.d(t,"bindNodeCallback",function(){return M.a});var T=n(234);n.d(t,"combineLatest",function(){return T.b});var A=n(160);n.d(t,"concat",function(){return A.a});var D=n(237);n.d(t,"defer",function(){return D.a});var I=n(47);n.d(t,"empty",function(){return I.b});var N=n(755);n.d(t,"forkJoin",function(){return N.a});var R=n(49);n.d(t,"from",function(){return R.a});var F=n(756);n.d(t,"fromEvent",function(){return F.a});var L=n(757);n.d(t,"fromEventPattern",function(){return L.a});var B=n(758);n.d(t,"generate",function(){return B.a});var z=n(759);n.d(t,"iif",function(){return z.a});var W=n(760);n.d(t,"interval",function(){return W.a});var U=n(376);n.d(t,"merge",function(){return U.a});var H=n(377);n.d(t,"never",function(){return H.b});var q=n(158);n.d(t,"of",function(){return q.a});var V=n(761);n.d(t,"onErrorResumeNext",function(){return V.a});var Y=n(762);n.d(t,"pairs",function(){return Y.a});var G=n(763);n.d(t,"partition",function(){return G.a});var K=n(379);n.d(t,"race",function(){return K.a});var J=n(764);n.d(t,"range",function(){return J.a});var $=n(233);n.d(t,"throwError",function(){return $.a});var Z=n(380);n.d(t,"timer",function(){return Z.a});var X=n(765);n.d(t,"using",function(){return X.a});var Q=n(238);n.d(t,"zip",function(){return Q.b});var ee=n(375);n.d(t,"scheduled",function(){return ee.a}),n.d(t,"EMPTY",function(){return I.a}),n.d(t,"NEVER",function(){return H.a});var te=n(154);n.d(t,"config",function(){return te.a})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","color","size","style","width","height"]),f=t.reactIconBase,d=void 0===f?{}:f,p=a||d.size||"1em";return o.default.createElement("svg",r({children:n,fill:"currentColor",preserveAspectRatio:"xMidYMid meet",height:l||p,width:u||p},d,c,{style:r({verticalAlign:"middle",color:i||d.color},d.style||{},s)}))};s.propTypes={color:i.default.string,size:i.default.oneOfType([i.default.string,i.default.number]),width:i.default.oneOfType([i.default.string,i.default.number]),height:i.default.oneOfType([i.default.string,i.default.number]),style:i.default.object},s.contextTypes={reactIconBase:i.default.shape(s.propTypes)},t.default=s,e.exports=t.default},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,((r=n(405))&&r.__esModule?r:{default:r}).default)("button",{displayName:"BaseButton",defaultProps:{type:"button"}});t.default=o},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(225),o=n(733),i=n(99),a=n(229),s=n(154),u=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,i=Object(o.a)(e,t,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||s.a.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.a.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){s.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),Object(r.a)(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=l(t))(function(t,r){var o;o=n.subscribe(function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[i.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t(0,i.prefixPath)(t,e)))}}t.PatchEvent=t.default=a},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(3),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n(5).a)},function(e,t,n){"use strict";t.a=function(e,t,n,a,s){void 0===s&&(s=new r.a(e,n,a));if(s.closed)return;if(t instanceof i.a)return t.subscribe(s);return Object(o.a)(t)(s)};var r=n(64),o=n(235),i=n(9)},function(e,t,n){"use strict";var r=a(n(63)),o=a(n(15)),i=a(n(659));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e){for(var t=1;t(console.warn("[deprecation] The Sanity client is now exposed in CommonJS format.\n\nFor instance, change:\n `const client = require('part:@sanity/base/client').default`\n\nTo the following:\n `const client = require('part:@sanity/base/client')`\n"),c)}),e.exports=c},,function(e,t){e.exports=void 0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(842);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var o=n(862);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})})},function(e,t,n){var r=n(848),o=n(253)(function(e,t){return null==e?{}:r(e,t)});e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Block",function(){return Q}),n.d(t,"Change",function(){return Te}),n.d(t,"Data",function(){return M}),n.d(t,"Decoration",function(){return he}),n.d(t,"Document",function(){return A}),n.d(t,"Editor",function(){return Ot}),n.d(t,"Inline",function(){return I}),n.d(t,"KeyUtils",function(){return _}),n.d(t,"Leaf",function(){return L}),n.d(t,"Mark",function(){return R}),n.d(t,"Node",function(){return Z}),n.d(t,"Operation",function(){return je}),n.d(t,"PathUtils",function(){return ce}),n.d(t,"Point",function(){return de}),n.d(t,"Range",function(){return ge}),n.d(t,"resetMemoization",function(){return G}),n.d(t,"Selection",function(){return _e}),n.d(t,"Text",function(){return $}),n.d(t,"TextUtils",function(){return He}),n.d(t,"useMemoization",function(){return K}),n.d(t,"Value",function(){return Oe});var r=n(224),o=n.n(r),i=n(116),a=(n.n(i),n(1377)),s=n(267),u=n(1378),l=n.n(u),c=n(17),f=n.n(c),d=n(1381),p=(n.n(d),n(43)),h=n.n(p),v=n(1382),m=n.n(v),y=void 0,g=void 0;function b(){y=0,g=function(){return""+y++}}b();var _={create:function(e){if(null==e)return g();if("string"==typeof e)return e;throw new Error("Keys must be strings, but you passed: "+e)},setGenerator:function(e){g=e},resetGenerator:b},w="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=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},C=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},P=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),j=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{};if(i.Map.isMap(t))return t;if(o()(t))return e.fromJSON(t);throw new Error("`Data.create` only accepts objects or maps, but you passed it: "+t)}},{key:"fromJSON",value:function(e){return new i.Map(e)}}]),e}();M.fromJS=M.fromJSON;var T={data:void 0,key:void 0,nodes:void 0},A=function(e){function t(){return O(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(t){return t.toJSON(e)})};return e.preserveKeys&&(t.key=this.key),t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDocument(e))return e;if((i.List.isList(e)||Array.isArray(e))&&(e={nodes:e}),o()(e))return t.fromJSON(e);throw new Error("`Document.create` only accepts objects, arrays, lists or documents, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isDocument(e))return e;var n=e.data,r=void 0===n?{}:n,o=e.key,a=void 0===o?_.create():o,s=e.nodes,u=void 0===s?[]:s;return new t({key:a,data:new i.Map(r),nodes:Z.createList(u)})}}]),t}(Object(i.Record)(T)),D={data:void 0,key:void 0,nodes:void 0,type:void 0},I=function(e){function t(){return O(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(t){return t.toJSON(e)})};return e.preserveKeys&&(t.key=this.key),t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isInline(e))return e;if("string"==typeof e&&(e={type:e}),o()(e))return t.fromJSON(e);throw new Error("`Inline.create` only accepts objects, strings or inlines, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(i.List.isList(e)||Array.isArray(e))return new i.List(e.map(t.create));throw new Error("`Inline.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isInline(e))return e;var n=e.data,r=void 0===n?{}:n,o=e.key,a=void 0===o?_.create():o,s=e.nodes,u=void 0===s?[]:s,l=e.type;if("string"!=typeof l)throw new Error("`Inline.fromJS` requires a `type` string.");return new t({key:a,type:l,data:new i.Map(r),nodes:Z.createList(u)})}},{key:"isInlineList",value:function(e){return i.List.isList(e)&&e.every(function(e){return t.isInline(e)})}}]),t}(Object(i.Record)(D)),N={data:void 0,type:void 0},R=function(e){function t(){return O(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,e),k(t,[{key:"toJSON",value:function(){return{object:this.object,type:this.type,data:this.data.toJSON()}}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isMark(e))return e;if("string"==typeof e&&(e={type:e}),o()(e))return t.fromJSON(e);throw new Error("`Mark.create` only accepts objects, strings or marks, but you passed it: "+e)}},{key:"createSet",value:function(e){if(i.Set.isSet(e)||Array.isArray(e))return new i.Set(e.map(t.create));if(null==e)return Object(i.Set)();throw new Error("`Mark.createSet` only accepts sets, arrays or null, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isMark(e))return{data:e.data,type:e.type};if("string"==typeof e)return{type:e};if(o()(e)){var n={};return"type"in e&&(n.type=e.type),"data"in e&&(n.data=M.create(e.data)),n}throw new Error("`Mark.createProperties` only accepts objects, strings or marks, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.data,r=void 0===n?{}:n,o=e.type;if("string"!=typeof o)throw new Error("`Mark.fromJS` requires a `type` string.");return new t({type:o,data:new i.Map(r)})}},{key:"isMarkSet",value:function(e){return i.Set.isSet(e)&&e.every(function(e){return t.isMark(e)})}}]),t}(Object(i.Record)(N)),F={marks:void 0,text:void 0},L=function(e){function t(){return O(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,e),k(t,[{key:"updateMark",value:function(e,t){var n=this.marks;if(t.equals(e))return this;if(!n.has(e))return this;var r=n.withMutations(function(n){n.remove(e).add(t)});return this.set("marks",r)}},{key:"addMark",value:function(e){var t=this.marks;return this.set("marks",t.add(e))}},{key:"addMarks",value:function(e){var t=this.marks;return this.set("marks",t.union(e))}},{key:"insertText",value:function(e,t){var n=this.text,r=n.slice(0,e)+t+n.slice(e);return this.set("text",r)}},{key:"removeMark",value:function(e){var t=this.marks;return this.set("marks",t.remove(e))}},{key:"toJSON",value:function(){return{object:this.object,text:this.text,marks:this.marks.toArray().map(function(e){return e.toJSON()})}}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isLeaf(e))return e;if("string"==typeof e&&(e={text:e}),o()(e))return t.fromJSON(e);throw new Error("`Leaf.create` only accepts objects, strings or leaves, but you passed it: "+e)}},{key:"createLeaves",value:function(e){if(e.size<=1)return e;var t=!1,n=Object(i.List)().withMutations(function(n){e.findLast(function(e,r){var o=n.first();if(o){if(o.marks.equals(e.marks))return t=!0,void n.set(0,o.set("text",""+e.text+o.text));if(""===o.text)return t=!0,void n.set(0,e);if(""===e.text)return void(t=!0)}n.unshift(e)})});return t?n:e}},{key:"splitLeaves",value:function(e,t){if(t<0)return[Object(i.List)(),e];if(0===e.size)return[Object(i.List)(),Object(i.List)()];var n=0,r=-1,o=void 0,a=void 0;return e.find(function(e){r++;var i=n,s=e.text;if((n+=s.length)t)return!1;var u=t-i;return o=e.set("text",s.slice(0,u)),a=e.set("text",s.slice(u)),!0}),o?""===o.text?0===r?[i.List.of(o),e]:[e.take(r),e.skip(r)]:""===a.text?r===e.size-1?[e,i.List.of(a)]:[e.take(r+1),e.skip(r+1)]:[e.take(r).push(o),e.skip(r+1).unshift(a)]:[e,Object(i.List)()]}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(i.List.isList(e)||Array.isArray(e))return new i.List(e.map(t.create));throw new Error("`Leaf.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.text,r=void 0===n?"":n,o=e.marks,a=void 0===o?[]:o;return new t({text:r,marks:Object(i.Set)(a.map(R.fromJSON))})}},{key:"isLeafList",value:function(e){return i.List.isList(e)&&e.every(function(e){return t.isLeaf(e)})}}]),t}(Object(i.Record)(F)),B=!0,z=Symbol("LEAF"),W=Symbol("STORE_KEY"),U=Symbol("undefined"),H=Symbol("null"),q=void 0,V=new WeakMap;function Y(e,t){var n=function(t){var n=e[t];if(!n)throw new Error('Object does not have a property named "'+t+'".');e[t]=function(){for(var e=arguments.length,r=Array(e),o=0;o=e}),endOffset:t,index:r,startOffset:n}}},{key:"addMark",value:function(e,t,n){var r=i.Set.of(n);return this.addMarks(e,t,r)}},{key:"addMarks",value:function(e,t,n){if(""===this.text&&0===t&&0===e){var r=this.leaves.first();if(!r)return this.set("leaves",i.List.of(L.fromJSON({text:"",marks:n})));var o=r.addMarks(n);return o===r?this:this.set("leaves",i.List.of(o))}if(""===this.text)return this;if(0===t)return this;if(e>=this.text.length)return this;var a=L.splitLeaves(this.leaves,e),s=P(a,2),u=s[0],l=s[1],c=L.splitLeaves(l,t),f=P(c,2),d=f[0],p=f[1],h=u.concat(d.map(function(e){return e.addMarks(n)}),p);return this.setLeaves(h)}},{key:"getLeaves",value:function(e){var t=this.leaves;if(!e||0===e.size)return t;if(0===t.size){var n=e.map(function(e){return e.mark}),r=L.create({marks:n});return Object(i.List)([r])}if(0===this.text.length){var o=e.map(function(e){return e.mark}),a=L.create({marks:o});return Object(i.List)([a])}var s=this.key,u=this.text;return e.forEach(function(e){var n=e.start,r=e.end,o=e.mark,i=n.key==s,a=r.key==s;if(i&&a){var l=i?n.offset:0,c=a?r.offset-l:u.length-l;if(c<1)return;if(l>=u.length)return;if(0!==l||c=this.text.length)return this.getActiveMarks();if(e>=t)return Object(i.Set)();if(""===this.text)return this.getActiveMarks();var n=null,r=0;return this.leaves.forEach(function(o){var i=r;if(!((r=i+o.text.length)<=e)){if(i>=t)return!1;if(n)return(n=n.intersect(o.marks))&&n.size,!1;n=o.marks}}),n||Object(i.Set)()}},{key:"getActiveMarks",value:function(){var e=this;if(0===this.leaves.size)return Object(i.Set)();var t=this.leaves.first().marks;return 0===t.size?t:t.toOrderedSet().withMutations(function(t){e.leaves.forEach(function(e){if(t.intersect(e.marks),0===t.size)return!1})})}},{key:"getMarksBetweenOffsets",value:function(e,t){if(e<=0&&t>=this.text.length)return this.getMarks();if(e>=t)return Object(i.Set)();if(""===this.text)return this.getActiveMarks();var n=null,r=0;return this.leaves.forEach(function(o){var i=r;if(!((r=i+o.text.length)<=e))return!(i>=t)&&void(n=n?n.union(o.marks):o.marks)}),n||Object(i.Set)()}},{key:"getMarks",value:function(){var e=this.getMarksAsArray();return new i.OrderedSet(e)}},{key:"getMarksAsArray",value:function(){if(0===this.leaves.size)return[];var e=this.leaves.first().marks;if(1===this.leaves.size)return e.toArray();var t=[];return this.leaves.forEach(function(e){t.push(e.marks.toArray())}),Array.prototype.concat.apply(e.toArray(),t)}},{key:"getMarksAtIndex",value:function(e){var t=this.searchLeafAtOffset(e).leaf;return t?t.marks:Object(i.Set)()}},{key:"insertText",value:function(e,t,n){if(""===this.text)return this.set("leaves",i.List.of(L.create({text:t,marks:n})));if(0===t.length)return this;n||(n=Object(i.Set)());var r=this.searchLeafAtOffset(e),o=r.startOffset,a=r.leaf,s=r.index,u=e-o,l=a.text.slice(0,u),c=a.text.slice(u),f=this.leaves;if(a.marks.equals(n))return this.set("leaves",f.set(s,a.set("text",l+t+c)));var d=f.splice(s,1,a.set("text",l),L.create({text:t,marks:n}),a.set("text",c));return this.setLeaves(d)}},{key:"removeMark",value:function(e,t,n){if(""===this.text&&0===e&&0===t){var r=this.leaves.first();if(!r)return this;var o=r.removeMark(n);return o===r?this:this.set("leaves",i.List.of(o))}if(t<=0)return this;if(e>=this.text.length)return this;var a=L.splitLeaves(this.leaves,e),s=P(a,2),u=s[0],l=s[1],c=L.splitLeaves(l,t),f=P(c,2),d=f[0],p=f[1],h=u.concat(d.map(function(e){return e.removeMark(n)}),p);return this.setLeaves(h)}},{key:"removeText",value:function(e,t){if(t<=0)return this;if(e>=this.text.length)return this;if(1===t){var n=this.searchLeafAtOffset(e+1),r=n.leaf,o=n.index,a=e-n.startOffset;if(r){if(1===r.text.length){var s=this.leaves.remove(o);return this.setLeaves(s)}var u=r.text.slice(0,a)+r.text.slice(a+t);if(u.length>0)return this.set("leaves",this.leaves.set(o,r.set("text",u)))}}var l=L.splitLeaves(this.leaves,e),c=P(l,2),f=c[0],d=c[1],p=L.splitLeaves(d,t)[1],h=L.createLeaves(f.concat(p));if(1===h.size){var v=h.first();if(""===v.text)return this.set("leaves",i.List.of(v.set("marks",this.getActiveMarks())))}return this.set("leaves",h)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,leaves:this.getLeaves().toArray().map(function(e){return e.toJSON()})};return e.preserveKeys&&(t.key=this.key),t}},{key:"updateMark",value:function(e,t,n,r){var o=n.merge(r);if(""===this.text&&0===t&&0===e){var a=this.leaves.first();if(!a)return this;var s=a.updateMark(n,o);return s===a?this:this.set("leaves",i.List.of(s))}if(t<=0)return this;if(e>=this.text.length)return this;var u=L.splitLeaves(this.leaves,e),l=P(u,2),c=l[0],f=l[1],d=L.splitLeaves(f,t),p=P(d,2),h=p[0],v=p[1],m=c.concat(h.map(function(e){return e.updateMark(n,o)}),v);return this.setLeaves(m)}},{key:"splitText",value:function(e){var t=L.splitLeaves(this.leaves,e);return[this.set("leaves",t[0]),this.set("leaves",t[1]).regenerateKey()]}},{key:"mergeText",value:function(e){var t=this.leaves.concat(e.leaves);return this.setLeaves(t)}},{key:"setLeaves",value:function(e){if(1===(e=L.createLeaves(e)).size){var t=e.first();if((!t.marks||0===t.marks.size)&&""===t.text)return this.set("leaves",Object(i.List)([L.create()]))}return 0===e.size&&(e=e.push(L.create())),this.set("leaves",e)}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(t.isText(e))return e;if("string"==typeof e&&(e={leaves:[{text:e}]}),o()(e)){if(e.text){var n=e,r=n.text,i=n.marks;e={key:n.key,leaves:[{text:r,marks:i}]}}return t.fromJSON(e)}throw new Error("`Text.create` only accepts objects, arrays, strings or texts, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(i.List.isList(e)||Array.isArray(e))return new i.List(e.map(t.create));throw new Error("`Text.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isText(e))return e;var n=e.key,r=void 0===n?_.create():n,o=e.leaves;if(o||(e.ranges?(Object(a.a)(!1,"As of slate@0.27.0, the `ranges` property of Slate objects has been renamed to `leaves`."),o=e.ranges):o=Object(i.List)()),Array.isArray(o))o=Object(i.List)(o.map(function(e){return L.create(e)}));else{if(!i.List.isList(o))throw new Error("leaves must be either Array or Immutable.List");o=o.map(function(e){return L.create(e)})}return 0===o.size&&(o=o.push(L.create())),new t({leaves:L.createLeaves(o),key:r})}},{key:"isTextList",value:function(e){return i.List.isList(e)&&e.every(function(e){return t.isText(e)})}}]),t}(Object(i.Record)(J));Y($.prototype,["getActiveMarks","getMarks","getMarksAsArray"]);var Z=function(){function e(){O(this,e)}return k(e,null,[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.isNode(t))return t;if(o()(t)){var n=t.object;switch(!n&&t.kind&&(Object(a.a)(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),n=t.kind),n){case"block":return Q.create(t);case"document":return A.create(t);case"inline":return I.create(t);case"text":return $.create(t);default:throw new Error("`Node.create` requires a `object` string.")}}throw new Error("`Node.create` only accepts objects or nodes but you passed it: "+t)}},{key:"createList",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(i.List.isList(t)||Array.isArray(t))return Object(i.List)(t.map(e.create));throw new Error("`Node.createList` only accepts lists or arrays, but you passed it: "+t)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Q.isBlock(e)||I.isInline(e))return{data:e.data,type:e.type};if("string"==typeof e)return{type:e};if(o()(e)){var t={};return"type"in e&&(t.type=e.type),"data"in e&&(t.data=M.create(e.data)),t}throw new Error("`Node.createProperties` only accepts objects, strings, blocks or inlines, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var t=e.object;switch(!t&&e.kind&&(Object(a.a)(!1,"As of slate@0.32.0, the `kind` property of Slate objects has been renamed to `object`."),t=e.kind),t){case"block":return Q.fromJSON(e);case"document":return A.fromJSON(e);case"inline":return I.fromJSON(e);case"text":return $.fromJSON(e);default:throw new Error("`Node.fromJSON` requires an `object` of either 'block', 'document', 'inline' or 'text', but you passed: "+e)}}},{key:"isNode",value:function(e){return Q.isBlock(e)||A.isDocument(e)||I.isInline(e)||$.isText(e)}},{key:"isNodeList",value:function(t){return i.List.isList(t)&&t.every(function(t){return e.isNode(t)})}}]),e}(),X={data:void 0,key:void 0,nodes:void 0,type:void 0},Q=function(e){function t(){return O(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,type:this.type,data:this.data.toJSON(),nodes:this.nodes.toArray().map(function(t){return t.toJSON(e)})};return e.preserveKeys&&(t.key=this.key),t}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isBlock(e))return e;if("string"==typeof e&&(e={type:e}),o()(e))return t.fromJSON(e);throw new Error("`Block.create` only accepts objects, strings or blocks, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(i.List.isList(e)||Array.isArray(e))return new i.List(e.map(t.create));throw new Error("`Block.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isBlock(e))return e;var n=e.data,r=void 0===n?{}:n,o=e.key,a=void 0===o?_.create():o,s=e.nodes,u=void 0===s?[]:s,l=e.type;if("string"!=typeof l)throw new Error("`Block.fromJSON` requires a `type` string.");return new t({key:a,type:l,data:Object(i.Map)(r),nodes:Z.createList(u)})}},{key:"isBlockList",value:function(e){return i.List.isList(e)&&e.every(function(e){return t.isBlock(e)})}}]),t}(Object(i.Record)(X));function ee(e,t){for(var n=le(e,t),r=0;ri)return 1}return e.size===t.size?0:null}function te(e){if(null==e)return null;if(i.List.isList(e))return e;if(Array.isArray(e))return Object(i.List)(e);throw new Error("Paths can only be created from arrays or lists, but you passed: "+e)}function ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:le(e,t);return[e.slice(0,n),t.slice(0,n)]}function re(e){return oe(e,0-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size-1)}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size-1,r=e.get(n)+t;return e.set(n,r)}function ie(e,t){var n=ne(e,t),r=P(n,2),o=r[0],i=r[1];return e.sizeu},isSibling:function(e,t){if(e.size!==t.size)return!1;var n=e.butLast(),r=t.butLast();return n.equals(r)},isYounger:ue,lift:function(e){return e.slice(0,-1)},max:function(e,t){return Math.max(e.size,t.size)},min:le,relate:function(e,t){for(var n=[],r=0;r=r&&(e=re(e=oe(e,1,a),r,a+1))),"move_node"===n){var c=t.newPath,f=c.size-1,d=se(c,e);if(se(o,c))return Object(i.List)([e]);var p=ue(c,e),h=ie(c,e);l?e=ae(c,o)?re(c,1,le(c,o)-1).concat(e.slice(o.size)):c.concat(e.slice(o.size)):s?e=ae(c,o)?re(c,1,le(c,o)-1):c:(u&&(e=re(e,1,a)),(d||p||h)&&(e=oe(e,1,f)))}var v=Array.isArray(e)?e:[e];return Object(i.List)(v)}},fe={key:void 0,offset:void 0,path:void 0},de=function(e){function t(){return O(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,e),k(t,[{key:"isAfterPoint",value:function(e){return!this.isUnset&&(this.key===e.key&&this.offset>e.offset||1===ce.compare(this.path,e.path))}},{key:"isAfterRange",value:function(e){return!this.isUnset&&this.isAfterPoint(e.end)}},{key:"isAtEndOfRange",value:function(e){return!this.isUnset&&this.equals(e.end)}},{key:"isAtStartOfRange",value:function(e){return!this.isUnset&&this.equals(e.start)}},{key:"isBeforePoint",value:function(e){return!this.isUnset&&(this.key===e.key&&this.offset0&&void 0!==arguments[0]?arguments[0]:1;return 0===e?this:e<0?this.moveForward(-e):this.setOffset(this.offset-e)}},{key:"moveForward",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return 0===e?this:e<0?this.moveBackward(-e):this.setOffset(this.offset+e)}},{key:"moveTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.key;return"number"==typeof e?(t=e,e=this.path):"string"==typeof e?e=(n=e)===this.key?this.path:null:n=e.equals(this.path)?this.key:null,this.merge({key:n,path:e,offset:t})}},{key:"moveToStartOfNode",value:function(e){var t=e.getFirstText();return this.moveTo(t.key,0)}},{key:"moveToEndOfNode",value:function(e){var t=e.getLastText();return this.moveTo(t.key,t.text.length)}},{key:"normalize",value:function(e){if(null==this.key&&null==this.path)return this.setOffset(null);var n=this.key,r=this.offset,o=this.path,i=e.getNode(n||o);if(!i){Object(a.a)(!1,"A point's `path` or `key` invalid and was reset!");var s=e.getFirstText();return s?this.merge({key:s.key,offset:0,path:e.getPath(s.key)}):t.create()}if("text"!==i.object){Object(a.a)(!1,"A point should not reference a non-text node!");var u=i.getTextAtOffset(r),l=i.getOffset(u.key);return this.merge({offset:r-l,key:u.key,path:e.getPath(u.key)})}return i&&o&&n&&n!==i.key&&Object(a.a)(!1,"A point's `key` did not match its `path`!"),this.merge({key:i.key,path:null==o?e.getPath(i.key):o,offset:null==r?0:Math.min(r,i.text.length)})}},{key:"setKey",value:function(e){return null!==e&&(e=_.create(e)),this.set("key",e)}},{key:"setOffset",value:function(e){return this.set("offset",e)}},{key:"setPath",value:function(e){return null!==e&&(e=ce.create(e)),this.set("path",e)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,key:this.key,offset:this.offset,path:this.path&&this.path.toArray()};return e.preserveKeys||delete t.key,t}},{key:"unset",value:function(){return this.merge({key:null,offset:null,path:null})}},{key:"isSet",get:function(){return null!=this.key&&null!=this.offset&&null!=this.path}},{key:"isUnset",get:function(){return!this.isSet}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isPoint(e))return e;if(o()(e))return t.fromJSON(e);throw new Error("`Point.create` only accepts objects or points, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isPoint(e))return{key:e.key,offset:e.offset,path:e.path};if(o()(e)){var n={};return"key"in e&&(n.key=e.key),"offset"in e&&(n.offset=e.offset),"path"in e&&(n.path=ce.create(e.path)),"path"in e&&!("key"in e)&&(n.key=null),"key"in e&&!("path"in e)&&(n.path=null),n}throw new Error("`Point.createProperties` only accepts objects or points, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.key,r=void 0===n?null:n,o=e.offset,i=void 0===o?null:o,a=e.path,s=void 0===a?null:a;return new t({key:r,offset:i,path:ce.create(s)})}}]),t}(Object(i.Record)(fe)),pe={anchor:void 0,focus:void 0,mark:void 0},he=function(e){function t(){return O(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,e),k(t,[{key:"setProperties",value:function(e){var n=e=t.createProperties(e),r=n.anchor,o=n.focus,i=n.mark,a={};return r&&(a.anchor=de.create(r)),o&&(a.focus=de.create(o)),i&&(a.mark=R.create(i)),this.merge(a)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e),mark:this.mark.toJSON(e)}}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDecoration(e))return e;if(ge.isRange(e))return t.fromJSON(ge.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Decoration.create` only accepts objects or decorations, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(i.List.isList(e)||Array.isArray(e))return new i.List(e.map(t.create));throw new Error("`Decoration.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isDecoration(e))return{anchor:de.createProperties(e.anchor),focus:de.createProperties(e.focus),mark:R.create(e.mark)};if(o()(e)){var n={};return"anchor"in e&&(n.anchor=de.create(e.anchor)),"focus"in e&&(n.focus=de.create(e.focus)),"mark"in e&&(n.mark=R.create(e.mark)),n}throw new Error("`Decoration.createProperties` only accepts objects or decorations, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchor,r=e.focus,o=e.mark;if(!o)throw new Error("Decorations must be created with a `mark`, but you passed: "+JSON.stringify(e));return new t({anchor:de.fromJSON(n||{}),focus:de.fromJSON(r||{}),mark:R.fromJSON(o)})}}]),t}(Object(i.Record)(pe)),ve={block:"@@__SLATE_BLOCK__@@",change:"@@__SLATE_CHANGE__@@",decoration:"@@__SLATE_DECORATION__@@",document:"@@__SLATE_DOCUMENT__@@",editor:"@@__SLATE_EDITOR__@@",inline:"@@__SLATE_INLINE__@@",leaf:"@@__SLATE_LEAF__@@",mark:"@@__SLATE_MARK__@@",operation:"@@__SLATE_OPERATION__@@",point:"@@__SLATE_POINT__@@",range:"@@__SLATE_RANGE__@@",selection:"@@__SLATE_SELECTION__@@",text:"@@__SLATE_TEXT__@@",value:"@@__SLATE_VALUE__@@"};function me(e,t){return!(!t||!t[ve[e]])}var ye={anchor:void 0,focus:void 0},ge=function(e){function t(){return O(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)}}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isRange(e))return"range"===e.object?e:t.fromJSON(t.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Range.create` only accepts objects or ranges, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(i.List.isList(e)||Array.isArray(e))return new i.List(e.map(t.create));throw new Error("`Range.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isRange(e))return{anchor:de.createProperties(e.anchor),focus:de.createProperties(e.focus)};if(o()(e)){var n={};return"anchor"in e&&(n.anchor=de.create(e.anchor)),"focus"in e&&(n.focus=de.create(e.focus)),n}throw new Error("`Range.createProperties` only accepts objects, decorations, ranges or selections, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchor,r=e.focus;return new t({anchor:de.fromJSON(n||{}),focus:de.fromJSON(r||{})})}},{key:"isRange",value:function(e){return me("range",e)||he.isDecoration(e)||_e.isSelection(e)}}]),t}(Object(i.Record)(ye)),be={anchor:void 0,focus:void 0,isFocused:void 0,marks:void 0},_e=function(e){function t(){return O(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,e),k(t,[{key:"setIsFocused",value:function(e){return this.set("isFocused",e)}},{key:"setMarks",value:function(e){return this.set("marks",e)}},{key:"setProperties",value:function(e){var n=e=t.createProperties(e),r=n.anchor,o=n.focus,i=x(n,["anchor","focus"]);return r&&(i.anchor=de.create(r)),o&&(i.focus=de.create(o)),this.merge(i)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e),isFocused:this.isFocused,marks:null==this.marks?null:this.marks.toArray().map(function(e){return e.toJSON()})}}},{key:"isBlurred",get:function(){return!this.isFocused}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isSelection(e))return e;if(ge.isRange(e))return t.fromJSON(ge.createProperties(e));if(o()(e))return t.fromJSON(e);throw new Error("`Selection.create` only accepts objects, ranges or selections, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isSelection(e))return{anchor:de.createProperties(e.anchor),focus:de.createProperties(e.focus),isFocused:e.isFocused,marks:e.marks};if(ge.isRange(e))return{anchor:de.createProperties(e.anchor),focus:de.createProperties(e.focus)};if(o()(e)){var n={};return"anchor"in e&&(n.anchor=de.create(e.anchor)),"focus"in e&&(n.focus=de.create(e.focus)),"isFocused"in e&&(n.isFocused=e.isFocused),"marks"in e&&(n.marks=null==e.marks?null:R.createSet(e.marks)),n}throw new Error("`Selection.createProperties` only accepts objects, ranges or selections, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.anchor,r=e.focus,o=e.isFocused,a=void 0!==o&&o,s=e.marks,u=void 0===s?null:s;return new t({anchor:de.fromJSON(n||{}),focus:de.fromJSON(r||{}),isFocused:a,marks:null==u?null:new i.Set(u.map(R.fromJSON))})}}]),t}(Object(i.Record)(be)),we={data:void 0,decorations:void 0,document:void 0,selection:void 0},Oe=function(e){function t(){return O(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,e),k(t,[{key:"addMark",value:function(e,t,n,r){var o=this,i=o.document;return i=i.addMark(e,t,n,r),o=this.set("document",i)}},{key:"insertNode",value:function(e,t){var n=this,r=n.document;return r=r.insertNode(e,t),n=(n=n.set("document",r)).mapRanges(function(e){return e.updatePoints(function(e){return e.setPath(null)})})}},{key:"insertText",value:function(e,t,n,r){var o=this,i=o.document,a=i.assertNode(e);return i=i.insertText(e,t,n,r),o=(o=o.set("document",i)).mapRanges(function(e){return e.updatePoints(function(e){return e.key===a.key&&e.offset>=t?e.setOffset(e.offset+n.length):e})})}},{key:"mergeNode",value:function(e){var t=this,n=t.document,r=n.mergeNode(e);e=n.resolvePath(e);var o=ce.decrement(e),i=n.getNode(o),a=n.getNode(e);return t=(t=t.set("document",r)).mapRanges(function(e){if("text"===a.object){var t=i.text.length;e.anchor.key===a.key&&(e=e.moveAnchorTo(i.key,t+e.anchor.offset)),e.focus.key===a.key&&(e=e.moveFocusTo(i.key,t+e.focus.offset))}return e=e.updatePoints(function(e){return e.setPath(null)})})}},{key:"moveNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this,o=r.document;return o=o.moveNode(e,t,n),r=(r=r.set("document",o)).mapRanges(function(e){return e.updatePoints(function(e){return e.setPath(null)})})}},{key:"removeMark",value:function(e,t,n,r){var o=this,i=o.document;return i=i.removeMark(e,t,n,r),o=this.set("document",i)}},{key:"removeNode",value:function(e){var t=this,n=t.document,r=n.assertNode(e),o="text"==r.object?r:r.getFirstText()||r,i="text"==r.object?r:r.getLastText()||r,a=n.getPreviousText(o.key),s=n.getNextText(i.key);return n=n.removeNode(e),t=(t=t.set("document",n)).mapRanges(function(e){var t=e,n=t.start,o=t.end;return r.hasNode(n.key)&&(e=a?e.moveStartTo(a.key,a.text.length):s?e.moveStartTo(s.key,0):e.unset()),r.hasNode(o.key)&&(e=a?e.moveEndTo(a.key,a.text.length):s?e.moveEndTo(s.key,0):e.unset()),e=e.updatePoints(function(e){return e.setPath(null)})})}},{key:"removeText",value:function(e,t,n){var r=this,o=r.document,i=o.assertNode(e);o=o.removeText(e,t,n),r=r.set("document",o);var a=n.length,s=t,u=t+a;return r=r.mapRanges(function(e){return e.updatePoints(function(e){return e.key!==i.key?e:e.offset>=u?e.setOffset(e.offset-a):e.offset>s?e.setOffset(s):e})})}},{key:"setNode",value:function(e,t){var n=this,r=n.document;return r=r.setNode(e,t),n=n.set("document",r)}},{key:"setMark",value:function(e,t,n,r,o){var i=this,a=i.document;return a=a.setMark(e,t,n,r,o),i=i.set("document",a)}},{key:"setProperties",value:function(e){var t=this,n=t.document,r=e.data,o=e.decorations,i={};return r&&(i.data=r),o&&(i.decorations=o.map(function(e){return e.isSet?e:n.resolveDecoration(e)})),t=t.merge(i)}},{key:"setSelection",value:function(e){var t=this,n=t,r=n.document,o=n.selection,i=o.setProperties(e);return o=r.resolveSelection(i),t=t.set("selection",o)}},{key:"splitNode",value:function(e,t,n){var r=this,o=r.document,i=o.splitNode(e,t,n),a=o.assertNode(e);return r=(r=r.set("document",i)).mapRanges(function(e){var n=i.getNextText(a.key),r=e,o=r.start,s=r.end;return a.key===o.key&&t<=o.offset&&(e=e.moveStartTo(n.key,o.offset-t)),a.key===s.key&&t<=s.offset&&(e=e.moveEndTo(n.key,s.offset-t)),e=e.updatePoints(function(e){return e.setPath(null)})})}},{key:"mapRanges",value:function(e){var t=this,n=t,r=n.document,o=n.selection,i=n.decorations,a=o.isSet?e(o):o;a||(a=o.unset()),a!==o&&(a=r.createSelection(a)),t=t.set("selection",a);var s=i.map(function(t){var n=t.isSet?e(t):t;return n&&n!==t&&(n=r.createDecoration(n)),n});return s=s.filter(function(e){return!!e}),t=t.set("decorations",s)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={object:this.object,document:this.document.toJSON(e)};return e.preserveData&&(t.data=this.data.toJSON(e)),e.preserveDecorations&&(t.decorations=this.decorations.toArray().map(function(t){return t.toJSON(e)})),e.preserveSelection&&(t.selection=this.selection.toJSON(e)),t}},{key:"change",value:function(){Object(s.a)(!1,"As of Slate 0.42.0, value object are no longer schema-aware, and the `value.change()` method is no longer available. Use the `editor.change()` method on the new `Editor` controller instead.")}},{key:"startBlock",get:function(){return this.selection.start.key&&this.document.getClosestBlock(this.selection.start.key)}},{key:"endBlock",get:function(){return this.selection.end.key&&this.document.getClosestBlock(this.selection.end.key)}},{key:"anchorBlock",get:function(){return this.selection.anchor.key&&this.document.getClosestBlock(this.selection.anchor.key)}},{key:"focusBlock",get:function(){return this.selection.focus.key&&this.document.getClosestBlock(this.selection.focus.key)}},{key:"startInline",get:function(){return this.selection.start.key&&this.document.getClosestInline(this.selection.start.key)}},{key:"endInline",get:function(){return this.selection.end.key&&this.document.getClosestInline(this.selection.end.key)}},{key:"anchorInline",get:function(){return this.selection.anchor.key&&this.document.getClosestInline(this.selection.anchor.key)}},{key:"focusInline",get:function(){return this.selection.focus.key&&this.document.getClosestInline(this.selection.focus.key)}},{key:"startText",get:function(){return this.selection.start.key&&this.document.getDescendant(this.selection.start.key)}},{key:"endText",get:function(){return this.selection.end.key&&this.document.getDescendant(this.selection.end.key)}},{key:"anchorText",get:function(){return this.selection.anchor.key&&this.document.getDescendant(this.selection.anchor.key)}},{key:"focusText",get:function(){return this.selection.focus.key&&this.document.getDescendant(this.selection.focus.key)}},{key:"nextBlock",get:function(){return this.selection.end.key&&this.document.getNextBlock(this.selection.end.key)}},{key:"previousBlock",get:function(){return this.selection.start.key&&this.document.getPreviousBlock(this.selection.start.key)}},{key:"nextInline",get:function(){return this.selection.end.key&&this.document.getNextInline(this.selection.end.key)}},{key:"previousInline",get:function(){return this.selection.start.key&&this.document.getPreviousInline(this.selection.start.key)}},{key:"nextText",get:function(){return this.selection.end.key&&this.document.getNextText(this.selection.end.key)}},{key:"previousText",get:function(){return this.selection.start.key&&this.document.getPreviousText(this.selection.start.key)}},{key:"marks",get:function(){return this.selection.isUnset?new i.Set:this.selection.marks||this.document.getMarksAtRange(this.selection)}},{key:"activeMarks",get:function(){return this.selection.isUnset?new i.Set:this.selection.marks||this.document.getActiveMarksAtRange(this.selection)}},{key:"blocks",get:function(){return this.selection.isUnset?new i.List:this.document.getLeafBlocksAtRange(this.selection)}},{key:"fragment",get:function(){return this.selection.isUnset?A.create():this.document.getFragmentAtRange(this.selection)}},{key:"inlines",get:function(){return this.selection.isUnset?new i.List:this.document.getLeafInlinesAtRange(this.selection)}},{key:"texts",get:function(){return this.selection.isUnset?new i.List:this.document.getTextsAtRange(this.selection)}},{key:"history",get:function(){Object(s.a)(!1,"As of Slate 0.42.0, the `value.history` model no longer exists, and the history is stored in `value.data` instead using plugins.")}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.isValue(e))return e;if(o()(e))return t.fromJSON(e,n);throw new Error("`Value.create` only accepts objects or values, but you passed it: "+e)}},{key:"createProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isValue(e))return{data:e.data,decorations:e.decorations};if(o()(e)){var n={};return"data"in e&&(n.data=M.create(e.data)),"decorations"in e&&(n.decorations=he.createList(e.decorations)),n}throw new Error("`Value.createProperties` only accepts objects or values, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.data,r=void 0===n?{}:n,o=e.decorations,a=void 0===o?[]:o,s=e.document,u=void 0===s?{}:s,l=e.selection,c=void 0===l?{}:l;if(r=M.fromJSON(r),c=(u=A.fromJSON(u)).createSelection(c),a=Object(i.List)(a.map(function(e){return he.fromJSON(e)})),c.isUnset){var f=u.getFirstText();f&&(c=c.moveToStartOfNode(f)),c=u.createSelection(c)}return new t({data:r,decorations:a,document:u,selection:c})}}]),t}(Object(i.Record)(we)),ke=l()("slate:operation:apply");function Ee(e,t){var n=(t=je.create(t)).type;switch(ke(n,t),n){case"add_mark":var r=t,o=r.path,i=r.offset,a=r.length,s=r.mark;return e.addMark(o,i,a,s);case"insert_node":var u=t,l=u.path,c=u.node;return e.insertNode(l,c);case"insert_text":var f=t,d=f.path,p=f.offset,h=f.text,v=f.marks;return e.insertText(d,p,h,v);case"merge_node":var m=t.path;return e.mergeNode(m);case"move_node":var y=t,g=y.path,b=y.newPath;return ce.isEqual(g,b)?e:e.moveNode(g,b);case"remove_mark":var _=t,w=_.path,O=_.offset,k=_.length,E=_.mark;return e.removeMark(w,O,k,E);case"remove_node":var S=t.path;return e.removeNode(S);case"remove_text":var x=t,C=x.path,P=x.offset,j=x.text;return e.removeText(C,P,j);case"set_mark":var M=t,T=M.path,A=M.offset,D=M.length,I=M.mark,N=M.properties;return e.setMark(T,A,D,I,N);case"set_node":var R=t,F=R.path,L=R.properties;return e.setNode(F,L);case"set_selection":var B=t.properties;return e.setSelection(B);case"set_value":var z=t.properties;return e.setProperties(z);case"split_node":var W=t,U=W.path,H=W.position,q=W.properties;return e.splitNode(U,H,q);default:throw new Error('Unknown operation type: "'+n+'".')}}var Se=l()("slate:operation:invert");function xe(e){var t=(e=je.create(e)).type;switch(Se(t,e),t){case"insert_node":return e.set("type","remove_node");case"remove_node":return e.set("type","insert_node");case"move_node":var n=e,r=n.newPath,o=n.path;if(ce.isEqual(r,o))return e;var i=r,a=o,s=ce.compare(o,r);return o.sizer.size&&-1!==s&&(a=ce.increment(o,1,r.size-1)),e.set("path",i).set("newPath",a);case"merge_node":var u=e.path,l=ce.decrement(u);return e.set("type","split_node").set("path",l);case"split_node":var c=e.path,d=ce.increment(c);return e.set("type","merge_node").set("path",d);case"set_node":var p=e,h=p.properties,v=p.node,m=v.merge(h),y=f()(v,Object.keys(h));return e.set("node",m).set("properties",y);case"insert_text":return e.set("type","remove_text");case"remove_text":return e.set("type","insert_text");case"add_mark":return e.set("type","remove_mark");case"remove_mark":return e.set("type","add_mark");case"set_mark":var g=e,b=g.properties,_=g.mark,w=_.merge(b),O=f()(_,Object.keys(b));return e.set("mark",w).set("properties",O);case"set_selection":var k=e,E=k.properties,S=k.selection,x=S.merge(E),C=f()(S,Object.keys(E));return e.set("selection",x).set("properties",C);case"set_value":var P=e,j=P.properties,M=P.value,T=M.merge(j),A=f()(M,Object.keys(j));return e.set("value",T).set("properties",A);default:throw new Error('Unknown operation type: "'+t+'".')}}var Ce={add_mark:["value","path","offset","length","mark","data"],insert_node:["value","path","node","data"],insert_text:["value","path","offset","text","marks","data"],merge_node:["value","path","position","properties","target","data"],move_node:["value","path","newPath","data"],remove_mark:["value","path","offset","length","mark","data"],remove_node:["value","path","node","data"],remove_text:["value","path","offset","text","marks","data"],set_mark:["value","path","offset","length","mark","properties","data"],set_node:["value","path","node","properties","data"],set_selection:["value","selection","properties","data"],set_value:["value","properties","data"],split_node:["value","path","position","properties","target","data"]},Pe={length:void 0,mark:void 0,marks:void 0,newPath:void 0,node:void 0,offset:void 0,path:void 0,position:void 0,properties:void 0,selection:void 0,target:void 0,text:void 0,type:void 0,value:void 0,data:void 0},je=function(e){function t(){return O(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,e),k(t,[{key:"apply",value:function(e){return Ee(e,this)}},{key:"invert",value:function(){return xe(this)}},{key:"toJSON",value:function(){var e=this.object,t=this.type,n={object:e,type:t},r=Ce[t],o=!0,i=!1,a=void 0;try{for(var s,u=r[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var l=s.value,c=this[l];if("document"!=l&&("selection"!=l&&"value"!=l&&("node"!=l||"insert_node"==t))){if("mark"!=l&&"marks"!=l&&"node"!=l&&"path"!=l&&"newPath"!=l||(c=c.toJSON()),"properties"==l&&"merge_node"==t){var f={};"data"in c&&(f.data=c.data.toJS()),"type"in c&&(f.type=c.type),c=f}if("properties"==l&&"set_mark"==t){var d={};"data"in c&&(d.data=c.data.toJS()),"type"in c&&(d.type=c.type),c=d}if("properties"==l&&"set_node"==t){var p={};"data"in c&&(p.data=c.data.toJS()),"type"in c&&(p.type=c.type),c=p}if("properties"==l&&"set_selection"==t){var h={};"anchor"in c&&(h.anchor=c.anchor.toJSON()),"focus"in c&&(h.focus=c.focus.toJSON()),"isFocused"in c&&(h.isFocused=c.isFocused),"marks"in c&&(h.marks=c.marks&&c.marks.toJSON()),c=h}if("properties"==l&&"set_value"==t){var v={};"data"in c&&(v.data=c.data.toJS()),"decorations"in c&&(v.decorations=c.decorations.toJS()),c=v}if("properties"==l&&"split_node"==t){var m={};"data"in c&&(m.data=c.data.toJS()),"type"in c&&(m.type=c.type),c=m}"data"===l&&(c=c.toJSON()),n[l]=c}}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}return n}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isOperation(e))return e;if(o()(e))return t.fromJSON(e);throw new Error("`Operation.create` only accepts objects or operations, but you passed it: "+e)}},{key:"createList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(i.List.isList(e)||Array.isArray(e))return new i.List(e.map(t.create));throw new Error("`Operation.createList` only accepts arrays or lists, but you passed it: "+e)}},{key:"fromJSON",value:function(e){if(t.isOperation(e))return e;var n=e.type,r=Ce[n],o={type:n};if(!r)throw new Error('`Operation.fromJSON` was passed an unrecognized operation type: "'+n+'"');var a=!0,s=!1,u=void 0;try{for(var l,c=r[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var f=l.value,d=e[f];if("data"===f&&void 0===d&&(d={}),void 0===d){if("document"==f)continue;if("selection"==f)continue;if("value"==f)continue;if("node"==f&&"insert_node"!=n)continue;throw new Error('`Operation.fromJSON` was passed a "'+n+'" operation without the required "'+f+'" attribute.')}"path"!==f&&"newPath"!==f||(d=ce.create(d)),"mark"===f&&(d=R.create(d)),"marks"===f&&null!=d&&(d=R.createSet(d)),"node"===f&&(d=Z.create(d)),"selection"===f&&(d=_e.create(d)),"value"===f&&(d=Oe.create(d)),"properties"===f&&"merge_node"===n&&(d=Z.createProperties(d)),"properties"===f&&"set_mark"===n&&(d=R.createProperties(d)),"properties"===f&&"set_node"===n&&(d=Z.createProperties(d)),"properties"===f&&"set_selection"===n&&(d=_e.createProperties(d)),"properties"===f&&"set_value"===n&&(d=Oe.createProperties(d)),"properties"===f&&"split_node"===n&&(d=Z.createProperties(d)),"data"===f&&(d=Object(i.Map)(d)),o[f]=d}}catch(e){s=!0,u=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw u}}return new t(o)}},{key:"isOperationList",value:function(e){return i.List.isList(e)&&e.every(function(e){return t.isOperation(e)})}}]),t}(Object(i.Record)(Pe)),Me={operations:void 0,value:void 0},Te=function(e){function t(){return O(this,t),C(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return S(t,e),k(t,[{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{object:this.object,value:this.value.toJSON(e),operations:this.operations.toArray().map(function(t){return t.toJSON(e)})}}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.isChange(e))return e;if(o()(e))return t.fromJSON(e);throw new Error("`Change.create` only accepts objects or changes, but you passed it: "+e)}},{key:"fromJSON",value:function(e){var n=e.value,r=e.operations,o=void 0===r?[]:r;return new t({value:Oe.create(n),operations:je.createList(o)})}}]),t}(Object(i.Record)(Me));function Ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{onCommand:function(t,n,r){var o=t.type,i=t.args,a=e[o];if(!a)return r();n.command.apply(n,[a].concat(j(i)))},onConstruct:function(t,n){for(var r in e)t.registerCommand(r);return n()}}}var De=55296,Ie=57343,Ne=/\s/,Re=/['\u2018\u2019]/,Fe=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;function Le(e){return De<=e&&e<=Ie}function Be(e,t){if(Ne.test(e))return!1;if(Re.test(e)){var n=t.charAt(0),r=ze(n);if(Be(n=t.slice(0,r),t.slice(r)))return!0}return!Fe.test(e)}function ze(e){return Le(e.charCodeAt(0))?2:1}function We(e){return ze(e.charAt(0))}function Ue(e){for(var t=0,n=0,r=!1,o=void 0;o=e.charAt(n);){var i=ze(o);if(Be(o=e.slice(n,n+i),e.slice(n+i)))r=!0,t+=i;else{if(r)break;t+=i}n+=i}return t}var He={getCharLength:ze,getCharOffset:We,getCharOffsetBackward:function(e,t){return e=e.slice(0,t),We(e=Object(d.reverse)(e))},getCharOffsetForward:function(e,t){return We(e=e.slice(t))},getWordOffset:Ue,getWordOffsetBackward:function(e,t){return e=e.slice(0,t),Ue(e=Object(d.reverse)(e))},getWordOffsetForward:function(e,t){return Ue(e=e.slice(t))},isSurrogate:Le,isWord:Be};function qe(e,t){t.isExpanded&&e.deleteAtRange(t);var n=e.value.document,r=t,o=r.start,i=r.end;return t=n.hasDescendant(o.key)?t.moveToStart():t.moveTo(i.key,0).normalize(n)}var Ve={addMarkAtRange:function(e,t,n){if(!t.isCollapsed){var r=e.value.document,o=t.start,i=t.end,a=r.getTextsAtRange(t);e.withoutNormalizing(function(){a.forEach(function(t){var r=t.key,a=0,s=t.text.length;r==o.key&&(a=o.offset),r==i.key&&(s=i.offset),r==o.key&&r==i.key&&(s=i.offset-o.offset),e.addMarkByKey(r,a,s,n)})})}},addMarksAtRange:function(e,t,n){n.forEach(function(n){return e.addMarkAtRange(t,n)})},deleteAtRange:function(e,t){e.snapshotSelection();var n=e.value,r=t.start,o=t.end,i=r.key,a=r.offset,s=o.key,u=o.offset,l=n.document,c=l.hasVoidParent(i,e),f=l.hasVoidParent(s,e),d=l.getClosestBlock(i),p=l.getClosestBlock(s),h=0==a&&0==u&&0==c&&i==d.getFirstText().key&&s==p.getFirstText().key;if(h&&f){var v=l.getPreviousText(s);s=v.key,u=v.text.length,f=l.hasVoidParent(s,e)}e.withoutNormalizing(function(){for(;c;){var t=l.getClosestVoid(i,e),n=l.getNextText(i);if(e.removeNodeByKey(t.key),i==s)return;if(!n)return;l=e.value.document,i=n.key,a=0,c=l.hasVoidParent(i,e)}for(;f;){var r=l.getClosestVoid(s,e),o=l.getPreviousText(s);e.removeNodeByKey(r.key),l=e.value.document,s=o.key,u=o.text.length,f=l.hasVoidParent(s,e)}if(i==s&&h)e.removeNodeByKey(d.key);else if(i!=s){d=l.getClosestBlock(i),p=l.getClosestBlock(s);var v=l.getNode(i),m=l.getNode(s),y=v.text.length-a,g=u,b=l.getCommonAncestor(i,s),_=b.getFurthestAncestor(i),w=b.getFurthestAncestor(s),O=l.getParent(d.key),k=O.nodes.indexOf(d),E=O.nodes.indexOf(p),S=void 0;for(S=v;S.key!=_.key;){var x=l.getParent(S.key),C=x.nodes.indexOf(S);x.nodes.slice(C+1).reverse().forEach(function(t){e.removeNodeByKey(t.key)}),S=x}var P=b.nodes.indexOf(_),j=b.nodes.indexOf(w);for(b.nodes.slice(P+1,j).reverse().forEach(function(t){e.removeNodeByKey(t.key)}),S=m;S.key!=w.key;){var M=l.getParent(S.key),T=M.nodes.indexOf(S);M.nodes.slice(0,T).reverse().forEach(function(t){e.removeNodeByKey(t.key)}),S=M}if(0!=y&&e.removeTextByKey(i,a,y),0!=g&&e.removeTextByKey(s,0,u),d.key!=p.key){var A=(l=e.value.document).getFurthestOnlyChildAncestor(p.key);E!=k+1&&e.moveNodeByKey(p.key,O.key,k+1),h?e.removeNodeByKey(d.key):e.mergeNodeByKey(p.key),A&&e.removeNodeByKey(A.key)}}else{var D=a,I=u-a;e.removeTextByKey(i,D,I)}})},deleteBackwardAtRange:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){var r=e.value.document,o=t,i=o.start,a=o.focus;if(t.isExpanded)e.deleteAtRange(t);else{var s=r.getClosestVoid(i.key,e);if(s)e.removeNodeByKey(s.key);else if(!i.isAtStartOfNode(r)){var u=r.getClosestBlock(i.key);if(1!==r.nodes.size&&u&&""===u.text&&1===u.nodes.size)e.removeNodeByKey(u.key);else{var l=r.getDescendant(i.key);if(i.isAtStartOfNode(l)){var c=r.getPreviousText(l.key);r.getClosestInline(l.key)&&""===c.text&&(c=r.getPreviousText(c.key));var f=r.getClosestBlock(c.key),d=r.getClosestVoid(c.key,e);if(d)return void e.removeNodeByKey(d.key);if(1==n&&f!=u)return t=t.moveAnchorTo(c.key,c.text.length),void e.deleteAtRange(t)}if(nv;){var m=v+(p=r.getPreviousText(p.key)).text.length;if(n<=m){h=m-n;break}v=m}t=t.moveAnchorTo(p.key,h),e.deleteAtRange(t)}}}}},deleteCharBackwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,o=n.getClosestBlock(r.key),i=o.getOffset(r.key)+r.offset,a=o.text,s=He.getCharOffsetBackward(a,i);e.deleteBackwardAtRange(t,s)}},deleteCharForwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,o=n.getClosestBlock(r.key),i=o.getOffset(r.key)+r.offset,a=o.text,s=He.getCharOffsetForward(a,i);e.deleteForwardAtRange(t,s)}},deleteForwardAtRange:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){var r=e.value.document,o=t,i=o.start,a=o.focus;if(t.isExpanded)e.deleteAtRange(t);else{var s=r.getClosestVoid(i.key,e);if(s)e.removeNodeByKey(s.key);else{var u=r.getClosestBlock(i.key);if(u&&!e.isVoid(u)&&""===u.text&&1!==r.nodes.size){var l=r.getNextBlock(u.key);return e.removeNodeByKey(u.key),void(l&&l.key&&e.moveToStartOfNode(l))}if(!i.isAtEndOfNode(r)){var c=r.getDescendant(i.key);if(i.isAtEndOfNode(c)){var f=r.getNextText(c.key),d=r.getClosestBlock(f.key),p=r.getClosestVoid(f.key,e);if(p)return void e.removeNodeByKey(p.key);if(1==n&&d!=u)return t=t.moveFocusTo(f.key,0),void e.deleteAtRange(t)}if(n<=c.text.length-a.offset)return t=t.moveFocusForward(n),void e.deleteAtRange(t);for(var h=c,v=a.offset,m=c.text.length-a.offset;n>m;){var y=m+(h=r.getNextText(h.key)).text.length;if(n<=y){v=n-m;break}m=y}t=t.moveFocusTo(h.key,v),e.deleteAtRange(t)}}}}},deleteLineBackwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,o=n.getClosestBlock(r.key).getOffset(r.key)+r.offset;e.deleteBackwardAtRange(t,o)}},deleteLineForwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,o=n.getClosestBlock(r.key),i=o.getOffset(r.key)+r.offset;e.deleteForwardAtRange(t,o.text.length-i)}},deleteWordBackwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,o=n.getClosestBlock(r.key),i=o.getOffset(r.key)+r.offset,a=o.text,s=0===i?1:He.getWordOffsetBackward(a,i);e.deleteBackwardAtRange(t,s)}},deleteWordForwardAtRange:function(e,t){if(t.isExpanded)e.deleteAtRange(t);else{var n=e.value.document,r=t.start,o=n.getClosestBlock(r.key),i=o.getOffset(r.key)+r.offset,a=o.text,s=He.getWordOffsetForward(a,i),u=0===s?1:s;e.deleteForwardAtRange(t,u)}},insertBlockAtRange:function(e,t,n){t=qe(e,t),n=Q.create(n);var r=e.value.document,o=t.start,i=o.key,a=o.offset,s=r.getClosestBlock(i),u=r.getClosestInline(i),l=r.getParent(s.key),c=l.nodes.indexOf(s);if(e.isVoid(s)){var f=o.isAtEndOfNode(s)?1:0;e.insertNodeByKey(l.key,c+f,n)}else if(u||""!==s.text)if(o.isAtStartOfNode(s))e.insertNodeByKey(l.key,c,n);else if(o.isAtEndOfNode(s))e.insertNodeByKey(l.key,c+1,n);else{if(u&&e.isVoid(u)){var d=o.isAtEndOfNode(u),p=d?r.getNextText(i):r.getPreviousText(i),h=d?t.moveToStartOfNode(p):t.moveToEndOfNode(p);i=h.start.key,a=h.start.offset}e.withoutNormalizing(function(){e.splitDescendantsByKey(s.key,i,a),e.insertNodeByKey(l.key,c+1,n)})}else e.insertNodeByKey(l.key,c+1,n)},insertFragmentAtRange:function(e,t,n){e.withoutNormalizing(function(){if(t=qe(e,t),n.nodes.size){n=n.mapDescendants(function(e){return e.regenerateKey()});var r=t.start,o=e.value.document,a=o.getDescendant(r.key),s=o.getClosestBlock(a.key),u=s.getFurthestAncestor(a.key),l=r.isAtStartOfNode(s),c=o.getParent(s.key),f=c.nodes.indexOf(s),d=n.getBlocks(),p=n.nodes.first(),h=n.nodes.last(),v=d.first(),m=d.last(),y=Ye(n,o,s.key);if(v===m&&e.isVoid(v))e.insertBlockAtRange(t,v);else if(y!==n||!p.hasBlockChildren()&&!h.hasBlockChildren()){if(v!=m){var g=y.getFurthest(v.key,function(e){return 1==e.nodes.size})||v,b=c.nodes.indexOf(s);y.removeNode(g.key).nodes.forEach(function(t,n){var r=b+n+1;e.insertNodeByKey(c.key,r,t)})}if(0!=r.offset&&e.splitDescendantsByKey(u.key,r.key,r.offset),a=(o=e.value.document).getDescendant(r.key),u=(s=o.getClosestBlock(r.key)).getFurthestAncestor(a.key),v!=m){var _=l?u:s.getNextSibling(u.key),w=_?s.nodes.skipUntil(function(e){return e.key==_.key}):Object(i.List)(),O=m.nodes.size;w.forEach(function(t,n){var r=O+n;e.moveNodeByKey(t.key,m.key,r)})}if(e.isVoid(s)||""!==s.text){var k=s.getFurthestAncestor(a.key),E=s.nodes.indexOf(k);v.nodes.forEach(function(t,n){var o=0==r.offset?0:1,i=E+n+o;e.insertNodeByKey(s.key,i,t)})}else e.removeNodeByKey(s.key),e.insertNodeByKey(c.key,f,v)}else n.nodes.reverse().forEach(function(n){e.insertBlockAtRange(t,n)})}})}},Ye=function(e,t,n){var r=function(e){if(e&&"text"!==e.object)return 1===e.nodes.size},o=function(e){return e&&e.nodes.first()},i=e;if(r(e)){var a=o(e),s=t.getFurthest(n,function(e){return e.type===a.type});for(s===t.getParent(n)&&(i=a);r(a)&&r(s)&&(a=o(a),s=o(s),a.type===s.type);)i=a}return i};Ve.insertInlineAtRange=function(e,t,n){n=I.create(n),e.withoutNormalizing(function(){t=qe(e,t);var r=e.value.document,o=t.start,i=r.getParent(o.key),a=r.assertDescendant(o.key),s=i.nodes.indexOf(a);e.isVoid(i)||(e.splitNodeByKey(o.key,o.offset),e.insertNodeByKey(i.key,s+1,n))})},Ve.insertTextAtRange=function(e,t,n,r){t=qe(e,t);var o=e.value.document,i=t.start,a=i.offset,s=o.getParent(i.key);e.isVoid(s)||e.insertTextByKey(i.key,a,n,r)},Ve.removeMarkAtRange=function(e,t,n){if(!t.isCollapsed){var r=e.value.document.getTextsAtRange(t),o=t.start,i=t.end;e.withoutNormalizing(function(){r.forEach(function(t){var r=t.key,a=0,s=t.text.length;r==o.key&&(a=o.offset),r==i.key&&(s=i.offset),r==o.key&&r==i.key&&(s=i.offset-o.offset),e.removeMarkByKey(r,a,s,n)})})}},Ve.setBlocksAtRange=function(e,t,n){var r=e.value.document,o=r.getLeafBlocksAtRange(t),i=t.start,a=t.end,s=t.isCollapsed,u=r.hasVoidParent(i.key,e),l=r.getClosestBlock(i.key),c=r.getClosestBlock(a.key),f=0==s&&0==i.offset&&0==a.offset&&0==u&&i.key==l.getFirstText().key&&a.key==c.getFirstText().key?o.slice(0,-1):o;e.withoutNormalizing(function(){f.forEach(function(t){e.setNodeByKey(t.key,n)})})},Ve.setInlinesAtRange=function(e,t,n){var r=e.value.document.getLeafInlinesAtRange(t);e.withoutNormalizing(function(){r.forEach(function(t){e.setNodeByKey(t.key,n)})})},Ve.splitBlockAtRange=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=t=qe(e,t),o=r.start,i=r.end,a=e.value,s=a.document,u=s.assertDescendant(o.key),l=s.getClosestBlock(u.key),c=0;l&&"block"==l.object&&c2&&void 0!==arguments[2]?arguments[2]:1/0,r=(t=qe(e,t)).start,o=e.value.document,i=o.assertDescendant(r.key),a=o.getClosestInline(i.key),s=0;a&&"inline"==a.object&&s3&&void 0!==arguments[3]?arguments[3]:n,o=t.start,i=t.end,a=t.moveToStart(),s=t.moveToEnd();o.key==i.key&&(s=s.moveForward(n.length)),e.withoutNormalizing(function(){e.insertTextAtRange(a,n,[]),e.insertTextAtRange(s,r,[])})};var Ge={addMarkByPath:function(e,t,n,r,o){o=R.create(o);var i=e.value,a=i.document.assertNode(t).getLeaves(),s=[],u=n,l=n+r,c=0;a.forEach(function(e){var n=c,r=n+e.text.length;if(c+=e.text.length,!(rn))||(u=!0,!1)))});u&&e.setDecorations(c),e.applyOperation({type:"insert_text",value:i,path:t,offset:n,text:r,marks:o})},mergeNodeByPath:function(e,t){var n=e.value,r=n.document,o=r.getDescendant(t),i=r.getPreviousSibling(t);if(!i)throw new Error('Unable to merge node with path "'+t+'", because it has no previous sibling.');var a="text"==i.object?i.text.length:i.nodes.size;e.applyOperation({type:"merge_node",value:n,path:t,position:a,properties:{type:o.type,data:o.data},target:null})},moveNodeByPath:function(e,t,n,r){var o=e.value;if(ce.isEqual(t,n))return e;var i=n.concat(r);if(ce.isEqual(t,i))return e;e.applyOperation({type:"move_node",value:o,path:t,newPath:i})},removeMarkByPath:function(e,t,n,r,o){o=R.create(o);var i=e.value,a=i.document.assertNode(t).getLeaves(),s=[],u=n,l=n+r,c=0;a.forEach(function(e){var n=c,r=n+e.text.length;if(c+=e.text.length,!(rf)?(l=!0,!1):!(n.offsetd))||(l=!0,null)))});l&&e.setDecorations(p);var h=[],v=n,m=n+r,y=0;s.forEach(function(e){var n=y,r=n+e.text.length;if(y+=e.text.length,!(rs.text.length&&(r=s.text.length-n);var u=a.createRange({anchor:{path:t,offset:n},focus:{path:t,offset:n+r}}),l=a.getActiveMarksAtRange(u);e.withoutNormalizing(function(){e.removeTextByPath(t,n,r),i?l&&(l=l.filter(function(e){return!i.find(function(t){return e.type===t.type})}),i=l.merge(i)):i=l||[],e.insertTextByPath(t,n,o,i)})},setMarkByPath:function(e,t,n,r,o,i){o=R.create(o),i=R.createProperties(i);var a=e.value;e.applyOperation({type:"set_mark",value:a,path:t,offset:n,length:r,mark:o,properties:i})},setNodeByPath:function(e,t,n){n=Z.createProperties(n);var r=e.value,o=r.document.assertNode(t);e.applyOperation({type:"set_node",value:r,path:t,node:o,properties:n})},setTextByPath:function(e,t,n,r){var o=e.value.document.assertNode(t).text.length;e.replaceTextByPath(t,0,o,n,r)},splitNodeByPath:function(e,t,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).target,o=void 0===r?null:r,i=e.value,a=i.document.getDescendant(t);e.applyOperation({type:"split_node",value:i,path:t,position:n,target:o,properties:{type:a.type,data:a.data}})},splitDescendantsByPath:function(e,t,n,r){if(t.equals(n))e.splitNodeByPath(n,r);else{var o=e.value.document,i=o.assertNode(t),a=o.assertNode(n),s=o.getAncestors(n).skipUntil(function(e){return e.key==i.key}).reverse().unshift(a),u=void 0,l=void 0;e.withoutNormalizing(function(){s.forEach(function(t){var n=null==l?null:l;l=u?t.nodes.indexOf(u)+1:r,u=t,e.splitNodeByKey(t.key,l,{target:n})})})}},unwrapInlineByPath:function(e,t,n){var r=e.value,o=r.document,i=r.selection,a=o.assertNode(t),s=a.getFirstText(),u=a.getLastText(),l=i.moveToRangeOfNode(s,u);e.unwrapInlineAtRange(l,n)},unwrapBlockByPath:function(e,t,n){var r=e.value,o=r.document,i=r.selection,a=o.assertNode(t),s=a.getFirstText(),u=a.getLastText(),l=i.moveToRangeOfNode(s,u);e.unwrapBlockAtRange(l,n)},unwrapNodeByPath:function(e,t){var n=e.value.document;n.assertNode(t);var r=ce.lift(t),o=n.assertNode(r),i=t.last(),a=r.last(),s=ce.lift(r),u=0===i,l=i===o.nodes.size-1;e.withoutNormalizing(function(){if(1===o.nodes.size)e.moveNodeByPath(t,s,a+1),e.removeNodeByPath(r);else if(u)e.moveNodeByPath(t,s,a);else if(l)e.moveNodeByPath(t,s,a+1);else{var n=ce.increment(t,1,r.size-1);n=n.set(n.size-1,0),e.splitNodeByPath(r,i),e.moveNodeByPath(n,s,a+1)}})},unwrapChildrenByPath:function(e,t){t=ce.create(t);var n=e.value.document.assertNode(t),r=ce.lift(t),o=t.last(),i=n.nodes;e.withoutNormalizing(function(){i.reverse().forEach(function(n,a){var s=i.size-a-1,u=t.push(s);e.moveNodeByPath(u,r,o+1)}),e.removeNodeByPath(t)})},wrapBlockByPath:function(e,t,n){n=(n=Q.create(n)).set("nodes",n.nodes.clear());var r=ce.lift(t),o=t.last(),i=ce.increment(t);e.withoutNormalizing(function(){e.insertNodeByPath(r,o,n),e.moveNodeByPath(i,t,0)})},wrapInlineByPath:function(e,t,n){n=(n=I.create(n)).set("nodes",n.nodes.clear());var r=ce.lift(t),o=t.last(),i=ce.increment(t);e.withoutNormalizing(function(){e.insertNodeByPath(r,o,n),e.moveNodeByPath(i,t,0)})},wrapNodeByPath:function(e,t,n){"block"===(n=Z.create(n)).object?e.wrapBlockByPath(t,n):"inline"===n.object&&e.wrapInlineByPath(t,n)}},Ke=function(e){Ge[e+"ByKey"]=function(t,n){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i3?r-3:0),i=3;i3?r-3:0),i=3;i100&&(c=c.takeLast(100)),e.withoutSaving(function(){var t=Object(i.List)(),n=r.set("undos",c).set("redos",t);e.setData(n)})}},et.redo=function(e){var t=e.value.data,n=t.get("redos")||Object(i.List)(),r=t.get("undos")||Object(i.List)(),o=n.last();o&&e.withoutSaving(function(){e.withoutNormalizing(function(){o.forEach(function(t){var n=t,r=n.type,o=n.properties;"set_selection"===r&&(t=t.set("properties",h()(o,"isFocused"))),e.applyOperation(t)}),n=n.pop(),r=r.push(o);var i=t.set("undos",r).set("redos",n);e.setData(i)})})},et.undo=function(e){var t=e.value.data,n=t.get("redos")||Object(i.List)(),r=t.get("undos")||Object(i.List)(),o=r.last();o&&e.withoutSaving(function(){e.withoutNormalizing(function(){o.slice().reverse().map(function(e){return e.invert()}).forEach(function(t){var n=t,r=n.type,o=n.properties;"set_selection"===r&&(t=t.set("properties",h()(o,"isFocused"))),e.applyOperation(t)}),n=n.push(o),r=r.pop();var i=t.set("undos",r).set("redos",n);e.setData(i)})})},et.withoutMerging=function(e,t){var n=e.tmp.merge;e.tmp.merge=!1,t(e),e.tmp.merge=n},et.withoutSaving=function(e,t){var n=e.tmp.save;e.tmp.save=!1,t(e),e.tmp.save=n};var tt={};function nt(e,t){for(var n,r=arguments.length,o=Array(r>2?r-2:0),i=2;i2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){if(n<0)return at(e,t,-n);var r=t.slice(0,1).toUpperCase()+t.slice(1),o=e.value,i=o.document,a=o.selection,s=a[t],u=i.hasVoidParent(s.path,e);if(!u&&s.offset-n>=0){var l=a["move"+r+"Backward"](n);e.select(l)}else{var c=i.getPreviousText(s.path);if(c){var f=i.getClosestBlock(s.path).hasNode(c.key),d=c&&i.hasVoidParent(c.key,e);if(e["move"+r+"ToEndOfNode"](c),!u&&!d&&f){var p=e.value.selection["move"+r+"Backward"](n);e.select(p)}}}}}function at(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(0!==n){if(n<0)return it(e,t,-n);var r=t.slice(0,1).toUpperCase()+t.slice(1),o=e.value,i=o.document,a=o.selection,s=a[t],u=i.getNode(s.path),l=i.hasVoidParent(s.path,e);if(!l&&s.offset+n<=u.text.length){var c=a["move"+r+"Forward"](n);e.select(c)}else{var f=i.getNextText(s.path);if(f){var d=i.getClosestBlock(s.path).hasNode(f.key),p=i.hasVoidParent(f.key,e);if(e["move"+r+"ToStartOfNode"](f),!l&&!p&&d){var h=e.value.selection["move"+r+"Forward"](n);e.select(h)}}}}}function st(e,t){var n=e.value,r=n.document,o=n.selection[t],i=r.getClosestBlock(o.key),a=i.getOffset(o.key)+o.offset,s=i.text,u=He.getWordOffsetBackward(s,a);e.command(it,t,u>0?u:1)}function ut(e,t){var n=e.value,r=n.document,o=n.selection[t],i=r.getClosestBlock(o.key),a=i.getOffset(o.key)+o.offset,s=i.text,u=He.getWordOffsetForward(s,a);e.command(at,t,u>0?u:1)}tt.blur=function(e){e.select({isFocused:!1})},tt.deselect=function(e){var t=_e.create();e.select(t)},tt.focus=function(e){e.select({isFocused:!0})},tt.flip=function(e){e.command(nt,"flip")},tt.moveAnchorBackward=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?n-1:0),o=1;o1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?n-1:0),o=1;o1?n-1:0),o=1;o1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:{};t=_e.createProperties(t);var r=n.snapshot,o=void 0!==r&&r,a=e.value,s=a.document,u=a.selection,l={},c=u.setProperties(t);for(var d in c=s.resolveSelection(c),t=f()(c,Object.keys(t)))!0!==o&&Object(i.is)(t[d],u[d])||(l[d]=t[d]);u.marks&&!l.marks&&(l.anchor||l.focus)&&(l.marks=null),0!==Object.keys(l).length&&e.applyOperation({type:"set_selection",value:a,properties:l,selection:u.toJSON()},o?{skip:!1,merge:!1}:{})},tt.setAnchor=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};return{onConstruct:function(t,n){for(var r in e)t.registerQuery(r);return n()},onQuery:function(t,n,r){var o=t.type,i=t.args,a=e[o];if(!a)return r();var s=a.apply(void 0,[n].concat(j(i)));return void 0===s?r():s}}}lt.setData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Oe.createProperties({data:t}),r=e.value;e.applyOperation({type:"set_value",properties:n,value:r})},lt.setDecorations=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Oe.createProperties({decorations:t}),r=e.value;e.applyOperation({type:"set_value",properties:n,value:r})};var ft=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};O(this,t);var r=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));for(var o in r.code=e,n)r[o]=n[o];return Error.captureStackTrace?Error.captureStackTrace(r,r.constructor):r.stack=(new Error).stack,r}return S(t,e),t}(Error);function dt(e){var t=e.rules,n=e.document,r=e.blocks,o=e.inlines,i=e.marks,a=[];if(t&&(a=a.concat(t)),n&&a.push(E({match:[{object:"document"}]},n)),r)for(var s in r)a.push(E({match:[{object:"block",type:s}]},r[s]));if(o)for(var u in o)a.push(E({match:[{object:"inline",type:u}]},o[u]));if(i)for(var l in i)a.push(E({match:[{object:"mark",type:l}]},i[l]));function c(e,t,n){var r=a.filter(function(t){return pt(e,t.match)}),o=ht(e,r,a,{every:!0});return o?new ft(o.code,o):n()}return[{normalizeNode:function(e,t,n){var r=c(e,0,function(){});return r?function(){var e=r.rule,n=t.operations.size;e.normalize&&e.normalize(t,r),t.operations.size===n&&function(e,t){var n=t.code,r=t.node,o=t.child,i=t.next,a=t.previous,s=t.key,u=t.mark;switch(n){case"child_max_invalid":case"child_object_invalid":case"child_type_invalid":case"child_unknown":case"first_child_object_invalid":case"first_child_type_invalid":case"last_child_object_invalid":case"last_child_type_invalid":return"text"===o.object&&"block"===r.object&&1===r.nodes.size?e.removeNodeByKey(r.key):e.removeNodeByKey(o.key);case"previous_sibling_object_invalid":case"previous_sibling_type_invalid":return"text"===a.object&&"block"===r.object&&1===r.nodes.size?e.removeNodeByKey(r.key):e.removeNodeByKey(a.key);case"next_sibling_object_invalid":case"next_sibling_type_invalid":return"text"===i.object&&"block"===r.object&&1===r.nodes.size?e.removeNodeByKey(r.key):e.removeNodeByKey(i.key);case"child_min_invalid":case"node_text_invalid":case"parent_object_invalid":case"parent_type_invalid":return"document"===r.object?r.nodes.forEach(function(t){return e.removeNodeByKey(t.key)}):e.removeNodeByKey(r.key);case"node_data_invalid":return void 0===r.data.get(s)&&"document"!==r.object?e.removeNodeByKey(r.key):e.setNodeByKey(r.key,{data:r.data.delete(s)});case"node_mark_invalid":return r.getTexts().forEach(function(t){return e.removeMarkByKey(t.key,0,t.text.length,u)});default:e.removeNodeByKey(r.key)}}(t,r)}:n()},validateNode:c},ct({isAtomic:function(e,t){var n=a.find(function(e){return"isAtomic"in e&&pt(t,e.match)});return n&&n.isAtomic},isVoid:function(e,t){var n=a.find(function(e){return"isVoid"in e&&pt(t,e.match)});return n&&n.isVoid}})]}function pt(e,t){return!ht(e,t)}function ht(e,t,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).every,o=void 0!==r&&r;if(Array.isArray(t)){var i=t.length?t:[{}],a=void 0,s=!0,u=!1,l=void 0;try{for(var c,f=i[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var d=ht(e,c.value,n);if(a=a||d,o&&d)return d;if(!o&&!d)return}}catch(e){u=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw l}}return a}return function(e,t){if(null==t.object)return;if(t.object===e.object)return;if("function"==typeof t.object&&t.object(e.object))return;return gt("node_object_invalid",{rule:t,node:e})}(e,t)||function(e,t){if(null==t.type)return;if(t.type===e.type)return;if("function"==typeof t.type&&t.type(e.type))return;return gt("node_type_invalid",{rule:t,node:e})}(e,t)||function(e,t){if(null==t.data)return;if(null==e.data)return;if("function"==typeof t.data){if(t.data(e.data))return;return gt("node_data_invalid",{rule:t,node:e})}for(var n in t.data){var r=t.data[n],o=e.data&&e.data.get(n),i="function"==typeof r?r(o):r===o;if(!i)return gt("node_data_invalid",{rule:t,node:e,key:n,value:o})}}(e,t)||function(e,t){if(null==t.marks)return;var n=e.getMarks().toArray(),r=function(n){var r=t.marks.some(function(e){return"function"==typeof e.type?e.type(n.type):e.type===n.type});return r?"continue":{v:gt("node_mark_invalid",{rule:t,node:e,mark:n})}},o=!0,i=!1,a=void 0;try{for(var s,u=n[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var l=s.value,c=r(l);switch(c){case"continue":continue;default:if("object"===(void 0===c?"undefined":w(c)))return c.v}}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}}(e,t)||function(e,t){if(null==t.text)return;var n=e.text;if("function"==typeof t.text?t.text(n):t.text.test(n))return;return gt("node_text_invalid",{rule:t,node:e,text:n})}(e,t)||function(e,t){if(null==t.first)return;var n=e.nodes.first();if(!n)return;var r=ht(n,t.first);if(!r)return;return r.rule=t,r.node=e,r.child=n,r.code=r.code.replace("node_","first_child_"),r}(e,t)||function(e,t){if(null==t.last)return;var n=e.nodes.last();if(!n)return;var r=ht(n,t.last);if(!r)return;return r.rule=t,r.node=e,r.child=n,r.code=r.code.replace("node_","last_child_"),r}(e,t)||function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(null==e.nodes)return;var r=e.nodes,o=null!=t.nodes?t.nodes.slice():[],i=0,a=0,s=null,u=-1,l=null,c=null,f=null,d=null,p=null;function h(){return 0!==o.length&&(l=o.shift(),a=i,i=0,s=l.min||null,c=l.max||null,!0)}function v(){return d=(u+=1)?r.get(u-1):null,f=r.get(u),p=r.get(u+1),!!f&&(a=i,i+=1,!0)}function m(){u>0&&(u-=1,i=a)}null!=t.nodes&&h();for(;v();){var y=vt(e,f,n)||mt(e,f,d,u,n)||yt(e,f,p,u,n);if(y)return y;if(null!=t.nodes){if(!l)return gt("child_unknown",{rule:t,node:e,child:f,index:u});if(l.match){var g=ht(f,l.match);if(g){if(null!=c&&i-1>c)return m(),gt("child_max_invalid",{rule:t,node:e,index:u,child:r.get(u),count:i,limit:c});var b=s;if(h()){if(a-1>=b){u-=1;continue}return null==ht(f,l.match)?(m(),gt("child_min_invalid",{rule:t,node:e,index:u,count:a-1,limit:b})):(g.rule=t,g.node=e,g.child=f,g.index=u,g.code=g.code.replace("node_","child_"),g)}return null!=c&&i>c?gt("child_unknown",{rule:t,node:e,child:f,index:u}):(g.rule=t,g.node=e,g.child=f,g.index=u,g.code=g.code.replace("node_","child_"),g)}}}}if(null!=c&&i>c)return gt("child_max_invalid",{rule:t,node:e,index:u-1,count:i,child:r.get(u-1),limit:c});if(null!=t.nodes)do{if(i1&&void 0!==arguments[1]?arguments[1]:1,n=e.value.selection;n.isExpanded?e.delete():e.deleteBackwardAtRange(n,t)},_t.deleteCharBackward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteCharBackwardAtRange(t)},_t.deleteLineBackward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteLineBackwardAtRange(t)},_t.deleteWordBackward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteWordBackwardAtRange(t)},_t.deleteForward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.value.selection;n.isExpanded?e.delete():e.deleteForwardAtRange(n,t)},_t.deleteCharForward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteCharForwardAtRange(t)},_t.deleteLineForward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteLineForwardAtRange(t)},_t.deleteWordForward=function(e){var t=e.value.selection;t.isExpanded?e.delete():e.deleteWordForwardAtRange(t)},_t.insertBlock=function(e,t){bt(e),t=Q.create(t);var n=e.value.selection;e.insertBlockAtRange(n,t);var r=e.value.document.getNode(t.key);r&&e.moveToEndOfNode(r)},_t.insertFragment=function(e,t){if(t.nodes.size){bt(e);var n=e.value,r=n,o=r.document,i=r.selection,a=i.start,s=i.end,u=n,l=u.startText,c=u.endText,f=u.startInline,d=t.getLastText(),p=t.getClosestInline(d.key),h=t.getClosestBlock(d.key),v=t.nodes.first(),m=t.nodes.last(),y=o.getTexts().map(function(e){return e.key}),g=!f||a.isAtStartOfNode(l)||s.isAtStartOfNode(l)||a.isAtEndOfNode(c)||s.isAtEndOfNode(c),b=v.hasBlockChildren()||m.hasBlockChildren();e.insertFragmentAtRange(i,t);var _=(o=(n=e.value).document).getTexts().filter(function(e){return!y.includes(e.key)}),w=g?_.last():_.takeLast(2).first();w&&(p||b)?e.moveToEndOfNode(w):w&&e.moveToStartOfNode(w).moveForward(h.text.length)}},_t.insertInline=function(e,t){bt(e),t=I.create(t);var n=e.value.selection;e.insertInlineAtRange(n,t);var r=e.value.document.getNode(t.key);r&&e.moveToEndOfNode(r)},_t.insertText=function(e,t,n){bt(e);var r=e.value,o=r.document,i=r.selection;n=n||i.marks||o.getInsertMarksAtRange(i),e.insertTextAtRange(i,t,n),i.marks&&o!=e.value.document&&e.select({marks:null})},_t.removeMark=function(e,t){t=R.create(t);var n=e.value,r=n.document,o=n.selection;if(o.isExpanded)e.removeMarkAtRange(o,t);else if(o.marks){var i=o.marks.remove(t),a=o.set("marks",i);e.select(a)}else{var s=r.getActiveMarksAtRange(o).remove(t),u=o.set("marks",s);e.select(u)}},_t.replaceMark=function(e,t,n){e.removeMark(t),e.addMark(n)},_t.setBlocks=function(e,t){var n=e.value.selection;e.setBlocksAtRange(n,t)},_t.setInlines=function(e,t){var n=e.value.selection;e.setInlinesAtRange(n,t)},_t.splitBlock=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;bt(e);var n=e.value,r=n.selection,o=n.document,i=r.marks||o.getInsertMarksAtRange(r);e.splitBlockAtRange(r,t).moveToEnd(),i&&0!==i.size&&e.select({marks:i})},_t.splitInline=function(e,t){bt(e);var n=e.value.selection;e.splitInlineAtRange(n,t)},_t.toggleMark=function(e,t){t=R.create(t),e.value.activeMarks.has(t)?e.removeMark(t):e.addMark(t)},_t.unwrapBlock=function(e,t){var n=e.value.selection;e.unwrapBlockAtRange(n,t)},_t.unwrapInline=function(e,t){var n=e.value.selection;e.unwrapInlineAtRange(n,t)},_t.wrapBlock=function(e,t){var n=e.value.selection;e.wrapBlockAtRange(n,t)},_t.wrapInline=function(e,t){var n=e.value.selection;e.wrapInlineAtRange(n,t)},_t.wrapText=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e.value.selection;e.wrapTextAtRange(r,t,n),r.isCollapsed&&e.moveStartBackward(t.length),e.moveEndBackward(n.length),r.isForward!=e.value.selection.isForward&&e.flip()};var wt=l()("slate:editor"),Ot=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};O(this,e);var r=n.controller,o=void 0===r?this:r,a=n.construct,s=void 0===a||a,u=t.onChange,l=void 0===u?function(){}:u,c=t.plugins,f=void 0===c?[]:c,d=t.readOnly,p=void 0!==d&&d,h=t.value,v=void 0===h?Oe.create():h;this.controller=o,this.middleware={},this.onChange=l,this.operations=Object(i.List)(),this.readOnly=null,this.value=null,this.tmp={dirty:[],flushing:!1,merge:null,normalize:!0,save:!0},function e(t,n){if(Array.isArray(n))return void n.forEach(function(n){return e(t,n)});var r=n.commands,o=n.queries,i=n.schema,a=x(n,["commands","queries","schema"]);if(r){var s=Ae(r);e(t,s)}if(o){var u=ct(o);e(t,u)}if(i){var l=dt(i);e(t,l)}for(var c in a){var f=a[c],d=t.middleware[c]=t.middleware[c]||[];d.push(f)}}(this,function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).plugins,t=void 0===e?[]:e,n=Ae(E({},Ve,Ge,et,tt,lt,_t)),r=ct({isAtomic:function(){return!1},isVoid:function(){return!1}});return[dt({rules:[{match:{object:"document"},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:{object:"block"}},nodes:[{match:{object:"block"}}]},{match:{object:"block",first:[{object:"inline"},{object:"text"}]},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:{object:"inline"},nodes:[{match:[{object:"inline"},{object:"text"}]}]},{match:[{object:"block"},{object:"inline"}],nodes:[{min:1}],normalize:function(e,t){var n=t.code,r=t.node;"child_min_invalid"===n&&r.nodes.isEmpty()&&e.insertNodeByKey(r.key,0,$.create())}},{match:{object:"block"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],normalize:function(e,t){var n=t.code,r=t.node,o=$.create(),i=void 0;if("first_child_object_invalid"===n)i=0;else{if("last_child_object_invalid"!==n)return;i=r.nodes.size}e.insertNodeByKey(r.key,i,o)}},{match:{object:"inline"},first:[{object:"block"},{object:"text"}],last:[{object:"block"},{object:"text"}],previous:[{object:"block"},{object:"text"}],next:[{object:"block"},{object:"text"}],normalize:function(e,t){var n=t.code,r=t.node,o=t.index,i=$.create(),a=void 0;if("first_child_object_invalid"===n)a=0;else if("last_child_object_invalid"===n)a=r.nodes.size;else if("previous_sibling_object_invalid"===n)a=o;else{if("next_sibling_object_invalid"!==n)return;a=o+1}e.insertNodeByKey(r.key,a,i)}},{match:{object:"text"},next:[{object:"block"},{object:"inline"}],normalize:function(e,t){var n=t.code,r=t.next;"next_sibling_object_invalid"===n&&e.mergeNodeByKey(r.key)}}]})].concat(j(t),[n,r])}({plugins:f})),s&&(this.run("onConstruct"),this.setReadOnly(p),this.setValue(v,n))}return k(e,[{key:"applyOperation",value:function(e){var t=this,n=this.operations,r=this.controller,i=this.value;o()(e)&&(e=E({},e,{value:i})),e=je.create(e),this.withoutNormalizing(function(){r.save(e),i=t.value}),wt("apply",{operation:e}),this.value=e.apply(i),this.operations=n.push(e);var a=function(e){var t=e.type,n=e.node,r=e.path,o=e.newPath;switch(t){case"add_mark":case"insert_text":case"remove_mark":case"remove_text":case"set_mark":case"set_node":var i=ce.getAncestors(r).toArray();return[].concat(j(i),[r]);case"insert_node":var a=n.getKeysToPathsTable(),s=Object.values(a).map(function(e){return r.concat(e)}),u=ce.getAncestors(r).toArray();return[].concat(j(u),[r],j(s));case"split_node":var l=ce.getAncestors(r).toArray(),c=ce.increment(r);return[].concat(j(l),[r,c]);case"merge_node":var f=ce.getAncestors(r).toArray(),d=ce.decrement(r);return[].concat(j(f),[d]);case"move_node":var p=ce.lift(r),h=ce.lift(o);if(ce.isEqual(r,o))return[];ce.isSibling(r,o)||(h.size&&ce.isYounger(r,o)&&(h=ce.decrement(h,1,r.size-1)),p.size&&ce.isYounger(o,r)&&(p=ce.increment(p,1,o.size-1)));var v=ce.getAncestors(p).toArray(),m=ce.getAncestors(h).toArray();return[].concat(j(v),[p],j(m),[h]);case"remove_node":var y=ce.getAncestors(r).toArray();return[].concat(j(y));default:return[]}}(e),s=this.tmp.dirty.reduce(function(t,n){n=ce.create(n);var r=ce.transform(n,e);return t=t.concat(r.toArray())},a);return this.tmp.dirty=s,this.tmp.flushing||(this.tmp.flushing=!0,Promise.resolve().then(function(){return t.flush()})),r}},{key:"flush",value:function(){this.run("onChange");var e=this.value,t=this.operations,n=this.controller,r={value:e,operations:t};return this.operations=Object(i.List)(),this.tmp.flushing=!1,this.onChange(r),n}},{key:"command",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{}).normalize,n=void 0===t?e!==this.value:t;return this.value=e,n&&this.normalize(),this}},{key:"withoutNormalizing",value:function(e){var t=this.controller,n=this.tmp.normalize;return this.tmp.normalize=!1,e(t),this.tmp.normalize=n,kt(this),t}},{key:"change",value:function(e){Object(a.a)(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so the `editor.change()` method is deprecated.`");for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)(!1,"As of slate@0.41 the `change.getFlag` method has been deprecated."),void 0!==t[e]?t[e]:this.tmp[e]}},{key:"unsetOperationFlag",value:function(e){return Object(a.a)(!1,"As of slate@0.41 the `change.unsetOperationFlag` method has been deprecated."),delete this.tmp[e],this}},{key:"withoutNormalization",value:function(e){return Object(a.a)(!1,"As of slate@0.41 the `change.withoutNormalization` helper has been renamed to `change.withoutNormalizing`."),this.withoutNormalizing(e)}},{key:"editor",get:function(){return Object(a.a)(!1,"As of Slate 0.43 the `change` object has been replaced with `editor`, so you don't need to access `change.editor`."),this.controller}}]),e}();function kt(e){e.tmp.normalize&&e.tmp.dirty.length&&e.withoutNormalizing(function(){for(;e.tmp.dirty.length;){var t=e.tmp.dirty.pop();Et(e,t)}})}function Et(e,t){for(var n=e.controller,r=e.value,o=r.document,i=o.assertNode(t),a=0,s=100+("text"===i.object?1:i.nodes.size);i;){var u=i.normalize(n);if(!u)break;u(n),o=(r=e.value).document;var l=i.key,c=o.getDescendant(t);if(c&&c.key===l)i=c;else{if(!(c=o.getDescendant(l)))break;i=c,t=o.getPath(l)}if(++a>s)throw new Error("A schema rule could not be normalized after sufficient iterations. This is usually due to a `rule.normalize` or `plugin.normalizeNode` function of a schema being incorrectly written, causing an infinite loop.")}}function St(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=!0,l=!1,c=void 0;try{for(var f,d=Object.getOwnPropertyNames(e)[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var p=f.value;if(!s.hasOwnProperty(p)){var h=Object.getOwnPropertyDescriptor(e,p);Object.defineProperty(s,p,h)}}}catch(e){l=!0,c=e}finally{try{!u&&d.return&&d.return()}finally{if(l)throw c}}var v=!0,m=!1,y=void 0;try{for(var g,b=Object.getOwnPropertyNames(e.prototype)[Symbol.iterator]();!(v=(g=b.next()).done);v=!0){var _=g.value;if(!s.prototype.hasOwnProperty(_)){h=Object.getOwnPropertyDescriptor(e.prototype,_);Object.defineProperty(s.prototype,_,h)}}}catch(e){m=!0,y=e}finally{try{!v&&b.return&&b.return()}finally{if(m)throw y}}}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}}Object.entries({Block:Q,Change:Te,Decoration:he,Document:A,Editor:Ot,Inline:I,Leaf:L,Mark:R,Node:Z,Operation:je,Point:de,Range:ge,Selection:_e,Text:$,Value:Oe}).forEach(function(e){var t,n,r,o,i=P(e,2),a=i[0],s=i[1];return St((t=a.toLowerCase(),n=ve[t],r="is"+t.charAt(0).toUpperCase()+t.slice(1),(o=function(){function e(){O(this,e)}return k(e,[{key:"object",get:function(){return t}}]),e}())[r]=me.bind(null,t),o.prototype[n]=!0,o),[s])}),St(function(){function e(){O(this,e)}return k(e,[{key:"toJS",value:function(){return this.toJSON.apply(this,arguments)}}],[{key:"fromJS",value:function(){return this.fromJSON.apply(this,arguments)}}]),e}(),[Q,he,A,I,L,R,Z,je,de,ge,_e,$,Oe]);var xt=function(){function e(){O(this,e)}return k(e,[{key:"getFirstText",value:function(){if("text"===this.object)return this;var e=null,t=this.nodes.find(function(t){return"text"===t.object||!!(e=t.getFirstText())});return e||t}},{key:"getKeysToPathsTable",value:function(){var e,t,n,r=(e={},t=this.key,n=[],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e);return this.nodes&&this.nodes.forEach(function(e,t){var n=e.getKeysToPathsTable();for(var o in n){var i=n[o];Object(a.a)(!(o in r),'A node with a duplicate key of "'+o+'" was found! Duplicate keys are not allowed, you should use `node.regenerateKey` before inserting if you are reusing an existing node.'),r[o]=[t].concat(j(i))}}),r}},{key:"getLastText",value:function(){if("text"===this.object)return this;var e=null,t=this.nodes.findLast(function(t){return"text"==t.object||(e=t.getLastText())});return e||t}},{key:"getNode",value:function(e){return(e=this.resolvePath(e))?"text"===this.object&&e.size?null:e.size?this.getDescendant(e):this:null}},{key:"getPath",value:function(e){if(i.List.isList(e))return e;var t=this.getKeysToPathsTable()[e];return t?Object(i.List)(t):null}},{key:"getText",value:function(){return("text"===this.object?this.leaves:this.nodes).reduce(function(e,t){return e+t.text},"")}},{key:"hasNode",value:function(e){return!!this.getNode(e)}},{key:"normalize",value:function(e){return e.run("normalizeNode",this)}},{key:"regenerateKey",value:function(){var e=_.create();return this.set("key",e)}},{key:"resolvePath",value:function(e,t){return"string"==typeof e?(e=this.getPath(e),null!=t&&(e=e.concat(t))):e=ce.create(e),e}},{key:"validate",value:function(e){return e.run("validateNode",this)}},{key:"text",get:function(){return this.getText()}}]),e}();Y(xt.prototype,["getFirstText","getKeysToPathsTable","getLastText","getText","normalize","validate"]),St(xt,[Q,A,I,$]);var Ct=function(){function e(){O(this,e)}return k(e,[{key:"addMark",value:function(e,t,n,r){var o=this.assertDescendant(e);return e=this.resolvePath(e),o=o.addMark(t,n,r),this.replaceNode(e,o)}},{key:"createDecoration",value:function(e){return e=he.createProperties(e),this.resolveDecoration(e)}},{key:"createPoint",value:function(e){return e=de.createProperties(e),this.resolvePoint(e)}},{key:"createRange",value:function(e){return e=ge.createProperties(e),this.resolveRange(e)}},{key:"createSelection",value:function(e){return e=_e.createProperties(e),this.resolveSelection(e)}},{key:"filterDescendants",value:function(e){var t=[];return this.forEachDescendant(function(n,r,o){e(n,r,o)&&t.push(n)}),Object(i.List)(t)}},{key:"findDescendant",value:function(e){var t=null;return this.forEachDescendant(function(n,r,o){if(e(n,r,o))return t=n,!1}),t}},{key:"forEachDescendant",value:function(e){var t=void 0;return this.nodes.forEach(function(n,r,o){return!1===e(n,r,o)?(t=!1,!1):"text"!=n.object?t=n.forEachDescendant(e):void 0}),t}},{key:"getActiveMarksAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)return Object(i.Set)();if(e.isCollapsed){var t=e.start;return this.getMarksAtPosition(t.key,t.offset).toSet()}var n=e,r=n.start,o=n.end,a=r.key,s=r.offset,u=o.key,l=o.offset,c=this.getDescendant(a);if(a!==u){for(;a!==u&&0===l;){var f=this.getPreviousText(u);u=f.key,l=f.text.length}for(;a!==u&&s===c.text.length;)a=(c=this.getNextText(a)).key,s=0}if(a===u)return c.getActiveMarksBetweenOffsets(s,l);var d=c.getActiveMarksBetweenOffsets(s,c.text.length);if(0===d.size)return Object(i.Set)();var p=this.getDescendant(u).getActiveMarksBetweenOffsets(0,l),h=d.intersect(p);if(0===h.size)return h;for(var v=this.getNextText(a);v.key!==u;){if(0!==v.text.length&&0===(h=h.intersect(v.getActiveMarks())).size)return Object(i.Set)();v=this.getNextText(v.key)}return h}},{key:"getAncestors",value:function(e){var t=this;if(!(e=this.resolvePath(e)))return null;var n=[];return e.forEach(function(r,o){var i=e.slice(0,o),a=t.getNode(i);n.push(a)}),Object(i.List)(n)}},{key:"getBlocks",value:function(){var e=this.getBlocksAsArray();return Object(i.List)(e)}},{key:"getBlocksAsArray",value:function(){return this.nodes.reduce(function(e,t){return"block"!=t.object?e:t.isLeafBlock()?(e.push(t),e):e.concat(t.getBlocksAsArray())},[])}},{key:"getBlocksAtRange",value:function(e){return Object(a.a)(!1,"As of slate@0.44 the `node.getBlocksAtRange` method has been renamed to `getLeafBlocksAtRange`."),this.getLeafBlocksAtRange(e)}},{key:"getBlocksAtRangeAsArray",value:function(e){return Object(a.a)(!1,"As of slate@0.44 the `node.getBlocksAtRangeAsArray` method has been renamed to `getLeafBlocksAtRangeAsArray`."),this.getLeafBlocksAtRangeAsArray(e)}},{key:"getBlocksByType",value:function(e){var t=this.getBlocksByTypeAsArray(e);return Object(i.List)(t)}},{key:"getBlocksByTypeAsArray",value:function(e){return this.nodes.reduce(function(t,n){return"block"!=n.object?t:n.isLeafBlock()&&n.type==e?(t.push(n),t):t.concat(n.getBlocksByTypeAsArray(e))},[])}},{key:"getChild",value:function(e){return(e=this.resolvePath(e))&&1===e.size?this.nodes.get(e.first()):null}},{key:"getClosest",value:function(e,t){var n=this,r=this.getAncestors(e);return r&&r.findLast(function(e){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:1;return(e=this.resolvePath(e))&&this.getNode(e)?e.size-1+t:null}},{key:"getDescendant",value:function(e){if(!(e=this.resolvePath(e)))return null;var t=e.flatMap(function(e){return["nodes",e]});return this.getIn(t)}},{key:"getFragmentAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)return A.create();for(var t=e,n=t.start,r=t.end,o=this,i=r.path,a=r.offset,s="end";i.size;){var u=i.last();o=o.splitNode(i,a),a=u+1,(i=ce.lift(i)).size||"end"!==s||(i=n.path,a=n.offset,s="start")}var l=n.path.first()+1,c=r.path.first()+2,f=o.nodes.slice(l,c);return A.create({nodes:f})}},{key:"getFurthest",value:function(e,t){var n=this,r=this.getAncestors(e);return r&&r.find(function(e){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i1}).last()||null}},{key:"getInlines",value:function(){var e=this.getInlinesAsArray();return Object(i.List)(e)}},{key:"getInlinesAsArray",value:function(){var e=[];return this.nodes.forEach(function(t){"text"!=t.object&&(t.isLeafInline()?e.push(t):e=e.concat(t.getInlinesAsArray()))}),e}},{key:"getInlinesAtRange",value:function(e){return Object(a.a)(!1,"As of slate@0.44 the `node.getInlinesAtRange` method has been renamed to `getLeafInlinesAtRange`."),this.getLeafInlinesAtRange(e)}},{key:"getInlinesAtRangeAsArray",value:function(e){return Object(a.a)(!1,"As of slate@0.44 the `node.getInlinesAtRangeAsArray` method has been renamed to `getLeafInlinesAtRangeAsArray`."),this.getLeafInlinesAtRangeAsArray(e)}},{key:"getInlinesByType",value:function(e){var t=this.getInlinesByTypeAsArray(e);return Object(i.List)(t)}},{key:"getInlinesByTypeAsArray",value:function(e){return this.nodes.reduce(function(t,n){return"text"==n.object?t:n.isLeafInline()&&n.type==e?(t.push(n),t):t.concat(n.getInlinesByTypeAsArray(e))},[])}},{key:"getInsertMarksAtRange",value:function(e){var t=(e=this.resolveRange(e)).start;return e.isUnset?Object(i.Set)():e.isCollapsed?this.getMarksAtPosition(t.key,t.offset):this.getDescendant(t.key).getMarksAtIndex(t.offset+1)}},{key:"getLeafBlocksAtRange",value:function(e){var t=this.getLeafBlocksAtRangeAsArray(e);return Object(i.List)(Object(i.OrderedSet)(t))}},{key:"getLeafBlocksAtRangeAsArray",value:function(e){if((e=this.resolveRange(e)).isUnset)return[];var t=e,n=t.start,r=t.end,o=this.getClosestBlock(n.key);if(n.key===r.key)return[o];var i=this.getClosestBlock(r.key),a=this.getBlocksAsArray(),s=a.indexOf(o),u=a.indexOf(i);return a.slice(s,u+1)}},{key:"getLeafInlinesAtRange",value:function(e){var t=this.getLeafInlinesAtRangeAsArray(e);return Object(i.List)(Object(i.OrderedSet)(t))}},{key:"getLeafInlinesAtRangeAsArray",value:function(e){var t=this;return(e=this.resolveRange(e)).isUnset?[]:this.getTextsAtRangeAsArray(e).map(function(e){return t.getClosestInline(e.key)}).filter(function(e){return e})}},{key:"getMarks",value:function(){var e=this.getMarksAsArray();return Object(i.Set)(e)}},{key:"getMarksAsArray",value:function(){var e,t=[];return this.nodes.forEach(function(e){t.push(e.getMarksAsArray())}),(e=[]).concat.apply(e,t)}},{key:"getMarksAtPosition",value:function(e,t){var n=this.getDescendant(e).getMarksAtIndex(t);if(0!==t)return n;var r=this.getClosestBlock(e);if(""===r.text)return n;var o=this.getPreviousText(e);return o?r.hasDescendant(o.key)?o.getMarksAtIndex(o.text.length):n:Object(i.Set)()}},{key:"getMarksAtRange",value:function(e){return Object(i.Set)(this.getOrderedMarksAtRange(e))}},{key:"getMarksByType",value:function(e){var t=this.getMarksByTypeAsArray(e);return Object(i.Set)(t)}},{key:"getMarksByTypeAsArray",value:function(e){return this.nodes.reduce(function(t,n){return"text"==n.object?t.concat(n.getMarksAsArray().filter(function(t){return t.type==e})):t.concat(n.getMarksByTypeAsArray(e))},[])}},{key:"getNextBlock",value:function(e){var t=this.assertDescendant(e),n=void 0;"block"==t.object?n=t.getLastText():n=this.getClosestBlock(e).getLastText();var r=this.getNextText(n.key);return r?this.getClosestBlock(r.key):null}},{key:"getNextNode",value:function(e){if(!(e=this.resolvePath(e)))return null;if(!e.size)return null;for(var t=e.size;t>0;t--){var n=e.slice(0,t),r=ce.increment(n),o=this.getNode(r);if(o)return o}return null}},{key:"getNextSibling",value:function(e){if(!(e=this.resolvePath(e)))return null;if(!e.size)return null;var t=ce.increment(e);return this.getNode(t)}},{key:"getNextText",value:function(e){if(!(e=this.resolvePath(e)))return null;if(!e.size)return null;var t=this.getNextNode(e);return t?t.getFirstText():null}},{key:"getNodesAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)return Object(i.List)();for(var t=e,n=t.start,r=t.end,o=Object(i.Stack)(this.nodes.slice(n.path.get(0),r.path.get(0)+1).map(function(e,t){return{node:e,onStartEdge:0===t,onEndEdge:t===r.path.get(0)-n.path.get(0),relativeStartPath:n.path.slice(1),relativeEndPath:r.path.slice(1)}})),a=[],s=function(){var e=o.peek(),t=e.node,n=e.onStartEdge,r=e.onEndEdge,i=e.relativeStartPath,s=e.relativeEndPath;if(o=o.shift(),a.push(t),"text"===t.object)return"continue";var u=n?i.get(0):0,l=r?s.get(0):t.nodes.size-1;o=o.pushAll(t.nodes.slice(u,l+1).map(function(e,t){return{node:e,onStartEdge:n&&0===t,onEndEdge:r&&t===l-u,relativeStartPath:n&&0===t?i.slice(1):null,relativeEndPath:r&&t===l-u?s.slice(1):null}}))};o.size>0;)s();return Object(i.List)(a)}},{key:"getOffset",value:function(e){this.assertDescendant(e);var t=this.getFurthestAncestor(e),n=this.nodes.takeUntil(function(e){return e==t}).reduce(function(e,t){return e+t.text.length},0);return this.hasChild(e)?n:n+t.getOffset(e)}},{key:"getOffsetAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)throw new Error("The range cannot be unset to calculcate its offset.");if(e.isExpanded)throw new Error("The range must be collapsed to calculcate its offset.");var t=e.start;return this.getOffset(t.key)+t.offset}},{key:"getOrderedMarks",value:function(){var e=this.getMarksAsArray();return Object(i.OrderedSet)(e)}},{key:"getOrderedMarksAtRange",value:function(e){var t=e=this.resolveRange(e),n=t.start,r=t.end;return e.isUnset?Object(i.OrderedSet)():e.isCollapsed?this.getMarksAtPosition(n.key,n.offset):this.getOrderedMarksBetweenPositions(n.key,n.offset,r.key,r.offset)}},{key:"getOrderedMarksBetweenPositions",value:function(e,t,n,r){if(e===n)return this.getDescendant(e).getMarksBetweenOffsets(t,r);var o=this.getTextsBetweenPositionsAsArray(e,n);return Object(i.OrderedSet)().withMutations(function(i){o.forEach(function(o){o.key===e?i.union(o.getMarksBetweenOffsets(t,o.text.length)):o.key===n?i.union(o.getMarksBetweenOffsets(0,r)):i.union(o.getMarks())})})}},{key:"getOrderedMarksByType",value:function(e){var t=this.getMarksByTypeAsArray(e);return Object(i.OrderedSet)(t)}},{key:"getParent",value:function(e){if(!(e=this.resolvePath(e)))return null;if(!e.size)return null;var t=ce.lift(e);return this.getNode(t)}},{key:"getPreviousBlock",value:function(e){var t=this.assertDescendant(e),n=void 0;"block"==t.object?n=t.getFirstText():n=this.getClosestBlock(e).getFirstText();var r=this.getPreviousText(n.key);return r?this.getClosestBlock(r.key):null}},{key:"getRootBlocksAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)return Object(i.List)();var t=e,n=t.start,r=t.end,o=this.getFurthestBlock(n.key);if(n.key===r.key)return Object(i.List)([o]);var a=this.getFurthestBlock(r.key),s=this.nodes.indexOf(o),u=this.nodes.indexOf(a);return this.nodes.slice(s,u+1)}},{key:"getRootInlinesAtRange",value:function(e){var t=this.getRootInlinesAtRangeAsArray(e);return Object(i.List)(Object(i.OrderedSet)(t))}},{key:"getRootInlinesAtRangeAsArray",value:function(e){var t=this;return(e=this.resolveRange(e)).isUnset?Object(i.List)():this.getTextsAtRangeAsArray(e).map(function(e){return t.getFurthestInline(e.key)}).filter(function(e){return e})}},{key:"getPreviousNode",value:function(e){if(!(e=this.resolvePath(e)))return null;if(!e.size)return null;for(var t=e.size;t>0;t--){var n=e.slice(0,t);if(0!==n.last()){var r=ce.decrement(n),o=this.getNode(r);if(o)return o}}return null}},{key:"getPreviousSibling",value:function(e){if(!(e=this.resolvePath(e)))return null;if(!e.size)return null;if(0===e.last())return null;var t=ce.decrement(e);return this.getNode(t)}},{key:"getPreviousText",value:function(e){if(!(e=this.resolvePath(e)))return null;if(!e.size)return null;var t=this.getPreviousNode(e);return t?t.getLastText():null}},{key:"getSelectionIndexes",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.start,r=e.end;if(!t)return null;if(e.isUnset)return null;if(n.key==r.key){var o=this.getFurthestAncestor(n.key),i=o?this.nodes.indexOf(o):null;return{start:i,end:i+1}}var a=null,s=null;return this.nodes.forEach(function(e,t){return"text"==e.object?(null==a&&e.key==n.key&&(a=t),null==s&&e.key==r.key&&(s=t+1)):(null==a&&e.hasDescendant(n.key)&&(a=t),null==s&&e.hasDescendant(r.key)&&(s=t+1)),null==a||null==s}),t&&null==a&&(a=0),t&&null==s&&(s=this.nodes.size),null==a?null:{start:a,end:s}}},{key:"getTextAtOffset",value:function(e){if(0===e)return this.getFirstText();if(e===this.text.length)return this.getLastText();if(e<0||e>this.text.length)return null;var t=0;return this.getTexts().find(function(n,r,o){return(t+=n.text.length)>e})}},{key:"getTextDirection",value:function(){var e=m()(this.text);return"neutral"===e?null:e}},{key:"getTexts",value:function(){var e=this.getTextsAsArray();return Object(i.List)(e)}},{key:"getTextsAsArray",value:function(){var e=[];return this.nodes.forEach(function(t){"text"==t.object?e.push(t):e=e.concat(t.getTextsAsArray())}),e}},{key:"getTextsAtRange",value:function(e){if((e=this.resolveRange(e)).isUnset)return Object(i.List)();var t=e,n=t.start,r=t.end;return Object(i.List)(this.getTextsBetweenPositionsAsArray(n.key,r.key))}},{key:"getTextsAtRangeAsArray",value:function(e){if((e=this.resolveRange(e)).isUnset)return[];var t=e,n=t.start,r=t.end;return this.getTextsBetweenPositionsAsArray(n.key,r.key)}},{key:"getTextsBetweenPositionsAsArray",value:function(e,t){var n=this.getDescendant(e);if(e==t)return[n];var r=this.getDescendant(t),o=this.getTextsAsArray(),i=o.indexOf(n),a=o.indexOf(r,i);return o.slice(i,a+1)}},{key:"hasBlockChildren",value:function(){return!(!this.nodes||!this.nodes.find(function(e){return"block"===e.object}))}},{key:"hasChild",value:function(e){return!!this.getChild(e)}},{key:"hasInlineChildren",value:function(){return!(!this.nodes||!this.nodes.find(function(e){return"inline"===e.object||"text"===e.object}))}},{key:"hasDescendant",value:function(e){return!!this.getDescendant(e)}},{key:"hasVoidParent",value:function(e,t){return Object(s.a)(!Oe.isValue(t),"As of Slate 0.42.0, the `node.hasVoidParent` method takes an `editor` instead of a `value`."),!!this.getClosestVoid(e,t)}},{key:"insertNode",value:function(e,t){var n=(e=this.resolvePath(e)).last(),r=ce.lift(e),o=this.assertNode(r),i=o.nodes.splice(n,0,t);return o=o.set("nodes",i),this.replaceNode(r,o)}},{key:"insertText",value:function(e,t,n,r){var o=this.assertDescendant(e);return e=this.resolvePath(e),o=o.insertText(t,n,r),this.replaceNode(e,o)}},{key:"isLeafBlock",value:function(){var e=this.object,t=this.nodes;if(!t.size)return!0;var n=t.first();return"block"===e&&"block"!==n.object}},{key:"isLeafInline",value:function(){var e=this.object,t=this.nodes;if(!t.size)return!0;var n=t.first();return"inline"===e&&"inline"!==n.object}},{key:"isNodeInRange",value:function(e,t){if(this.assertDescendant(e),e=this.resolvePath(e),(t=this.resolveRange(t)).isUnset)return!1;var n=ce.compare(e,t.start.path),r=t.start.key===t.end.key?n:ce.compare(e,t.end.path);return-1!==n&&1!==r}},{key:"mapChildren",value:function(e){var t=this,n=this.nodes;return n.forEach(function(r,o){var i=e(r,o,t.nodes);i!==r&&(n=n.set(i.key,i))}),this.set("nodes",n)}},{key:"mapDescendants",value:function(e){var t=this,n=this.nodes;return n.forEach(function(r,o){var i=r;"text"!==i.object&&(i=i.mapDescendants(e)),(i=e(i,o,t.nodes))!==r&&(n=n.set(o,i))}),this.set("nodes",n)}},{key:"mergeNode",value:function(e){var t=this.assertNode(e);if(0===(e=this.resolvePath(e)).last())throw new Error("Unable to merge node because it has no previous sibling: "+t);var n=ce.decrement(e),r=this.assertNode(n);if(r.object!==t.object)throw new Error("Unable to merge two different kinds of nodes: "+r+" and "+t);var o="text"===r.object?r.mergeText(t):r.set("nodes",r.nodes.concat(t.nodes)),i=this;return i=(i=(i=i.removeNode(e)).removeNode(n)).insertNode(n,o)}},{key:"moveNode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.assertNode(e);e=this.resolvePath(e),t=this.resolvePath(t,n);var o=ce.lift(t);this.assertNode(o);var i=ce.compare(e,t);e.size1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:e;return this.setPoints([this.anchor.moveToStartOfNode(e),this.focus.moveToEndOfNode(t)])}},{key:"moveToStart",value:function(){return this.setEnd(this.start)}},{key:"moveToStartOfNode",value:function(e){return this.updatePoints(function(t){return t.moveToStartOfNode(e)})}},{key:"normalize",value:function(e){return this.updatePoints(function(t){return t.normalize(e)})}},{key:"setAnchor",value:function(e){return this.set("anchor",e)}},{key:"setEnd",value:function(e){return this.isBackward?this.setAnchor(e):this.setFocus(e)}},{key:"setFocus",value:function(e){return this.set("focus",e)}},{key:"setPoints",value:function(e){var t=P(e,2),n=t[0],r=t[1];return this.set("anchor",n).set("focus",r)}},{key:"updatePoints",value:function(e){var t=this.anchor,n=this.focus;return t=e(t),n=e(n),this.merge({anchor:t,focus:n})}},{key:"setStart",value:function(e){return this.isBackward?this.setFocus(e):this.setAnchor(e)}},{key:"setProperties",value:function(e){var t=e=ge.createProperties(e),n=t.anchor,r=t.focus,o=x(t,["anchor","focus"]);return n&&(o.anchor=de.create(n)),r&&(o.focus=de.create(r)),this.merge(o)}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{object:this.object,anchor:this.anchor.toJSON(e),focus:this.focus.toJSON(e)}}},{key:"toRange",value:function(){var e=ge.createProperties(this);return ge.create(e)}},{key:"unset",value:function(){return this.updatePoints(function(e){return e.unset()})}},{key:"isCollapsed",get:function(){return this.anchor===this.focus||this.anchor.key===this.focus.key&&this.anchor.offset===this.focus.offset}},{key:"isExpanded",get:function(){return!this.isCollapsed}},{key:"isBackward",get:function(){var e=this.isUnset,t=this.anchor,n=this.focus;return e?null:t.key===n.key?t.offset>n.offset:ce.isBefore(n.path,t.path)}},{key:"isForward",get:function(){var e=this.isBackward;return null==e?null:!e}},{key:"isUnset",get:function(){var e=this.anchor,t=this.focus;return e.isUnset||t.isUnset}},{key:"isSet",get:function(){return!this.isUnset}},{key:"start",get:function(){return this.isBackward?this.focus:this.anchor}},{key:"end",get:function(){return this.isBackward?this.anchor:this.focus}}]),e}(),[he,ge,_e]);var It={Block:Q,Change:Te,Data:M,Decoration:he,Document:A,Editor:Ot,Inline:I,KeyUtils:_,Leaf:L,Mark:R,Node:Z,Operation:je,PathUtils:ce,Point:de,Range:ge,resetMemoization:G,Selection:_e,Text:$,TextUtils:He,useMemoization:K,Value:Oe};t.default=It},function(e,t,n){var r=n(174);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(30),o=n(227),i=n(120),a=n(361),s=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var c=0;c2&&void 0!==arguments[2]?arguments[2]:{};return new a.default(t,n).deserialize(e)},editorValueToBlocks(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,i.default)(e,t,n)},blocksToEditorValue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,o.default)(e,t,n)},getBlockContentFeatures:e=>(0,r.default)(e),randomKey:e=>(0,l.default)(e)},d=f;t.default=d;var p=s.SLATE_DEFAULT_BLOCK;t.EDITOR_DEFAULT_BLOCK_TYPE=p;var h=f.htmlToBlocks;t.htmlToBlocks=h;var v=f.editorValueToBlocks;t.editorValueToBlocks=v;var m=f.blocksToEditorValue;t.blocksToEditorValue=m;var y=f.getBlockContentFeatures;t.getBlockContentFeatures=y;var g=u.default;t.normalizeBlock=g;var b=l.default;t.randomKey=b},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(121),o=new(n(122).a)(r.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(102)),o=d(n(1)),i=d(n(0)),a=d(n(824)),s=d(n(37)),u=d(n(8)),l=d(n(106)),c=n(69),f=d(n(830));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=()=>{};class m extends i.default.PureComponent{constructor(){super(...arguments),h(this,"createButtonFromAction",(e,t)=>i.default.createElement(u.default,{key:t,onClick:()=>this.props.onAction(e),"data-action-index":t,color:e.color,disabled:e.disabled,kind:e.kind,autoFocus:e.autoFocus,className:e.secondary?a.default.actionSecondary:""},e.title)),h(this,"renderActions",e=>{if(!e||0===e.length)return null;var t=p((0,r.default)(e,e=>e.secondary),2),n=t[0],o=t[1];return i.default.createElement(l.default,{align:"end",secondary:n.map(this.createButtonFromAction)},o.map(this.createButtonFromAction))})}render(){var e=this.props,t=e.color,n=e.title,r=e.className,o=e.onClose,u=e.onEscape,l=e.isOpen,d=e.actions,p=e.padding,h=e.centered,m=[a.default[t]||a.default.default,l?a.default.isOpen:a.default.isClosed,h&&a.default.centered,r].filter(Boolean).join(" ");return i.default.createElement(f.default,{onEscape:u||o||v},i.default.createElement(c.Portal,null,i.default.createElement("div",{className:m},i.default.createElement("div",{className:a.default.inner},o&&i.default.createElement("button",{className:a.default.closeButton,onClick:o,type:"button"},i.default.createElement(s.default,{color:"inherit"})),i.default.createElement("div",{className:a.default["padding_".concat(p)]},i.default.createElement("h1",{className:a.default.heading},n),i.default.createElement("div",{className:a.default.content},this.props.children,i.default.createElement("div",{className:a.default.actionsWrapper},this.renderActions(d))))))))}}t.default=m,h(m,"propTypes",{color:o.default.oneOf(["default","warning","info","success","danger"]),className:o.default.string,title:o.default.node,children:o.default.node,onClose:o.default.func,onEscape:o.default.func,centered:o.default.bool,isOpen:o.default.bool,onAction:o.default.func,padding:o.default.oneOf(["none","small","medium","large"]),actions:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired,tooltip:o.default.string,kind:o.default.string,autoFocus:o.default.bool}))}),h(m,"defaultProps",{color:"default",isOpen:!0,padding:"large",onAction(){},actions:[]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(1)),o=c(n(0)),i=c(n(1178)),a=c(n(1179)),s=c(n(135)),u=c(n(187)),l=c(n(466));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends o.default.Component{constructor(){super(...arguments),f(this,"state",{showValidationMessages:!1}),f(this,"handleToggleShowValidation",e=>{this.setState(e=>({showValidationMessages:!e.showValidationMessages}))})}render(){var e=this.props,t=e.level,n=e.label,r=e.labelFor,c=e.description,f=e.children,d=e.inline,p=e.wrapped,h=e.className,v=e.markers,m=this.state.showValidationMessages,y="level_".concat(t);return o.default.createElement("div",{className:"\n ".concat(d?i.default.inline:i.default.block,"\n ").concat(i.default[y]||"","\n ").concat(p?i.default.wrapped:"","\n ").concat(h||"")},o.default.createElement("label",{className:i.default.inner,htmlFor:r},n&&o.default.createElement("div",{className:i.default.header},o.default.createElement("div",{className:i.default.headerMain},n&&o.default.createElement(a.default,{className:i.default.label,level:t},n),c&&o.default.createElement("div",{className:i.default.description},c)),o.default.createElement("div",{className:i.default.headerStatus},o.default.createElement("div",{onClick:this.handleToggleShowValidation,className:i.default.validationStatus},o.default.createElement(s.default,{markers:v})))),o.default.createElement(l.default,{height:m?"auto":0,contentClassName:i.default.validationList,animateOpacity:!0},o.default.createElement(u.default,{markers:v})),o.default.createElement("div",{className:i.default.content},f)))}}t.default=d,f(d,"propTypes",{label:r.default.string,className:r.default.string,inline:r.default.bool,description:r.default.string,level:r.default.number,children:r.default.node,wrapped:r.default.bool,labelFor:r.default.string,markers:r.default.arrayOf(r.default.shape({type:r.default.string}))}),f(d,"defaultProps",{level:1,markers:[]})},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.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get: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=15)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.Browser={};"undefined"!=typeof window&&(r.SUPPORTED="requestAnimationFrame"in window,r.SUPPORTS_TOUCH="ontouchstart"in window,r.touch=!1,r.dynamicInputDetection=!0,r.iOS=function(){return/iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream});t.Store=[],t.Selectors={POPPER:".tippy-popper",TOOLTIP:".tippy-tooltip",CONTENT:".tippy-tooltip-content",CIRCLE:"[x-circle]",ARROW:"[x-arrow]",TOOLTIPPED_EL:"[data-tooltipped]",CONTROLLER:"[data-tippy-controller]"};var o=t.Defaults={html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,trigger:"mouseenter focus",duration:350,interactive:!1,interactiveBorder:2,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:350,sticky:!1,stickyDuration:200,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,useContext:!1,reactInstance:void 0,popperOptions:{},open:void 0,onRequestClose:function(){}};t.DefaultsKeys=r.SUPPORTED&&Object.keys(o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[!1,"webkit"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r=0&&t.item(n)!==this;);return n>-1}Object.defineProperty(t,"__esModule",{value:!0});t.matches="undefined"==typeof window?r:Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;td,g=p-5-c+u<0;"top"!==l&&"bottom"!==l||(y&&(v=d-5-2*c),g&&(v=5));s.style[(0,a.default)("transform")]="translate3d("+v+"px, "+m+"px, 0)"};var r=n(0),o=s(n(3)),i=s(n(2)),a=s(n(1));s(n(4));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return-(e-r.Defaults.distance)+"px"};var r=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getAttribute("title");t&&e.setAttribute("data-original-title",t);e.removeAttribute("title")}},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(13)),o=i(n(9));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,[]);return r.default.createElement(o.default,t,r.default.createElement(e,i))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTooltip=t.Tooltip=void 0;var r=i(n(9)),o=i(n(14));function i(e){return e&&e.__esModule?e:{default:e}}t.Tooltip=r.default,t.withTooltip=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=function(){r.Browser.touch=!0,r.Browser.iOS()&&document.body.classList.add("tippy-touch"),r.Browser.dynamicInputDetection&&window.performance&&document.addEventListener("mousemove",t)},t=(n=void 0,function(){var e=performance.now();e-n<20&&(r.Browser.touch=!1,document.removeEventListener("mousemove",t),r.Browser.iOS()||document.body.classList.remove("tippy-touch")),n=e});var n;document.addEventListener("click",function(e){if(!(e.target instanceof Element))return(0,o.default)();var t=(0,i.default)(e.target,r.Selectors.TOOLTIPPED_EL),n=(0,i.default)(e.target,r.Selectors.POPPER);if(n){var s=(0,a.default)(r.Store,function(e){return e.popper===n});if(!s)return;var u=s.settings.interactive;if(u)return}if(t){var l=(0,a.default)(r.Store,function(e){return e.el===t});if(!l)return;var c=l.settings,f=c.hideOnClick,d=c.multiple,p=c.trigger;if(!d&&r.Browser.touch||!d&&-1!==p.indexOf("click"))return(0,o.default)(l);if(!0!==f||-1!==p.indexOf("click"))return}!(0,i.default)(e.target,r.Selectors.CONTROLLER)&&document.querySelector(r.Selectors.POPPER)&&(0,o.default)()}),document.addEventListener("touchstart",e),window.addEventListener("blur",function(e){var t=document.activeElement;t&&t.blur&&s.matches.call(t,r.Selectors.TOOLTIPPED_EL)&&t.blur()}),!r.Browser.SUPPORTS_TOUCH&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&document.addEventListener("pointerdown",e)};var r=n(0),o=u(n(25)),i=u(n(4)),a=u(n(2)),s=n(8);function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var i=n.position,a=n.distance,s=n.arrow,u=n.animateFill,l=n.inertia,c=n.animation,f=n.arrowSize,d=n.size,p=n.theme,h=n.html,v=n.zIndex,m=n.interactive,y=document.createElement("div");y.setAttribute("class","tippy-popper"),y.setAttribute("role","tooltip"),y.setAttribute("aria-hidden","true"),y.setAttribute("id","tippy-tooltip-"+e),y.style.zIndex=v;var g=document.createElement("div");if(g.setAttribute("class","tippy-tooltip tippy-tooltip--"+d+" leave"),g.setAttribute("data-animation",c),p.split(" ").forEach(function(e){g.classList.add(e+"-theme")}),s){var b=document.createElement("div");b.setAttribute("class","arrow-"+f),b.setAttribute("x-arrow",""),g.appendChild(b)}if(u){g.setAttribute("data-animatefill","");var _=document.createElement("div");_.setAttribute("class","leave"),_.setAttribute("x-circle",""),g.appendChild(_)}l&&g.setAttribute("data-inertia","");m&&g.setAttribute("data-interactive","");var w=document.createElement("div");if(w.setAttribute("class","tippy-tooltip-content"),h){var O=void 0;h instanceof Element?(w.appendChild(h),O="#"+h.id||"tippy-html-template"):(w.innerHTML=document.getElementById(h.replace("#","")).innerHTML,O=h),y.classList.add("html-template"),m&&y.setAttribute("tabindex","-1"),g.setAttribute("data-template-id",O)}else w.innerHTML=t;return g.style[(0,r.default)(i)]=(0,o.default)(a),g.appendChild(w),y.appendChild(g),y};var r=i(n(3)),o=i(n(11));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i.Browser.SUPPORTED&&((0,s.default)(),this.state={destroyed:!1},this.selector=t,this.settings=r({},i.Defaults,n),(n.show||n.shown||n.hide||n.hidden)&&console.warn("Callbacks without the `on` prefix are deprecated (with the exception of `wait`). Use onShow, onShown, onHide, and onHidden instead."),this.callbacks={wait:n.wait,show:n.onShow||n.show||g.default,shown:n.onShown||n.shown||g.default,hide:n.onHide||n.hide||g.default,hidden:n.onHidden||n.hidden||g.default},this.store=E.default.call(this,(0,_.default)(t)),i.Store.push.apply(i.Store,this.store))}return o(e,[{key:"getPopperElement",value:function(e){try{return(0,l.default)(this.store,function(t){return t.el===e}).popper}catch(e){console.error("[getPopperElement]: Element passed as the argument does not exist in the instance")}}},{key:"getReferenceElement",value:function(e){try{return(0,l.default)(this.store,function(t){return t.popper===e}).el}catch(e){console.error("[getReferenceElement]: Popper passed as the argument does not exist in the instance")}}},{key:"getReferenceData",value:function(e){return(0,l.default)(this.store,function(t){return t.el===e||t.popper===e})}},{key:"updateSettings",value:function(e,t,n){var o=(0,l.default)(this.store,function(t){return t.popper===e});if(o){var i=r({},o.settings,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n));o.settings=i}}},{key:"updateForReact",value:function(e,t){var n=e.querySelector(i.Selectors.CONTENT),r=(0,l.default)(this.store,function(t){return t.popper===e});if(r){var o=r.settings,s=o.useContext;o.reactInstance;s?a.default.unstable_renderSubtreeIntoContainer(r.settings.reactInstance,t,n):a.default.render(t,n)}}},{key:"show",value:function(e,t){var n=this;if(!this.state.destroyed){var r=(0,l.default)(this.store,function(t){return t.popper===e});if(r){var o=(0,v.default)(e),a=o.tooltip,s=o.circle,c=o.content;if(document.body.contains(r.el)){if(this.callbacks.show.call(e),!r.settings||!1!==r.settings.open){r.settings.reactDOM&&this.updateForReact(e,r.settings.reactDOM);var d=r.el,g=r.settings,b=(g.appendTo,g.sticky),_=g.interactive,E=g.followCursor,S=g.flipDuration,x=g.duration;if(g.dynamicTitle){var C=d.getAttribute("title");C&&(c.innerHTML=C,(0,f.default)(d))}var P=void 0!==t?t:Array.isArray(x)?x[0]:x;(0,m.default)([e,a,s],0),(0,O.default)(r),e.style.visibility="visible",e.setAttribute("aria-hidden","false"),(0,u.default)(function(){E&&!i.Browser.touch||(r.popperInstance.update(),(0,m.default)([e],S)),(0,m.default)([a,s],P),s&&(c.style.opacity=1),_&&d.classList.add("active"),b&&(0,k.default)(r),(0,p.default)(a,s),(0,h.default)([a,s],function(e){e.contains("tippy-notransition")&&e.remove("tippy-notransition"),e.remove("leave"),e.add("enter")}),(0,w.default)(r,P,function(){(0,y.default)(e)&&!r._onShownFired&&(_&&e.focus(),a.classList.add("tippy-notransition"),r._onShownFired=!0,n.callbacks.shown.call(e))})})}}else this.destroy(e)}}}},{key:"hide",value:function(e,t){var n=this;if(!this.state.destroyed){this.callbacks.hide.call(e);var r=(0,l.default)(this.store,function(t){return t.popper===e});if(r){var o=(0,v.default)(e),i=o.tooltip,s=o.circle,u=o.content;if(!1!==r.settings.disabled||!r.settings.open){var c=r&&r.settings&&r.settings.unmountHTMLWhenHide&&r.settings.reactDOM,f=r.el,p=r.settings,g=p.appendTo,_=(p.sticky,p.interactive),O=(p.followCursor,p.html),k=p.trigger,E=p.duration,S=void 0!==t?t:Array.isArray(E)?E[1]:E;r._onShownFired=!1,_&&f.classList.remove("active"),e.style.visibility="hidden",e.setAttribute("aria-hidden","true"),(0,m.default)([i,s,s?u:null],S),s&&(u.style.opacity=0),(0,h.default)([i,s],function(e){e.contains("tippy-tooltip")&&e.remove("tippy-notransition"),e.remove("enter"),e.add("leave")}),O&&-1!==k.indexOf("click")&&(0,d.default)(f)&&f.focus(),(0,w.default)(r,S,function(){!(0,y.default)(e)&&g.contains(e)&&"1"!==getComputedStyle(i).opacity&&(f.removeEventListener("mousemove",b.default),r.popperInstance.disableEventListeners(),g.removeChild(e),n.callbacks.hidden.call(e),c&&a.default.unmountComponentAtNode(u))})}}}}},{key:"update",value:function(e){if(!this.state.destroyed){var t=(0,l.default)(this.store,function(t){return t.popper===e});if(t){var n=(0,v.default)(e).content,r=t.el,o=t.settings.html;o instanceof Element?console.warn("Aborted: update() should not be used if `html` is a DOM element"):(n.innerHTML=o?document.getElementById(o.replace("#","")).innerHTML:r.getAttribute("title")||r.getAttribute("data-original-title"),o||(0,f.default)(r))}}}},{key:"destroy",value:function(e,t){var n=this;if(!this.state.destroyed){var r=(0,l.default)(this.store,function(t){return t.popper===e});if(r){var o=r.el,a=r.popperInstance,s=r.listeners,u=r._mutationObserver;(0,y.default)(e)&&this.hide(e,0),s.forEach(function(e){return o.removeEventListener(e.event,e.handler)}),o.setAttribute("title",o.getAttribute("data-original-title")),o.removeAttribute("data-original-title"),o.removeAttribute("data-tooltipped"),o.removeAttribute("aria-describedby"),a&&a.destroy(),u&&u.disconnect(),i.Store.splice((0,c.default)(i.Store,function(t){return t.popper===e}),1),(void 0===t||t)&&(this.store=i.Store.filter(function(e){return e.tippyInstance===n}))}}}},{key:"destroyAll",value:function(){var e=this;if(!this.state.destroyed){var t=this.store.length;this.store.forEach(function(n,r){var o=n.popper;e.destroy(o,r===t-1)}),this.store=null,this.state.destroyed=!0}}}]),e}();function C(e,t){return new x(e,t)}C.Browser=i.Browser,C.Defaults=i.Defaults,C.disableDynamicInputDetection=function(){return i.Browser.dynamicInputDetection=!1},C.enableDynamicInputDetection=function(){return i.Browser.dynamicInputDetection=!0},t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.forEach(function(e){if(e){var n=s.matches.call(e,o.Selectors.CONTENT),r=n?Math.round(t/1.3):t;e.style[(0,a.default)("transitionDuration")]=r+"ms"}})};var r,o=n(0),i=n(1),a=(r=i)&&r.__esModule?r:{default:r},s=n(8)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(!t.getAttribute("x-placement"))return!0;var r=e.clientX,o=e.clientY,a=n.interactiveBorder,s=n.distance,u=t.getBoundingClientRect(),l=(0,i.default)(t.getAttribute("x-placement")),c=a+s,f={top:u.top-o>a,bottom:o-u.bottom>a,left:u.left-r>a,right:r-u.right>a};switch(l){case"top":f.top=u.top-o>c;break;case"bottom":f.bottom=o-u.bottom>c;break;case"left":f.left=u.left-r>c;break;case"right":f.right=r-u.right>c}return f.top||f.bottom||f.left||f.right};var r,o=n(3),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.prototype.findIndex)return e.findIndex(t);return e.indexOf((0,i.default)(e,t))};var r,o=n(2),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.forEach(function(e){e&&t(e.classList)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t?window.getComputedStyle(t)[(0,i.default)("transform")]:window.getComputedStyle(e).opacity};var r,o=n(1),i=(r=o)&&r.__esModule?r:{default:r}},function(e,n){e.exports=t},function(e,t){e.exports=n}])},e.exports=r(n(0),n(1184),n(25))},function(e,t,n){"use strict";t.a=function(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(e,t))}};var r=n(3),o=n(5);var i=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},e}(),a=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.a(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.a)},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};var i={vectorEffect:"non-scaling-stroke"},a=()=>o.default.createElement("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"1em",height:"1em"},o.default.createElement("path",{d:"M19 6L6 19M6 6L19 19",stroke:"currentColor",style:i}));t.default=a},function(e,t,n){(function(e,r){var o;(function(){var i,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",d=1,p=2,h=4,v=1,m=2,y=1,g=2,b=4,_=8,w=16,O=32,k=64,E=128,S=256,x=512,C=30,P="...",j=800,M=16,T=1,A=2,D=1/0,I=9007199254740991,N=1.7976931348623157e308,R=NaN,F=4294967295,L=F-1,B=F>>>1,z=[["ary",E],["bind",y],["bindKey",g],["curry",_],["curryRight",w],["flip",x],["partial",O],["partialRight",k],["rearg",S]],W="[object Arguments]",U="[object Array]",H="[object AsyncFunction]",q="[object Boolean]",V="[object Date]",Y="[object DOMException]",G="[object Error]",K="[object Function]",J="[object GeneratorFunction]",$="[object Map]",Z="[object Number]",X="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",le="[object DataView]",ce="[object Float32Array]",fe="[object Float64Array]",de="[object Int8Array]",pe="[object Int16Array]",he="[object Int32Array]",ve="[object Uint8Array]",me="[object Uint8ClampedArray]",ye="[object Uint16Array]",ge="[object Uint32Array]",be=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oe=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Ee=RegExp(Oe.source),Se=RegExp(ke.source),xe=/<%-([\s\S]+?)%>/g,Ce=/<%([\s\S]+?)%>/g,Pe=/<%=([\s\S]+?)%>/g,je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Me=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ae=/[\\^$.*+?()[\]{}|]/g,De=RegExp(Ae.source),Ie=/^\s+|\s+$/g,Ne=/^\s+/,Re=/\s+$/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,We=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Ve=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$e=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,Xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Qe+"]",nt="["+Xe+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",lt="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",dt="(?:"+it+"|"+at+")",pt="(?:"+ft+"|"+at+")",ht="(?:"+nt+"|"+st+")"+"?",vt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[ut,lt,ct].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),mt="(?:"+[ot,lt,ct].join("|")+")"+vt,yt="(?:"+[ut+nt+"?",nt,lt,ct,et].join("|")+")",gt=RegExp("['’]","g"),bt=RegExp(nt,"g"),_t=RegExp(st+"(?="+st+")|"+yt+vt,"g"),wt=RegExp([ft+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+dt,"$"].join("|")+")",ft+"?"+dt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,mt].join("|"),"g"),Ot=RegExp("[\\u200d\\ud800-\\udfff"+Xe+"\\ufe0e\\ufe0f]"),kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Et=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],St=-1,xt={};xt[ce]=xt[fe]=xt[de]=xt[pe]=xt[he]=xt[ve]=xt[me]=xt[ye]=xt[ge]=!0,xt[W]=xt[U]=xt[ue]=xt[q]=xt[le]=xt[V]=xt[G]=xt[K]=xt[$]=xt[Z]=xt[Q]=xt[te]=xt[ne]=xt[re]=xt[ae]=!1;var Ct={};Ct[W]=Ct[U]=Ct[ue]=Ct[le]=Ct[q]=Ct[V]=Ct[ce]=Ct[fe]=Ct[de]=Ct[pe]=Ct[he]=Ct[$]=Ct[Z]=Ct[Q]=Ct[te]=Ct[ne]=Ct[re]=Ct[oe]=Ct[ve]=Ct[me]=Ct[ye]=Ct[ge]=!0,Ct[G]=Ct[K]=Ct[ae]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jt=parseFloat,Mt=parseInt,Tt="object"==typeof e&&e&&e.Object===Object&&e,At="object"==typeof self&&self&&self.Object===Object&&self,Dt=Tt||At||Function("return this")(),It="object"==typeof t&&t&&!t.nodeType&&t,Nt=It&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=Nt&&Nt.exports===It,Ft=Rt&&Tt.process,Lt=function(){try{var e=Nt&&Nt.require&&Nt.require("util").types;return e||Ft&&Ft.binding&&Ft.binding("util")}catch(e){}}(),Bt=Lt&&Lt.isArrayBuffer,zt=Lt&&Lt.isDate,Wt=Lt&&Lt.isMap,Ut=Lt&&Lt.isRegExp,Ht=Lt&&Lt.isSet,qt=Lt&&Lt.isTypedArray;function Vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Xt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function wn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var On=pn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kn=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function En(e){return"\\"+Pt[e]}function Sn(e){return Ot.test(e)}function xn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Cn(e,t){return function(n){return e(t(n))}}function Pn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var In=function e(t){var n,r=(t=null==t?Dt:In.defaults(Dt.Object(),t,In.pick(Dt,Et))).Array,o=t.Date,Xe=t.Error,Qe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,ot=t.TypeError,it=r.prototype,at=Qe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],lt=at.toString,ct=st.hasOwnProperty,ft=0,dt=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",pt=st.toString,ht=lt.call(tt),vt=Dt._,mt=nt("^"+lt.call(ct).replace(Ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=Rt?t.Buffer:i,_t=t.Symbol,Ot=t.Uint8Array,Pt=yt?yt.allocUnsafe:i,Tt=Cn(tt.getPrototypeOf,tt),At=tt.create,It=st.propertyIsEnumerable,Nt=it.splice,Ft=_t?_t.isConcatSpreadable:i,Lt=_t?_t.iterator:i,on=_t?_t.toStringTag:i,pn=function(){try{var e=Bi(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Nn=t.clearTimeout!==Dt.clearTimeout&&t.clearTimeout,Rn=o&&o.now!==Dt.Date.now&&o.now,Fn=t.setTimeout!==Dt.setTimeout&&t.setTimeout,Ln=et.ceil,Bn=et.floor,zn=tt.getOwnPropertySymbols,Wn=yt?yt.isBuffer:i,Un=t.isFinite,Hn=it.join,qn=Cn(tt.keys,tt),Vn=et.max,Yn=et.min,Gn=o.now,Kn=t.parseInt,Jn=et.random,$n=it.reverse,Zn=Bi(t,"DataView"),Xn=Bi(t,"Map"),Qn=Bi(t,"Promise"),er=Bi(t,"Set"),tr=Bi(t,"WeakMap"),nr=Bi(tt,"create"),rr=tr&&new tr,or={},ir=fa(Zn),ar=fa(Xn),sr=fa(Qn),ur=fa(er),lr=fa(tr),cr=_t?_t.prototype:i,fr=cr?cr.valueOf:i,dr=cr?cr.toString:i;function pr(e){if(Ps(e)&&!ys(e)&&!(e instanceof yr)){if(e instanceof mr)return e;if(ct.call(e,"__wrapped__"))return da(e)}return new mr(e)}var hr=function(){function e(){}return function(t){if(!Cs(t))return{};if(At)return At(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function vr(){}function mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function yr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function gr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Nr(e,t,n,r,o,a){var s,u=t&d,l=t&p,c=t&h;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Cs(e))return e;var f=ys(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return ri(e,s)}else{var v=Ui(e),m=v==K||v==J;if(ws(e))return Zo(e,u);if(v==Q||v==W||m&&!o){if(s=l||m?{}:qi(e),!u)return l?function(e,t){return oi(e,Wi(e),t)}(e,function(e,t){return e&&oi(t,iu(t),e)}(s,e)):function(e,t){return oi(e,zi(e),t)}(e,Tr(s,e))}else{if(!Ct[v])return o?e:{};s=function(e,t,n){var r,o,i,a=e.constructor;switch(t){case ue:return Xo(e);case q:case V:return new a(+e);case le:return function(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ce:case fe:case de:case pe:case he:case ve:case me:case ye:case ge:return Qo(e,n);case $:return new a;case Z:case re:return new a(e);case te:return(i=new(o=e).constructor(o.source,He.exec(o))).lastIndex=o.lastIndex,i;case ne:return new a;case oe:return r=e,fr?tt(fr.call(r)):{}}}(e,v,u)}}a||(a=new Or);var y=a.get(e);if(y)return y;a.set(e,s),Ds(e)?e.forEach(function(r){s.add(Nr(r,t,n,r,e,a))}):js(e)&&e.forEach(function(r,o){s.set(o,Nr(r,t,n,o,e,a))});var g=f?i:(c?l?Ai:Ti:l?iu:ou)(e);return Gt(g||e,function(r,o){g&&(r=e[o=r]),Pr(s,o,Nr(r,t,n,o,e,a))}),s}function Rr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Fr(e,t,n){if("function"!=typeof e)throw new ot(u);return oa(function(){e.apply(i,n)},t)}function Lr(e,t,n,r){var o=-1,i=Zt,s=!0,u=e.length,l=[],c=t.length;if(!u)return l;n&&(t=Qt(t,yn(n))),r?(i=Xt,s=!1):t.length>=a&&(i=bn,s=!1,t=new wr(t));e:for(;++o-1},br.prototype.set=function(e,t){var n=this.__data__,r=jr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},_r.prototype.clear=function(){this.size=0,this.__data__={hash:new gr,map:new(Xn||br),string:new gr}},_r.prototype.delete=function(e){var t=Fi(this,e).delete(e);return this.size-=t?1:0,t},_r.prototype.get=function(e){return Fi(this,e).get(e)},_r.prototype.has=function(e){return Fi(this,e).has(e)},_r.prototype.set=function(e,t){var n=Fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},wr.prototype.add=wr.prototype.push=function(e){return this.__data__.set(e,l),this},wr.prototype.has=function(e){return this.__data__.has(e)},Or.prototype.clear=function(){this.__data__=new br,this.size=0},Or.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Or.prototype.get=function(e){return this.__data__.get(e)},Or.prototype.has=function(e){return this.__data__.has(e)},Or.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Xn||r.length0&&n(s)?t>1?qr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var Vr=ui(),Yr=ui(!0);function Gr(e,t){return e&&Vr(e,t,ou)}function Kr(e,t){return e&&Yr(e,t,ou)}function Jr(e,t){return $t(t,function(t){return Es(e[t])})}function $r(e,t){for(var n=0,r=(t=Go(t,e)).length;null!=e&&nt}function eo(e,t){return null!=e&&ct.call(e,t)}function to(e,t){return null!=e&&t in tt(e)}function no(e,t,n){for(var o=n?Xt:Zt,a=e[0].length,s=e.length,u=s,l=r(s),c=1/0,f=[];u--;){var d=e[u];u&&t&&(d=Qt(d,yn(t))),c=Yn(d.length,c),l[u]=!n&&(t||a>=120&&d.length>=120)?new wr(u&&d):i}d=e[0];var p=-1,h=l[0];e:for(;++p=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)})}function bo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Nt.call(s,u,1),Nt.call(e,u,1);return e}function wo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Yi(o)?Nt.call(e,o,1):Bo(e,o)}}return e}function Oo(e,t){return e+Bn(Jn()*(t-e+1))}function ko(e,t){var n="";if(!e||t<1||t>I)return n;do{t%2&&(n+=e),(t=Bn(t/2))&&(e+=e)}while(t);return n}function Eo(e,t){return ia(ea(e,t,Mu),e+"")}function So(e){return Er(pu(e))}function xo(e,t){var n=pu(e);return ua(n,Ir(t,0,n.length))}function Co(e,t,n,r){if(!Cs(e))return e;for(var o=-1,a=(t=Go(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o>>1,a=e[i];null!==a&&!Ns(a)&&(n?a<=t:a=a){var c=t?null:ki(e);if(c)return jn(c);s=!1,o=bn,l=new wr}else l=t?[]:u;e:for(;++r=r?e:To(e,t,n)}var $o=Nn||function(e){return Dt.clearTimeout(e)};function Zo(e,t){if(t)return e.slice();var n=e.length,r=Pt?Pt(n):new e.constructor(n);return e.copy(r),r}function Xo(e){var t=new e.constructor(e.byteLength);return new Ot(t).set(new Ot(e)),t}function Qo(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=Ns(e),s=t!==i,u=null===t,l=t==t,c=Ns(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Gi(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=tt(t);++r-1?o[a?t[s]:s]:i}}function pi(e){return Mi(function(t){var n=t.length,r=n,o=mr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ot(u);if(o&&!s&&"wrapper"==Ii(a))var s=new mr([],!0)}for(r=s?r:n;++r1&&_.reverse(),d&&cu))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var f=-1,d=!0,p=n&m?new wr:i;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Gt(z,function(n){var r="_."+n[0];t&n[1]&&!Zt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Le);return t?t[1].split(Be):[]}(r),n)))}function sa(e){var t=0,n=0;return function(){var r=Gn(),o=M-(r-n);if(n=r,o>0){if(++t>=j)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ua(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Aa(e,n)});function Ba(e){var t=pr(e);return t.__chain__=!0,t}function za(e,t){return t(e)}var Wa=Mi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Dr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof yr&&Yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:za,args:[o],thisArg:i}),new mr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Ua=ii(function(e,t,n){ct.call(e,n)?++e[n]:Ar(e,n,1)});var Ha=di(ma),qa=di(ya);function Va(e,t){return(ys(e)?Gt:Br)(e,Ri(t,3))}function Ya(e,t){return(ys(e)?Kt:zr)(e,Ri(t,3))}var Ga=ii(function(e,t,n){ct.call(e,n)?e[n].push(t):Ar(e,n,[t])});var Ka=Eo(function(e,t,n){var o=-1,i="function"==typeof t,a=bs(e)?r(e.length):[];return Br(e,function(e){a[++o]=i?Vt(t,e,n):ro(e,t,n)}),a}),Ja=ii(function(e,t,n){Ar(e,n,t)});function $a(e,t){return(ys(e)?Qt:po)(e,Ri(t,3))}var Za=ii(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Xa=Eo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Gi(e,t[0],t[1])?t=[]:n>2&&Gi(t[0],t[1],t[2])&&(t=[t[0]]),go(e,qr(t,1),[])}),Qa=Rn||function(){return Dt.Date.now()};function es(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Si(e,E,i,i,i,i,t)}function ts(e,t){var n;if("function"!=typeof t)throw new ot(u);return e=Ws(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ns=Eo(function(e,t,n){var r=y;if(n.length){var o=Pn(n,Ni(ns));r|=O}return Si(e,r,t,n,o)}),rs=Eo(function(e,t,n){var r=y|g;if(n.length){var o=Pn(n,Ni(rs));r|=O}return Si(t,r,e,n,o)});function os(e,t,n){var r,o,a,s,l,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new ot(u);function v(t){var n=r,a=o;return r=o=i,f=t,s=e.apply(a,n)}function m(e){var n=e-c;return c===i||n>=t||n<0||p&&e-f>=a}function y(){var e=Qa();if(m(e))return g(e);l=oa(y,function(e){var n=t-(e-c);return p?Yn(n,a-(e-f)):n}(e))}function g(e){return l=i,h&&r?v(e):(r=o=i,s)}function b(){var e=Qa(),n=m(e);if(r=arguments,o=this,c=e,n){if(l===i)return function(e){return f=e,l=oa(y,t),d?v(e):s}(c);if(p)return $o(l),l=oa(y,t),v(c)}return l===i&&(l=oa(y,t)),s}return t=Hs(t)||0,Cs(n)&&(d=!!n.leading,a=(p="maxWait"in n)?Vn(Hs(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){l!==i&&$o(l),f=0,r=c=o=l=i},b.flush=function(){return l===i?s:g(Qa())},b}var is=Eo(function(e,t){return Fr(e,1,t)}),as=Eo(function(e,t,n){return Fr(e,Hs(t)||0,n)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ss.Cache||_r),n}function us(e){if("function"!=typeof e)throw new ot(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=_r;var ls=Ko(function(e,t){var n=(t=1==t.length&&ys(t[0])?Qt(t[0],yn(Ri())):Qt(qr(t,1),yn(Ri()))).length;return Eo(function(r){for(var o=-1,i=Yn(r.length,n);++o=t}),ms=oo(function(){return arguments}())?oo:function(e){return Ps(e)&&ct.call(e,"callee")&&!It.call(e,"callee")},ys=r.isArray,gs=Bt?yn(Bt):function(e){return Ps(e)&&Xr(e)==ue};function bs(e){return null!=e&&xs(e.length)&&!Es(e)}function _s(e){return Ps(e)&&bs(e)}var ws=Wn||Hu,Os=zt?yn(zt):function(e){return Ps(e)&&Xr(e)==V};function ks(e){if(!Ps(e))return!1;var t=Xr(e);return t==G||t==Y||"string"==typeof e.message&&"string"==typeof e.name&&!Ts(e)}function Es(e){if(!Cs(e))return!1;var t=Xr(e);return t==K||t==J||t==H||t==ee}function Ss(e){return"number"==typeof e&&e==Ws(e)}function xs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=I}function Cs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ps(e){return null!=e&&"object"==typeof e}var js=Wt?yn(Wt):function(e){return Ps(e)&&Ui(e)==$};function Ms(e){return"number"==typeof e||Ps(e)&&Xr(e)==Z}function Ts(e){if(!Ps(e)||Xr(e)!=Q)return!1;var t=Tt(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&<.call(n)==ht}var As=Ut?yn(Ut):function(e){return Ps(e)&&Xr(e)==te};var Ds=Ht?yn(Ht):function(e){return Ps(e)&&Ui(e)==ne};function Is(e){return"string"==typeof e||!ys(e)&&Ps(e)&&Xr(e)==re}function Ns(e){return"symbol"==typeof e||Ps(e)&&Xr(e)==oe}var Rs=qt?yn(qt):function(e){return Ps(e)&&xs(e.length)&&!!xt[Xr(e)]};var Fs=_i(fo),Ls=_i(function(e,t){return e<=t});function Bs(e){if(!e)return[];if(bs(e))return Is(e)?An(e):ri(e);if(Lt&&e[Lt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Lt]());var t=Ui(e);return(t==$?xn:t==ne?jn:pu)(e)}function zs(e){return e?(e=Hs(e))===D||e===-D?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function Ws(e){var t=zs(e),n=t%1;return t==t?n?t-n:t:0}function Us(e){return e?Ir(Ws(e),0,F):0}function Hs(e){if("number"==typeof e)return e;if(Ns(e))return R;if(Cs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Cs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ie,"");var n=Ve.test(e);return n||Ge.test(e)?Mt(e.slice(2),n?2:8):qe.test(e)?R:+e}function qs(e){return oi(e,iu(e))}function Vs(e){return null==e?"":Fo(e)}var Ys=ai(function(e,t){if(Zi(t)||bs(t))oi(t,ou(t),e);else for(var n in t)ct.call(t,n)&&Pr(e,n,t[n])}),Gs=ai(function(e,t){oi(t,iu(t),e)}),Ks=ai(function(e,t,n,r){oi(t,iu(t),e,r)}),Js=ai(function(e,t,n,r){oi(t,ou(t),e,r)}),$s=Mi(Dr);var Zs=Eo(function(e,t){e=tt(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Gi(t[0],t[1],o)&&(r=1);++n1),t}),oi(e,Ai(e),n),r&&(n=Nr(n,d|p|h,Pi));for(var o=t.length;o--;)Bo(n,t[o]);return n});var lu=Mi(function(e,t){return null==e?{}:function(e,t){return bo(e,t,function(t,n){return eu(e,n)})}(e,t)});function cu(e,t){if(null==e)return{};var n=Qt(Ai(e),function(e){return[e]});return t=Ri(t),bo(e,n,function(e,n){return t(e,n[0])})}var fu=Ei(ou),du=Ei(iu);function pu(e){return null==e?[]:gn(e,ou(e))}var hu=ci(function(e,t,n){return t=t.toLowerCase(),e+(n?vu(t):t)});function vu(e){return ku(Vs(e).toLowerCase())}function mu(e){return(e=Vs(e))&&e.replace(Je,On).replace(bt,"")}var yu=ci(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),gu=ci(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bu=li("toLowerCase");var _u=ci(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var wu=ci(function(e,t,n){return e+(n?" ":"")+ku(t)});var Ou=ci(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ku=li("toUpperCase");function Eu(e,t,n){return e=Vs(e),(t=n?i:t)===i?function(e){return kt.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(ze)||[]}(e):e.match(t)||[]}var Su=Eo(function(e,t){try{return Vt(e,i,t)}catch(e){return ks(e)?e:new Xe(e)}}),xu=Mi(function(e,t){return Gt(t,function(t){t=ca(t),Ar(e,t,ns(e[t],e))}),e});function Cu(e){return function(){return e}}var Pu=pi(),ju=pi(!0);function Mu(e){return e}function Tu(e){return uo("function"==typeof e?e:Nr(e,d))}var Au=Eo(function(e,t){return function(n){return ro(n,e,t)}}),Du=Eo(function(e,t){return function(n){return ro(e,n,t)}});function Iu(e,t,n){var r=ou(t),o=Jr(t,r);null!=n||Cs(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Jr(t,ou(t)));var i=!(Cs(n)&&"chain"in n&&!n.chain),a=Es(e);return Gt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ri(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Nu(){}var Ru=yi(Qt),Fu=yi(Jt),Lu=yi(rn);function Bu(e){return Ki(e)?dn(ca(e)):function(e){return function(t){return $r(t,e)}}(e)}var zu=bi(),Wu=bi(!0);function Uu(){return[]}function Hu(){return!1}var qu=mi(function(e,t){return e+t},0),Vu=Oi("ceil"),Yu=mi(function(e,t){return e/t},1),Gu=Oi("floor");var Ku,Ju=mi(function(e,t){return e*t},1),$u=Oi("round"),Zu=mi(function(e,t){return e-t},0);return pr.after=function(e,t){if("function"!=typeof t)throw new ot(u);return e=Ws(e),function(){if(--e<1)return t.apply(this,arguments)}},pr.ary=es,pr.assign=Ys,pr.assignIn=Gs,pr.assignInWith=Ks,pr.assignWith=Js,pr.at=$s,pr.before=ts,pr.bind=ns,pr.bindAll=xu,pr.bindKey=rs,pr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ys(e)?e:[e]},pr.chain=Ba,pr.chunk=function(e,t,n){t=(n?Gi(e,t,n):t===i)?1:Vn(Ws(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(Ln(o/t));ao?0:o+n),(r=r===i||r>o?o:Ws(r))<0&&(r+=o),r=n>r?0:Us(r);n>>0)?(e=Vs(e))&&("string"==typeof t||null!=t&&!As(t))&&!(t=Fo(t))&&Sn(e)?Jo(An(e),0,n):e.split(t,n):[]},pr.spread=function(e,t){if("function"!=typeof e)throw new ot(u);return t=null==t?0:Vn(Ws(t),0),Eo(function(n){var r=n[t],o=Jo(n,0,t);return r&&en(o,r),Vt(e,this,o)})},pr.tail=function(e){var t=null==e?0:e.length;return t?To(e,1,t):[]},pr.take=function(e,t,n){return e&&e.length?To(e,0,(t=n||t===i?1:Ws(t))<0?0:t):[]},pr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?To(e,(t=r-(t=n||t===i?1:Ws(t)))<0?0:t,r):[]},pr.takeRightWhile=function(e,t){return e&&e.length?Wo(e,Ri(t,3),!1,!0):[]},pr.takeWhile=function(e,t){return e&&e.length?Wo(e,Ri(t,3)):[]},pr.tap=function(e,t){return t(e),e},pr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ot(u);return Cs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),os(e,t,{leading:r,maxWait:t,trailing:o})},pr.thru=za,pr.toArray=Bs,pr.toPairs=fu,pr.toPairsIn=du,pr.toPath=function(e){return ys(e)?Qt(e,ca):Ns(e)?[e]:ri(la(Vs(e)))},pr.toPlainObject=qs,pr.transform=function(e,t,n){var r=ys(e),o=r||ws(e)||Rs(e);if(t=Ri(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Cs(e)&&Es(i)?hr(Tt(e)):{}}return(o?Gt:Gr)(e,function(e,r,o){return t(n,e,r,o)}),n},pr.unary=function(e){return es(e,1)},pr.union=Pa,pr.unionBy=ja,pr.unionWith=Ma,pr.uniq=function(e){return e&&e.length?Lo(e):[]},pr.uniqBy=function(e,t){return e&&e.length?Lo(e,Ri(t,2)):[]},pr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Lo(e,i,t):[]},pr.unset=function(e,t){return null==e||Bo(e,t)},pr.unzip=Ta,pr.unzipWith=Aa,pr.update=function(e,t,n){return null==e?e:zo(e,t,Yo(n))},pr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:zo(e,t,Yo(n),r)},pr.values=pu,pr.valuesIn=function(e){return null==e?[]:gn(e,iu(e))},pr.without=Da,pr.words=Eu,pr.wrap=function(e,t){return cs(Yo(t),e)},pr.xor=Ia,pr.xorBy=Na,pr.xorWith=Ra,pr.zip=Fa,pr.zipObject=function(e,t){return qo(e||[],t||[],Pr)},pr.zipObjectDeep=function(e,t){return qo(e||[],t||[],Co)},pr.zipWith=La,pr.entries=fu,pr.entriesIn=du,pr.extend=Gs,pr.extendWith=Ks,Iu(pr,pr),pr.add=qu,pr.attempt=Su,pr.camelCase=hu,pr.capitalize=vu,pr.ceil=Vu,pr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Hs(n))==n?n:0),t!==i&&(t=(t=Hs(t))==t?t:0),Ir(Hs(e),t,n)},pr.clone=function(e){return Nr(e,h)},pr.cloneDeep=function(e){return Nr(e,d|h)},pr.cloneDeepWith=function(e,t){return Nr(e,d|h,t="function"==typeof t?t:i)},pr.cloneWith=function(e,t){return Nr(e,h,t="function"==typeof t?t:i)},pr.conformsTo=function(e,t){return null==t||Rr(e,t,ou(t))},pr.deburr=mu,pr.defaultTo=function(e,t){return null==e||e!=e?t:e},pr.divide=Yu,pr.endsWith=function(e,t,n){e=Vs(e),t=Fo(t);var r=e.length,o=n=n===i?r:Ir(Ws(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},pr.eq=ps,pr.escape=function(e){return(e=Vs(e))&&Se.test(e)?e.replace(ke,kn):e},pr.escapeRegExp=function(e){return(e=Vs(e))&&De.test(e)?e.replace(Ae,"\\$&"):e},pr.every=function(e,t,n){var r=ys(e)?Jt:Wr;return n&&Gi(e,t,n)&&(t=i),r(e,Ri(t,3))},pr.find=Ha,pr.findIndex=ma,pr.findKey=function(e,t){return an(e,Ri(t,3),Gr)},pr.findLast=qa,pr.findLastIndex=ya,pr.findLastKey=function(e,t){return an(e,Ri(t,3),Kr)},pr.floor=Gu,pr.forEach=Va,pr.forEachRight=Ya,pr.forIn=function(e,t){return null==e?e:Vr(e,Ri(t,3),iu)},pr.forInRight=function(e,t){return null==e?e:Yr(e,Ri(t,3),iu)},pr.forOwn=function(e,t){return e&&Gr(e,Ri(t,3))},pr.forOwnRight=function(e,t){return e&&Kr(e,Ri(t,3))},pr.get=Qs,pr.gt=hs,pr.gte=vs,pr.has=function(e,t){return null!=e&&Hi(e,t,eo)},pr.hasIn=eu,pr.head=ba,pr.identity=Mu,pr.includes=function(e,t,n,r){e=bs(e)?e:pu(e),n=n&&!r?Ws(n):0;var o=e.length;return n<0&&(n=Vn(o+n,0)),Is(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&un(e,t,n)>-1},pr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ws(n);return o<0&&(o=Vn(r+o,0)),un(e,t,o)},pr.inRange=function(e,t,n){return t=zs(t),n===i?(n=t,t=0):n=zs(n),function(e,t,n){return e>=Yn(t,n)&&e=-I&&e<=I},pr.isSet=Ds,pr.isString=Is,pr.isSymbol=Ns,pr.isTypedArray=Rs,pr.isUndefined=function(e){return e===i},pr.isWeakMap=function(e){return Ps(e)&&Ui(e)==ae},pr.isWeakSet=function(e){return Ps(e)&&Xr(e)==se},pr.join=function(e,t){return null==e?"":Hn.call(e,t)},pr.kebabCase=yu,pr.last=ka,pr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Ws(n))<0?Vn(r+o,0):Yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,cn,o,!0)},pr.lowerCase=gu,pr.lowerFirst=bu,pr.lt=Fs,pr.lte=Ls,pr.max=function(e){return e&&e.length?Ur(e,Mu,Qr):i},pr.maxBy=function(e,t){return e&&e.length?Ur(e,Ri(t,2),Qr):i},pr.mean=function(e){return fn(e,Mu)},pr.meanBy=function(e,t){return fn(e,Ri(t,2))},pr.min=function(e){return e&&e.length?Ur(e,Mu,fo):i},pr.minBy=function(e,t){return e&&e.length?Ur(e,Ri(t,2),fo):i},pr.stubArray=Uu,pr.stubFalse=Hu,pr.stubObject=function(){return{}},pr.stubString=function(){return""},pr.stubTrue=function(){return!0},pr.multiply=Ju,pr.nth=function(e,t){return e&&e.length?yo(e,Ws(t)):i},pr.noConflict=function(){return Dt._===this&&(Dt._=vt),this},pr.noop=Nu,pr.now=Qa,pr.pad=function(e,t,n){e=Vs(e);var r=(t=Ws(t))?Tn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return gi(Bn(o),n)+e+gi(Ln(o),n)},pr.padEnd=function(e,t,n){e=Vs(e);var r=(t=Ws(t))?Tn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Jn();return Yn(e+o*(t-e+jt("1e-"+((o+"").length-1))),t)}return Oo(e,t)},pr.reduce=function(e,t,n){var r=ys(e)?tn:hn,o=arguments.length<3;return r(e,Ri(t,4),n,o,Br)},pr.reduceRight=function(e,t,n){var r=ys(e)?nn:hn,o=arguments.length<3;return r(e,Ri(t,4),n,o,zr)},pr.repeat=function(e,t,n){return t=(n?Gi(e,t,n):t===i)?1:Ws(t),ko(Vs(e),t)},pr.replace=function(){var e=arguments,t=Vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},pr.result=function(e,t,n){var r=-1,o=(t=Go(t,e)).length;for(o||(o=1,e=i);++rI)return[];var n=F,r=Yn(e,F);t=Ri(t),e-=F;for(var o=mn(r,t);++n=a)return e;var u=n-Tn(r);if(u<1)return r;var l=s?Jo(s,0,u).join(""):e.slice(0,u);if(o===i)return l+r;if(s&&(u+=l.length-u),As(o)){if(e.slice(u).search(o)){var c,f=l;for(o.global||(o=nt(o.source,Vs(He.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var d=c.index;l=l.slice(0,d===i?u:d)}}else if(e.indexOf(Fo(o),u)!=u){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},pr.unescape=function(e){return(e=Vs(e))&&Ee.test(e)?e.replace(Oe,Dn):e},pr.uniqueId=function(e){var t=++ft;return Vs(e)+t},pr.upperCase=Ou,pr.upperFirst=ku,pr.each=Va,pr.eachRight=Ya,pr.first=ba,Iu(pr,(Ku={},Gr(pr,function(e,t){ct.call(pr.prototype,t)||(Ku[t]=e)}),Ku),{chain:!1}),pr.VERSION="4.17.15",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){pr[e].placeholder=pr}),Gt(["drop","take"],function(e,t){yr.prototype[e]=function(n){n=n===i?1:Vn(Ws(n),0);var r=this.__filtered__&&!t?new yr(this):this.clone();return r.__filtered__?r.__takeCount__=Yn(n,r.__takeCount__):r.__views__.push({size:Yn(n,F),type:e+(r.__dir__<0?"Right":"")}),r},yr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==T||3==n;yr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ri(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Gt(["head","last"],function(e,t){var n="take"+(t?"Right":"");yr.prototype[e]=function(){return this[n](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");yr.prototype[e]=function(){return this.__filtered__?new yr(this):this[n](1)}}),yr.prototype.compact=function(){return this.filter(Mu)},yr.prototype.find=function(e){return this.filter(e).head()},yr.prototype.findLast=function(e){return this.reverse().find(e)},yr.prototype.invokeMap=Eo(function(e,t){return"function"==typeof e?new yr(this):this.map(function(n){return ro(n,e,t)})}),yr.prototype.reject=function(e){return this.filter(us(Ri(e)))},yr.prototype.slice=function(e,t){e=Ws(e);var n=this;return n.__filtered__&&(e>0||t<0)?new yr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Ws(t))<0?n.dropRight(-t):n.take(t-e)),n)},yr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},yr.prototype.toArray=function(){return this.take(F)},Gr(yr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=pr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(pr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof yr,l=s[0],c=u||ys(t),f=function(e){var t=o.apply(pr,en([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,v=u&&!p;if(!a&&c){t=v?t:new yr(this);var m=e.apply(t,s);return m.__actions__.push({func:za,args:[f],thisArg:i}),new mr(m,d)}return h&&v?e.apply(this,s):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=it[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);pr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ys(o)?o:[],e)}return this[n](function(n){return t.apply(ys(n)?n:[],e)})}}),Gr(yr.prototype,function(e,t){var n=pr[t];if(n){var r=n.name+"";ct.call(or,r)||(or[r]=[]),or[r].push({name:t,func:n})}}),or[hi(i,g).name]=[{name:"wrapper",func:i}],yr.prototype.clone=function(){var e=new yr(this.__wrapped__);return e.__actions__=ri(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ri(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ri(this.__views__),e},yr.prototype.reverse=function(){if(this.__filtered__){var e=new yr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},yr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ys(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},pr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var r=da(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},pr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof yr){var t=e;return this.__actions__.length&&(t=new yr(this)),(t=t.reverse()).__actions__.push({func:za,args:[Ca],thisArg:i}),new mr(t,this.__chain__)}return this.thru(Ca)},pr.prototype.toJSON=pr.prototype.valueOf=pr.prototype.value=function(){return Uo(this.__wrapped__,this.__actions__)},pr.prototype.first=pr.prototype.head,Lt&&(pr.prototype[Lt]=function(){return this}),pr}();Dt._=In,(o=function(){return In}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(t,n(24),n(67)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(993)),o=i(n(1086));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)({name:"default",types:o.default.concat([{ + "type": "document", + "name": "config", + "title": "Global Site Config", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "Site title", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "palette", + "title": "Palette", + "description": "The palette of the theme.", + "initialValue": "blue", + "validation": null, + "options": { + "list": [ + "blue", + "green", + "navy", + "violet" + ] + } + }, + { + "type": "object", + "name": "palettes", + "title": "Palettes", + "hidden": true, + "validation": null, + "fields": [ + { + "type": "palette", + "name": "blue", + "title": "Blue", + "validation": null + }, + { + "type": "palette", + "name": "green", + "title": "Green", + "validation": null + }, + { + "type": "palette", + "name": "navy", + "title": "Navy", + "validation": null + }, + { + "type": "palette", + "name": "violet", + "title": "Violet", + "validation": null + } + ] + }, + { + "type": "string", + "name": "stackbit_file_path", + "title": "Config File Path", + "description": "The file path of the configuration file", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "site-metadata.json" + ] + } + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "config" + ] + } + } + ], + "singleInstance": true +},{ + "type": "document", + "name": "author", + "title": "Author", + "fields": [ + { + "type": "string", + "name": "name", + "title": "Name", + "validation": null + }, + { + "type": "string", + "name": "email", + "title": "Email", + "validation": null + }, + { + "type": "image", + "name": "avatar", + "title": "Avatar", + "validation": null + }, + { + "type": "string", + "name": "stackbit_file_path", + "title": "Author File Path", + "description": "The file path of the file that stores this data", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "src/data/author.json" + ] + } + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "data" + ] + } + } + ], + "singleInstance": true +},{ + "type": "document", + "name": "header", + "title": "Header", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Header Title", + "description": "The title displayed in the header if no logo image added.", + "validation": null + }, + { + "type": "image", + "name": "logo_img", + "title": "Logo Image", + "description": "The logo image displayed in the header.", + "validation": null + }, + { + "type": "string", + "name": "url", + "title": "Header Title/Logo URL", + "description": "The url of the header title/logo.", + "validation": null + }, + { + "type": "boolean", + "name": "has_nav", + "title": "Enable Navigation Menu", + "description": "Display the navigation menu bar in the header.", + "initialValue": true, + "validation": null + }, + { + "type": "string", + "name": "stackbit_file_path", + "title": "Header File Path", + "description": "The file path of the file that stores this data", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "src/data/header.yml" + ] + } + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "data" + ] + } + } + ], + "singleInstance": true +},{ + "type": "document", + "name": "footer", + "title": "Footer", + "fields": [ + { + "type": "string", + "name": "content", + "title": "Footer Content", + "description": "The copyright text displayed in the footer.", + "validation": null + }, + { + "type": "array", + "name": "links", + "title": "Links", + "description": "A list of links displayed in the footer.", + "validation": null, + "of": [ + { + "type": "object", + "fields": [ + { + "type": "string", + "name": "text", + "title": "Link text", + "validation": null + }, + { + "type": "string", + "name": "url", + "title": "URL", + "validation": null + }, + { + "type": "boolean", + "name": "new_window", + "title": "Open in new window", + "initialValue": true, + "validation": null + } + ], + "preview": { + "select": { + "title": "text" + } + } + } + ] + }, + { + "type": "boolean", + "name": "has_social", + "title": "Enable Social Links", + "description": "Display social links in the footer.", + "initialValue": true, + "validation": null + }, + { + "type": "string", + "name": "stackbit_file_path", + "title": "Footer File Path", + "description": "The file path of the file that stores this data", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "src/data/footer.yml" + ] + } + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "data" + ] + } + } + ], + "singleInstance": true +},{ + "type": "document", + "name": "social", + "title": "Social Links", + "fields": [ + { + "type": "array", + "name": "links", + "title": "Social Links", + "description": "A list of social links displayed in the footer.", + "validation": null, + "of": [ + { + "type": "object", + "fields": [ + { + "type": "string", + "name": "type", + "title": "Type", + "hidden": true, + "validation": null + }, + { + "type": "string", + "name": "title", + "title": "Title", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "icon", + "title": "Icon", + "description": "Font Awesome icon class name.", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "url", + "title": "URL", + "validation": Rule => Rule.required() + } + ], + "preview": { + "select": { + "title": "title" + } + } + } + ] + }, + { + "type": "string", + "name": "stackbit_file_path", + "title": "Social Links File Path", + "description": "The file path of the file that stores this data", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "src/data/social.json" + ] + } + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "data" + ] + } + } + ], + "singleInstance": true +},{ + "type": "document", + "name": "doc_sections", + "title": "Documentation Sections", + "fields": [ + { + "type": "string", + "name": "root_folder", + "title": "Root Folder", + "description": "The path under which the documentation pages will be generated. For example, set to \"/\" to put all documentation pages at root, or set to \"/docs/\" to put all documentation pages under \"/docs/\".", + "initialValue": "/docs/", + "validation": Rule => Rule.required() + }, + { + "type": "array", + "name": "sections", + "title": "Sections", + "description": "The main sections of the documentation. Every item must be the URL slug representing the section.", + "validation": null, + "of": [ + { + "type": "string" + } + ] + }, + { + "type": "string", + "name": "stackbit_file_path", + "title": "Documentation Sections File Path", + "description": "The file path of the file that stores this data", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "src/data/doc_sections.yml" + ] + } + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "data" + ] + } + } + ], + "singleInstance": true +},{ + "type": "document", + "name": "docs", + "title": "Documentation Pages", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the page, used both as a page title and as a navigation menu title.", + "validation": Rule => Rule.required() + }, + { + "type": "number", + "name": "weight", + "title": "Weight", + "description": "The navigation order of the documentation page. This value is ignored for parent section pages.", + "validation": Rule => Rule.integer() + }, + { + "type": "string", + "name": "excerpt", + "title": "Excerpt", + "description": "Short description of the documentation section. This value is used in overview page and is ignored for child section pages.", + "validation": null + }, + { + "type": "page_menus", + "name": "menus", + "title": "Documentation Pages Menus", + "description": "Which menus should this page show up in", + "validation": null + }, + { + "type": "string", + "name": "template", + "title": "Template", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "docs" + ] + } + }, + { + "type": "string", + "name": "stackbit_url_path", + "title": "Documentation Pages URL Path", + "description": "The URL path of this page relative to site root. For example, the site root page would be \"/\", and post page would be \"posts/new-post/\"", + "validation": Rule => Rule.required() + }, + { + "type": "markdown", + "name": "content", + "title": "Content", + "description": "Page content", + "validation": null + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "page" + ] + } + } + ], + "preview": { + "select": { + "title": "title" + } + } +},{ + "type": "document", + "name": "home", + "title": "Home", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the page.", + "validation": Rule => Rule.required() + }, + { + "type": "array", + "name": "sections", + "title": "Sections", + "description": "Home page sections.", + "validation": null, + "of": [ + { + "type": "contentblock" + }, + { + "type": "ctablock" + }, + { + "type": "featuresblock" + }, + { + "type": "heroblock" + } + ] + }, + { + "type": "page_menus", + "name": "menus", + "title": "Home Menus", + "description": "Which menus should this page show up in", + "validation": null + }, + { + "type": "string", + "name": "template", + "title": "Template", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "home" + ] + } + }, + { + "type": "string", + "name": "stackbit_url_path", + "title": "Home URL Path", + "description": "The URL path of this page relative to site root. For example, the site root page would be \"/\", and post page would be \"posts/new-post/\"", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "page" + ] + } + } + ], + "singleInstance": true, + "preview": { + "select": { + "title": "title" + } + } +},{ + "type": "document", + "name": "blog", + "title": "Blog", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the page.", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "subtitle", + "title": "Subtitle", + "description": "The text shown just below the page title.", + "validation": null + }, + { + "type": "image", + "name": "img_path", + "title": "Image", + "description": "The image shown in the background of the page header.", + "validation": null + }, + { + "type": "page_menus", + "name": "menus", + "title": "Blog Menus", + "description": "Which menus should this page show up in", + "validation": null + }, + { + "type": "string", + "name": "template", + "title": "Template", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "blog" + ] + } + }, + { + "type": "string", + "name": "stackbit_url_path", + "title": "Blog URL Path", + "description": "The URL path of this page relative to site root. For example, the site root page would be \"/\", and post page would be \"posts/new-post/\"", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "page" + ] + } + } + ], + "singleInstance": true, + "preview": { + "select": { + "title": "title" + } + } +},{ + "type": "document", + "name": "overview", + "title": "Overview", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the page.", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "subtitle", + "title": "Subtitle", + "description": "The text shown just below the page title.", + "validation": null + }, + { + "type": "image", + "name": "img_path", + "title": "Image", + "description": "The image shown in the background of the page header.", + "validation": null + }, + { + "type": "array", + "name": "sections", + "title": "Sections", + "description": "Home page sections.", + "validation": null, + "of": [ + { + "type": "contentblock" + }, + { + "type": "ctablock" + } + ] + }, + { + "type": "page_menus", + "name": "menus", + "title": "Overview Menus", + "description": "Which menus should this page show up in", + "validation": null + }, + { + "type": "string", + "name": "template", + "title": "Template", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "overview" + ] + } + }, + { + "type": "string", + "name": "stackbit_url_path", + "title": "Overview URL Path", + "description": "The URL path of this page relative to site root. For example, the site root page would be \"/\", and post page would be \"posts/new-post/\"", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "page" + ] + } + } + ], + "singleInstance": true, + "preview": { + "select": { + "title": "title" + } + } +},{ + "type": "document", + "name": "showcase", + "title": "Showcase", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the page.", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "subtitle", + "title": "Subtitle", + "description": "The text shown just below the page title.", + "validation": null + }, + { + "type": "image", + "name": "img_path", + "title": "Image", + "description": "The image shown in the background of the page header.", + "validation": null + }, + { + "type": "array", + "name": "items", + "title": "Items", + "description": "Showcase items.", + "validation": null, + "of": [ + { + "type": "object", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the item.", + "validation": null + }, + { + "type": "string", + "name": "subtitle", + "title": "Subtitle", + "description": "The subtitle of the item.", + "validation": null + }, + { + "type": "image", + "name": "preview_img", + "title": "Preview Image", + "description": "The preview image of the item.", + "validation": null + }, + { + "type": "string", + "name": "url", + "title": "URL", + "description": "The URL of the item.", + "validation": null + } + ], + "preview": { + "select": { + "title": "title" + } + } + } + ] + }, + { + "type": "page_menus", + "name": "menus", + "title": "Showcase Menus", + "description": "Which menus should this page show up in", + "validation": null + }, + { + "type": "string", + "name": "template", + "title": "Template", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "showcase" + ] + } + }, + { + "type": "string", + "name": "stackbit_url_path", + "title": "Showcase URL Path", + "description": "The URL path of this page relative to site root. For example, the site root page would be \"/\", and post page would be \"posts/new-post/\"", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "page" + ] + } + } + ], + "singleInstance": true, + "preview": { + "select": { + "title": "title" + } + } +},{ + "type": "document", + "name": "page", + "title": "Page", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the page.", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "subtitle", + "title": "Subtitle", + "description": "The text shown just below the page title.", + "validation": null + }, + { + "type": "image", + "name": "img_path", + "title": "Image", + "description": "The image shown below the page title and subtitle.", + "validation": null + }, + { + "type": "page_menus", + "name": "menus", + "title": "Page Menus", + "description": "Which menus should this page show up in", + "validation": null + }, + { + "type": "string", + "name": "template", + "title": "Template", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "page" + ] + } + }, + { + "type": "string", + "name": "stackbit_url_path", + "title": "Page URL Path", + "description": "The URL path of this page relative to site root. For example, the site root page would be \"/\", and post page would be \"posts/new-post/\"", + "validation": Rule => Rule.required() + }, + { + "type": "markdown", + "name": "content", + "title": "Content", + "description": "Page content", + "validation": null + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "page" + ] + } + } + ], + "preview": { + "select": { + "title": "title" + } + } +},{ + "type": "document", + "name": "post", + "title": "Post", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the post", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "subtitle", + "title": "Subtitle", + "description": "The text shown just below the post title.", + "validation": null + }, + { + "type": "date", + "name": "date", + "title": "Date", + "validation": Rule => Rule.required() + }, + { + "type": "image", + "name": "thumb_img_path", + "title": "Featured Image", + "description": "The image shown in the blog feed.", + "validation": null + }, + { + "type": "image", + "name": "content_img_path", + "title": "Alt Featured Image", + "description": "The image shown in the header background in the single post.", + "validation": null + }, + { + "type": "string", + "name": "excerpt", + "title": "Excerpt", + "description": "The excerpt of the post displayed in the blog feed.", + "validation": null + }, + { + "type": "page_menus", + "name": "menus", + "title": "Post Menus", + "description": "Which menus should this page show up in", + "validation": null + }, + { + "type": "string", + "name": "template", + "title": "Template", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "post" + ] + } + }, + { + "type": "string", + "name": "stackbit_url_path", + "title": "Post URL Path", + "description": "The URL path of this page relative to site root. For example, the site root page would be \"/\", and post page would be \"posts/new-post/\"", + "validation": Rule => Rule.required() + }, + { + "type": "markdown", + "name": "content", + "title": "Content", + "description": "Page content", + "validation": null + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "page" + ] + } + } + ], + "preview": { + "select": { + "title": "title" + } + } +},{ + "type": "object", + "name": "contentblock", + "title": "Content Section", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the section.", + "validation": null + }, + { + "type": "string", + "name": "section_id", + "title": "Element ID", + "validation": null + }, + { + "type": "string", + "name": "component", + "title": "Component", + "hidden": false, + "initialValue": "ContentBlock", + "validation": Rule => Rule.required(), + "options": { + "list": [ + "ContentBlock" + ] + } + }, + { + "type": "markdown", + "name": "content", + "title": "Content", + "description": "The text content of the section.", + "validation": null + }, + { + "type": "image", + "name": "image", + "title": "Image", + "description": "The image of the section.", + "validation": null + }, + { + "type": "array", + "name": "actions", + "title": "Action Buttons", + "validation": null, + "of": [ + { + "type": "action" + } + ] + }, + { + "type": "string", + "name": "type", + "title": "Reference Type Name", + "description": "Name of the Stackbit object model, used by fields of type reference", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "contentblock" + ] + } + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "object" + ] + } + } + ], + "preview": { + "select": { + "title": "title" + } + } +},{ + "type": "object", + "name": "ctablock", + "title": "Call to Action Section", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the section.", + "validation": null + }, + { + "type": "string", + "name": "section_id", + "title": "Element ID", + "validation": null + }, + { + "type": "string", + "name": "component", + "title": "Component", + "hidden": false, + "initialValue": "CtaBlock", + "validation": Rule => Rule.required(), + "options": { + "list": [ + "CtaBlock" + ] + } + }, + { + "type": "string", + "name": "subtitle", + "title": "Subtitle", + "description": "The subtitle of the section.", + "validation": null + }, + { + "type": "array", + "name": "actions", + "title": "Action Buttons", + "validation": null, + "of": [ + { + "type": "action" + } + ] + }, + { + "type": "string", + "name": "type", + "title": "Reference Type Name", + "description": "Name of the Stackbit object model, used by fields of type reference", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "ctablock" + ] + } + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "object" + ] + } + } + ], + "preview": { + "select": { + "title": "title" + } + } +},{ + "type": "object", + "name": "featuresblock", + "title": "Features Section", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the section.", + "validation": null + }, + { + "type": "string", + "name": "section_id", + "title": "Element ID", + "validation": null + }, + { + "type": "string", + "name": "component", + "title": "Component", + "hidden": false, + "initialValue": "FeaturesBlock", + "validation": Rule => Rule.required(), + "options": { + "list": [ + "FeaturesBlock" + ] + } + }, + { + "type": "string", + "name": "subtitle", + "title": "Subtitle", + "description": "The subtitle of the section.", + "validation": null + }, + { + "type": "array", + "name": "featureslist", + "title": "Features List", + "validation": null, + "of": [ + { + "type": "object", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "validation": null + }, + { + "type": "markdown", + "name": "content", + "title": "Content", + "description": "The text content of the feature.", + "validation": null + }, + { + "type": "array", + "name": "actions", + "title": "Action Buttons", + "validation": null, + "of": [ + { + "type": "action" + } + ] + } + ], + "preview": { + "select": { + "title": "title" + } + } + } + ] + }, + { + "type": "string", + "name": "type", + "title": "Reference Type Name", + "description": "Name of the Stackbit object model, used by fields of type reference", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "featuresblock" + ] + } + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "object" + ] + } + } + ], + "preview": { + "select": { + "title": "title" + } + } +},{ + "type": "object", + "name": "heroblock", + "title": "Hero Section", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the section.", + "validation": null + }, + { + "type": "string", + "name": "section_id", + "title": "Element ID", + "validation": null + }, + { + "type": "string", + "name": "component", + "title": "Component", + "hidden": false, + "initialValue": "HeroBlock", + "validation": Rule => Rule.required(), + "options": { + "list": [ + "HeroBlock" + ] + } + }, + { + "type": "markdown", + "name": "content", + "title": "Content", + "description": "The text content of the section.", + "validation": null + }, + { + "type": "image", + "name": "image", + "title": "Image", + "description": "The image shown in the background of the section.", + "validation": null + }, + { + "type": "array", + "name": "actions", + "title": "Action Buttons", + "validation": null, + "of": [ + { + "type": "action" + } + ] + }, + { + "type": "string", + "name": "type", + "title": "Reference Type Name", + "description": "Name of the Stackbit object model, used by fields of type reference", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "heroblock" + ] + } + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "object" + ] + } + } + ], + "preview": { + "select": { + "title": "title" + } + } +},{ + "type": "object", + "name": "action", + "title": "Action", + "fields": [ + { + "type": "string", + "name": "label", + "title": "Label", + "description": "The text displayed inside the button.", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "url", + "title": "Button URL", + "validation": null + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "object" + ] + } + } + ], + "preview": { + "select": { + "title": "label" + } + } +},{ + "type": "object", + "name": "palette", + "title": "Palette", + "fields": [ + { + "type": "object", + "name": "sass", + "title": "SASS", + "validation": null, + "fields": [ + { + "type": "color", + "name": "accent1", + "title": "accent 1", + "validation": null, + "options": { + "disableAlpha": true + } + }, + { + "type": "color", + "name": "accent2", + "title": "accent 2", + "validation": null, + "options": { + "disableAlpha": true + } + } + ] + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "object" + ] + } + } + ] +},{ + "type": "document", + "name": "site_menus", + "title": "Site Menus", + "fields": [ + { + "type": "array", + "name": "main", + "title": "Main menu", + "description": "List of items for Main menu", + "validation": null, + "of": [ + { + "type": "site_menu_item" + } + ] + }, + { + "type": "array", + "name": "layouts", + "title": "Layouts menu", + "description": "List of items for Layouts menu", + "validation": null, + "of": [ + { + "type": "site_menu_item" + } + ] + }, + { + "type": "string", + "name": "stackbit_file_path", + "title": "Site Menus File Path", + "description": "The file path of the file that stores this data", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "src/data/menus.json" + ] + } + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "data" + ] + } + } + ], + "singleInstance": true +},{ + "type": "object", + "name": "site_menu_item", + "title": "Site Menu Item", + "fields": [ + { + "type": "string", + "name": "identifier", + "title": "Identifier", + "description": "The identifier of a menu item could be used as a parent menu of another menu item", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the menu item", + "validation": Rule => Rule.required() + }, + { + "type": "string", + "name": "url", + "title": "URL", + "description": "The URL the menu item links to", + "validation": Rule => Rule.required() + }, + { + "type": "number", + "name": "weight", + "title": "Weight", + "description": "Position for sorting", + "validation": Rule => Rule.integer() + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "object" + ] + } + } + ], + "preview": { + "select": { + "title": "title" + } + } +},{ + "type": "object", + "name": "page_menus", + "title": "Page Menus", + "fields": [ + { + "type": "page_menu_item", + "name": "main", + "title": "Main menu item", + "description": "Main menu item for this page", + "validation": null + }, + { + "type": "page_menu_item", + "name": "layouts", + "title": "Layouts menu item", + "description": "Layouts menu item for this page", + "validation": null + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "object" + ] + } + } + ] +},{ + "type": "object", + "name": "page_menu_item", + "title": "Page Menu Item", + "fields": [ + { + "type": "string", + "name": "title", + "title": "Title", + "description": "The title of the menu item", + "validation": null + }, + { + "type": "number", + "name": "weight", + "title": "Weight", + "description": "Position for sorting", + "validation": Rule => Rule.integer() + }, + { + "type": "string", + "name": "identifier", + "title": "Identifier", + "description": "The identifier of a menu item could be used as a parent menu of another menu item", + "validation": null + }, + { + "type": "string", + "name": "stackbit_model_type", + "title": "Stackbit Model Type", + "description": "Stackbit model type", + "hidden": false, + "validation": Rule => Rule.required(), + "options": { + "list": [ + "object" + ] + } + } + ], + "preview": { + "select": { + "title": "title" + } + } +}])});t.default=a},function(e,t,n){"use strict";e.exports=function(e){return o.test("number"==typeof e?r(e):e.charAt(0))};var r=String.fromCharCode,o=/\s/},function(e,t,n){(function(e){var t;t=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var z=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},H={};function q(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(H[e]=o),t&&(H[t[0]]=function(){return B(o.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=Y(t,e.localeData()),U[t]=U[t]||function(e){var t,n,r,o=e.match(z);for(t=0,n=o.length;t=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var G=/\d/,K=/\d\d/,J=/\d{3}/,$=/\d{4}/,Z=/[+-]?\d{6}/,X=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ie=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function ce(e,t,n){le[e]=M(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return f(le,e)?le[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=k(e)}),n=0;n68?1900:2e3)};var Pe,je=Me("FullYear",!0);function Me(e,t){return function(n){return null!=n?(Ae(this,e,n),o.updateOffset(this,t),this):Te(this,e)}}function Te(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ae(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ce(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),De(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function De(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ce(e)?29:28:31-r%7%2}Pe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function He(e,t,n){var r=7+t-n;return-((7+Ue(e,0,r).getUTCDay()-t)%7)+r-1}function qe(e,t,n,r,o){var i,a,s=1+7*(t-1)+(7+n-r)%7+He(e,r,o);return s<=0?a=xe(i=e-1)+s:s>xe(e)?(i=e+1,a=s-xe(e)):(i=e,a=s),{year:i,dayOfYear:a}}function Ve(e,t,n){var r,o,i=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Ye(o=e.year()-1,t,n):a>Ye(e.year(),t,n)?(r=a-Ye(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Ye(e,t,n){var r=He(e,t,n),o=He(e+1,t,n);return(xe(e)-r+o)/7}function Ge(e,t){return e.slice(t,7).concat(e.slice(0,t))}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),L("week",5),L("isoWeek",5),ce("w",X),ce("ww",X,K),ce("W",X),ce("WW",X,K),ve(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=k(e)}),q("d",0,"do","day"),q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),ce("d",X),ce("e",X),ce("E",X),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),ve(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),ve(["d","e","E"],function(e,t,n,r){t[r]=k(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=ue,Xe=ue,Qe=ue;function et(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),u.push(i),l.push(r),l.push(o),l.push(i);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=de(s[t]),u[t]=de(u[t]),l[t]=de(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function tt(){return this.hours()%12||12}function nt(e,t){q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function rt(e,t){return t._meridiemParse}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,tt),q("k",["kk",2],0,function(){return this.hours()||24}),q("hmm",0,0,function(){return""+tt.apply(this)+B(this.minutes(),2)}),q("hmmss",0,0,function(){return""+tt.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),nt("a",!0),nt("A",!1),I("hour","h"),L("hour",13),ce("a",rt),ce("A",rt),ce("H",X),ce("h",X),ce("k",X),ce("HH",X,K),ce("hh",X,K),ce("kk",X,K),ce("hmm",Q),ce("hmmss",ee),ce("Hmm",Q),ce("Hmmss",ee),he(["H","HH"],_e),he(["k","kk"],function(e,t,n){var r=k(e);t[_e]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[_e]=k(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r,2)),t[Oe]=k(e.substr(o)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r,2)),t[Oe]=k(e.substr(o))});var ot,it=Me("Hours",!0),at={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ne,monthsShort:Re,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:$e,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},st={},ut={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ct(t){var r=null;if(!st[t]&&void 0!==e&&e&&e.exports)try{r=ot._abbr;n(1353)("./"+t),ft(r)}catch(e){}return st[t]}function ft(e,t){var n;return e&&((n=s(t)?pt(e):dt(e,t))?ot=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function dt(e,t){if(null!==t){var n,r=at;if(t.abbr=e,null!=st[e])j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])r=st[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;r=n._config}return st[e]=new A(T(r,t)),ut[e]&&ut[e].forEach(function(e){dt(e.name,e.config)}),ft(e),st[e]}return delete st[e],null}function pt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ot;if(!i(e)){if(t=ct(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=ct(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&E(o,n,!0)>=t-1)break;t--}i++}return ot}(e)}function ht(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[be]<1||n[be]>De(n[ye],n[ge])?be:n[_e]<0||n[_e]>24||24===n[_e]&&(0!==n[we]||0!==n[Oe]||0!==n[ke])?_e:n[we]<0||n[we]>59?we:n[Oe]<0||n[Oe]>59?Oe:n[ke]<0||n[ke]>999?ke:-1,h(e)._overflowDayOfYear&&(tbe)&&(t=be),h(e)._overflowWeeks&&-1===t&&(t=Ee),h(e)._overflowWeekday&&-1===t&&(t=Se),h(e).overflow=t),e}function vt(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[ge]&&function(e){var t,n,r,o,i,a,s,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=vt(t.GG,e._a[ye],Ve(Tt(),1,4).year),r=vt(t.W,1),((o=vt(t.E,1))<1||o>7)&&(u=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var l=Ve(Tt(),i,a);n=vt(t.gg,e._a[ye],l.year),r=vt(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i}r<1||r>Ye(n,i,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=qe(n,r,o,i,a),e._a[ye]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=vt(e._a[ye],r[ye]),(e._dayOfYear>xe(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ue(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_e]&&0===e._a[we]&&0===e._a[Oe]&&0===e._a[ke]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?Ue:function(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],wt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ot=/^\/?Date\((\-?\d+)/i;function kt(e){var t,n,r,o,i,a,s=e._i,u=yt.exec(s)||gt.exec(s);if(u){for(h(e).iso=!0,t=0,n=_t.length;t0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),l+=n.length),H[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),me(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=u-l,s.length>0&&h(e).unusedInput.push(s),e._a[_e]<=12&&!0===h(e).bigHour&&e._a[_e]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[_e]=function(e,t,n){var r;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[_e],e._meridiem),mt(e),ht(e)}else Ct(e);else kt(e)}function jt(e){var t=e._i,n=e._f;return e._locale=e._locale||pt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(ht(t)):(l(t)?e._d=t:i(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:m()});function It(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Tt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-un:new Date(e,t,n).valueOf()}function fn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-un:Date.UTC(e,t,n)}function dn(e,t){q(0,[e,e.length],0,t)}function pn(e,t,n,r,o){var i;return null==e?Ve(this,r,o).year:(t>(i=Ye(e,r,o))&&(t=i),function(e,t,n,r,o){var i=qe(e,t,n,r,o),a=Ue(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),dn("gggg","weekYear"),dn("ggggg","weekYear"),dn("GGGG","isoWeekYear"),dn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),ce("G",ie),ce("g",ie),ce("GG",X,K),ce("gg",X,K),ce("GGGG",ne,$),ce("gggg",ne,$),ce("GGGGG",re,Z),ce("ggggg",re,Z),ve(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=k(e)}),ve(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),q("Q",0,"Qo","quarter"),I("quarter","Q"),L("quarter",7),ce("Q",G),he("Q",function(e,t){t[ge]=3*(k(e)-1)}),q("D",["DD",2],"Do","date"),I("date","D"),L("date",9),ce("D",X),ce("DD",X,K),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],be),he("Do",function(e,t){t[be]=k(e.match(X)[0])});var hn=Me("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),L("dayOfYear",4),ce("DDD",te),ce("DDDD",J),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),q("m",["mm",2],0,"minute"),I("minute","m"),L("minute",14),ce("m",X),ce("mm",X,K),he(["m","mm"],we);var vn=Me("Minutes",!1);q("s",["ss",2],0,"second"),I("second","s"),L("second",15),ce("s",X),ce("ss",X,K),he(["s","ss"],Oe);var mn,yn=Me("Seconds",!1);for(q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),L("millisecond",16),ce("S",te,G),ce("SS",te,K),ce("SSS",te,J),mn="SSSS";mn.length<=9;mn+="S")ce(mn,oe);function gn(e,t){t[ke]=k(1e3*("0."+e))}for(mn="S";mn.length<=9;mn+="S")he(mn,gn);var bn=Me("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var _n=_.prototype;function wn(e){return e}_n.add=Xt,_n.calendar=function(e,t){var n=e||Tt(),r=Ut(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(M(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Tt(n)))},_n.clone=function(){return new _(this)},_n.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=N(t)){case"year":i=en(this,r)/12;break;case"month":i=en(this,r);break;case"quarter":i=en(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:O(i)},_n.endOf=function(e){var t;if(void 0===(e=N(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?fn:cn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=sn-ln(t+(this._isUTC?0:this.utcOffset()*an),sn)-1;break;case"minute":t=this._d.valueOf(),t+=an-ln(t,an)-1;break;case"second":t=this._d.valueOf(),t+=on-ln(t,on)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},_n.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},_n.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Tt(e).isValid())?Gt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.fromNow=function(e){return this.from(Tt(),e)},_n.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Tt(e).isValid())?Gt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},_n.toNow=function(e){return this.to(Tt(),e)},_n.get=function(e){return M(this[e=N(e)])?this[e]():this},_n.invalidAt=function(){return h(this).overflow},_n.isAfter=function(e,t){var n=w(e)?e:Tt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.year=je,_n.isLeapYear=function(){return Ce(this.year())},_n.weekYear=function(e){return pn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(e){return pn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},_n.month=Le,_n.daysInMonth=function(){return De(this.year(),this.month())},_n.week=_n.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},_n.isoWeek=_n.isoWeeks=function(e){var t=Ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},_n.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},_n.isoWeeksInYear=function(){return Ye(this.year(),1,4)},_n.date=hn,_n.day=_n.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},_n.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},_n.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},_n.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},_n.hour=_n.hours=it,_n.minute=_n.minutes=vn,_n.second=_n.seconds=yn,_n.millisecond=_n.milliseconds=bn,_n.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Wt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Ht(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Zt(this,Gt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Ht(this)},_n.utc=function(e){return this.utcOffset(0,e)},_n.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ht(this),"m")),this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Wt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Tt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=qt,_n.isUTC=qt,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=x("dates accessor is deprecated. Use date instead.",hn),_n.months=x("months accessor is deprecated. Use month instead",Le),_n.years=x("years accessor is deprecated. Use year instead",je),_n.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),_n.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=jt(e))._a){var t=e._isUTC?p(e._a):Tt(e._a);this._isDSTShifted=this.isValid()&&E(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var On=A.prototype;function kn(e,t,n,r){var o=pt(),i=p().set(r,t);return o[n](i,e)}function En(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return kn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=kn(e,r,n,"month");return o}function Sn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,i=pt(),a=e?i._week.dow:0;if(null!=n)return kn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=kn(t,(o+a)%7,r,"day");return s}On.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return M(r)?r.call(t,n):r},On.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},On.invalidDate=function(){return this._invalidDate},On.ordinal=function(e){return this._ordinal.replace("%d",e)},On.preparse=wn,On.postformat=wn,On.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return M(o)?o(e,t,n,r):o.replace(/%d/i,e)},On.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return M(n)?n(t):n.replace(/%s/i,t)},On.set=function(e){var t,n;for(n in e)M(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},On.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},On.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},On.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Pe.call(this._shortMonthsParse,a))?o:null:-1!==(o=Pe.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Pe.call(this._shortMonthsParse,a))?o:-1!==(o=Pe.call(this._longMonthsParse,a))?o:null:-1!==(o=Pe.call(this._longMonthsParse,a))?o:-1!==(o=Pe.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},On.monthsRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=ze),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},On.monthsShortRegex=function(e){return this._monthsParseExact?(f(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},On.week=function(e){return Ve(e,this._week.dow,this._week.doy).week},On.firstDayOfYear=function(){return this._week.doy},On.firstDayOfWeek=function(){return this._week.dow},On.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ge(n,this._week.dow):e?n[e.day()]:n},On.weekdaysMin=function(e){return!0===e?Ge(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},On.weekdaysShort=function(e){return!0===e?Ge(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},On.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Pe.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Pe.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Pe.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Pe.call(this._weekdaysParse,a))?o:-1!==(o=Pe.call(this._shortWeekdaysParse,a))?o:-1!==(o=Pe.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Pe.call(this._shortWeekdaysParse,a))?o:-1!==(o=Pe.call(this._weekdaysParse,a))?o:-1!==(o=Pe.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Pe.call(this._minWeekdaysParse,a))?o:-1!==(o=Pe.call(this._weekdaysParse,a))?o:-1!==(o=Pe.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},On.weekdaysRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},On.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},On.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},On.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},On.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=x("moment.lang is deprecated. Use moment.locale instead.",ft),o.langData=x("moment.langData is deprecated. Use moment.localeData instead.",pt);var xn=Math.abs;function Cn(e,t,n,r){var o=Gt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Pn(e){return e<0?Math.floor(e):Math.ceil(e)}function jn(e){return 4800*e/146097}function Mn(e){return 146097*e/4800}function Tn(e){return function(){return this.as(e)}}var An=Tn("ms"),Dn=Tn("s"),In=Tn("m"),Nn=Tn("h"),Rn=Tn("d"),Fn=Tn("w"),Ln=Tn("M"),Bn=Tn("Q"),zn=Tn("y");function Wn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Un=Wn("milliseconds"),Hn=Wn("seconds"),qn=Wn("minutes"),Vn=Wn("hours"),Yn=Wn("days"),Gn=Wn("months"),Kn=Wn("years"),Jn=Math.round,$n={ss:44,s:45,m:45,h:22,d:26,M:11},Zn=Math.abs;function Xn(e){return(e>0)-(e<0)||+e}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Zn(this._milliseconds)/1e3,r=Zn(this._days),o=Zn(this._months);e=O(n/60),t=O(e/60),n%=60,e%=60;var i=O(o/12),a=o%=12,s=r,u=t,l=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var d=f<0?"-":"",p=Xn(this._months)!==Xn(f)?"-":"",h=Xn(this._days)!==Xn(f)?"-":"",v=Xn(this._milliseconds)!==Xn(f)?"-":"";return d+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(u||l||c?"T":"")+(u?v+u+"H":"")+(l?v+l+"M":"")+(c?v+c+"S":"")}var er=Rt.prototype;return er.isValid=function(){return this._isValid},er.abs=function(){var e=this._data;return this._milliseconds=xn(this._milliseconds),this._days=xn(this._days),this._months=xn(this._months),e.milliseconds=xn(e.milliseconds),e.seconds=xn(e.seconds),e.minutes=xn(e.minutes),e.hours=xn(e.hours),e.months=xn(e.months),e.years=xn(e.years),this},er.add=function(e,t){return Cn(this,e,t,1)},er.subtract=function(e,t){return Cn(this,e,t,-1)},er.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=N(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+jn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Mn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},er.asMilliseconds=An,er.asSeconds=Dn,er.asMinutes=In,er.asHours=Nn,er.asDays=Rn,er.asWeeks=Fn,er.asMonths=Ln,er.asQuarters=Bn,er.asYears=zn,er.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},er._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Pn(Mn(s)+a),a=0,s=0),u.milliseconds=i%1e3,e=O(i/1e3),u.seconds=e%60,t=O(e/60),u.minutes=t%60,n=O(t/60),u.hours=n%24,a+=O(n/24),s+=o=O(jn(a)),a-=Pn(Mn(o)),r=O(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},er.clone=function(){return Gt(this)},er.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},er.milliseconds=Un,er.seconds=Hn,er.minutes=qn,er.hours=Vn,er.days=Yn,er.weeks=function(){return O(this.days()/7)},er.months=Gn,er.years=Kn,er.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Gt(e).abs(),o=Jn(r.as("s")),i=Jn(r.as("m")),a=Jn(r.as("h")),s=Jn(r.as("d")),u=Jn(r.as("M")),l=Jn(r.as("y")),c=o<=$n.ss&&["s",o]||o<$n.s&&["ss",o]||i<=1&&["m"]||i<$n.m&&["mm",i]||a<=1&&["h"]||a<$n.h&&["hh",a]||s<=1&&["d"]||s<$n.d&&["dd",s]||u<=1&&["M"]||u<$n.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},er.toISOString=Qn,er.toString=Qn,er.toJSON=Qn,er.locale=tn,er.localeData=rn,er.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),er.lang=nn,q("X",0,0,"unix"),q("x",0,0,"valueOf"),ce("x",ie),ce("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(k(e))}),o.version="2.24.0",t=Tt,o.fn=_n,o.min=function(){return It("isBefore",[].slice.call(arguments,0))},o.max=function(){return It("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=p,o.unix=function(e){return Tt(1e3*e)},o.months=function(e,t){return En(e,t,"months")},o.isDate=l,o.locale=ft,o.invalid=m,o.duration=Gt,o.isMoment=w,o.weekdays=function(e,t,n){return Sn(e,t,n,"weekdays")},o.parseZone=function(){return Tt.apply(null,arguments).parseZone()},o.localeData=pt,o.isDuration=Ft,o.monthsShort=function(e,t){return En(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return Sn(e,t,n,"weekdaysMin")},o.defineLocale=dt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=at;null!=(r=ct(e))&&(o=r._config),(n=new A(t=T(o,t))).parentLocale=st[e],st[e]=n,ft(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},o.locales=function(){return C(st)},o.weekdaysShort=function(e,t,n){return Sn(e,t,n,"weekdaysShort")},o.normalizeUnits=N,o.relativeTimeRounding=function(e){return void 0===e?Jn:"function"==typeof e&&(Jn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==$n[e]&&(void 0===t?$n[e]:($n[e]=t,"s"===e&&($n.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=_n,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o},e.exports=t()}).call(t,n(67)(e))},function(e,t,n){var r=n(387),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){var r=n(50),o=n(258),i=n(880),a=n(104),s=n(85),u=n(883),l=n(253),c=n(260),f=l(function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,function(t){return t=a(t,e),l||(l=t.length>1),t}),s(e,c(e),n),l&&(n=o(n,7,u));for(var f=t.length;f--;)i(n,t[f]);return n});e.exports=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.info=t.warning=t.error=t.HELP_IDS=void 0;var r={TYPE_INVALID:"schema-type-invalid",TYPE_IS_ESM_MODULE:"schema-type-is-esm-module",TYPE_NAME_RESERVED:"schema-type-name-reserved",TYPE_MISSING_NAME:"schema-type-missing-name-or-type",TYPE_MISSING_TYPE:"schema-type-missing-name-or-type",TYPE_TITLE_RECOMMENDED:"schema-type-title-is-recommended",TYPE_TITLE_INVALID:"schema-type-title-is-recommended",OBJECT_FIELDS_INVALID:"schema-object-fields-invalid",OBJECT_FIELD_NOT_UNIQUE:"schema-object-fields-invalid",OBJECT_FIELD_NAME_INVALID:"schema-object-fields-invalid",ARRAY_OF_INVALID:"schema-array-of-invalid",ARRAY_OF_NOT_UNIQUE:"schema-array-of-invalid",REFERENCE_TO_INVALID:"schema-reference-to-invalid",REFERENCE_TO_NOT_UNIQUE:"schema-reference-to-invalid",SLUG_SLUGIFY_FN_RENAMED:"slug-slugifyfn-renamed",ASSET_METADATA_FIELD_INVALID:"asset-metadata-field-invalid"};function o(e,t,n){if(n&&!Object.keys(r).some(e=>r[e]===n))throw new Error('Used the unknown helpId "'.concat(n,'", please add it to the array in createValidationResult.js'));return{severity:e,message:t,helpId:n}}t.HELP_IDS=r;t.error=((e,t,n)=>o("error",e,t));t.warning=((e,t,n)=>o("warning",e,t));t.info=((e,t,n)=>o("info",e,t))},function(e,t,n){var r=n(20),o=n(1190),i=n(467),a="Expected a function",s=Math.max,u=Math.min;e.exports=function(e,t,n){var l,c,f,d,p,h,v=0,m=!1,y=!1,g=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=l,r=c;return l=c=void 0,v=t,d=e.apply(r,n)}function _(e){var n=e-h;return void 0===h||n>=t||n<0||y&&e-v>=f}function w(){var e=o();if(_(e))return O(e);p=setTimeout(w,function(e){var n=t-(e-h);return y?u(n,f-(e-v)):n}(e))}function O(e){return p=void 0,g&&l?b(e):(l=c=void 0,d)}function k(){var e=o(),n=_(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return function(e){return v=e,p=setTimeout(w,t),m?b(e):d}(h);if(y)return clearTimeout(p),p=setTimeout(w,t),b(h)}return void 0===p&&(p=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,f=(y="maxWait"in n)?s(i(n.maxWait)||0,t):f,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==p&&clearTimeout(p),v=0,l=h=c=p=void 0},k.flush=function(){return void 0===p?d:O(o())},k}},function(e,t,n){var r=n(247);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),t.b=function(e){return e?function(e){return new r.a(function(t){return e.schedule(function(){return t.complete()})})}(e):o};var r=n(9),o=new r.a(function(e){return e.complete()})},function(e,t,n){"use strict";t.a=function(e){return e&&"function"==typeof e.schedule}},function(e,t,n){"use strict";t.a=function(e,t){return t?Object(i.a)(e,t):e instanceof r.a?e:new r.a(Object(o.a)(e))};var r=n(9),o=n(235),i=n(375)},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n":`${n}`;this.path=(t||[]).concat(r?`${o} (${r})`:o)}withHelpUrl(e){return this.helpId=e,this}},function(e){e.ID_REQUIRED="structure-node-id-required",e.TITLE_REQUIRED="structure-title-required",e.FILTER_REQUIRED="structure-filter-required",e.INVALID_LIST_ITEM="structure-invalid-list-item",e.DOCUMENT_ID_REQUIRED="structure-document-id-required",e.SCHEMA_TYPE_REQUIRED="structure-schema-type-required",e.SCHEMA_TYPE_NOT_FOUND="structure-schema-type-not-found",e.LIST_ITEMS_MUST_BE_ARRAY="structure-list-items-must-be-array",e.QUERY_PROVIDED_FOR_FILTER="structure-query-provided-for-filter",e.ACTION_OR_INTENT_REQUIRED="structure-action-or-intent-required",e.LIST_ITEM_IDS_MUST_BE_UNIQUE="structure-list-item-ids-must-be-unique",e.ACTION_AND_INTENT_MUTUALLY_EXCLUSIVE="structure-action-and-intent-mutually-exclusive"}(t.HELP_URL||(t.HELP_URL={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.SanityPreview}}),Object.defineProperty(t,"PreviewSubscriber",{enumerable:!0,get:function(){return r.PreviewSubscriber}}),Object.defineProperty(t,"PreviewFields",{enumerable:!0,get:function(){return r.PreviewFields}}),Object.defineProperty(t,"SanityDefaultPreview",{enumerable:!0,get:function(){return r.SanityDefaultPreview}}),Object.defineProperty(t,"observeForPreview",{enumerable:!0,get:function(){return o.observeForPreview}}),Object.defineProperty(t,"observeWithPaths",{enumerable:!0,get:function(){return o.observeWithPaths}}),Object.defineProperty(t,"materializePaths",{enumerable:!0,get:function(){return o.materializePaths}}),Object.defineProperty(t,"observePaths",{enumerable:!0,get:function(){return o.observePaths}});var r=n(1275),o=n(1346)},function(e,t){e.exports=function(e){return"https://docs.sanity.io/help/"+e}},function(e,t,n){var r=n(780),o=n(818),i=n(68),a=n(22),s=n(822);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(402);e.exports=function(e){return null==e?"":r(e)}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};super(e),this.paths=t.paths||[],this.children=t.children,this.operation=t.operation}prefixPaths(e){return this.paths=this.paths.map(t=>e.concat(t)),this}cloneWithMessage(e){return new i(e,{paths:this.paths,children:this.children,operation:this.operation})}}e.exports=i},function(e,t){e.exports=function(){for(var e={},t=0;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=()=>{};function p(e,t){return s.startsWith(e,t)?s.trimLeft(e,t):[]}var h=(o=r=class extends i.default.PureComponent{constructor(){super(...arguments),f(this,"_element",void 0),f(this,"_input",void 0),f(this,"getValuePath",()=>this.context.getValuePath().concat(this.props.path)),f(this,"setInput",e=>{this._input=e}),f(this,"handleChange",e=>{var t=this.props,n=t.type,r=t.onChange;n.readOnly||r(e)}),f(this,"handleFocus",e=>{var t=this.props,n=t.path,r=t.onFocus,o=t.focusPath;if(r){var i=Array.isArray(e)?[...n,...e]:n;s.isEqual(o,i)||r(i)}else console.warn("FormBuilderInput was used without passing a required onFocus prop. Read more at %s.",(0,a.default)("form-builder-input-missing-required-prop"))}),f(this,"handleBlur",()=>{var e=this.props.onBlur;e?e():console.warn("FormBuilderInput was used without passing a required onBlur prop. Read more at %s.",(0,a.default)("form-builder-input-missing-required-prop"))}),f(this,"setElement",e=>{this._element=e})}getChildContext(){return{getValuePath:this.getValuePath}}componentDidMount(){var e=this.props,t=e.focusPath,n=e.path;s.hasFocus(t,n)&&this.focus()}componentWillReceiveProps(e){var t=s.hasFocus(e.focusPath,e.path),n=s.hasFocus(this.props.focusPath,this.props.path);t&&!n&&this.focus()}componentWillUnmount(){this.scrollTimeout&&clearTimeout(this.scrollTimeout)}resolveInputComponent(e){return this.context.formBuilder.resolveInputComponent(e)}_withInputDisplayName(e){var t;e((t=this.resolveInputComponent(this.props.type)).displayName||t.name||"Unknown")}focus(){if(!this._input)throw new Error("Attempted to set focus on a missing input component");"function"==typeof this._input.focus?this._input.focus():this._withInputDisplayName(e=>console.warn('Missing a required ".focus()" method on input component. Please check the implementation of %s. Read more at %s',e,(0,a.default)("input-component-missing-required-method")))}getChildFocusPath(){var e=this.props;return p(e.path,e.focusPath)}render(){var e=this.props,t=(e.onChange,e.onFocus,e.onBlur,e.path),n=e.readOnly,r=e.value,o=e.markers,a=e.type,u=e.level,d=(e.focusPath,e.isRoot),h=c(e,["onChange","onFocus","onBlur","path","readOnly","value","markers","type","level","focusPath","isRoot"]),v=this.resolveInputComponent(a);if(!v)return i.default.createElement("div",null,"No input resolved for type ",JSON.stringify(a.name));var m=d?{isRoot:d}:{},y=o;d||(y=o.filter(e=>s.startsWith(t,e.path)).map(e=>(function(e){for(var t=1;t({title:String(e)})};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(1176))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(1197)),o=c(n(1)),i=c(n(0)),a=c(n(1198)),s=c(n(135)),u=c(n(187)),l=c(n(466));function c(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class h extends i.default.Component{constructor(e){super(),p(this,"handleToggle",()=>{this.setState(e=>({isCollapsed:!e.isCollapsed,hasBeenToggled:!0}))}),p(this,"handleFocus",e=>{e.target===this._focusElement&&this.props.onFocus(e)}),p(this,"setFocusElement",e=>{this._focusElement=e}),p(this,"handleToggleValidationList",e=>{this.setState({showValidationList:!this.state.showValidationList})}),this.state={isCollapsed:e.isCollapsed,hasBeenToggled:!1,showValidationList:!1}}focus(){this._focusElement.focus()}render(){var e=this.props,t=e.fieldset,n=e.legend,o=e.description,c=e.columns,h=e.level,v=e.className,m=e.isCollapsible,y=(e.isCollapsed,e.children),g=e.tabIndex,b=e.transparent,_=e.markers,w=d(e,["fieldset","legend","description","columns","level","className","isCollapsible","isCollapsed","children","tabIndex","transparent","markers"]),O=this.state,k=O.isCollapsed,E=O.showValidationList,S=O.hasBeenToggled,x=function(e){for(var t=1;t"validation"===e.type).filter(e=>"error"===e.level),P=[x.root,C.length>0&&x.hasErrors,x["columns".concat(c)],x["level".concat(h)],b&&x.transparent,this.props.onFocus&&x.canFocus,v].filter(Boolean).join(" ");return i.default.createElement("div",f({},w,{onFocus:this.handleFocus,tabIndex:g,ref:this.setFocusElement,className:P}),i.default.createElement("fieldset",{className:x.fieldset},i.default.createElement("div",{className:x.inner},i.default.createElement("div",{className:x.header},i.default.createElement("div",{className:x.headerMain},i.default.createElement("legend",{className:"".concat(x.legend," ").concat(k?"":x.isOpen),tabIndex:m?0:void 0,onKeyDown:e=>"Enter"===e.key&&this.handleToggle()},i.default.createElement("div",{tabIndex:-1,onClick:m?this.handleToggle:void 0,style:{outline:"none"}},m&&i.default.createElement("div",{className:"".concat(x.arrow," ").concat(k?"":x.isOpen)},i.default.createElement(a.default,null)),n||t.legend)),(o||t.description)&&i.default.createElement("p",{className:"".concat(x.description," ").concat(k?"":x.isOpen)},o||t.description)),i.default.createElement("div",{className:x.headerStatus},i.default.createElement(s.default,{markers:_,onClick:this.handleToggleValidationList}))),E&&i.default.createElement("div",{className:x.validationList},i.default.createElement(u.default,{markers:_})),m&&i.default.createElement(l.default,{duration:250,height:k&&y?0:"auto",className:x.animateHeight,contentClassName:x.content},i.default.createElement("div",{className:x.fieldWrapper},(S||!k)&&y)),!m&&i.default.createElement("div",{className:x.content},i.default.createElement("div",{className:x.fieldWrapper},!k&&y)))))}}t.default=h,p(h,"propTypes",{description:o.default.string,legend:o.default.string.isRequired,columns:o.default.number,isCollapsible:o.default.bool,onFocus:o.default.func,isCollapsed:o.default.bool,fieldset:o.default.shape({description:o.default.string,legend:o.default.string}),children:o.default.node,level:o.default.number,className:o.default.string,tabIndex:o.default.number,transparent:o.default.bool,styles:o.default.object,markers:o.default.array}),p(h,"defaultProps",{level:1,fieldset:{},markers:[],className:"",isCollapsed:!1,isCollapsible:!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveTypeName=function(e){var t=(0,r.resolveJSType)(e);return"object"===t&&"_type"in e&&e._type||t};var r=n(1205)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSortableList=function(e){var t=(0,i.SortableContainer)(e);return class extends o.default.Component{constructor(){super(...arguments),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleSortStart",(e,t)=>{var n=this.props.onSortStart;t.preventDefault(),n&&n()})}render(){var e=this.props,n=e.movingItemClass,r=e.distance,i=e.useDragHandle,u=e.lockToContainerEdges,l=e.axis,c=e.lockAxis,f=e.transitionDuration,d=(e.onSortStart,e.onSortEnd),p=(e.onSort,e.helperClass,e.pressDelay,e.pressThreshold,e.shouldCancelStart,e.onSortMove,e.useWindowAsScrollContainer,e.hideSortableGhost,e.lockOffset,e.getContainer,e.getHelperDimensions,s(e,["movingItemClass","distance","useDragHandle","lockToContainerEdges","axis","lockAxis","transitionDuration","onSortStart","onSortEnd","onSort","helperClass","pressDelay","pressThreshold","shouldCancelStart","onSortMove","useWindowAsScrollContainer","hideSortableGhost","lockOffset","getContainer","getHelperDimensions"]));return o.default.createElement(t,a({},p,{onSortStart:this.handleSortStart,onSortEnd:d,distance:r,helperClass:n,lockToContainerEdges:u,transitionDuration:f,axis:l,lockAxis:c,useDragHandle:i}))}}},t.createSortableItem=function(e){var t=(0,i.SortableElement)(e);return function(e){e.collection,e.disabled;var n=e.index,r=s(e,["collection","disabled","index"]);return o.default.createElement(t,a({index:n},r))}},t.createDragHandle=function(e){return(0,i.SortableHandle)(e)};var r,o=(r=n(0))&&r.__esModule?r:{default:r},i=n(1239);function a(){return(a=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(343),a=n(344),s=n(661),u=n(346),l=n(220),c=n(345),f=function(e){function t(n,r,o){var i=e.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=a.empty;break;case 1:if(!n){i.destination=a.empty;break}if("object"==typeof n){n instanceof t?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new d(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new d(i,n,r,o)}return i}return o(t,e),t.prototype[u.rxSubscriber]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(s.Subscription);t.Subscriber=f;var d=function(e){function t(t,n,r,o){var s,u=e.call(this)||this;u._parentSubscriber=t;var l=u;return i.isFunction(n)?s=n:n&&(s=n.next,r=n.error,o=n.complete,n!==a.empty&&(l=Object.create(n),i.isFunction(l.unsubscribe)&&u.add(l.unsubscribe.bind(l)),l.unsubscribe=u.unsubscribe.bind(u))),u._context=l,u._next=s,u._error=r,u._complete=o,u}return o(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;l.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=l.config.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):c.hostReportError(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;c.hostReportError(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};l.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),l.config.useDeprecatedSynchronousErrorHandling)throw e;c.hostReportError(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!l.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return l.config.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(c.hostReportError(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(f);t.SafeSubscriber=d},function(e,t){e.exports=function(){var e=[];return{subscribe:function(t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}},publish:function(){for(var t=0;t(function(r){0===(t=t.filter(e=>e!==r)).length&&document.removeEventListener(e,n)})(r)};function n(e){t.forEach(t=>t(e))}}("keydown");class u extends r.default.Component{constructor(){super(...arguments),a(this,"handleKeyPress",e=>{this.props.onEscape&&"Escape"===e.key&&this.props.onEscape(e)})}componentWillMount(){this.removeListener=s(this.handleKeyPress)}componentWillUnmount(){this.removeListener()}render(){return this.props.children||null}}t.default=u,a(u,"propTypes",{onEscape:o.default.func,children:o.default.node}),a(u,"defaultProps",{onEscape:()=>{},children:void 0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createStack=u,t.default=void 0;var r=a(n(0)),o=a(n(1)),i=a(n(77));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){var e=[],t=(0,i.default)();function n(){return e[e.length-1]}function r(){t.publish(n())}return{remove:function(t){e=e.filter(e=>e!==t),r()},peek:n,push:function(t){e.push(t),r()},subscribe:t.subscribe}}var l=u();class c extends r.default.Component{constructor(e){super(),s(this,"state",{top:null}),this._unsubscribe=e.stack.subscribe(e=>{this.setState(()=>({top:e}))})}componentWillMount(){this.props.stack.push(this)}componentWillUnmount(){var e=this.props.stack;this._unsubscribe(),e.remove(this)}render(){return this.props.children(this.state.top===this)}}t.default=c,s(c,"propTypes",{children:o.default.func.isRequired,stack:o.default.shape({remove:o.default.func,peek:o.default.func,push:o.default.func,subscribe:o.default.func})}),s(c,"defaultProps",{stack:l})},function(e,t,n){var r=n(252),o=n(130);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,u=t.length;++s3&&void 0!==arguments[3]?arguments[3]:{};return Object.defineProperty(e,t,{configurable:!0,enumerable:!1!==r.enumerable,get(){var o=n();return Object.defineProperty(e,t,{value:o,writable:Boolean(r.writable),configurable:!1}),o}}),e}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}var o=n(453),i=n(38).flatten,a=n(454),s=n(1066),u=n(58),l=(e,t)=>{var r=n(452),o=e.map(e=>r(e,t,{isChild:!0}));return Promise.all(o).then(i)},c=function(){var e,t=(e=function*(e,t,n,r){var o,i=setTimeout(()=>{var e=s(r.path);console.warn("Custom validator at ".concat(e," has taken more than ").concat(5e3,"ms to respond"))},5e3);try{o=yield e(t,r)}catch(e){var a=s(r.path);throw e.message="".concat(a,": Error validating value: ").concat(e.message),e}if(clearTimeout(i),Array.isArray(o))return 0===o.length||o;if(!0===o)return!0;if("string"==typeof o)return new u(n||o);if(o&&o.message&&o.paths)return new u(n||o.message,{paths:o.paths});var l=s(r.path);throw new Error("".concat(l,": Validator must return 'true' if valid or an error message as a string on errors"))},function(){var t=this,n=arguments;return new Promise(function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,u,"next",e)}function u(e){r(a,o,i,s,u,"throw",e)}s(void 0)})});return function(e,n,r,o){return t.apply(this,arguments)}}();function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={children:t.length>1?t:void 0,operator:n.operator};return 1===t.length?new u(e||t[0].item.message,r):new u(e||"[".concat(t.map(e=>e.item.message).join(n.separator),"]"),r)}e.exports={all:(e,t,n)=>l(e,t).then(e=>0===e.length||f(n,e,{separator:" - AND - ",operator:"AND"})),type:(e,t,n)=>{var r=o.string(t);return r===e||"undefined"===r||new u(n||'Expected type "'.concat(e,'", got "').concat(r,'"'))},either:(e,t,n)=>l(e,t).then(t=>t.length{var r=typeof t;if("undefined"===r)return!0;var o=("number"===r||"string"===r)&&"".concat(t),i=o&&o.length>30?"".concat(o.slice(0,30),"…"):o,s=o?'Value "'.concat(i,'" did not match any of allowed values'):"Value did not match any of allowed values";return!!e.some(e=>a(e,t))||new u(n||s)},custom:c,presence:(e,t,n)=>void 0!==t||"required"!==e||new u(n||"Value is required")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(45)),o=m(n(102)),i=m(n(1)),a=m(n(0)),s=m(n(37)),u=m(n(1191)),l=m(n(8)),c=m(n(106)),f=m(n(105)),d=n(69),p=m(n(83)),h=m(n(136)),v=m(n(84));function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=()=>{};class _ extends a.default.PureComponent{constructor(){super(...arguments),g(this,"state",{contentHasOverflow:!1}),g(this,"handleResize",(0,r.default)(()=>this.setFooterShadow())),g(this,"handleScroll",(0,r.default)(()=>this.setFooterShadowFromScroll(),10)),g(this,"setFooterShadowFromScroll",()=>{this.setFooterShadow()}),g(this,"setFooterShadow",()=>{this.contentElement&&this.setState({contentHasOverflow:this.contentElement.scrollHeight>this.contentElement.clientHeight+this.contentElement.scrollTop})}),g(this,"handleDialogClick",e=>{e.stopPropagation()}),g(this,"setDialogElement",e=>{this.dialog=e}),g(this,"setContentElement",e=>{this.contentElement=e}),g(this,"createButtonFromAction",(e,t)=>a.default.createElement(l.default,{key:t,onClick:()=>this.props.onAction(e),"data-action-index":t,color:e.color,disabled:e.disabled,kind:e.kind,inverted:e.inverted,autoFocus:e.autoFocus,icon:e.icon,className:e.secondary?u.default.actionSecondary:""},e.title)),g(this,"renderActions",e=>{if(!e||0===e.length)return null;var t=y((0,o.default)(e,e=>e.secondary),2),n=t[0],r=t[1];return a.default.createElement(c.default,{align:this.props.actionsAlign,secondary:n.map(this.createButtonFromAction)},r.map(this.createButtonFromAction))})}componentDidMount(){this.setFooterShadow(),window.addEventListener("resize",this.handleResize,{passive:!0}),this.contentElement&&this.contentElement.addEventListener("scroll",this.handleScroll,{passive:!0})}componentWillUnmount(){window.removeEventListener("resize",this.handleResize,{passive:!0}),this.contentElement&&this.contentElement.removeEventListener("scroll",this.handleScroll,{passive:!0})}componentDidUpdate(){this.setFooterShadow()}openDialogElement(){this.props.onOpen()}render(){var e=this.props,t=e.title,n=e.actions,r=e.color,o=e.onClose,i=e.onClickOutside,l=e.onEscape,c=e.className,m=e.showCloseButton,y=this.state.contentHasOverflow,g="\n ".concat(u.default.root,"\n ").concat(u.default[r],"\n ").concat(n&&n.length>0?u.default.hasFunctions:"","\n ").concat(c,"\n "),_=l||o||b;return a.default.createElement(d.Portal,null,a.default.createElement(v.default,null,e=>a.default.createElement("div",{className:g},a.default.createElement("div",{className:u.default.overlay}),a.default.createElement("div",{className:u.default.dialog},a.default.createElement(p.default,{onEscape:t=>(e||t.shiftKey)&&_()}),a.default.createElement(h.default,{onClickOutside:e?i:void 0,className:u.default.inner},!t&&o&&m&&a.default.createElement("button",{className:u.default.closeButtonOutside,onClick:o,type:"button"},a.default.createElement(s.default,{color:"inherit"})),t&&a.default.createElement("div",{className:u.default.header},a.default.createElement("h1",{className:u.default.title},t),o&&a.default.createElement("button",{className:u.default.closeButton,onClick:o,type:"button",title:"Close"},a.default.createElement("div",{className:u.default.closeButtonIcon},a.default.createElement(s.default,{color:"inherit"})),a.default.createElement(f.default,{duration:1e3,opacity:.1,radius:200}))),a.default.createElement("div",{ref:this.setContentElement,className:n&&n.length>0?u.default.content:u.default.contentWithoutFooter},this.props.children),n&&n.length>0&&a.default.createElement("div",{className:y?u.default.footerWithShadow:u.default.footer},this.renderActions(n)))))))}}t.default=_,g(_,"propTypes",{color:i.default.oneOf(["default","warning","success","danger","info"]),className:i.default.string,title:i.default.string,children:i.default.node,onOpen:i.default.func,onClose:i.default.func,onEscape:i.default.func,onClickOutside:i.default.func,onAction:i.default.func,showCloseButton:i.default.bool,actionsAlign:i.default.oneOf(["start","end"]),actions:i.default.arrayOf(i.default.shape({title:i.default.string.isRequired,icon:i.default.func,tooltip:i.default.string,kind:i.default.string,autoFocus:i.default.bool}))}),g(_,"defaultProps",{showCloseButton:!0,actionsAlign:"end",onAction(){},onOpen(){},onClose(){},actions:[],color:"default"})},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.setIfMissing=function(e){return{type:"setIfMissing",path:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],value:e}},t.insert=function(e,t){return{type:"insert",path:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],position:t,items:e}},t.set=function(e){return{type:"set",path:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],value:e}},t.unset=function(){return{type:"unset",path:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}},t.inc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return{type:"inc",path:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],value:e}},t.dec=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return{type:"dec",path:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],value:e}},t.prefixPath=function(e,t){return function(e){for(var t=1;t{this.setState({visible:!1}),setTimeout(this.props.onHide(),200)}),l(this,"show",()=>{this.setState({visible:!0})}),l(this,"handleAction",()=>{this.props.onAction(this.props.action)}),l(this,"handleMouseOver",()=>{this.cancelHide()}),l(this,"handleMouseLeave",()=>{this.scheduleHide()}),this.state={visible:!0}}componentDidMount(){this.scheduleHide()}cancelHide(){clearTimeout(this._timerId)}scheduleHide(){var e=this.props.timeout;this.cancelHide(),e>0&&(this._timerId=setTimeout(this.hide,1e3*e))}componentWillUnmount(){this.cancelHide()}componentDidUpdate(e){e.timeout!==this.props.timeout&&this.scheduleHide(),e.children!==this.props.children&&this.scheduleHide()}componentWillReceiveProps(e){e.timeout!==this.props.timeout&&this.show(),e.children!==this.props.children&&this.show()}render(){var e=this.props,t=e.kind,n=e.action,r=e.children,u="".concat(i.default[t]||i.default.root," ").concat(this.state.visible?i.default.visible:i.default.hidden);return o.default.createElement(s.Portal,null,o.default.createElement("div",{className:u},o.default.createElement("div",{className:i.default.inner,onMouseOver:this.handleMouseOver,onMouseLeave:this.handleMouseLeave},n&&o.default.createElement("div",{className:i.default.action},o.default.createElement(a.default,{inverted:!0,color:"white",onClick:this.handleAction},n.title)),o.default.createElement("div",{className:i.default.content},r))))}}t.default=c,l(c,"propTypes",{kind:r.default.oneOf(["danger","info","warning","error","success"]),children:r.default.node.isRequired,timeout:r.default.number,onHide:r.default.func,onAction:r.default.func,action:r.default.shape({title:r.default.string})}),l(c,"defaultProps",{kind:"info",timeout:0,onHide:()=>{}})},function(e,t,n){var r=n(2);e.exports=function(e){var t=r(e);return t.setHours(0,0,0,0),t}},function(e,t,n){var r=n(198);e.exports=function(e){return r(e,{weekStartsOn:1})}},function(e,t,n){var r=n(2),o=n(93);e.exports=function(e){var t=r(e),n=t.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var a=o(i),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var u=o(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Editor",function(){return it}),n.d(t,"cloneFragment",function(){return be}),n.d(t,"findDOMNode",function(){return he}),n.d(t,"findDOMRange",function(){return Je}),n.d(t,"findNode",function(){return _e}),n.d(t,"findRange",function(){return Z}),n.d(t,"getEventRange",function(){return we}),n.d(t,"getEventTransfer",function(){return Pe}),n.d(t,"setEventTransfer",function(){return Te}),n.d(t,"ReactPlugin",function(){return rt});var r=n(1404),o=n.n(r),i=n(267),a=n(18),s=n(1407),u=n.n(s),l=n(17),c=n.n(l),f=n(525),d=n(1411),p=n(1412),h=n(527),v=n(25),m=n.n(v),y=n(0),g=n.n(y),b=n(1),_=n.n(b),w=n(1413),O=n(1414),k=n.n(O),E=n(116),S=(n.n(E),n(1415)),x=n(1416),C=n.n(x),P=n(144),j=n.n(P),M=n(1417),T=n(1418),A=["onBeforeInput","onBlur","onClick","onContextMenu","onCompositionEnd","onCompositionStart","onCopy","onCut","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onInput","onFocus","onKeyDown","onKeyUp","onMouseDown","onMouseUp","onPaste","onSelect"];var D=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},I=function(){function e(e,t){for(var n=0;n=r.length?(a=!0,i=t-1,n="backward"):i<0?(s=!0,i=t+1,n="forward"):(o=r[i],"forward"===n&&i++,"backward"===n&&i--);return o||null}function Z(e,t){Object(i.a)(!a.Value.isValue(t),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`.");var n=e.anchorNode||e.startContainer;if(!n)return null;var r=o()(n);(e instanceof r.Range||r.StaticRange&&e instanceof r.StaticRange)&&(e={anchorNode:e.startContainer,anchorOffset:e.startOffset,focusNode:e.endContainer,focusOffset:e.endOffset});var s=e,u=s.anchorNode,l=s.anchorOffset,c=s.focusNode,f=s.focusOffset,d=s.isCollapsed,p=t.value,h=J(u,l,t),v=d?h:J(c,f,t);return h&&v?p.document.createRange({anchor:h,focus:v}):null}function X(e,t,n){var r=t.value,o=r.document;if(n.rangeCount){var i=Z(n,t);if(i){var a=i,s=a.anchor,u=a.focus,l=o.getNode(s.key),c=o.getNode(u.key),f=o.getClosestInline(s.key),d=o.getClosestInline(u.key),p=o.getClosestBlock(u.key),h=o.getClosestBlock(s.key);if(h&&!t.isVoid(h)&&0===s.offset&&p&&t.isVoid(p)&&0!==u.offset&&(i=i.setFocus(u.setOffset(0))),f&&!t.isVoid(f)&&s.offset===l.text.length){var v=o.getClosestBlock(s.key).getNextText(s.key);v&&(i=i.moveAnchorTo(v.key,0))}if(d&&!t.isVoid(d)&&u.offset===c.text.length){var m=o.getClosestBlock(u.key).getNextText(u.key);m&&(i=i.moveFocusTo(m.key,0))}var y=o.createSelection(i);return y=(y=y.setIsFocused(!0)).set("marks",r.selection.marks)}}else t.blur()}function Q(e,t,n){var r=X(0,t,n);t.select(r)}function ee(e,t,n){var r=J(n,0,t);if(r){var o=t.value,i=o.document,a=o.selection,s=i.getDescendant(r.key),u=i.getClosestBlock(s.key),l=s.getLeaves(),c=u.getLastText(),f=l.last(),d=0,p=0,h=l.find(function(e){if(d=p,(p+=e.text.length)>r.offset)return!0})||f,v=h.text,m=n.textContent,y=s===c,g=h===f,b=m.charAt(m.length-1);if(y&&g&&"\n"===b&&(m=m.slice(0,-1)),m!==v){var _=a.moveAnchorTo(r.key,d).moveFocusTo(r.key,p);_=i.resolveRange(_),t.insertTextAtRange(_,m,h.marks)}}}function te(e,t){return e.nodeType===t.Node.TEXT_NODE}function ne(e,t){if(!e.length)throw new Error("elements must be an Array");var n=e[e.length-1];return{elements:e.map(function(e){return function e(t,n){var r={};return r.node=t,te(t,n)&&(r.text=t.textContent),r.children=Array.from(t.childNodes).map(function(t){return e(t,n)}),r}(e,t)}),parent:n.parentElement,next:n.nextElementSibling}}function re(e,t){var n=e.elements,r=e.next,o=e.parent;n.forEach(function(e){return function e(t,n){var r=t.node;te(r,n)&&r.textContent!==t.text&&(r.textContent=t.text),t.children.forEach(function(t){e(t,n),r.appendChild(t.node)});for(var o=t.children.length;r.childNodes.length>o;)r.removeChild(r.childNodes[0]);var i=r.dataset;if(i){var a=i.key;if(a){var s=new n.Set(Array.from(n.document.querySelectorAll("[data-key='"+a+"']")));s.delete(r),s.forEach(function(e){return e.parentElement.removeChild(e)})}}}(e,t)});var i=n[n.length-1].node;e.next?o.insertBefore(i,r):o.appendChild(i);for(var a=i,s=n.length-2;s>=0;s--){var u=n[s].node;o.insertBefore(u,a),a=u}}var oe=function(){function e(t,n){D(this,e),this.window=o()(t[0]),this.snapshot=ne(t,this.window),this.data=n}return I(e,[{key:"apply",value:function(){re(this.snapshot,this.window)}},{key:"getData",value:function(){return this.data}}]),e}();function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;return e.nodeType===n.Node.TEXT_NODE&&(e=e.parentNode),e.closest(t)}var ae=function(){function e(t,n){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).before,o=void 0!==r&&r;D(this,e);var i=t.getSelection(),a=ie(i.anchorNode,"[data-slate-editor] > *"),s=[a];if(o){var u=a.previousElementSibling;u&&s.unshift(u)}this.snapshot=new oe(s),this.selection=X(0,n,i)}return I(e,[{key:"apply",value:function(e){var t=this.snapshot,n=this.selection;t.apply(),e.moveTo(n.anchor.key,n.anchor.offset)}}]),e}();function se(){}var ue=function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};D(this,e),this.__call__=function(){r.fn(),r.preventFurtherCalls()},this.preventFurtherCalls=function(){r.fn=se},this.resume=function(e){r.cancel(),e?(r.mode="timeout",r.timeoutId=r.window.setTimeout(r.__call__,e)):(r.mode="animationFrame",r.callbackId=r.window.requestAnimationFrame(r.__call__))},this.cancel=function(){"timeout"===r.mode?r.window.clearTimeout(r.timeoutId):r.window.cancelAnimationFrame(r.callbackId),r.onCancel&&r.onCancel()},this.__setTimeout__=function(e){null!=e&&r.window.setTimeout(function(){r.cancel(),r.preventFurtherCalls()},e)},this.fn=n,this.window=t,this.resume(),this.onCancel=o.onCancel,this.__setTimeout__(o.timeout)},le=u()("slate:android");le.reconcile=u()("slate:reconcile"),le("ANDROID_API_VERSION",{ANDROID_API_VERSION:f.a});var ce=0,fe=1;function de(){var e=ce,t=new window.Set,n=null,r=null,i=null,a=null,s=!1,u=null;function l(e,n,r){var o=r.from;le.reconcile({from:o});var i=e.getSelection();t.forEach(function(e){ee(0,n,e)}),Q(0,n,i),t.clear()}return{onBeforeInput:function(t,i,l){var d=!t.nativeEvent;le("onBeforeInput",{isNative:d,event:t,status:e,e:c()(t,["data","inputType","isComposing","nativeEvent"])});var p,h=o()(t.target);if(s)return t.preventDefault(),void(s=!1);switch(f.a){case 25:break;case 26:case 27:if(a&&(a.cancel(),r.resume()),d){if("insertParagraph"===t.inputType||"insertLineBreak"===t.inputType){le("onBeforeInput:enter:native",{});var v=h.getSelection(),m=X(0,i,v);s=!0,t.preventDefault(),i.moveTo(m.anchor.key,m.anchor.offset),i.splitBlock()}}else{if(function(e,t){if(!Array.isArray(t))throw new Error("chars must be an array of one character strings");if(null==e)return!1;var n=e[e.length-1];return t.includes(n)}(t.data,["."]))return le("onBeforeInput:period"),r.cancel(),void(u="period");null!=(p=t.data)&&10===p[p.length-1].charCodeAt(0)&&(r&&r.cancel(),h.requestAnimationFrame(function(){le("onBeforeInput:enter:react",{}),n.apply(i),i.splitBlock()}))}break;case 28:a&&(a.cancel(),r.resume());break;default:e!==fe&&l()}},onCompositionEnd:function(i,a,s){le("onCompositionEnd",{event:i});var c=o()(i.target),d=c.getSelection().anchorNode;switch(f.a){case 26:case 27:n=new ae(c,a),e=fe}u="reconcile",t.add(d),r=new ue(c,function(){e=ce,l(c,a,{from:"onCompositionEnd:reconciler"}),u=null})},onCompositionStart:function(n,r,o){le("onCompositionStart",{event:n}),e=fe,t.clear()},onCompositionUpdate:function(e,t,n){le("onCompositionUpdate",{event:e})},onInput:function(n,s,d){switch(le("onInput",{event:n,status:e,e:c()(n,["data","nativeEvent","inputType","isComposing"])}),f.a){case 24:case 25:break;case 26:case 27:case 28:var p=n.nativeEvent;if(28===f.a&&"insertText"===p.inputType&&" "===p.data)return r&&r.cancel(),a&&a.cancel(),void l(window,s,{from:"onInput:space"});if((26===f.a||27===f.a)&&"period"===u){le("onInput:period:abort");var h=window.getSelection().anchorNode;return void t.add(h)}if("deleteContentBackward"===p.inputType){le("onInput:delete",{keyDownSnapshot:i});var v=o()(n.target);return r&&r.cancel(),a&&a.cancel(),void(a=new ue(v,function(){le("onInput:delete:callback",{keyDownSnapshot:i}),i.apply(s),s.deleteBackward(),a=null},{onCancel:function(){a=null}}))}if(e===fe){var m=window.getSelection().anchorNode;return void t.add(m)}if(28===f.a){le("onInput:fallback");var y=window.getSelection().anchorNode;return t.add(y),void window.requestAnimationFrame(function(){le("onInput:fallback:callback"),l(window,s,{from:"onInput:fallback"})})}break;default:if(e===fe)return;d()}},onKeyDown:function(t,s,u){le("onKeyDown",{event:t,status:e,e:c()(t,["char","charCode","code","key","keyCode","keyIdentifier","keyLocation","location","nativeEvent","which"])});var d=o()(t.target);switch(f.a){case 25:"Enter"===t.key&&u();break;case 26:case 27:if("Enter"===t.key){if(le("onKeyDown:enter",{}),a)a.cancel(),t.preventDefault(),d.requestAnimationFrame(function(){le("onKeyDown:enter:callback"),n.apply(s),s.splitBlock()});else{t.preventDefault();var p=d.getSelection(),h=X(0,s,p);s.moveTo(h.anchor.key,h.anchor.offset),s.splitBlock()}return}i=new ae(d,s,{before:!0});break;case 28:if("Enter"===t.key)return le("onKeyDown:enter"),t.preventDefault(),r&&r.cancel(),a&&a.cancel(),void d.requestAnimationFrame(function(){l(d,s,{from:"onKeyDown:enter"}),s.splitBlock()});i=new ae(d,s,{before:!0}),le("onKeyDown:snapshot",{keyDownSnapshot:i});break;default:e!==fe&&u()}},onSelect:function(t,n,r){switch(le("onSelect",{event:t,status:e}),f.a){case 26:case 27:case 28:!function(e){var t=e.getSelection(),n=t.anchorNode,r=n.parentElement.dataset;if(r&&"n"===r.slateZeroWidth&&1===n.textContent.length&&0!==t.anchorOffset){var o=e.document.createRange();o.setStart(n,0),o.setEnd(n,0),t.removeAllRanges(),t.addRange(o)}}(o()(t.target))}}}}var pe={FRAGMENT:"application/x-slate-fragment",HTML:"text/html",NODE:"application/x-slate-node",RICH:"text/rtf",TEXT:"text/plain"};function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;a.Node.isNode(e)&&(e=e.key);var n=t.document.querySelector('[data-key="'+e+'"]');if(!n)throw new Error('Unable to find a DOM node for "'+e+'". This is often because of forgetting to add `props.attributes` to a custom component.');return n}function ve(e){var t=window.document;if(t&&t.body.createTextRange){var n=t.body.createTextRange();n.collapse(),n.select()}else e.removeAllRanges()}var me=pe.FRAGMENT,ye=pe.HTML,ge=pe.TEXT;function be(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};Object(i.a)(!a.Value.isValue(t),"As of Slate 0.42.0, the `cloneFragment` utility takes an `editor` instead of a `value`.");var r=o()(e.target),s=r.getSelection(),u=t.value,l=u.document,c=u.fragment,h=u.selection,v=h.start,m=h.end,y=l.getClosestVoid(v.key,t),g=l.getClosestVoid(m.key,t);if(!s.isCollapsed||y){var b=d.a.serializeNode(c),_=s.getRangeAt(0),w=_.cloneContents(),O=w.childNodes[0];if(w.childNodes.forEach(function(e){e.textContent&&""!==e.textContent.trim()&&(O=e)}),g){var k=_.cloneRange(),E=he(g,r);k.setEndAfter(E),w=k.cloneContents()}if(y&&(O=w.childNodes[0].childNodes[1].firstChild),[].slice.call(w.querySelectorAll(q)).forEach(function(e){var t="n"===e.getAttribute(H);e.textContent=t?"\n":""}),3===O.nodeType){var S=r.document.createElement("span");S.style.whiteSpace="pre",S.appendChild(O),w.appendChild(S),O=S}O.setAttribute("data-slate-fragment",b);var x=a.Value.create({document:c}),C=p.a.serialize(x),P=r.document.createElement("div");if(P.appendChild(w),e.clipboardData&&e.clipboardData.setData&&!f.f)return e.preventDefault(),e.clipboardData.setData(ge,C),e.clipboardData.setData(me,b),e.clipboardData.setData(ye,P.innerHTML),void n();var j=e.target.closest("[data-slate-editor]");P.setAttribute("contenteditable",!0),P.style.position="absolute",P.style.left="-9999px",j.appendChild(P),s.selectAllChildren(P),r.requestAnimationFrame(function(){j.removeChild(P),ve(s),s.addRange(_),n()})}}function _e(e,t){Object(i.a)(!a.Value.isValue(t),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`.");var n=e.closest("[data-key]");if(!n)return null;var r=n.getAttribute("data-key");return r&&t.value.document.getNode(r)||null}function we(e,t){Object(i.a)(!a.Value.isValue(t),"As of Slate 0.42.0, the `findNode` utility takes an `editor` instead of a `value`."),e.nativeEvent&&(e=e.nativeEvent);var n=e,r=n.clientX,s=n.clientY,u=n.target;if(null==r||null==s)return null;var l=t.value.document,c=_e(u,t);if(!c)return null;if(t.query("isVoid",c)){var f=u.getBoundingClientRect(),d="inline"===c.object?r-f.left0&&void 0!==arguments[0]?arguments[0]:{}).plugins,l=void 0===u?[]:u,c=f.c?[de()]:[],v=(e=null,t=0,n=!1,r=!1,i=!1,{onBeforeInput:function(e,t,n){var r=!!e.nativeEvent;t.readOnly||r&&f.b||(De("onBeforeInput",{event:e}),n())},onBlur:function(t,n,i){if(!r&&!n.readOnly){var a=t.relatedTarget,s=t.target,u=o()(s);if(e!==u.document.activeElement){if(a){var l=m.a.findDOMNode(n);if(a===l)return;if(a.hasAttribute("data-slate-spacer"))return;var c=_e(a,n);if(l.contains(a)&&c&&!n.isVoid(c))return}De("onBlur",{event:t}),i()}}},onClick:function(e,t,n){De("onClick",{event:e}),n()},onCompositionEnd:function(e,r,o){var i=t;window.requestAnimationFrame(function(){t>i||(n=!1)}),De("onCompositionEnd",{event:e}),o()},onCompositionStart:function(e,r,o){n=!0,t++,r.value.selection.isCollapsed||r.delete(),De("onCompositionStart",{event:e}),o()},onCopy:function(e,t,n){var i=o()(e.target);r=!0,i.requestAnimationFrame(function(){return r=!1}),De("onCopy",{event:e}),n()},onCut:function(e,t,n){if(!t.readOnly){var i=o()(e.target);r=!0,i.requestAnimationFrame(function(){return r=!1}),De("onCut",{event:e}),n()}},onDragEnd:function(e,t,n){i=!1,De("onDragEnd",{event:e}),n()},onDragEnter:function(e,t,n){De("onDragEnter",{event:e}),n()},onDragExit:function(e,t,n){De("onDragExit",{event:e}),n()},onDragLeave:function(e,t,n){De("onDragLeave",{event:e}),n()},onDragOver:function(e,t,n){var r=_e(e.target,t);t.isVoid(r)&&e.preventDefault(),f.f&&e.preventDefault(),i||(i=!0,f.f||(e.nativeEvent.dataTransfer.dropEffect="move")),De("onDragOver",{event:e}),n()},onDragStart:function(e,t,n){i=!0,De("onDragStart",{event:e}),n()},onDrop:function(e,t,n){t.readOnly||(e.preventDefault(),De("onDrop",{event:e}),n())},onFocus:function(t,n,i){if(!r&&!n.readOnly){var a=m.a.findDOMNode(n),s=o()(t.target);e=s.document.activeElement,f.e&&t.target!==a?a.focus():(De("onFocus",{event:t}),i())}},onInput:function(e,t,r){n||t.value.selection.isBlurred||(De("onInput",{event:e}),r())},onKeyDown:function(e,t,r){t.readOnly||(n?h.default.isCompose(e)&&e.preventDefault():(!f.g&&(h.default.isBold(e)||h.default.isDeleteBackward(e)||h.default.isDeleteForward(e)||h.default.isDeleteLineBackward(e)||h.default.isDeleteLineForward(e)||h.default.isDeleteWordBackward(e)||h.default.isDeleteWordForward(e)||h.default.isItalic(e)||h.default.isRedo(e)||h.default.isSplitBlock(e)||h.default.isTransposeCharacter(e)||h.default.isUndo(e))&&e.preventDefault(),De("onKeyDown",{event:e}),r()))},onPaste:function(e,t,n){t.readOnly||(e.preventDefault(),De("onPaste",{event:e}),n())},onSelect:function(t,i,a){if(!r&&!n&&!i.readOnly){var s=o()(t.target);e=s.document.activeElement,De("onSelect",{event:t}),a()}}}),y=(a=null,s=!1,{onBeforeInput:function(e,t,n){var r=t.value;if(e.nativeEvent)return e.preventDefault(),t.insertText(e.data),n();var o=e.getTargetRanges(),i=B(o,1)[0];if(!i)return n();Ae("onBeforeInput",{event:e}),e.preventDefault();var a=r.document,s=r.selection,u=Z(i,t);switch(e.inputType){case"deleteByDrag":case"deleteByCut":case"deleteContent":case"deleteContentBackward":case"deleteContentForward":t.deleteAtRange(u);break;case"deleteWordBackward":t.deleteWordBackwardAtRange(u);break;case"deleteWordForward":t.deleteWordForwardAtRange(u);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":t.deleteLineBackwardAtRange(u);break;case"deleteSoftLineForward":case"deleteHardLineForward":t.deleteLineForwardAtRange(u);break;case"insertLineBreak":case"insertParagraph":a.hasVoidParent(s.start.path,t)?t.moveToStartOfNextText():t.splitBlockAtRange(u);break;case"insertFromYank":case"insertReplacementText":case"insertText":var l=null==e.data?e.dataTransfer.getData("text/plain"):e.data;if(null==l)break;t.insertTextAtRange(u,l,s.marks),s.marks&&r.document!==t.value.document&&t.select({marks:null})}n()},onBlur:function(e,t,n){Ae("onBlur",{event:e}),t.blur(),n()},onClick:function(e,t,n){if(t.readOnly)return n();var r=t.value.document,o=_e(e.target,t);if(!o)return n();Ae("onClick",{event:e});var i=r.getAncestors(o.key);o&&(t.isVoid(o)||i.some(function(e){return t.isVoid(e)}))&&t.focus().moveToEndOfNode(o),n()},onCopy:function(e,t,n){Ae("onCopy",{event:e}),be(e,t),n()},onCut:function(e,t,n){Ae("onCut",{event:e}),be(e,t,function(){var e=t.value,n=e.endBlock,r=e.endInline,o=e.selection.isCollapsed,i=n&&t.isVoid(n)&&o,a=r&&t.isVoid(r)&&o;i?t.removeNodeByKey(n.key):a?t.removeNodeByKey(r.key):t.delete()}),n()},onDragEnd:function(e,t,n){Ae("onDragEnd",{event:e}),a=null,n()},onDragStart:function(e,t,n){Ae("onDragStart",{event:e}),a=!0;var r=t.value,o=r.document,i=_e(e.target,t),s=o.getAncestors(i.key),u=i&&(t.isVoid(i)||s.some(function(e){return t.isVoid(e)})),l=r.blocks.some(function(e){return e.key===i.key});u&&!l&&t.moveToRangeOfNode(i);var c=t.value.fragment;Te(e,"fragment",d.a.serializeNode(c)),n()},onDrop:function(e,t,n){var r=t.value,i=r.document,s=r.selection,u=o()(e.target),l=we(e,t);if(!l)return n();Ae("onDrop",{event:e});var c=Pe(e),f=c.type,d=c.fragment,p=c.text;if(t.focus(),a&&s.end.key===l.end.key&&s.end.offset0&&t.splitBlock(),t.insertText(e)})}"fragment"===f&&t.insertFragment(d);var y=he(i.getNode(l.focus.key),u);y&&y.dispatchEvent(new MouseEvent("mouseup",{view:u,bubbles:!0,cancelable:!0})),n()},onFocus:function(e,t,n){Ae("onFocus",{event:e}),!s||f.f||f.d?t.focus():t.deselect().focus(),n()},onInput:function(e,t,n){Ae("onInput");var r=o()(e.target),i=r.getSelection();ee(0,t,i.anchorNode),Q(0,t,i),n()},onKeyDown:function(e,t,n){Ae("onKeyDown",{event:e});var r=t.value,o=r.document,i=r.selection,a=o.hasVoidParent(i.start.path,t);if(h.default.isSplitBlock(e)&&!f.g)return a?t.moveToStartOfNextText():t.splitBlock();if(h.default.isDeleteBackward(e)&&!f.g)return t.deleteCharBackward();if(h.default.isDeleteForward(e)&&!f.g)return t.deleteCharForward();if(h.default.isDeleteLineBackward(e))return t.deleteLineBackward();if(h.default.isDeleteLineForward(e))return t.deleteLineForward();if(h.default.isDeleteWordBackward(e))return t.deleteWordBackward();if(h.default.isDeleteWordForward(e))return t.deleteWordForward();if(h.default.isRedo(e))return t.redo();if(h.default.isUndo(e))return t.undo();if(h.default.isMoveLineBackward(e))return e.preventDefault(),t.moveToStartOfBlock();if(h.default.isMoveLineForward(e))return e.preventDefault(),t.moveToEndOfBlock();if(h.default.isExtendLineBackward(e))return e.preventDefault(),t.moveFocusToStartOfBlock();if(h.default.isExtendLineForward(e))return e.preventDefault(),t.moveFocusToEndOfBlock();if(h.default.isMoveBackward(e))return e.preventDefault(),i.isCollapsed?t.moveBackward():t.moveToStart();if(h.default.isMoveForward(e))return e.preventDefault(),i.isCollapsed?t.moveForward():t.moveToEnd();if(h.default.isMoveWordBackward(e))return e.preventDefault(),t.moveWordBackward();if(h.default.isMoveWordForward(e))return e.preventDefault(),t.moveWordForward();if(h.default.isExtendBackward(e)){var s=r.previousText,u=r.startText,l=s&&o.hasVoidParent(s.key,t);if(a||l||""===u.text)return e.preventDefault(),t.moveFocusBackward()}if(h.default.isExtendForward(e)){var c=r.nextText,d=r.startText,p=c&&o.hasVoidParent(c.key,t);if(a||p||""===d.text)return e.preventDefault(),t.moveFocusForward()}n()},onMouseDown:function(e,t,n){Ae("onMouseDown",{event:e}),s=!0,n()},onMouseUp:function(e,t,n){Ae("onMouseUp",{event:e}),s=!1,n()},onPaste:function(e,t,n){Ae("onPaste",{event:e});var r=t.value,o=Pe(e),i=o.type,a=o.fragment,s=o.text;if("fragment"===i&&t.insertFragment(a),"text"===i||"html"===i){if(!s)return n();var u=r.document,l=r.selection,c=r.startBlock;if(t.isVoid(c))return n();var f=c,d=u.getInsertMarksAtRange(l),h=p.a.deserialize(s,{defaultBlock:f,defaultMarks:d}).document;t.insertFragment(h)}n()},onSelect:function(e,t,n){Ae("onSelect",{event:e});var r=o()(e.target);Q(0,t,r.getSelection()),s=!1,n()}});return[].concat(c,[v],z(l),[y])}var Ne=u()("slate:leaves"),Re=function(e){function t(){var e,n,r;D(this,t);for(var o=arguments.length,i=Array(o),a=0;a1?n-1:0),o=1;o1?n-1:0),o=1;o1?n-1:0),o=1;ot.order?1:-1})}(e,t).forEach(function(e){e.isRangeStart?n.add(e.decoration):e.isRangeEnd?n.remove(e.decoration):r.push(n.toList())}),r}var Ve=u()("slate:node"),Ye=function(e){function t(){var e,n,r;D(this,t);for(var o=arguments.length,i=Array(o),a=0;a1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:window,n=he(e.key,t),r=0,o=Array.from(n.querySelectorAll("[data-slate-content], [data-slate-zero-width]")),i=!0,a=!1,s=void 0;try{for(var u,l=o[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value,f=c.childNodes[0],d=f.textContent.length,p=d;c.hasAttribute("data-slate-length")&&(p=parseInt(c.getAttribute("data-slate-length"),10));var h=r+p;if(e.offset<=h)return{node:f,offset:Math.min(d,Math.max(0,e.offset-r))};r=h}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}return null}function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=e.anchor,r=e.focus,o=e.isBackward,i=e.isCollapsed,a=Ke(n,t),s=i?a:Ke(r,t);if(!a||!s)return null;var u=t.document.createRange(),l=o?s:a,c=o?a:s;return u.setStart(l.node,l.offset),u.setEnd(c.node,c.offset),u}var $e=["auto","overlay","scroll"],Ze=f.g&&!!window.navigator.userAgent.match(/os 11_/i);function Xe(e){if(!Ze&&e.anchorNode){var t=o()(e.anchorNode),n=function(e,t){for(var n=e.parentNode,r=void 0;!r&&n.parentNode;){var o=t.getComputedStyle(n).overflowY;if($e.includes(o)){r=n;break}n=n.parentNode}return r||t.document.body}(e.anchorNode,t),r=n===t.document.body||n===t.document.documentElement,i=C()(e),a=e.getRangeAt(0).cloneRange();a.collapse(i);var s=a.getBoundingClientRect();f.i&&a.collapsed&&0===s.top&&0===s.height&&(0===a.startOffset?a.setEnd(a.endContainer,1):a.setStart(a.startContainer,a.startOffset-1),0===(s=a.getBoundingClientRect()).top&&0===s.height&&a.getClientRects().length&&(s=a.getClientRects()[0]));var u=void 0,l=void 0,c=void 0,d=void 0,p=0,h=0,v=0,m=0,y=0,g=0,b=0,_=0;if(r){u=t.innerWidth,l=t.innerHeight,c=t.pageYOffset,d=t.pageXOffset}else{var w=n.offsetWidth,O=n.offsetHeight,k=n.scrollTop,E=n.scrollLeft,S=t.getComputedStyle(n),x=S.borderTopWidth,P=S.borderBottomWidth,j=S.borderLeftWidth,M=S.borderRightWidth,T=S.paddingTop,A=S.paddingBottom,D=S.paddingLeft,I=S.paddingRight,N=n.getBoundingClientRect();u=w,l=O,p=N.top+parseInt(x,10),h=N.left+parseInt(j,10),v=parseInt(x,10)+parseInt(P,10),m=parseInt(j,10)+parseInt(M,10),y=parseInt(T,10),g=parseInt(A,10),b=parseInt(D,10),_=parseInt(I,10),c=k,d=E}var R=s.top+c-p,F=s.left+d-h,L=d,B=c;Fd+u&&(L=F+m+_-u),Rc+l&&(B=R+v+g+s.height-l),r?t.scrollTo(L,B):(n.scrollTop=B,n.scrollLeft=L)}}var Qe=/Permission denied to access property "nodeType"/,et=u()("slate:content");et.update=u()("slate:update");var tt=function(e){function t(){var e,n,r;D(this,t);for(var i=arguments.length,a=Array(i),s=0;s0&&void 0!==arguments[0]?arguments[0]:{},t=e.placeholder,n=e.plugins,r=void 0===n?[]:n;var o=[],i=nt.reduce(function(t,n){return n in e&&(t[n]=e[n]),t},{});return o.push(Ie({plugins:[i].concat(z(r))})),t&&o.push(Object(M.a)({placeholder:t,when:function(e,t){return"document"===t.object&&""===t.text&&1===t.nodes.size&&1===t.getTexts().size}})),o.push({decorateNode:function(e,t,n){return[]},renderEditor:function(e,t,n){return g.a.createElement(tt,{autoCorrect:e.autoCorrect,className:e.className,editor:t,id:e.id,onEvent:function(e,n){return t.run(e,n)},readOnly:e.readOnly,role:e.role,spellCheck:e.spellCheck,style:e.style,tabIndex:e.tabIndex,tagName:e.tagName})},renderNode:function(e,t,n){var r=e.attributes,o=e.children,i=e.node.object;if("block"!==i&&"inline"!==i)return null;var a="block"===i?"div":"span";return g.a.createElement(a,R({},r,{style:{position:"relative"}}),o)}}),o}var ot=u()("slate:editor"),it=function(e){function t(){var e,n,r;D(this,t);for(var o=arguments.length,i=Array(o),s=0;s component is re-resolving the `plugins`, `schema`, `commands`, `queries` or `placeholder` prop on each update, which leads to poor performance. This is often due to passing in a new references for these props with each render by declaring them inline in your render function. Do not do this! Declare them outside your render function, or memoize them instead."),r.tmp.resolves++;var e=rt(R({},r.props,{value:r.props.value||r.state.value}));r.controller=new a.Editor({plugins:[e],onChange:function(e){r.tmp.mounted?r.handleChange(e):r.tmp.change=e}},{controller:r,construct:!1}),r.controller.run("onConstruct")}),L(r,n)}return F(t,e),I(t,[{key:"componentDidMount",value:function(){this.tmp.mounted=!0,this.tmp.updates++,this.props.autoFocus&&this.focus(),this.tmp.change&&(this.handleChange(this.tmp.change),this.tmp.change=null)}},{key:"componentDidUpdate",value:function(){this.tmp.updates++,this.tmp.change&&(this.handleChange(this.tmp.change),this.tmp.change=null)}},{key:"componentWillUnmount",value:function(){this.tmp.mounted=!1}},{key:"render",value:function(){ot("render",this);var e=R({},this.props,{editor:this}),t=e.commands,n=e.placeholder,r=e.plugins,o=e.queries,i=e.schema;this.resolveController(r,i,t,o,n);var a=e.options,s=e.readOnly,u=e.value,l=this.state.value,c=u||l;return this.controller.setReadOnly(s),this.controller.setValue(c,a),this.controller.run("renderEditor",R({},e,{value:c}))}},{key:"handleChange",value:function(e){var t=this.props.onChange;this.state.value&&this.setState({value:e.value}),t(e)}},{key:"applyOperation",value:function(){var e;return(e=this.controller).applyOperation.apply(e,arguments)}},{key:"command",value:function(){var e;return(e=this.controller).command.apply(e,arguments)}},{key:"hasCommand",value:function(){var e;return(e=this.controller).hasCommand.apply(e,arguments)}},{key:"hasQuery",value:function(){var e;return(e=this.controller).hasQuery.apply(e,arguments)}},{key:"normalize",value:function(){var e;return(e=this.controller).normalize.apply(e,arguments)}},{key:"query",value:function(){var e;return(e=this.controller).query.apply(e,arguments)}},{key:"registerCommand",value:function(){var e;return(e=this.controller).registerCommand.apply(e,arguments)}},{key:"registerQuery",value:function(){var e;return(e=this.controller).registerQuery.apply(e,arguments)}},{key:"run",value:function(){var e;return(e=this.controller).run.apply(e,arguments)}},{key:"withoutNormalizing",value:function(){var e;return(e=this.controller).withoutNormalizing.apply(e,arguments)}},{key:"call",value:function(){var e;return(e=this.controller).call.apply(e,arguments)}},{key:"change",value:function(){var e;return(e=this.controller).change.apply(e,arguments)}},{key:"onChange",value:function(){var e;return(e=this.controller).onChange.apply(e,arguments)}},{key:"applyOperations",value:function(){var e;return(e=this.controller).applyOperations.apply(e,arguments)}},{key:"setOperationFlag",value:function(){var e;return(e=this.controller).setOperationFlag.apply(e,arguments)}},{key:"getFlag",value:function(){var e;return(e=this.controller).getFlag.apply(e,arguments)}},{key:"unsetOperationFlag",value:function(){var e;return(e=this.controller).unsetOperationFlag.apply(e,arguments)}},{key:"withoutNormalization",value:function(){var e;return(e=this.controller).withoutNormalization.apply(e,arguments)}},{key:"operations",get:function(){return this.controller.operations}},{key:"readOnly",get:function(){return this.controller.readOnly}},{key:"value",get:function(){return this.controller.value}},{key:"editor",get:function(){return this.controller.editor}},{key:"schema",get:function(){Object(i.a)(!1,"As of Slate 0.42, the `editor.schema` property no longer exists, and its functionality has been folded into the editor itself. Use the `editor` instead.")}},{key:"stack",get:function(){Object(i.a)(!1,"As of Slate 0.42, the `editor.stack` property no longer exists, and its functionality has been folded into the editor itself. Use the `editor` instead.")}}]),t}(g.a.Component);it.propTypes=R({autoCorrect:_.a.bool,autoFocus:_.a.bool,className:_.a.string,defaultValue:w.a.value,id:_.a.string,onChange:_.a.func,options:_.a.object,placeholder:_.a.any,plugins:_.a.array,readOnly:_.a.bool,role:_.a.string,schema:_.a.object,spellCheck:_.a.bool,style:_.a.object,tabIndex:_.a.number,value:w.a.value},A.reduce(function(e,t){return e[t]=_.a.func,e},{})),it.defaultProps={autoFocus:!1,autoCorrect:!0,onChange:function(){},options:{},placeholder:"",plugins:[],readOnly:!1,schema:{},spellCheck:!0};var at={Editor:it,cloneFragment:be,findDOMNode:he,findDOMRange:Je,findNode:_e,findRange:Z,getEventRange:we,getEventTransfer:Pe,setEventTransfer:Te,ReactPlugin:rt};t.default=at},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=l(n(1673)),o=l(n(1675)),i=l(n(1677)),a=l(n(1678)),s=l(n(1679)),u=l(n(1680));function l(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=s.default,t.loop=u.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a{var n=t.headerStyleRatio;if(e<30){var r=Math.round(e/30*20)/20;return r===n?null:{headerStyleRatio:r,headerStyle:{boxShadow:"0 0 ".concat(2*r,"px rgba(0, 0, 0, ").concat(.2*r,")")}}}return e<0&&-1!==n?{headerStyleRatio:-1,headerStyle:{boxShadow:"none"}}:1!==n?{headerStyleRatio:1,headerStyle:{boxShadow:"0 0px 2px rgba(0, 0, 0, 0.2)"}}:null},b=(0,r.default)(e=>e.showAsAction);class _ extends i.default.Component{constructor(e){super(e),v(this,"state",{menuIsOpen:!1,headerStyleRatio:-1,headerStyle:{boxShadow:"none"},scrollTop:0}),v(this,"scrollFrameId",null),v(this,"scrollFrame",()=>{var e=(window.pageYOffset||document.scrollTop||0)-(document.clientTop||0),t=Math.max(e-y,0);if(this.state.scrollTop!==t){var n=g(t,this.state);n?(n.scrollTop=t,this.setState(n)):this.setState({scrollTop:t})}this.scrollFrameId=requestAnimationFrame(this.scrollFrame)}),v(this,"handleContentScroll",e=>{var t=g(e.target.scrollTop,this.state);t&&this.setState(t)}),v(this,"handleCloseMenu",()=>{this.setState({menuIsOpen:!1})}),v(this,"handleMenuToggle",()=>{this.setState(e=>({menuIsOpen:!e.menuIsOpen}))}),v(this,"handleRootClick",e=>{var t=this.props,n=t.onExpand,r=t.isCollapsed,o=t.index;r&&n&&n(o)}),v(this,"handleTitleClick",e=>{var t=this.props,n=t.onCollapse,r=t.isCollapsed,o=t.index;!r&&n&&n(o)}),v(this,"handleMenuAction",e=>{this.closeRequest=requestAnimationFrame(()=>this.handleCloseMenu()),"function"!=typeof e.action?this.props.onAction(e):e.action(e.params)}),v(this,"renderIntentAction",(e,t)=>{var n=this.props.styles,r=e.icon;return i.default.createElement("div",{className:n.buttonWrapper,key:m(e,t)},i.default.createElement(c.IntentLink,{className:n.actionButton,intent:e.intent.type,params:e.intent.params,title:e.title},i.default.createElement("div",{className:n.actionButtonInner,tabIndex:-1},i.default.createElement(r,null))))}),v(this,"renderAction",(e,t)=>{if(e.intent)return this.renderIntentAction(e,t);var n=this.props.styles,r=e.icon;return i.default.createElement("div",{className:n.buttonWrapper,key:m(e,t)},i.default.createElement("button",{className:n.actionButton,type:"button",title:e.title,onClick:this.handleMenuAction.bind(this,e)},i.default.createElement("div",{className:n.actionButtonInner,tabIndex:-1},i.default.createElement(r,null))))}),this.paneMenuId=Math.random().toString(36).substr(2,6)}static getDerivedStateFromProps(e,t){return void 0===e.scrollTop?null:g(e.scrollTop,t)}componentDidMount(){this.scrollFrame()}componentWillUnmount(){this.closeRequest&&cancelAnimationFrame(this.closeRequest),this.scrollFrameId&&cancelAnimationFrame(this.scrollFrameId)}shouldComponentUpdate(e,t){var n=e.scrollTop!==this.props.scrollTop,r=t.headerStyleRatio!==this.state.headerStyleRatio;return!(n&&!r)&&(n||r||!(0,a.default)(e,this.props)||!(0,a.default)(t,this.state))}renderMenu(){var e=this.props,t=e.styles,n=e.menuItems,r=e.menuItemGroups,o=e.isCollapsed,a=this.state.menuIsOpen,s=n.filter(b);return 0===s.length?null:i.default.createElement("div",{className:t.menuWrapper},i.default.createElement("button",{className:t.menuOverflowButton,"data-menu-button-id":this.paneMenuId,type:"button",onClick:this.handleMenuToggle,title:"Show menu"},i.default.createElement("div",{className:t.menuOverflowButtonInner,tabIndex:-1},i.default.createElement(l.default,null))),i.default.createElement("div",{className:t.menuContainer},a&&i.default.createElement(u.default,{id:this.paneMenuId,items:s,groups:r,origin:o?"top-left":"top-right",onAction:this.handleMenuAction,onClose:this.handleCloseMenu,onClickOutside:this.handleCloseMenu})))}render(){var e=this.props,t=e.title,n=e.children,r=e.isSelected,o=e.isCollapsed,a=e.isScrollable,u=e.menuItems,l=e.styles,c=e.renderActions,d=e.staticContent,p=e.contentMaxWidth,h=o?{}:this.state.headerStyle,v=u.filter(e=>e.showAsAction&&(!o||e.showAsAction.whenCollapsed));return i.default.createElement("div",{className:(0,s.default)([o?l.isCollapsed:l.root,r?l.isActive:l.isDisabled]),onClick:this.handleRootClick},i.default.createElement("div",{className:l.header,style:{boxShadow:h.boxShadow}},i.default.createElement("div",{className:l.headerContent,style:p?{maxWidth:"".concat(p,"px")}:{}},i.default.createElement("h2",{className:l.title,onClick:this.handleTitleClick},t),i.default.createElement("div",{className:l.actions},c?c(v):v.map(this.renderAction),this.renderMenu()))),i.default.createElement("div",{className:l.main},a?i.default.createElement(f.default,{className:l.scrollContainer,onScroll:this.handleContentScroll},i.default.createElement("div",{style:p?{maxWidth:"".concat(p,"px")}:{}},n)):i.default.createElement("div",{className:l.notScrollable},n),d))}}v(_,"propTypes",{title:o.default.oneOfType([o.default.string,o.default.node]),isCollapsed:o.default.bool,onExpand:o.default.func,onCollapse:o.default.func,children:o.default.node,isSelected:o.default.bool,isScrollable:o.default.bool,scrollTop:o.default.number,onAction:o.default.func,renderActions:o.default.func,menuItems:o.default.arrayOf(o.default.shape({showAsAction:o.default.oneOfType([o.default.bool,o.default.shape({whenCollapsed:o.default.bool})])})),menuItemGroups:o.default.arrayOf(o.default.shape({id:o.default.string.isRequired,title:o.default.string})),index:o.default.number,staticContent:o.default.node,contentMaxWidth:o.default.number,styles:o.default.object}),v(_,"defaultProps",{title:"Untitled",isCollapsed:!1,isSelected:!1,scrollTop:void 0,isScrollable:!0,renderActions:void 0,styles:{},children:i.default.createElement("div",null),onAction:()=>{},menuItems:[],menuItemGroups:[]});var w=(0,d.default)(_,p.default);t.default=w},function(e,t,n){"use strict";function r(e){return(r="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)}var o=["image","file"],i=["before","after","replace"];t.dataset=function(e){if(!/^[-\w]{1,128}$/.test(e))throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes")},t.projectId=function(e){if(!/^[-a-z0-9]+$/i.test(e))throw new Error("`projectId` can only contain only a-z, 0-9 and dashes")},t.validateAssetType=function(e){if(-1===o.indexOf(e))throw new Error("Invalid asset type: ".concat(e,". Must be one of ").concat(o.join(", ")))},t.validateObject=function(e,t){if(null===t||"object"!==r(t)||Array.isArray(t))throw new Error("".concat(e,"() takes an object of properties"))},t.requireDocumentId=function(e,n){if(!n._id)throw new Error("".concat(e,'() requires that the document contains an ID ("_id" property)'));t.validateDocumentId(e,n._id)},t.validateDocumentId=function(e,t){if("string"!=typeof t||!/^[a-z0-9_.-]+$/i.test(t))throw new Error("".concat(e,'(): "').concat(t,'" is not a valid document ID'))},t.validateInsert=function(e,t,n){var r="insert(at, selector, items)";if(-1===i.indexOf(e)){var o=i.map(function(e){return'"'.concat(e,'"')}).join(", ");throw new Error("".concat(r,' takes an "at"-argument which is one of: ').concat(o))}if("string"!=typeof t)throw new Error("".concat(r,' takes a "selector"-argument which must be a string'));if(!Array.isArray(n))throw new Error("".concat(r,' takes an "items"-argument which must be an array'))},t.hasDataset=function(e){if(!e.gradientMode&&!e.dataset)throw new Error("`dataset` must be provided to perform queries");return e.dataset||""}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";t.a=function(e,t){return function(n){return n.lift(new i(e,t))}};var r=n(3),o=n(5);var i=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))},e}(),a=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return r.a(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(o.a)},function(e,t,n){var r=n(239)(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});e.exports=r},function(e,t,n){var r=n(42).Symbol;e.exports=r},function(e,t,n){var r=n(22),o=n(251),i=n(400),a=n(55);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){e.exports=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=7)}([function(e,t,n){var r=n(1),o=Math.sqrt(2),i=Math.cos,a=Math.max,s=Math.min;function u(e){return s(e.duration,Date.now()-e.mouseDown)}function l(e){return e.mouseUp>0?Date.now()-e.mouseUp:0}function c(e){var t=e.duration,n=e.radius,o=.85*r(u(e),0,n,t),s=.15*r(l(e),0,n,t),c=.02*n*i(Date.now()/t);return a(0,o+s+c)}e.exports={getMaxRadius:function(e,t,n){return s(.5*a(e,t),n)},getBlotOpacity:function(e,t){return r(l(e),t,-t,e.duration)},getBlotOuterOpacity:function(e,t){return s(this.getBlotOpacity(e,t),r(u(e),0,.3,3*e.duration))},getBlotShiftX:function(e,t,n){return s(1,c(e)/t*2/o)*(n/2-e.x)},getBlotShiftY:function(e,t,n){return s(1,c(e)/t*2/o)*(n/2-e.y)},getBlotScale:function(e){return c(e)/e.radius}}},function(e,t){e.exports=function(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t}},function(e,t,n){var r=n(0),o=function(e){var t=e.mouseUp,n=e.duration;return!t||Date.now()-t=0;n--)if(!t[n].mouseUp)return t[n].mouseUp=e}};return a}},function(e,t){e.exports={borderRadius:"inherit",height:"100%",left:0,position:"absolute",top:0,width:"100%"}},function(e,t){e.exports=n(0)},function(e,t){e.exports=function(e){return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}},function(e,t){var n=!1;"undefined"!=typeof window&&(n="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),e.exports=n},function(e,t,n){var r=Object.assign||function(e){for(var t=1;t0||"object"!=typeof r)?o.default.createElement("div",{className:"start"===t?i.default.alignStart:i.default.alignEnd,"data-buttons":n.filter(Boolean).length+r.filter(Boolean).length},n,r.length>0?r.map((e,t)=>o.default.createElement("div",{className:i.default.secondary,key:t},e)):r):o.default.createElement("div",{className:"start"===t?i.default.alignStart:i.default.alignEnd,"data-buttons":n.filter(Boolean).length},n||r):null}}t.default=u,s(u,"propTypes",{children:r.default.node.isRequired,secondary:r.default.oneOfType([r.default.node,r.default.arrayOf([r.default.node])]),align:r.default.oneOf(["start","end"]),className:r.default.string}),s(u,"defaultProps",{align:"start",secondary:null,className:""})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=a(n(839));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends o.default.PureComponent{render(){var e=this.props,t=e.size,n=e.children,r=e.padding;return o.default.createElement("div",{className:"".concat(i.default[t]," ").concat(r?i.default["padding_".concat(r)]:"")},n)}}t.default=u,s(u,"propTypes",{size:r.default.oneOf(["small","medium","large","auto"]),padding:r.default.oneOf(["none","small","medium","large"]),children:r.default.node.isRequired}),s(u,"defaultProps",{size:"auto",padding:"medium"})},function(e,t,n){var r=n(68),o=n(413),i=n(414);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){"use strict";t.a=function(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new o(i,t));var a=Object.create(n,r.b);return a.source=n,a.subjectFactory=i,a}};var r=n(362);var o=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(e);return o.add(t.subscribe(r)),o},e}()},function(e,t){e.exports=function(e,t,n){if(null===e!=(null===t))return!1;var r=Array.isArray(e),o=Array.isArray(t);if(r!==o)return!1;var i=typeof e;return i===typeof t&&(a=i,"function"!==a&&"object"!==a?n?n(e,t):e===t:r?function(e,t,n){var r=e.length;if(r!==t.length)return!1;if(n){for(var o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?S(e)+t:t}function C(){return!0}function P(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function j(e,t){return T(e,t,0)}function M(e,t){return T(e,t,t)}function T(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var A=0,D=1,I=2,N="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",F=N||R;function L(e){this.next=e}function B(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function z(){return{value:void 0,done:!0}}function W(e){return!!q(e)}function U(e){return e&&"function"==typeof e.next}function H(e){var t=q(e);return t&&t.call(e)}function q(e){var t=e&&(N&&e[N]||e[R]);if("function"==typeof t)return t}function V(e){return e&&"number"==typeof e.length}function Y(e){return null==e?ie():a(e)?e.toSeq():function(e){var t=ue(e)||"object"==typeof e&&new te(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function G(e){return null==e?ie().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():ae(e)}function K(e){return null==e?ie():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():se(e)}function J(e){return(null==e?ie():a(e)?s(e)?e.entrySeq():e:se(e)).toSetSeq()}L.prototype.toString=function(){return"[Iterator]"},L.KEYS=A,L.VALUES=D,L.ENTRIES=I,L.prototype.inspect=L.prototype.toSource=function(){return this.toString()},L.prototype[F]=function(){return this},t(Y,n),Y.of=function(){return Y(arguments)},Y.prototype.toSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq {","}")},Y.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Y.prototype.__iterate=function(e,t){return le(this,e,t,!0)},Y.prototype.__iterator=function(e,t){return ce(this,e,t,!0)},t(G,Y),G.prototype.toKeyedSeq=function(){return this},t(K,Y),K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(e,t){return le(this,e,t,!1)},K.prototype.__iterator=function(e,t){return ce(this,e,t,!1)},t(J,Y),J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},Y.isSeq=oe,Y.Keyed=G,Y.Set=J,Y.Indexed=K;var $,Z,X,Q="@@__IMMUTABLE_SEQ__@@";function ee(e){this._array=e,this.size=e.length}function te(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function ne(e){this._iterable=e,this.size=e.length||e.size}function re(e){this._iterator=e,this._iteratorCache=[]}function oe(e){return!(!e||!e[Q])}function ie(){return $||($=new ee([]))}function ae(e){var t=Array.isArray(e)?new ee(e).fromEntrySeq():U(e)?new re(e).fromEntrySeq():W(e)?new ne(e).fromEntrySeq():"object"==typeof e?new te(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){return V(e)?new ee(e):U(e)?new re(e):W(e)?new ne(e):void 0}function le(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ce(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new L(function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:B(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function fe(e,t){return t?function e(t,n,r,o){if(Array.isArray(n))return t.call(o,r,K(n).map(function(r,o){return e(t,r,o,n)}));if(pe(n))return t.call(o,r,G(n).map(function(r,o){return e(t,r,o,n)}));return n}(t,e,"",{"":e}):de(e)}function de(e){return Array.isArray(e)?K(e).map(de).toList():pe(e)?G(e).map(de).toMap():e}function pe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function he(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ve(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||u(e)!==u(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(c(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&he(o[1],e)&&(n||he(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,d=t.__iterate(function(t,r){if(n?!e.has(t):o?!he(t,e.get(r,g)):!he(e.get(r,g),t))return f=!1,!1});return f&&e.size===d}function me(e,t){if(!(this instanceof me))return new me(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Z)return Z;Z=this}}function ye(e,t){if(!e)throw new Error(t)}function ge(e,t,n){if(!(this instanceof ge))return new ge(e,t,n);if(ye(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?{value:void 0,done:!0}:B(e,o,n[t?r-o++:o++])})},t(te,G),te.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},te.prototype.has=function(e){return this._object.hasOwnProperty(e)},te.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},te.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new L(function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:B(e,a,n[a])})},te.prototype[h]=!0,t(ne,K),ne.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=H(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},ne.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=H(this._iterable);if(!U(n))return new L(z);var r=0;return new L(function(){var t=n.next();return t.done?t:B(e,r++,t.value)})},t(re,K),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return B(e,o,r[o++])})},t(me,K),me.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},me.prototype.get=function(e,t){return this.has(e)?this._value:t},me.prototype.includes=function(e){return he(this._value,e)},me.prototype.slice=function(e,t){var n=this.size;return P(e,t,n)?this:new me(this._value,M(t,n)-j(e,n))},me.prototype.reverse=function(){return this},me.prototype.indexOf=function(e){return he(this._value,e)?0:-1},me.prototype.lastIndexOf=function(e){return he(this._value,e)?this.size:-1},me.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:B(e,i++,a)})},ge.prototype.equals=function(e){return e instanceof ge?this._start===e._start&&this._end===e._end&&this._step===e._step:ve(this,e)},t(be,n),t(_e,be),t(we,be),t(Oe,be),be.Keyed=_e,be.Indexed=we,be.Set=Oe;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function Se(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>De?function(e){var t=Re[e];void 0===t&&(t=xe(e),Ne===Ie&&(Ne=0,Re={}),Ne++,Re[e]=t);return t}(e):xe(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Me&&void 0!==(t=Ce.get(e)))return t;if(void 0!==(t=e[Ae]))return t;if(!je){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ae]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++Te,1073741824&Te&&(Te=0);if(Me)Ce.set(e,t);else{if(void 0!==Pe&&!1===Pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(je)Object.defineProperty(e,Ae,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ae]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ae]=t}}return t}(e);if("function"==typeof e.toString)return xe(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function xe(e){for(var t=0,n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}})},Le.prototype.toString=function(){return this.__toString("Map {","}")},Le.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Le.prototype.set=function(e,t){return Qe(this,e,t)},Le.prototype.setIn=function(e,t){return this.updateIn(e,g,function(){return t})},Le.prototype.remove=function(e){return Qe(this,e,g)},Le.prototype.deleteIn=function(e){return this.updateIn(e,function(){return g})},Le.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Le.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===g;var a=n.next();if(a.done){var s=i?r:t,u=o(s);return u===s?t:u}ye(i||t&&t.set,"invalid keyPath");var l=a.value;var c=i?g:t.get(l,g);var f=e(c,n,r,o);return f===c?t:f===g?t.remove(l):(i?Xe():t).set(l,f)}(this,nn(e),t,n);return r===g?void 0:r},Le.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Xe()},Le.prototype.merge=function(){return rt(this,void 0,arguments)},Le.prototype.mergeWith=function(t){return rt(this,t,e.call(arguments,1))},Le.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Xe(),function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]})},Le.prototype.mergeDeep=function(){return rt(this,ot,arguments)},Le.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return rt(this,it(t),n)},Le.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Xe(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]})},Le.prototype.sort=function(e){return jt(Vt(this,e))},Le.prototype.sortBy=function(e,t){return jt(Vt(this,t,e))},Le.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Le.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},Le.prototype.asImmutable=function(){return this.__ensureOwner()},Le.prototype.wasAltered=function(){return this.__altered},Le.prototype.__iterator=function(e,t){return new Ke(this,e,t)},Le.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},Le.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ze(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Le.isMap=Be;var ze,We="@@__IMMUTABLE_MAP__@@",Ue=Le.prototype;function He(e,t){this.ownerID=e,this.entries=t}function qe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ve(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ge(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Ke(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&$e(e._root)}function Je(e,t){return B(e,t[0],t[1])}function $e(e,t){return{node:e,index:0,__prev:t}}function Ze(e,t,n,r){var o=Object.create(Ue);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Xe(){return ze||(ze=Ze(0))}function Qe(e,t,n){var r,o;if(e._root){var i=w(b),a=w(_);if(r=et(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===g?-1:1:0)}else{if(n===g)return e;o=1,r=new He(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ze(o,r):Xe()}function et(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===g?e:(O(s),O(a),new Ge(t,r,[o,i]))}function tt(e){return e.constructor===Ge||e.constructor===Ye}function nt(e,t,n,r,o){if(e.keyHash===r)return new Ye(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&y,s=(0===n?r:r>>>n)&y;return new qe(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function ut(e,t,n,r){var o=r?e:E(e);return o[t]=n,o}Ue[We]=!0,Ue.delete=Ue.remove,Ue.removeIn=Ue.deleteIn,He.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=lt)return function(e,t,n,r){e||(e=new k);for(var o=new Ge(e,Se(n),[n,r]),i=0;i>>e)&y),i=this.bitmap;return 0==(i&o)?r:this.nodes[st(i&o-1)].get(e+v,t,n,r)},qe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Se(r));var s=(0===t?n:n>>>t)&y,u=1<=ct)return function(e,t,n,r,o){for(var i=0,a=new Array(m),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Ve(e,i+1,a)}(e,d,l,s,h);if(c&&!h&&2===d.length&&tt(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&tt(h))return h;var b=e&&e===this.ownerID,_=c?h?l:l^u:l|u,w=c?h?ut(d,f,h,b):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e)&y,i=this.nodes[o];return i?i.get(e+v,t,n,r):r},Ve.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Se(r));var s=(0===t?n:n>>>t)&y,u=o===g,l=this.nodes,c=l[s];if(u&&!c)return this;var f=et(c,e,t+v,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d0&&r=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?xt(e,t).set(0,n):xt(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=w(_);t>=Pt(e._capacity)?r=kt(r,e.__ownerID,0,t,n,i):o=kt(o,e.__ownerID,e._level,t,n,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return wt(e._origin,e._capacity,e._level,o,r)}(this,e,t)},dt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},dt.prototype.insert=function(e,t){return this.splice(e,0,t)},dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=v,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ot()},dt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){xt(n,0,t+e.length);for(var r=0;r>>t&y;if(r>=this.array.length)return new mt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-v,n))===a&&i)return this}if(i&&!o)return this;var s=Et(this,e);if(!i)for(var u=0;u>>t&y;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-v,n))===i&&o===this.array.length-1)return this}var a=Et(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var yt,gt,bt={};function _t(e,t){var n=e._origin,r=e._capacity,o=Pt(r),i=e._tail;return a(e._root,e._level,0);function a(e,s,u){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,u=a>n?0:n-a,l=r-a;l>m&&(l=m);return function(){if(u===l)return bt;var e=t?--l:u++;return s&&s[e]}}(e,u):function(e,o,i){var s,u=e&&e.array,l=i>n?0:n-i>>o,c=1+(r-i>>o);c>m&&(c=m);return function(){for(;;){if(s){var e=s();if(e!==bt)return e;s=null}if(l===c)return bt;var n=t?--c:l++;s=a(u&&u[n],o-v,i+(n<>>n&y,u=e&&s0){var l=e&&e.array[s],c=kt(l,t,n-v,r,o,i);return c===l?e:((a=Et(e,t)).array[s]=c,a)}return u&&e.array[s]===o?e:(O(i),a=Et(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Et(e,t){return t&&e&&t===e.ownerID?e:new mt(e?e.array.slice():[],t)}function St(e,t){if(t>=Pt(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&y],r-=v;return n}}function xt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new k,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,l=e._root,c=0;a+c<0;)l=new mt(l&&l.array.length?[void 0,l]:[],r),c+=1<<(u+=v);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=Pt(i),d=Pt(s);d>=1<f?new mt([],r):p;if(p&&d>f&&av;g-=v){var b=f>>>g&y;m=m.array[b]=Et(m.array[b],r)}m.array[f>>>v&y]=p}if(s=d)a-=d,s-=d,u=v,l=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d>>u&y;if(_!==d>>>u&y)break;_&&(c+=(1<o&&(l=l.removeBefore(r,u,a-c)),l&&di&&(i=l.size),a(u)||(l=l.map(function(e){return fe(e)})),r.push(l)}return i>e.size&&(e=e.setSize(i)),at(e,t,r)}function Pt(e){return e>>v<=m&&a.size>=2*i.size?(r=(o=a.filter(function(e,t){return void 0!==e&&s!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Tt(r,o)}function It(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Nt(e){this._iter=e,this.size=e.size}function Rt(e){this._iter=e,this.size=e.size}function Ft(e){this._iter=e,this.size=e.size}function Lt(e){var t=Qt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=en,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return!1!==t(n,e,r)},n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new L(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===D?A:D,n)},t}function Bt(e,t,n){var r=Qt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,g);return i===g?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate(function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)},o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new L(function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return B(r,s,t.call(n,a[1],s,e),o)})},r}function zt(e,t){var n=Qt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Lt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=en,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Wt(e,t,n,r){var o=Qt(e);return r&&(o.has=function(r){var o=e.get(r,g);return o!==g&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,g);return i!==g&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate(function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)},i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(I,i),s=0;return new L(function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,l=u[0],c=u[1];if(t.call(n,c,l,e))return B(o,r?l:s++,c,i)}})},o}function Ut(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),P(t,n,o))return e;var i=j(t,o),a=M(n,o);if(i!=i||a!=a)return Ut(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u==u&&(s=u<0?0:u);var l=Qt(e);return l.size=0===s?s:e.size&&s||void 0,!r&&oe(e)&&s>=0&&(l.get=function(t,n){return(t=x(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===D?e:B(t,u-1,t===A?void 0:e.value[1],e)})},l}function Ht(e,t,n,r){var o=Qt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(I,i),u=!0,l=0;return new L(function(){var e,i,c;do{if((e=s.next()).done)return r||o===D?e:B(o,l++,o===A?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],u&&(u=t.call(n,c,i,a))}while(u);return o===I?e:B(o,i,c,e)})},o}function qt(e,t,n){var r=Qt(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;return function e(u,l){var c=this;u.__iterate(function(o,u){return(!t||l0}function Kt(e,t,r){var o=Qt(e);return o.size=new ee(r).map(function(e){return e.size}).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(D,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map(function(e){return e=n(e),H(o?e.reverse():e)}),a=0,s=!1;return new L(function(){var n;return s||(n=i.map(function(e){return e.next()}),s=n.some(function(e){return e.done})),s?{value:void 0,done:!0}:B(e,a++,t.apply(null,n.map(function(e){return e.value})))})},o}function Jt(e,t){return oe(e)?t:e.constructor(t)}function $t(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Zt(e){return Fe(e.size),S(e)}function Xt(e){return s(e)?r:u(e)?o:i}function Qt(e){return Object.create((s(e)?G:u(e)?K:J).prototype)}function en(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Y.prototype.cacheResult.call(this)}function tn(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Cn(e,t)},On.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Fe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Cn(t,n)},On.prototype.pop=function(){return this.slice(1)},On.prototype.unshift=function(){return this.push.apply(this,arguments)},On.prototype.unshiftAll=function(e){return this.pushAll(e)},On.prototype.shift=function(){return this.pop.apply(this,arguments)},On.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Pn()},On.prototype.slice=function(e,t){if(P(e,t,this.size))return this;var n=j(e,this.size);if(M(t,this.size)!==this.size)return we.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Cn(r,o)},On.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Cn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},On.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},On.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new L(function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return{value:void 0,done:!0}})},On.isStack=kn;var En,Sn="@@__IMMUTABLE_STACK__@@",xn=On.prototype;function Cn(e,t,n,r){var o=Object.create(xn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Pn(){return En||(En=Cn(0))}function jn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}xn[Sn]=!0,xn.withMutations=Ue.withMutations,xn.asMutable=Ue.asMutable,xn.asImmutable=Ue.asImmutable,xn.wasAltered=Ue.wasAltered,n.Iterator=L,jn(n,{toArray:function(){Fe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new Nt(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new It(this,!0)},toMap:function(){return Le(this.toKeyedSeq())},toObject:function(){Fe(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e},toOrderedMap:function(){return jt(this.toKeyedSeq())},toOrderedSet:function(){return mn(s(this)?this.valueSeq():this)},toSet:function(){return un(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Rt(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return On(s(this)?this.valueSeq():this)},toList:function(){return dt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return Jt(this,function(e,t){var n=s(e),o=[e].concat(t).map(function(e){return a(e)?n&&(e=r(e)):e=n?ae(e):se(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||u(e)&&u(i))return i}var l=new ee(o);return n?l=l.toKeyedSeq():u(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}},0),l}(this,e.call(arguments,0)))},includes:function(e){return this.some(function(t){return he(t,e)})},entries:function(){return this.__iterator(I)},every:function(e,t){Fe(this.size);var n=!0;return this.__iterate(function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1}),n},filter:function(e,t){return Jt(this,Wt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Fe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Fe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""}),t},keys:function(){return this.__iterator(A)},map:function(e,t){return Jt(this,Bt(this,e,t))},reduce:function(e,t,n){var r,o;return Fe(this.size),arguments.length<2?o=!0:r=t,this.__iterate(function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Jt(this,zt(this,!0))},slice:function(e,t){return Jt(this,Ut(this,e,t,!0))},some:function(e,t){return!this.every(In(e),t)},sort:function(e){return Jt(this,Vt(this,e))},values:function(){return this.__iterator(D)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return S(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Le().asMutable();return e.__iterate(function(o,i){r.update(t.call(n,o,i,e),0,function(e){return e+1})}),r.asImmutable()}(this,e,t)},equals:function(e){return ve(this,e)},entrySeq:function(){var e=this;if(e._cache)return new ee(e._cache);var t=e.toSeq().map(Dn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(In(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(C)},flatMap:function(e,t){return Jt(this,function(e,t,n){var r=Xt(e);return e.toSeq().map(function(o,i){return r(t.call(n,o,i,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return Jt(this,qt(this,e,!0))},fromEntrySeq:function(){return new Ft(this)},get:function(e,t){return this.find(function(t,n){return he(n,e)},void 0,t)},getIn:function(e,t){for(var n,r=this,o=nn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,g):g)===g)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),o=(c(e)?jt():Le()).asMutable();e.__iterate(function(i,a){o.update(t.call(n,i,a,e),function(e){return(e=e||[]).push(r?[a,i]:i),e})});var i=Xt(e);return o.map(function(t){return Jt(e,i(t))})}(this,e,t)},has:function(e){return this.get(e,g)!==g},hasIn:function(e){return this.getIn(e,g)!==g},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey(function(t){return he(t,e)})},keySeq:function(){return this.toSeq().map(An).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Yt(this,e)},maxBy:function(e,t){return Yt(this,t,e)},min:function(e){return Yt(this,e?Nn(e):Ln)},minBy:function(e,t){return Yt(this,t?Nn(t):Ln,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Jt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Jt(this,Ht(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(In(e),t)},sortBy:function(e,t){return Jt(this,Vt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Jt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Jt(this,function(e,t,n){var r=Qt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate(function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)}),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new L(function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,u=o[0],l=o[1];return t.call(n,l,u,i)?r===I?e:B(r,u,l,e):(s=!1,{value:void 0,done:!0})})},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(In(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=c(e),n=s(e),r=t?1:0;return function(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Bn(Se(e),Se(t))|0}:function(e,t){r=r+Bn(Se(e),Se(t))|0}:t?function(e){r=31*r+Se(e)|0}:function(e){r=r+Se(e)|0}),r)}(this))}});var Mn=n.prototype;Mn[f]=!0,Mn[F]=Mn.values,Mn.__toJS=Mn.toArray,Mn.__toStringMapper=Rn,Mn.inspect=Mn.toSource=function(){return this.toString()},Mn.chain=Mn.flatMap,Mn.contains=Mn.includes,jn(r,{flip:function(){return Jt(this,Lt(this))},mapEntries:function(e,t){var n=this,r=0;return Jt(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Jt(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Tn=r.prototype;function An(e,t){return t}function Dn(e,t){return[t,e]}function In(e){return function(){return!e.apply(this,arguments)}}function Nn(e){return function(){return-e.apply(this,arguments)}}function Rn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function Fn(){return E(arguments)}function Ln(e,t){return et?-1:0}function Bn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Tn[d]=!0,Tn[F]=Mn.entries,Tn.__toJS=Mn.toObject,Tn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Rn(e)},jn(o,{toKeyedSeq:function(){return new It(this,!1)},filter:function(e,t){return Jt(this,Wt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Jt(this,zt(this,!1))},slice:function(e,t){return Jt(this,Ut(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=j(e,e<0?this.count():this.size);var r=this.slice(0,e);return Jt(this,1===n?r:r.concat(E(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Jt(this,qt(this,e,!1))},get:function(e,t){return(e=x(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=x(this,e))>=0&&(void 0!==this.size?this.size===1/0||ey[e].style).map(e=>y[e].style));t.DEFAULT_SUPPORTED_STYLES=g;var b=(0,o.default)(Object.keys(v).map(e=>v[e]));t.DEFAULT_SUPPORTED_DECORATORS=b;t.DEFAULT_SUPPORTED_ANNOTATIONS=["link"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HAS_SPACES=t.CONFIGURED_SPACES=void 0;var r=i(n(271)),o=i(n(63));function i(e){return e&&e.__esModule?e:{default:e}}var a="__experimental_spaces",s=function(){if(!o.default[a])return null;return o.default[a]&&o.default[a].map(l)}();t.CONFIGURED_SPACES=s;var u=s&&s.length>0;function l(e){return Object.assign({},e,{title:e.title||(0,r.default)(e.name)})}t.HAS_SPACES=u},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,((r=n(732))&&r.__esModule?r:{default:r}).default)();t.default=o},function(e,t,n){"use strict";t.a=function(e){return"function"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(3),o=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.a(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(n(735).a)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(3),o=n(367),i=function(e){function t(n,r){void 0===r&&(r=o.a.now);var i=e.call(this,n,function(){return t.delegate&&t.delegate!==i?t.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return r.a(t,e),t.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,o):e.prototype.schedule.call(this,n,r,o)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(o.a)},function(e,t,n){"use strict";t.a=function(e,t){return t?Object(i.a)(e,t):new r.a(Object(o.a)(e))};var r=n(9),o=n(369),i=n(232)},function(e,t,n){"use strict";function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}n.d(t,"a",function(){return o}),r.prototype=Object.create(Error.prototype);var o=r},function(e,t,n){"use strict";function r(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}n.d(t,"a",function(){return o}),r.prototype=Object.create(Error.prototype);var o=r},function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return o});var o=r()},function(e,t,n){"use strict";t.a=function e(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);if("function"==typeof n)return function(o){return o.pipe(e(function(e,r){return Object(u.a)(t(e,r)).pipe(Object(s.a)(function(t,o){return n(e,t,r,o)}))},r))};"number"==typeof n&&(r=n);return function(e){return e.lift(new l(t,r))}};var r=n(3),o=n(12),i=n(11),a=n(64),s=n(35),u=n(49);var l=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.project,this.concurrent))},e}(),c=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=e.call(this,t)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.a(t,e),t.prototype._next=function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(i.a)},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(249),o=n(846);e.exports=function e(t,n,i,a,s){var u=-1,l=t.length;for(i||(i=o),s||(s=[]);++u0&&i(c)?n>1?e(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(e,t,n){var r=n(412);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(79),o=n(36);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){"use strict";t.a=function(e){void 0===e&&(e=null);return function(t){return t.lift(new i(e))}};var r=n(3),o=n(5);var i=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.defaultValue))},e}(),a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.a(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(o.a)},function(e,t,n){var r=n(1007),o=n(443),i=r(function(e,t,n){return e+(n?" ":"")+o(t)});e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){(0,i.warnIfPreviewOnOptions)(e),(0,i.warnIfPreviewHasFields)(e);var t=function(e){if(!e)return e;var t=e.select||e.fields;if(Array.isArray(t))return s({},(0,r.default)(e,["prepare","component"]),{select:(n=t,n.reduce((e,t)=>(e[t]=t,e),{}))});var n;return s({},(0,r.default)(e,["prepare","component"]),{select:t})}(e.preview||(e.options||{}).preview);return t||(0,o.default)(e)}};var r=a(n(17)),o=a(n(1019)),i=n(1025);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){for(var t=1;t"validation"===e.type),l=o.filter(e=>"error"===e.level),c=o.filter(e=>"warning"===e.level);if(0===l.length&&0===c.length)return r.default.createElement("div",{className:i.default.ok},r.default.createElement(s.default,null));var f="error".concat(1===l.length?"":"s"),d=l.length>0&&"".concat(l.length," ").concat(f),p="warning".concat(1===c.length?"":"s"),h=c.length>0&&"".concat(c.length," ").concat(p),v=d;return d&&h&&(v="".concat(d," and ").concat(h)),h&&!d&&(v=h),1===l.length&&0===c.length&&(v=l[0].item.message),1===c.length&&0===l.length&&(v=c[0].item.message),r.default.createElement(u.Tooltip,{title:v,tabIndex:0,trigger:"mouseenter focus",animation:"scale",arrow:!0,theme:"light",distance:"2",duration:50,className:i.default.root,onClick:n},r.default.createElement("div",null,l&&l.length>0&&r.default.createElement("div",{className:i.default.error},r.default.createElement(a.default,null)),c&&c.length>0&&r.default.createElement("div",{className:i.default.warning},r.default.createElement(a.default,null))))}}t.default=f,c(f,"propTypes",{onClick:o.default.func,markers:o.default.arrayOf(o.default.shape({path:o.default.arrayOf(o.default.oneOfType([o.default.object,o.default.string,o.default.number])),type:o.default.string,level:o.default.string,item:o.default.any}))}),c(f,"defaultProps",{onClick:()=>{},markers:[]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends r.default.Component{constructor(){super(...arguments),s(this,"hadMouseDown",!1),s(this,"handleMouseDown",e=>{this._wrapperElement.contains(e.target)&&(this.hadMouseDown=!0)}),s(this,"handleDocumentClick",e=>{this.props.onClickOutside&&this._wrapperElement&&!this._wrapperElement.contains(e.target)&&!this.hadMouseDown&&this.props.onClickOutside(e),this.hadMouseDown=!1}),s(this,"setWrapperElement",e=>{this._wrapperElement=e})}componentWillMount(){document.addEventListener("mouseup",this.handleDocumentClick),document.addEventListener("mousedown",this.handleMouseDown)}componentWillUnmount(){document.removeEventListener("mouseup",this.handleDocumentClick),document.removeEventListener("mousedown",this.handleMouseDown)}render(){var e=this.props,t=e.wrapperElement,n=(e.onClickOutside,a(e,["wrapperElement","onClickOutside"]));return r.default.createElement(t,function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:16,t=new Uint8Array(e);return(0,o.default)(t),t}(e).reduce((e,t)=>e+i[t],"").slice(0,e)};var r,o=(r=n(487))&&r.__esModule?r:{default:r};for(var i=[],a=0;a<256;++a)i[a]=(a+256).toString(16).substring(1)},function(e,t,n){var r=n(45),o=n(20),i="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},function(e,t,n){e.exports=n(10)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(38),o=n(51);class i{constructor(e){this.spec=e||{}}id(e){return this.clone({id:e})}getId(){return this.spec.id}title(e){return this.clone({title:e,id:this.spec.id||r.camelCase(e)})}getTitle(){return this.spec.title}documentId(e){return this.clone({options:Object.assign({},this.spec.options||{},{id:e})})}getDocumentId(){return this.spec.options&&this.spec.options.id}schemaType(e){return this.clone({options:Object.assign({},this.spec.options||{},{type:"string"==typeof e?e:e.name})})}getSchemaType(){return this.spec.options&&this.spec.options.type}serialize({path:e,index:t,hint:n}={path:[]}){const{id:r,options:i}=this.spec;if("string"!=typeof r||!r)throw new o.SerializeError("`id` is required for editor nodes",e,t,n).withHelpUrl(o.HELP_URL.ID_REQUIRED);if(!i||!i.id)throw new o.SerializeError("document id (`id`) is required for editor nodes",e,r,n).withHelpUrl(o.HELP_URL.DOCUMENT_ID_REQUIRED);return Object.assign({},this.spec,{id:r,type:"document",options:{id:i.id,type:i.type}})}clone(e={}){const t=new i,n=Object.assign({},this.spec.options||{},e.options||{});return t.spec=Object.assign({},this.spec,e,{options:n}),t}}t.EditorBuilder=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isActionEnabled=t.resolveEnabledActions=void 0;var r,o=(r=n(256))&&r.__esModule?r:{default:r};var i=["create","update","delete","publish"],a=i,s=e=>((e,t)=>{if(!Array.isArray(t))throw new Error("The value of .".concat("__experimental_actions"," should be an array with any of the actions ").concat(a.join(", ")));var n=(0,o.default)(t,a);if(n.length>0)throw new Error("Invalid action".concat(n.length>1?"s":"",' configured for schema type "').concat(e,'": ').concat(n.join(", "),". Valid actions are: ").concat(a.join(", ")));return t})(e.name,(e=>"__experimental_actions"in e?e.__experimental_actions:i)(e));t.resolveEnabledActions=s;t.isActionEnabled=((e,t)=>s(e).includes(t))},function(e,t,n){var r=n(2);e.exports=function(e,t){var n=r(e),o=Number(t);return n.setDate(n.getDate()+o),n}},function(e,t,n){var r=n(2);e.exports=function(e,t){var n=r(e).getTime(),o=Number(t);return new Date(n+o)}},function(e,t,n){var r=n(2);e.exports=function(e,t){var n=r(e).getTime(),o=r(t).getTime();return no?1:0}},function(e,t){e.exports={paneWrapper:"Editor_paneWrapper_24drj",paneWrapperWithHistory:"Editor_paneWrapperWithHistory_SBnLb Editor_paneWrapper_24drj",pane:"Editor_pane_3I-hG",loading:"Editor_loading_1a65V",menuItem:"Editor_menuItem_3P03e",hotkey:"Editor_hotkey_273OJ",top:"Editor_top_2MrpN",publishInfo:"Editor_publishInfo_35k4d",publishInfoHidden:"Editor_publishInfoHidden_2qRFD Editor_publishInfo_35k4d",publishButton:"Editor_publishButton_3HXrQ",publishInfoUndoButton:"Editor_publishInfoUndoButton_1CxXi",popOverText:"Editor_popOverText_3ef12",errors:"Editor_errors_1o7Q9",warnings:"Editor_warnings_NVe5x",editor:"Editor_editor_7ly3E",syncStatus:"Editor_syncStatus_JCnkX",syncStatusSynced:"Editor_syncStatusSynced_37ouz Editor_syncStatus_JCnkX",syncStatusReconnecting:"Editor_syncStatusReconnecting_1ZjDx Editor_syncStatus_JCnkX",syncStatusSyncing:"Editor_syncStatusSyncing_2jtRv Editor_syncStatus_JCnkX",overlay:"Editor_overlay_rtQq8",typeMisMatchMessage:"Editor_typeMisMatchMessage_1nED8",paneFunctions:"Editor_paneFunctions_9bS_5",syncSpinnerContainer:"Editor_syncSpinnerContainer_3QcxT",syncSpinner:"Editor_syncSpinner_w1ZB4",spin:"Editor_spin_cAm8G",spinnerContainer:"Editor_spinnerContainer_105tZ",statusBadges:"Editor_statusBadges_21IDI",editedTime:"Editor_editedTime_3w3zM",editedTimeClickable:"Editor_editedTimeClickable_7iM-H Editor_editedTime_3w3zM"}},function(e,t,n){t.filter=n(660).filter},function(e,t,n){t.map=n(665).map},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},function(e,t,n){"use strict";t.a=function(){}},function(e,t,n){"use strict";function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}n.d(t,"a",function(){return o}),r.prototype=Object.create(Error.prototype);var o=r},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return s});var r,o=n(47),i=n(158),a=n(233);r||(r={});var s=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(o.b)()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},function(e,t,n){"use strict";t.a=function(){for(var e=[],t=0;t=0};var r=n(30)},function(e,t,n){var r=n(772),o=n(36),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){(function(e){var r=n(42),o=n(775),i="object"==typeof t&&t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;e.exports=u}).call(t,n(67)(e))},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e. No router state will be accessible and links will not go anywhere. To fix this,"+" make sure ".concat(n," is rendered in the context of a element"))}},function(e,t,n){"use strict";t.a=function(e){void 0===e&&(e=u);return function(t){return t.lift(new a(e))}};var r=n(3),o=n(125),i=n(5);var a=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.errorFactory))},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.a(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(i.a);function u(){return new o.a}},function(e,t,n){"use strict";t.a=function(e,t){if(arguments.length>=2)return function(n){return Object(a.a)(Object(r.a)(e,t),Object(o.a)(1),Object(i.a)(t))(n)};return function(t){return Object(a.a)(Object(r.a)(function(t,n,r){return e(t,n,r+1)}),Object(o.a)(1))(t)}};var r=n(265),o=n(264),i=n(132),a=n(229)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(38),o=n(270),i=n(329),a=n(51),s=n(439),u=n(146),l=n(579);class c{constructor(e){this.spec=e||{}}id(e){return this.clone({id:e})}getId(){return this.spec.id}title(e){return this.clone({title:e,id:this.spec.id||r.camelCase(e)})}getTitle(){return this.spec.title}icon(e){return this.clone({icon:e})}showIcon(e){return this.clone({displayOptions:Object.assign({},this.spec.displayOptions||{},{showIcon:e})})}getShowIcon(){return this.spec.displayOptions?this.spec.displayOptions.showIcon:void 0}getIcon(){return this.spec.icon}child(e){return this.clone({child:e})}getChild(){return this.spec.child}schemaType(e){return this.clone({schemaType:e})}getSchemaType(){return this.spec.schemaType}serialize(e={path:[]}){const{id:t,title:n,child:r}=this.spec;if("string"!=typeof t||!t)throw new a.SerializeError("`id` is required for list items",e.path,e.index).withHelpUrl(a.HELP_URL.ID_REQUIRED);if(!(e.titleIsOptional||"string"==typeof n&&n))throw new a.SerializeError("`title` is required for list items",e.path,t).withHelpUrl(a.HELP_URL.TITLE_REQUIRED);let c=this.spec.schemaType;if("string"==typeof c){const n=o.defaultSchema.get(c);if(!n)throw new a.SerializeError(`Could not find type "${c}" in schema`,e.path,t).withHelpUrl(a.HELP_URL.SCHEMA_TYPE_NOT_FOUND);c=n}const f={path:e.path.concat(t),hint:"child"};let d=r instanceof l.ComponentBuilder||r instanceof i.DocumentListBuilder||r instanceof s.ListBuilder||r instanceof u.EditorBuilder?r.serialize(f):r;if("function"==typeof d){const e=d;d=((t,n)=>e(t,Object.assign({},n,{serializeOptions:f})))}return Object.assign({},this.spec,{schemaType:c,child:d,id:t,title:n,type:"listItem"})}clone(e){const t=new c;return t.spec=Object.assign({},this.spec,e||{}),t}}t.ListItemBuilder=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e=>e&&e.__esModule?e.default:e)},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var r=n(171),o=n(254),i=n(255),a=n(172),s=n(1030),u=n(248),l=200;e.exports=function(e,t,n){var c=-1,f=o,d=e.length,p=!0,h=[],v=h;if(n)p=!1,f=i;else if(d>=l){var m=t?null:s(e);if(m)return u(m);p=!1,f=a,v=new r}else v=t?[]:h;e:for(;++c=48&&t<=57}},function(e,t,n){"use strict";e.exports=s;var r=n(1121),o=r.CONTINUE,i=r.SKIP,a=r.EXIT;function s(e,t,n,o){"function"==typeof t&&"function"!=typeof n&&(o=n,n=t,t=null),r(e,t,function(e,t){var r=t[t.length-1],o=r?r.children.indexOf(e):null;return n(e,o,r)},o)}s.CONTINUE=o,s.SKIP=i,s.EXIT=a},function(e,t){function n(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}n.Diff,n.prototype.diff_main=function(e,t,n,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=r;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[[0,e]]:[];void 0===n&&(n=!0);var i=n,a=this.diff_commonPrefix(e,t),s=e.substring(0,a);e=e.substring(a),t=t.substring(a),a=this.diff_commonSuffix(e,t);var u=e.substring(e.length-a);e=e.substring(0,e.length-a),t=t.substring(0,t.length-a);var l=this.diff_compute_(e,t,i,o);return s&&l.unshift([0,s]),u&&l.push([0,u]),this.diff_cleanupMerge(l),l},n.prototype.diff_compute_=function(e,t,n,r){var o;if(!e)return[[1,t]];if(!t)return[[-1,e]];var i=e.length>t.length?e:t,a=e.length>t.length?t:e,s=i.indexOf(a);if(-1!=s)return o=[[1,i.substring(0,s)],[0,a],[1,i.substring(s+a.length)]],e.length>t.length&&(o[0][0]=o[2][0]=-1),o;if(1==a.length)return[[-1,e],[1,t]];var u=this.diff_halfMatch_(e,t);if(u){var l=u[0],c=u[1],f=u[2],d=u[3],p=u[4],h=this.diff_main(l,f,n,r),v=this.diff_main(c,d,n,r);return h.concat([[0,p]],v)}return n&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)},n.prototype.diff_lineMode_=function(e,t,n){e=(c=this.diff_linesToChars_(e,t)).chars1,t=c.chars2;var r=c.lineArray,o=this.diff_main(e,t,!1,n);this.diff_charsToLines_(o,r),this.diff_cleanupSemantic(o),o.push([0,""]);for(var i=0,a=0,s=0,u="",l="";i=1&&s>=1){o.splice(i-a-s,a+s),i=i-a-s;for(var c,f=(c=this.diff_main(u,l,!1,n)).length-1;f>=0;f--)o.splice(i,0,c[f]);i+=c.length}s=0,a=0,u="",l=""}i++}return o.pop(),o},n.prototype.diff_bisect_=function(e,t,n){for(var r=e.length,o=t.length,i=Math.ceil((r+o)/2),a=i,s=2*i,u=new Array(s),l=new Array(s),c=0;cn);y++){for(var g=-y+p;g<=y-h;g+=2){for(var b=a+g,_=(S=g==-y||g!=y&&u[b-1]r)h+=2;else if(_>o)p+=2;else if(d){if((k=a+f-g)>=0&&k=(O=r-l[k]))return this.diff_bisectSplit_(e,t,S,_,n)}}for(var w=-y+v;w<=y-m;w+=2){for(var O,k=a+w,E=(O=w==-y||w!=y&&l[k-1]r)m+=2;else if(E>o)v+=2;else if(!d){if((b=a+f-w)>=0&&b=(O=r-O))return this.diff_bisectSplit_(e,t,S,_,n)}}}}return[[-1,e],[1,t]]},n.prototype.diff_bisectSplit_=function(e,t,n,r,o){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),u=t.substring(r),l=this.diff_main(i,a,!1,o),c=this.diff_main(s,u,!1,o);return l.concat(c)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function o(e){for(var t="",o=0,i=-1,a=n.length;ir?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,a,s,c]:null}var a,s,u,l,c,f=i(n,r,Math.ceil(n.length/4)),d=i(n,r,Math.ceil(n.length/2));return f||d?(a=d?f&&f[4].length>d[4].length?f:d:f,e.length>t.length?(s=a[0],u=a[1],l=a[2],c=a[3]):(l=a[0],c=a[1],s=a[2],u=a[3]),[s,u,l,c,a[4]]):null},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,n=[],r=0,o=null,i=0,a=0,s=0,u=0,l=0;i0?n[r-1]:-1,a=0,s=0,u=0,l=0,o=null,t=!0)),i++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),i=1;i=p?(d>=c.length/2||d>=f.length/2)&&(e.splice(i,0,[0,f.substring(0,d)]),e[i-1][1]=c.substring(0,c.length-d),e[i+1][1]=f.substring(d),i++):(p>=c.length/2||p>=f.length/2)&&(e.splice(i,0,[0,c.substring(0,p)]),e[i-1][0]=1,e[i-1][1]=f.substring(0,f.length-p),e[i+1][0]=-1,e[i+1][1]=c.substring(p),i++),i++}i++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),o=t.charAt(0),i=r.match(n.nonAlphaNumericRegex_),a=o.match(n.nonAlphaNumericRegex_),s=i&&r.match(n.whitespaceRegex_),u=a&&o.match(n.whitespaceRegex_),l=s&&r.match(n.linebreakRegex_),c=u&&o.match(n.linebreakRegex_),f=l&&e.match(n.blanklineEndRegex_),d=c&&t.match(n.blanklineStartRegex_);return f||d?5:l||c?4:i&&!s&&u?3:s||u?2:i||a?1:0}for(var r=1;r=d&&(d=p,l=o,c=i,f=a)}e[r-1][1]!=l&&(l?e[r-1][1]=l:(e.splice(r-1,1),r--),e[r][1]=c,f?e[r+1][1]=f:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,n=[],r=0,o=null,i=0,a=!1,s=!1,u=!1,l=!1;i0?n[r-1]:-1,u=l=!1),t=!0)),i++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push([0,""]);for(var t,n=0,r=0,o=0,i="",a="";n1?(0!==r&&0!==o&&(0!==(t=this.diff_commonPrefix(a,i))&&(n-r-o>0&&0==e[n-r-o-1][0]?e[n-r-o-1][1]+=a.substring(0,t):(e.splice(0,0,[0,a.substring(0,t)]),n++),a=a.substring(t),i=i.substring(t)),0!==(t=this.diff_commonSuffix(a,i))&&(e[n][1]=a.substring(a.length-t)+e[n][1],a=a.substring(0,a.length-t),i=i.substring(0,i.length-t))),0===r?e.splice(n-o,r+o,[1,a]):0===o?e.splice(n-r,r+o,[-1,i]):e.splice(n-r-o,r+o,[-1,i],[1,a]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,o=0,r=0,i="",a=""}""===e[e.length-1][1]&&e.pop();var s=!1;for(n=1;nt));n++)i=r,a=o;return e.length!=n&&-1===e[n][0]?a:a+(t-i)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=//g,i=/\n/g,a=0;a");switch(s){case 1:t[a]=''+u+"";break;case-1:t[a]=''+u+"";break;case 0:t[a]=""+u+""}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),o=this;function i(e,r){var i=e/t.length,a=Math.abs(n-r);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}var a=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(a=Math.min(i(0,s),a),-1!=(s=e.lastIndexOf(t,n+t.length))&&(a=Math.min(i(0,s),a)));var u,l,c=1<=h;y--){var g=r[e.charAt(y-1)];if(m[y]=0===p?(m[y+1]<<1|1)&g:(m[y+1]<<1|1)&g|(f[y+1]|f[y])<<1|1|f[y+1],m[y]&c){var b=i(p,y-1);if(b<=a){if(a=b,!((s=y-1)>n))break;h=Math.max(1,2*n-s)}}}if(i(p+1,n)>a)break;f=m}return s},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&"object"==typeof e&&void 0===t&&void 0===r)i=e,o=this.diff_text1(i);else if("string"==typeof e&&t&&"object"==typeof t&&void 0===r)o=e,i=t;else{if("string"!=typeof e||"string"!=typeof t||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");o=e,i=r}if(0===i.length)return[];for(var a=[],s=new n.patch_obj,u=0,l=0,c=0,f=o,d=o,p=0;p=2*this.Patch_Margin&&u&&(this.patch_addContext_(s,f),a.push(s),s=new n.patch_obj,u=0,f=d,l=c)}1!==h&&(l+=v.length),-1!==h&&(c+=v.length)}return u&&(this.patch_addContext_(s,f),a.push(s)),a},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;rthis.Match_MaxBits?-1!=(a=this.match_main(t,l.substring(0,this.Match_MaxBits),u))&&(-1==(c=this.match_main(t,l.substring(l.length-this.Match_MaxBits),u+l.length-this.Match_MaxBits))||a>=c)&&(a=-1):a=this.match_main(t,l,u),-1==a)o[i]=!1,r-=e[i].length2-e[i].length1;else if(o[i]=!0,r=a-u,l==(s=-1==c?t.substring(a,a+l.length):t.substring(a,c+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[i].diffs)+t.substring(a+l.length);else{var f=this.diff_main(l,s,!1);if(l.length>this.Match_MaxBits&&this.diff_levenshtein(f)/l.length>this.Patch_DeleteThreshold)o[i]=!1;else{this.diff_cleanupSemanticLossless(f);for(var d,p=0,h=0;hi[0][1].length){var a=t-i[0][1].length;i[0][1]=n.substring(i[0][1].length)+i[0][1],o.start1-=a,o.start2-=a,o.length1+=a,o.length2+=a}if(0==(i=(o=e[e.length-1]).diffs).length||0!=i[i.length-1][0])i.push([0,n]),o.length1+=t,o.length2+=t;else if(t>i[i.length-1][1].length){a=t-i[i.length-1][1].length;i[i.length-1][1]+=n.substring(0,a),o.length1+=a,o.length2+=a}return n},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,r=0;r2*t?(u.length1+=f.length,i+=f.length,l=!1,u.diffs.push([c,f]),o.diffs.shift()):(f=f.substring(0,t-u.length1-this.Patch_Margin),u.length1+=f.length,i+=f.length,0===c?(u.length2+=f.length,a+=f.length):l=!1,u.diffs.push([c,f]),f==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(f.length))}s=(s=this.diff_text2(u.diffs)).substring(s.length-this.Patch_Margin);var d=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==d&&(u.length1+=d.length,u.length2+=d.length,0!==u.diffs.length&&0===u.diffs[u.diffs.length-1][0]?u.diffs[u.diffs.length-1][1]+=d:u.diffs.push([0,d])),l||e.splice(++r,0,u)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n{var n=this.props,r=n.onFocus,o=n.onClose,i=t[0],a=document.querySelector('[data-focus-path="'.concat(i,'"]'));a?(a.scrollIntoView({behavior:"smooth",alignToTop:!1,inline:"center"}),this.scrollTimeout=setTimeout(()=>{r(t)},300)):r(t),o()})}componentWillUnmount(){this.scrollTimeout&&clearTimeout(this.scrollTimeout)}resolvePathTitle(e){var t=this.props.documentType,n=t&&t.fields,r=n&&n.find(t=>t.name===e[0]);return r?r.type.title:""}render(){var e=this.props,t=e.markers,n=e.showLink,o=e.truncate,s=t.filter(e=>"validation"===e.type),u=s.filter(e=>"error"===e.level),l=s.filter(e=>"warning"===e.level);return 0===u.length&&0===l.length?r.default.createElement("div",null):r.default.createElement("div",{className:i.default.root},r.default.createElement("div",{className:i.default.items},r.default.createElement("ul",null,u.length>0&&u.map((e,t)=>r.default.createElement(a.default,{truncate:o,key:t,path:this.resolvePathTitle(e.path),marker:e,onClick:this.handleClick,showLink:n})),l.length>0&&l.map((e,t)=>r.default.createElement(a.default,{truncate:o,key:t,path:this.resolvePathTitle(e.path),marker:e,onClick:this.handleClick,showLink:n})))))}}t.default=l,u(l,"propTypes",{onFocus:o.default.func,onClose:o.default.func,showLink:o.default.bool,truncate:o.default.bool,documentType:o.default.shape({fields:o.default.arrayOf(o.default.shape({name:o.default.string.isRequired}))}),markers:o.default.arrayOf(o.default.shape({path:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.number,o.default.shape({_key:o.default.string})])),type:o.default.string,level:o.default.string,item:o.default.any}))}),u(l,"defaultProps",{markers:[],documentType:null,onClose:()=>void 0,showLink:!1,onFocus:()=>void 0})},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["wrappedRef"]);return a.createElement(e,r({},i,{ref:function(e){t.__wrappedInstance=e,t.__domNode=s.findDOMNode(e),o&&o(e)}}))}}]),n}();return n.displayName="clickOutside("+t+")",i(n,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(19)),o=p(n(43)),i=p(n(1)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),s=p(n(1212)),u=p(n(8)),l=p(n(138)),c=n(90),f=p(n(190)),d=p(n(478));function p(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={preventOverflow:{boundariesElement:"window",padding:16},customStyle:{enabled:!0,fn:e=>(e.styles=function(e){for(var t=1;t{this.setState({menuOpened:!1})}),m(this,"setMenuElement",e=>{this._menuElement=e}),m(this,"handleOnClick",e=>{this.setState({menuOpened:!0}),this.keyboardNavigation=0==e.detail}),m(this,"handleButtonBlur",e=>{this.state.menuOpened&&!this.menuHasKeyboardFocus&&this.keyboardNavigation&&this.handleClose()}),m(this,"handleClickOutside",e=>{e&&this._rootElement&&this._rootElement.contains(e.target)?(e.stopPropagation(),this.handleClose()):this.handleClose(),this.buttonElement.current.focus()}),m(this,"handleItemClick",(e,t)=>{e.stopPropagation(),this.handleAction(t)}),m(this,"handleItemKeyPress",(e,t)=>{"Enter"===e.key&&this.handleAction(t)}),m(this,"handleAction",e=>{this.props.onAction(e),this.handleClose(),this.keyboardNavigation=!1}),m(this,"handleMenuBlur",e=>{this.menuHasKeyboardFocus=!1,this.buttonElement.current.focus(),this.handleClose()}),m(this,"handleButtonKeyDown",e=>{"ArrowDown"==e.key&&this.state.menuOpened&&(this.menuHasKeyboardFocus=!0,this.keyboardNavigation=!0,this.firstItemElement.current.focus())})}render(){var e=(0,o.default)(this.props,"onAction"),t=e.items,n=e.renderItem,r=e.children,i=e.kind,p=(e.className,e.placement),m=e.showArrow,g=v(e,["items","renderItem","children","kind","className","placement","showArrow"]),b=this.state.menuOpened,_=this.buttonElement&&this.buttonElement.current&&this.buttonElement.current._element;return a.default.createElement(u.default,h({},g,{className:s.default.button,onClick:this.handleOnClick,kind:i,onKeyDown:this.handleButtonKeyDown,onBlur:this.handleButtonBlur,ref:this.buttonElement}),a.default.createElement("div",{className:s.default.inner},m?a.default.createElement("div",{className:s.default.inner},r,a.default.createElement(l.default,{color:"inherit",className:s.default.arrow})):r,a.default.createElement(f.default,{modifiers:y,placement:p,referenceElement:_,onEscape:this.handleClose,onClickOutside:this.handleClose,referenceClassName:s.default.outer,popperClassName:s.default.popper,positionFixed:!0},b&&a.default.createElement(a.Fragment,null,a.default.createElement(c.List,{className:s.default.list},a.default.createElement(d.default,null,t.map((e,t)=>a.default.createElement(c.Item,{key:t,className:s.default.listItem,onClick:t=>this.handleItemClick(t,e),onKeyPress:t=>this.handleItemKeyPress(t,e),item:e,tabIndex:0,ref:0===t&&this.firstItemElement},n(e))))),a.default.createElement("div",{tabIndex:0,onFocus:this.handleMenuBlur})))))}}t.default=g,m(g,"propTypes",{kind:i.default.oneOf(["default","simple"]),items:i.default.arrayOf(i.default.shape({title:i.default.string.isRequired,icon:i.default.func})),onAction:i.default.func.isRequired,children:i.default.node,inverted:i.default.bool,icon:i.default.func,loading:i.default.bool,ripple:i.default.bool,colored:i.default.bool,color:i.default.string,className:i.default.string,renderItem:i.default.func,placement:i.default.string,showArrow:i.default.bool}),m(g,"defaultProps",{renderItem:e=>a.default.createElement("div",null,e.title),showArrow:!0,placement:"bottom-start"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),o=f(n(1)),i=n(139),a=f(n(1225)),s=f(n(84)),u=f(n(83)),l=f(n(136)),c=n(69);function f(e){return e&&e.__esModule?e:{default:e}}function d(){return(d=Object.assign||function(e){for(var t=1;t{this.popperNode=e}),p(this,"handleClickOutside",e=>{this.popperNode&&e.target&&(this.popperNode.contains(e.target)||this.props.onClickOutside(e))})}render(){var e=this.props,t=e.onEscape,n=e.onClickOutside,o=(e.target,e.children),f=e.referenceClassName,p=e.popperClassName,h=e.referenceElement,v={};return h&&(v.referenceElement=h),r.default.createElement(i.Manager,null,!h&&r.default.createElement(i.Reference,null,e=>{var t=e.ref;return r.default.createElement("div",{ref:t,className:f})}),o&&r.default.createElement(c.Portal,null,r.default.createElement(s.default,null,e=>r.default.createElement("div",{className:a.default.portal},r.default.createElement(i.Popper,d({innerRef:this.setPopperNode,modifiers:this.props.modifiers,placement:this.props.placement,positionFixed:!0},v),i=>{var a=i.ref,s=i.placement,c=i.style;return r.default.createElement("div",{ref:a,style:c,"data-placement":s,className:p},r.default.createElement(r.Fragment,null,r.default.createElement(u.default,{onEscape:e?t:void 0}),n?r.default.createElement(l.default,{onClickOutside:e?this.handleClickOutside:void 0},o):o))})))))}}t.default=h,p(h,"propTypes",{onEscape:o.default.func,onClickOutside:o.default.func,target:o.default.node,children:o.default.node,referenceClassName:o.default.string,referenceElement:"undefined"==typeof window?o.default.any:o.default.instanceOf(Element),placement:o.default.string,positionFixed:o.default.bool,popperClassname:o.default.string,modifiers:o.default.shape({preventOverflow:o.default.oneOfType([o.default.string,o.default.object]),customStyle:o.default.object,flip:o.default.object,offset:o.default.object})}),p(h,"defaultProps",{placement:"bottom-start",modifiers:{preventOverflow:"viewport"}})},function(e,t,n){var r=n(129),o=n(1229),i=n(108),a=n(481),s=i(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])});e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createDragHandle",{enumerable:!0,get:function(){return r.createDragHandle}}),Object.defineProperty(t,"List",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Item",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"DragHandle",{enumerable:!0,get:function(){return a.default}});var r=n(75),o=s(n(1246)),i=s(n(1247)),a=s(n(1248));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayMove=function(e,t,n){var r=e.slice(0);if(n>=r.length)for(var o=n-r.length;1+o--;)r.push(void 0);return r.splice(n,0,r.splice(t,1)[0]),r},t.omit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rt)return t;return n},t.getElementMargin=function(e){var t=window.getComputedStyle(e);return{top:r(t.marginTop),right:r(t.marginRight),bottom:r(t.marginBottom),left:r(t.marginLeft)}},t.provideDisplayName=function(e,t){var n=t.displayName||t.name;return n?e+"("+n+")":e};t.events={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","touchcancel","mouseup"]},t.vendorPrefix=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function r(e){return"px"===e.substr(-2)?parseFloat(e):0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(102)),o=v(n(1)),i=v(n(0)),a=v(n(1260)),s=v(n(8)),u=v(n(106)),l=v(n(37)),c=n(139),f=n(69),d=v(n(84)),p=v(n(136)),h=v(n(83));function v(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign||function(e){for(var t=1;ti.default.createElement(s.default,{key:t,onClick:()=>this.props.onAction(e),"data-action-index":t,color:e.color,disabled:e.disabled,kind:e.kind,autoFocus:e.autoFocus,className:e.secondary?a.default.actionSecondary:"",inverted:e.inverted},e.title))}render(){var e=this.props,t=e.useOverlay,n=e.hasAnimation,o=e.referenceElement,s=this.props,v=s.title,g=s.color,b=s.children,_=s.actions,w=s.onClose,O=s.onClickOutside,k=s.onEscape,E=s.modifiers,S=s.padding,x=y((0,r.default)(_,e=>e.primary),2),C=x[0],P=x[1],j={};return o&&(j.referenceElement=o),i.default.createElement(c.Manager,null,!o&&i.default.createElement(c.Reference,null,e=>{var t=e.ref;return i.default.createElement("div",{ref:t,className:a.default.target})}),i.default.createElement(f.Portal,null,i.default.createElement(d.default,null,e=>i.default.createElement("div",null,t&&i.default.createElement("div",{className:a.default.overlay}),i.default.createElement(c.Popper,m({placement:this.props.placement,modifiers:E},j),t=>{var r=t.ref,o=t.style,s=t.placement,c=t.arrowProps;return i.default.createElement("div",{ref:r,style:o,"data-placement":s,className:"".concat(a.default.popper," ").concat(a.default["color_".concat(g)])},i.default.createElement("div",{className:n?a.default.popperAnimation:""},i.default.createElement("div",{className:v?a.default.filledArrow:a.default.arrow,ref:c.ref,style:c.style}),i.default.createElement("div",{className:a.default.arrowShadow,ref:c.ref,style:c.style}),i.default.createElement(h.default,{onEscape:t=>(e||t.shiftKey)&&k&&k()}),i.default.createElement(p.default,{onClickOutside:e?O:void 0,className:a.default.popover},v&&i.default.createElement("div",{className:a.default.header},i.default.createElement("h3",{className:a.default.title},v),w&&i.default.createElement("button",{className:a.default.closeInHeader,type:"button",onClick:w},i.default.createElement(l.default,null))),!v&&w&&i.default.createElement("button",{className:a.default.closeOutsideHeader,type:"button",onClick:w},i.default.createElement(l.default,null)),i.default.createElement("div",{className:"\n ".concat(_.length>0?a.default.contentWithActions:a.default.content,"\n ").concat(a.default["padding_".concat(S)],"\n ")},b),_.length>0&&i.default.createElement("div",{className:a.default.footer},i.default.createElement(u.default,{align:"end",secondary:C.map(this.createActionButton)},P.map(this.createActionButton))))))})))))}}t.default=b,g(b,"propTypes",{title:o.default.string,children:o.default.node.isRequired,onClose:o.default.func,onClickOutside:o.default.func,onEscape:o.default.func,onAction:o.default.func,modifiers:o.default.object,placement:o.default.string,useOverlay:o.default.bool,hasAnimation:o.default.bool,color:o.default.oneOf(["default","danger"]),padding:o.default.oneOf(["none","small","medium","large"]),referenceElement:o.default.instanceOf(Element),actions:o.default.arrayOf(o.default.shape({kind:o.default.string,title:o.default.string,key:o.default.string}))}),g(b,"defaultProps",{title:void 0,onAction(){},actions:[],color:"default",padding:"medium",placement:"auto",useOverlay:!0,hasAnimation:!1,modifiers:{preventOverflow:{boundariesElement:"viewport",padding:24}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("boolean"==typeof n)throw new TypeError("The third argument to fromEvent(..) should be an EventListenerOptions object, not a boolean");var i=n;n&&!o()&&(i=n.capture);return new r.Observable(n=>{var r=e=>n.next(e);return e.addEventListener(t,r,i),()=>{e.removeEventListener(t,r,i)}})};var r=n(6),o=()=>{o=(()=>!1);try{var e=Object.defineProperty({},"passive",{get(){o=(()=>!0)}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return o()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INVALID_PREVIEW_CONFIG=t.INCLUDE_FIELDS=t.INCLUDE_FIELDS_QUERY=void 0;var r=["_id","_rev","_type"];t.INCLUDE_FIELDS_QUERY=r;var o=[...r,"_key"];t.INCLUDE_FIELDS=o;var i=Symbol("invalid preview config");t.INVALID_PREVIEW_CONFIG=i},function(e,t,n){var r=n(92),o=6e4,i=864e5;e.exports=function(e,t){var n=r(e),a=r(t),s=n.getTime()-n.getTimezoneOffset()*o,u=a.getTime()-a.getTimezoneOffset()*o;return Math.round((s-u)/i)}},function(e,t,n){var r=n(2);e.exports=function(e,t){var n=t&&Number(t.weekStartsOn)||0,o=r(e),i=o.getDay(),a=(i2&&void 0!==arguments[2]?arguments[2]:{},r=n.metadata,i=n.storeOriginalFilename;return(0,s.from)(function(e){return window.crypto&&window.crypto.subtle&&window.FileReader?function(e){return new Promise((t,n)=>{var r=new FileReader;r.onload=(()=>t(r.result)),r.onerror=n,r.readAsArrayBuffer(e)})}(e).then(e=>crypto.subtle.digest("SHA-1",e)).then(l):Promise.resolve(null)}(t)).pipe((0,a.catchError)(e=>(0,s.of)(null)),(0,a.mergeMap)(t=>t?function(e,t){return o.default.observable.fetch("*[_type == $documentType && sha1hash == $hash][0]",{documentType:e,hash:t})}("sanity.".concat(e,"Asset"),t):(0,s.of)(null)),(0,a.mergeMap)(n=>n?(0,s.of)({type:"complete",id:n._id,asset:n}):o.default.observable.assets.upload(e,t,{extract:r,preserveFilename:i}).pipe((0,a.map)(e=>"response"===e.type?{type:"complete",id:e.body.document._id,asset:e.body.document}:e))))},4);t.uploadImageAsset=((e,t)=>u("image",e,t));function l(e){return Array.prototype.map.call(new Uint8Array(e),e=>"00".concat(e.toString(16)).slice(-2)).join("")}t.uploadFileAsset=((e,t)=>u("file",e,t))},function(e,t,n){"use strict";function r(e){var t=e.fields.find(e=>"style"===e.name);if(!t)throw new Error("A field with name 'style' is not defined in the block type (required).");var n=t.type.options.list&&t.type.options.list.filter(e=>e.value);if(!n||0===n.length)throw new Error("The style fields need at least one style defined. I.e: {title: 'Normal', value: 'normal'}.");return n}function o(e){return e.annotations.map(e=>({blockEditor:e.blockEditor,title:e.title,type:e,value:e.name}))}function i(e){return e.decorators}function a(e){var t=e.fields.find(e=>"list"===e.name);if(!t)throw new Error("A field with name 'list' is not defined in the block type (required).");var n=t.type.options.list&&t.type.options.list.filter(e=>e.value);if(!n)throw new Error("The list field need at least to be an empty array");return n}function s(e){return"block"===e.name?e:e.type?s(e.type):null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!e)throw new Error("Parameter 'blockContentType' required");var t=e.of.find(s);if(!t)throw new Error("'block' type is not defined in this schema (required).");var n=t.fields.find(e=>"children"===e.name).type.of,u=n.find(e=>"span"===e.name),l=n.filter(e=>"span"!==e.name),c=e.of.filter(e=>"block"!==e.name);return{styles:r(t),decorators:i(u),annotations:o(u),lists:a(t),types:{block:e,span:u,inlineObjects:l,blockObjects:c}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRuleOptions=function(e){var t=(0,i.default)(e),n=e=>e.value,r=t.styles.map(n),o=t.decorators.map(n),a=t.annotations.map(n);return{enabledBlockStyles:r,enabledSpanDecorators:o,enabledBlockAnnotations:a}},t.tagName=function(e){if(!e||1!==e.nodeType)return;return e.tagName.toLowerCase()},t.preprocess=function(e,t,n){var r=e.trim().replace(/\s\s+/g," ").replace(/[\r\n]/g," "),o=t(r);return s.default.forEach(t=>{t(e,o,n)}),o},t.defaultParseHtml=function(){if("undefined"===(0,a.default)(DOMParser))throw new Error("The native `DOMParser` global which the `Html` deserializer uses by default is not present in this environment. You must supply the `options.parseHtml` function instead.");return e=>(new DOMParser).parseFromString(e,"text/html")},t.flattenNestedBlocks=function(e){var t=0,n=[],r=e=>{var o=[];e.forEach((e,i)=>{0===t&&n.push(e),"block"===e._type&&(t>0&&(o.push(e),n.push(e)),t++,r(e.children))}),o.forEach(t=>{e.splice(e.indexOf(t),1)}),t--};return r(e),n},t.trimWhitespace=function(e){return e.forEach(e=>{e.children&&e.children.forEach((t,n)=>{if("span"===t._type){var o=function(e,t,n){var r=e.children[n+1];return r&&"span"===r._type?r:null}(e,0,n),i=function(e,t,n){var r=e.children[n-1];return r&&"span"===r._type?r:null}(e,0,n);0===n&&(t.text=t.text.replace(/^[^\S\n]+/g,"")),n===e.children.length-1&&(t.text=t.text.replace(/[^\S\n]+$/g,"")),/\s/.test(t.text.substring(t.text.length-1))&&o&&/\s/.test(o.text.substring(0,1))&&(t.text=t.text.replace(/[^\S\n]+$/g,"")),/\s/.test(t.text.substring(0,1))&&i&&/\s/.test(i.text.substring(i.text.length-1))&&(t.text=t.text.replace(/^[^\S\n]+/g,"")),t.text||e.children.splice(n,1),i&&(0,r.default)(i.marks,t.marks)&&c(t.text)?(i.text+=" ",e.children.splice(n,1)):o&&(0,r.default)(o.marks,t.marks)&&c(t.text)&&(o.text=" ".concat(o.text),e.children.splice(n,1))}})}),e},t.ensureRootIsBlocks=function(e){return e.reduce((e,t,n,r)=>{if("block"===t._type)return e.push(t),e;if("__block"===t._type)return e.push(t.block),e;if(n>0&&"block"!==r[n-1]._type){var i=e[e.length-1];return i.children.push(t),e}var a=function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];var t={__unknown:{isVoid:!0}};e.types.blockObjects.forEach(e=>{t[e.name]={isVoid:!0}});var n={};return e.types.inlineObjects.forEach(e=>{n[e.name]={isVoid:!0}}),{blocks:t,inlines:n,document:{}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1454))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","color","size","style","width","height"]),f=t.reactIconBase,d=void 0===f?{}:f,p=i||d.size||"1em";return o.a.createElement("svg",s({children:n,fill:"currentColor",preserveAspectRatio:"xMidYMid meet",height:l||p,width:u||p},d,c,{style:s({verticalAlign:"middle",color:r||d.color},d.style||{},a)}))};u.propTypes={color:a.a.string,size:a.a.oneOfType([a.a.string,a.a.number]),width:a.a.oneOfType([a.a.string,a.a.number]),height:a.a.oneOfType([a.a.string,a.a.number]),style:a.a.object},u.contextTypes={reactIconBase:a.a.shape(u.propTypes)},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),o=s(n(0)),i=s(n(1483)),a=s(n(8));function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t{if(t.create)e.push(e=>null===e?Object.assign(t.create,{_createdAt:t.create._createdAt||this.params.timestamp}):e);else if(t.createIfNotExists)e.push(e=>null===e?Object.assign(t.createIfNotExists,{_createdAt:t.createIfNotExists._createdAt||this.params.timestamp}):e);else if(t.createOrReplace)e.push(()=>Object.assign(t.createOrReplace,{_createdAt:t.createOrReplace._createdAt||this.params.timestamp}));else if(t.delete)e.push(()=>null);else{if(!t.patch)throw new Error("Unsupported mutation ".concat(JSON.stringify(t,null,2)));var n=new r.Patcher(t.patch);e.push(e=>n.apply(e))}}),"string"==typeof this.params.timestamp&&e.push(e=>e?Object.assign(e,{_updatedAt:this.params.timestamp}):e);var t=this.previousRev,n=this.resultRev||this.transactionId;this.compiled=(r=>{if(t&&t!=r._rev)throw new Error("Previous revision for this mutation was ".concat(t,", but the document revision is ").concat(r._rev));var o=e.reduce((e,t)=>t(e),r);return o&&n&&(o===r&&(o=Object.assign({},r)),o._rev=n),o})}apply(e){(0,i.default)("Applying mutation %O to document %O",this.mutations,e),this.compiled||this.compile();var t=this.compiled(e);return(0,i.default)(" => %O",t),t}static applyAll(e,t){return t.reduce((e,t)=>t.apply(e),e)}static squash(e,t){var n=t.reduce((e,t)=>e.concat(...t.mutations),[]);return new u({mutations:n})}}t.default=u},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,((r=n(1600))&&r.__esModule?r:{default:r}).default)("mutator-document");t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1707),o=n(270),i=n(577),a=n(578),s=n(51),u=i.getSortIcon();t.maybeSerializeMenuItem=function(e,t,n){return e instanceof l?e.serialize({path:n,index:t}):e};class l{constructor(e){this.spec=e||{}}action(e){return this.clone({action:e})}getAction(){return this.spec.action}intent(e){return this.clone({intent:e})}getIntent(){return this.spec.intent}title(e){return this.clone({title:e})}getTitle(){return this.spec.title}group(e){return this.clone({group:e})}getGroup(){return this.spec.group}icon(e){return this.clone({icon:e})}getIcon(){return this.spec.icon}params(e){return this.clone({params:e})}getParams(){return this.spec.params}showAsAction(e){return this.clone({showAsAction:e})}getShowAsAction(){return this.spec.showAsAction}serialize(e={path:[]}){const{title:t,action:n,intent:r}=this.spec;if(!t){const t="string"==typeof n?`action: "${n}"`:void 0;throw new s.SerializeError("`title` is required for menu item",e.path,e.index,t).withHelpUrl(s.HELP_URL.TITLE_REQUIRED)}if(!n&&!r)throw new s.SerializeError(`\`action\` or \`intent\` required for menu item with title ${this.spec.title}`,e.path,e.index,`"${t}"`).withHelpUrl(s.HELP_URL.ACTION_OR_INTENT_REQUIRED);if(r&&n)throw new s.SerializeError("cannot set both `action` AND `intent`",e.path,e.index,`"${t}"`).withHelpUrl(s.HELP_URL.ACTION_AND_INTENT_MUTUALLY_EXCLUSIVE);return Object.assign({},this.spec,{title:t})}clone(e){const t=new l;return t.spec=Object.assign({},this.spec,e||{}),t}}function c(e,t){return(new l).group("sorting").title(`Sort by ${e.title}`).icon(u).action("setSortOrder").params({by:e.by,extendedProjection:t})}t.MenuItemBuilder=l,t.getOrderingMenuItem=c,t.getOrderingMenuItemsForSchemaType=function(e){const t="string"==typeof e?o.defaultSchema.get(e):e;return(t.orderings?t.orderings.concat(a.DEFAULT_ORDERING_OPTIONS):a.DEFAULT_ORDERING_OPTIONS).map(e=>c(e,r.getExtendedProjection(t,e.by)))}},function(e,t,n){"use strict";function r(e){for(var t=1;te._id).filter(a);return e.filter(e=>{var n=s(e._id),r=u(e._id),o=t.includes(n),i=e._id===r;return!i||!o})},t.DRAFTS_FOLDER=void 0;t.DRAFTS_FOLDER="drafts";var i="".concat("drafts",".");function a(e){return e.startsWith(i)}function s(e){return a(e)?e:i+e}function u(e){return a(e)?e.slice(i.length):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=s(n(0)),o=s(n(1)),i=s(n(39)),a=n(52);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.title;return r.default.createElement("span",null,t)}function l(e){var t=e.document,n=i.default.get(t._type);return r.default.createElement(a.PreviewFields,{document:t,type:n,fields:["title"]},u)}u.propTypes={title:o.default.string},l.propTypes={document:o.default.shape({_type:o.default.string})}},function(e,t,n){"use strict";var r=n(0),o=n(1792);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},function(e,t,n){e.exports={addDays:n(148),addHours:n(599),addISOYears:n(600),addMilliseconds:n(149),addMinutes:n(602),addMonths:n(218),addQuarters:n(603),addSeconds:n(604),addWeeks:n(336),addYears:n(605),areRangesOverlapping:n(1823),closestIndexTo:n(1824),closestTo:n(1825),compareAsc:n(150),compareDesc:n(337),differenceInCalendarDays:n(197),differenceInCalendarISOWeeks:n(1826),differenceInCalendarISOYears:n(606),differenceInCalendarMonths:n(607),differenceInCalendarQuarters:n(1827),differenceInCalendarWeeks:n(1828),differenceInCalendarYears:n(609),differenceInDays:n(610),differenceInHours:n(1829),differenceInISOYears:n(1830),differenceInMilliseconds:n(219),differenceInMinutes:n(1831),differenceInMonths:n(338),differenceInQuarters:n(1832),differenceInSeconds:n(339),differenceInWeeks:n(1833),differenceInYears:n(1834),distanceInWords:n(612),distanceInWordsStrict:n(1835),distanceInWordsToNow:n(1836),eachDay:n(1837),endOfDay:n(340),endOfHour:n(1838),endOfISOWeek:n(1839),endOfISOYear:n(1840),endOfMinute:n(1841),endOfMonth:n(614),endOfQuarter:n(1842),endOfSecond:n(1843),endOfToday:n(1844),endOfTomorrow:n(1845),endOfWeek:n(613),endOfYear:n(1846),endOfYesterday:n(1847),format:n(499),getDate:n(1848),getDay:n(1849),getDayOfYear:n(500),getDaysInMonth:n(335),getDaysInYear:n(1850),getHours:n(1851),getISODay:n(616),getISOWeek:n(299),getISOWeeksInYear:n(1852),getISOYear:n(94),getMilliseconds:n(1853),getMinutes:n(1854),getMonth:n(1855),getOverlappingDaysInRanges:n(1856),getQuarter:n(608),getSeconds:n(1857),getTime:n(1858),getYear:n(1859),isAfter:n(1860),isBefore:n(1861),isDate:n(286),isEqual:n(1862),isFirstDayOfMonth:n(1863),isFriday:n(1864),isFuture:n(1865),isLastDayOfMonth:n(1866),isLeapYear:n(615),isMonday:n(1867),isPast:n(1868),isSameDay:n(1869),isSameHour:n(617),isSameISOWeek:n(619),isSameISOYear:n(620),isSameMinute:n(621),isSameMonth:n(623),isSameQuarter:n(624),isSameSecond:n(626),isSameWeek:n(341),isSameYear:n(628),isSaturday:n(1870),isSunday:n(1871),isThisHour:n(1872),isThisISOWeek:n(1873),isThisISOYear:n(1874),isThisMinute:n(1875),isThisMonth:n(1876),isThisQuarter:n(1877),isThisSecond:n(1878),isThisWeek:n(1879),isThisYear:n(1880),isThursday:n(1881),isToday:n(1882),isTomorrow:n(1883),isTuesday:n(1884),isValid:n(285),isWednesday:n(1885),isWeekend:n(1886),isWithinRange:n(1887),isYesterday:n(1888),lastDayOfISOWeek:n(1889),lastDayOfISOYear:n(1890),lastDayOfMonth:n(1891),lastDayOfQuarter:n(1892),lastDayOfWeek:n(629),lastDayOfYear:n(1893),max:n(1894),min:n(1895),parse:n(2),setDate:n(1896),setDay:n(1897),setDayOfYear:n(1898),setHours:n(1899),setISODay:n(1900),setISOWeek:n(1901),setISOYear:n(601),setMilliseconds:n(1902),setMinutes:n(1903),setMonth:n(630),setQuarter:n(1904),setSeconds:n(1905),setYear:n(1906),startOfDay:n(92),startOfHour:n(618),startOfISOWeek:n(93),startOfISOYear:n(142),startOfMinute:n(622),startOfMonth:n(1907),startOfQuarter:n(625),startOfSecond:n(627),startOfToday:n(1908),startOfTomorrow:n(1909),startOfWeek:n(198),startOfYear:n(501),startOfYesterday:n(1910),subDays:n(1911),subHours:n(1912),subISOYears:n(611),subMilliseconds:n(1913),subMinutes:n(1914),subMonths:n(1915),subQuarters:n(1916),subSeconds:n(1917),subWeeks:n(1918),subYears:n(1919)}},function(e,t,n){var r=n(2),o=n(335);e.exports=function(e,t){var n=r(e),i=Number(t),a=n.getMonth()+i,s=new Date(0);s.setFullYear(n.getFullYear(),a,1),s.setHours(0,0,0,0);var u=o(s);return n.setMonth(a,Math.min(u,n.getDate())),n}},function(e,t,n){var r=n(2);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()-o.getTime()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=!1;t.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(666),i=n(14),a=n(347),s=n(98),u=s.validateObject,l=s.validateInsert;function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.selection=e,this.operations=i({},t),this.client=n}i(c.prototype,{clone:function(){return new c(this.selection,i({},this.operations),this.client)},merge:function(e){u("merge",e);var t=(new Error).stack.toString().split("\n").filter(function(e){return e.trim()}).slice(2);return console.warn('The "merge" patch has been deprecated and will be removed in the future\n'.concat(t.join("\n"))),this._assign("merge",o(this.operations.merge||{},e))},set:function(e){return this._assign("set",e)},diffMatchPatch:function(e){return u("diffMatchPatch",e),this._assign("diffMatchPatch",e)},unset:function(e){if(!Array.isArray(e))throw new Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=i({},this.operations,{unset:e}),this},setIfMissing:function(e){return this._assign("setIfMissing",e)},replace:function(e){return u("replace",e),this._set("set",{$:e})},inc:function(e){return this._assign("inc",e)},dec:function(e){return this._assign("dec",e)},insert:function(e,t,n){var o;return l(e,t,n),this._assign("insert",(r(o={},e,t),r(o,"items",n),o))},append:function(e,t){return this.insert("after","".concat(e,"[-1]"),t)},prepend:function(e,t){return this.insert("before","".concat(e,"[0]"),t)},splice:function(e,t,n,r){var o=t<0?t-1:t,i=void 0===n||-1===n?-1:Math.max(0,t+n),a=o<0&&i>=0?"":i,s="".concat(e,"[").concat(o,":").concat(a,"]");return this.insert("replace",s,r||[])},ifRevisionId:function(e){return this.operations.ifRevisionID=e,this},serialize:function(){return i(a(this.selection),this.operations)},toJSON:function(){return this.serialize()},commit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.client)throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");var t="string"==typeof this.selection,n=i({returnFirst:t,returnDocuments:!0},e);return this.client.mutate({patch:this.serialize()},n)},reset:function(){return this.operations={},this},_set:function(e,t){return this._assign(e,t,!1)},_assign:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return u(e,t),this.operations=i({},this.operations,r({},e,i({},n&&this.operations[e]||{},t))),this}}),e.exports=c},function(e,t,n){"use strict";var r=n(707);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=Function.prototype.toString,o=/^\s*class\b/,i=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},a=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(s)return function(e){try{return!i(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(i(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=n(723);function o(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==o(e)&&("function"==typeof(t=e.constructor)&&(!1!==o(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},function(e,t,n){"use strict";t.a=function(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&o instanceof r.a?o:null}return!0};var r=n(5)},function(e,t,n){"use strict";t.a=function(e){setTimeout(function(){throw e},0)}},function(e,t,n){"use strict";t.a=function(e){return null!==e&&"object"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},function(e,t,n){"use strict";t.a=function(){for(var e=[],t=0;t1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(3),o=n(28),i=n(366),a=n(21),s=n(368),u=n(156),l=n(363),c=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var o=e.call(this)||this;return o.scheduler=r,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=t<1?1:t,o._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return r.a(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new f(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new u.a;if(this.isStopped||this.hasError?t=a.a.EMPTY:(this.observers.push(e),t=new l.a(this,e)),o&&e.add(e=new s.a(e,o)),n)for(var c=0;ct&&(i=Math.max(i,o-t)),i>0&&r.splice(0,i),r},t}(o.a),f=function(){return function(e,t){this.time=e,this.value=t}}()},function(e,t,n){"use strict";t.a=function(e,t){return new r.a(function(n){var r=new o.a,i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})};var r=n(9),o=n(21)},function(e,t,n){"use strict";t.a=function(e,t){return t?new r.a(function(n){return t.schedule(o,0,{error:e,subscriber:n})}):new r.a(function(t){return t.error(e)})};var r=n(9);function o(e){var t=e.error;e.subscriber.error(t)}},function(e,t,n){"use strict";t.b=function(){for(var e=[],t=0;tthis.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),h=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.parent=n,o.observable=r,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return r.a(t,e),t.prototype[l.a]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,o){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(e,t){return Object(u.a)(this,this.observable,this,t)},t}(s.a)},function(e,t,n){var r=n(768),o=n(769),i=n(54),a=n(22);e.exports=function(e,t){return function(n,s){var u=a(n)?r:o,l=t?t():{};return u(n,e,i(s,2),l)}}},function(e,t,n){var r=n(384),o=n(779)(r);e.exports=o},function(e,t,n){var r=n(776),o=n(78),i=n(165),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(66),o=n(20),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==u}},function(e,t,n){var r=n(80)(n(42),"Map");e.exports=r},function(e,t,n){var r=n(796),o=n(803),i=n(805),a=n(806),s=n(807);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r{if(this.context.__internalRouter&&!e.isDefaultPrevented()){var t=this.props,n=t.onClick,r=t.href,o=t.target,i=t.replace;n&&n(e),!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)&&function(e){return 0===e.button}(e)&&(o||(e.preventDefault(),this.context.__internalRouter.navigateUrl(r,{replace:i})))}}),u(this,"setElement",e=>{e&&(this._element=e)})}focus(){this._element&&this._element.focus()}render(){return o.default.createElement("a",s({},(0,r.default)(this.props,"replace"),{onClick:this.handleClick,ref:this.setElement}))}}t.default=l,u(l,"defaultProps",{replace:!1}),u(l,"contextTypes",{__internalRouter:i.default})},function(e,t,n){var r=n(166),o=n(418),i=n(252),a=n(865),s=n(866),u=n(419),l=n(176),c=n(869),f=n(870),d=n(392),p=n(260),h=n(173),v=n(871),m=n(872),y=n(422),g=n(22),b=n(163),_=n(876),w=n(20),O=n(878),k=n(65),E=1,S=2,x=4,C="[object Arguments]",P="[object Function]",j="[object GeneratorFunction]",M="[object Object]",T={};T[C]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[M]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[P]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,A,D,I,N){var R,F=n&E,L=n&S,B=n&x;if(A&&(R=I?A(t,D,I,N):A(t)),void 0!==R)return R;if(!w(t))return t;var z=g(t);if(z){if(R=v(t),!F)return l(t,R)}else{var W=h(t),U=W==P||W==j;if(b(t))return u(t,F);if(W==M||W==C||U&&!I){if(R=L||U?{}:y(t),!F)return L?f(t,s(R,t)):c(t,a(R,t))}else{if(!T[W])return I?t:{};R=m(t,W,F)}}N||(N=new r);var H=N.get(t);if(H)return H;N.set(t,R),O(t)?t.forEach(function(r){R.add(e(r,n,A,r,t,N))}):_(t)&&t.forEach(function(r,o){R.set(o,e(r,n,A,o,t,N))});var q=B?L?p:d:L?keysIn:k,V=z?void 0:q(t);return o(V||t,function(r,o){V&&(r=t[o=r]),i(R,o,e(r,n,A,o,t,N))}),R}},function(e,t,n){var r=n(388)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(393),o=n(420),i=n(175);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(391);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(20),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){"use strict";t.a=function(e){return function(t){return 0===e?Object(a.b)():t.lift(new s(e))}};var r=n(3),o=n(5),i=n(124),a=n(47);var s=function(){function e(e){if(this.total=e,this.total<0)throw new i.a}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.total))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.a(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(o.a)},function(e,t,n){"use strict";t.a=function(e){return function(t){return 0===e?Object(a.b)():t.lift(new s(e))}};var r=n(3),o=n(5),i=n(124),a=n(47);var s=function(){function e(e){if(this.total=e,this.total<0)throw new i.a}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.total))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.a(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2&&(n=!0);return function(r){return r.lift(new i(e,t,n))}};var r=n(3),o=n(5);var i=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.accumulator,this.seed,this.hasSeed))},e}(),a=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return r.a(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(o.a)},function(e,t,n){"use strict";t.a=function e(t,n){if("function"==typeof n)return function(r){return r.pipe(e(function(e,r){return Object(u.a)(t(e,r)).pipe(Object(s.a)(function(t,o){return n(e,t,r,o)}))}))};return function(e){return e.lift(new l(t))}};var r=n(3),o=n(11),i=n(64),a=n(12),s=n(35),u=n(49);var l=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.project))},e}(),c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r.a(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new i.a(this,void 0,void 0);this.destination.add(o),this.innerSubscription=Object(a.a)(this,e,t,n,o)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t}(o.a)},function(e,t,n){"use strict";var r=!0,o="Invariant failed";t.a=function(e,t){if(!e)throw r?new Error(o):new Error(o+": "+(t||""))}},function(e,t,n){e.exports=[n(985)].map(function(e){return e&&e.__esModule?e.default:e})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(38),o=n(439),i=n(580),a=n(213),s=n(180),u=n(331),l=n(329),c=n(146),f=n(51);t.SerializeError=f.SerializeError;const d=n(579),p=n(1717),h={documentTypeList:i.getDocumentTypeList,documentTypeListItem:i.getDocumentTypeListItem,documentTypeListItems:i.getDocumentTypeListItems,list:e=>new o.ListBuilder(e),listItem:e=>new s.ListItemBuilder(e),menuItem:e=>new a.MenuItemBuilder(e),menuItemGroup:e=>new u.MenuItemGroupBuilder(e),documentList:e=>new l.DocumentListBuilder(e),documentListItem:e=>new p.DocumentListItemBuilder(e),orderingMenuItem:e=>a.getOrderingMenuItem(e),orderingMenuItemsForType:e=>a.getOrderingMenuItemsForSchemaType(e),editor:e=>new c.EditorBuilder(e),component:e=>"function"==typeof e?(new d.ComponentBuilder).component(e):new d.ComponentBuilder(e),divider:()=>({id:r.uniqueId("__divider__"),type:"divider"})};t.StructureBuilder=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(181).default(n(39));t.defaultSchema=r},function(e,t,n){var r=n(55),o=n(443);e.exports=function(e){return o(r(e).toLowerCase())}},function(e,t,n){var r=n(54),o=n(183);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDupes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=e.reduce((e,n)=>{var r=t(n);return e[r]||(e[r]=[]),e[r].push(n),e},{});return Object.keys(n).map(e=>n[e].length>1?n[e]:null).filter(Boolean)}},function(e,t,n){"use strict";e.exports=function(e,t){if(!Array.isArray(e))throw new TypeError("humanize-list expected an array");(t=t||{}).conjunction=t.conjunction||"and";var n=e.length;if(1===n)return e[0];if(t.skipConjunction)return e.join(", ");for(var r="",o=0;o=55296&&ye<=57343||ye>1114111?(U(R,X),z=c(E)):z in o?(U(N,X),z=o[z]):(q="",L(z)&&U(N,X),z>65535&&(q+=c((z-=65536)>>>10|55296),z=56320|1023&z),z=q+c(z))):K!==S&&U(D,X)),z?(be(),$=ge(),fe=Q-1,pe+=Q-G+1,me.push(z),(Z=ge()).offset++,re&&re.call(ae,z,{start:$,end:Z},e.slice(G-1,Q)),$=Z):(d=e.slice(G-1,Q),ve+=d,pe+=d.length,fe=Q-1)}else 10===B&&(he++,de++,pe=0),B==B?(ve+=c(B),pe++):be();var ye;return me.join("");function ge(){return{line:he,column:pe,offset:fe+(ue.offset||0)}}function be(){ve&&(me.push(ve),ne&&ne.call(ie,ve,{start:$,end:ge()}),ve="")}}(e,a)};var l={}.hasOwnProperty,c=String.fromCharCode,f=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p=9,h=10,v=12,m=32,y=38,g=59,b=60,_=61,w=35,O=88,k=120,E=65533,S="named",x="hexadecimal",C="decimal",P={};P[x]=16,P[C]=10;var j={};j[S]=s,j[C]=i,j[x]=a;var M=1,T=2,A=3,D=4,I=5,N=6,R=7,F={};function L(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}F[M]="Named character references must be terminated by a semicolon",F[T]="Numeric character references must be terminated by a semicolon",F[A]="Named character references cannot be empty",F[D]="Numeric character references cannot be empty",F[I]="Named character references must be known",F[N]="Numeric character references cannot be disallowed",F[R]="Numeric character references cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";var r,o="";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||void 0===r)r=e,o="";else if(o.length>=n)return o.substr(0,n);for(;n>o.length&&t>1;)1&t&&(o+=e),t>>=1,e+=e;return o=(o+=e).substr(0,n)}},function(e,t,n){"use strict";e.exports=function(e){var t=String(e),n=t.length;for(;t.charAt(--n)===r;);return t.slice(0,n+1)};var r="\n"},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o,i,a,s,u,l,c=["pedantic","commonmark"],f=c.length,d=e.length,p=-1;for(;++pi.default;function l(e){return r.default.createElement(o.default,{value:e.value,schema:e.schema,patchChannel:e.patchChannel,resolveInputComponent:a.default,resolvePreviewComponent:u},e.children)}l.createPatchChannel=o.default.createPatchChannel},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),o=s(n(0)),i=(s(n(440)),s(n(77))),a=n(1194);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=()=>{};function c(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,n=e;n;){var r=t(n);if(r)return r;n=n.type}}function f(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e.call(this,n);return n&&t.set(n,r),r}}class d extends o.default.Component{constructor(){var e,t,n;super(...arguments),u(this,"getDocument",()=>this.props.value),u(this,"resolveInputComponent",f(e=>{return c(e,this.props.resolveInputComponent)||a.fallbackInputs[e.jsonType]})),u(this,"resolvePreviewComponent",f(e=>{return c(e,this.props.resolvePreviewComponent)})),u(this,"getChildContext",(e=(()=>{var e=this.props,t=e.schema,n=e.filterField,r=e.patchChannel;return{filterField:n,getValuePath:()=>[],formBuilder:{onPatch:r?r.onPatch:()=>(console.warn("No patch channel provided to form-builder. If you need input based patch updates, please provide one"),l),schema:t,resolveInputComponent:this.resolveInputComponent,resolvePreviewComponent:this.resolvePreviewComponent,getDocument:this.getDocument}}}),n=!1,function(){return n?t:(t=e.call(this),n=!0,t)}))}render(){return this.props.children}}t.default=d,u(d,"createPatchChannel",()=>{var e=(0,i.default)();return{onPatch:e.subscribe,receivePatches:e.publish}}),u(d,"propTypes",{schema:r.default.object.isRequired,value:r.default.any,children:r.default.any.isRequired,filterField:r.default.func,patchChannel:r.default.shape({onPatch:r.default.func}),resolveInputComponent:r.default.func.isRequired,resolvePreviewComponent:r.default.func.isRequired}),u(d,"childContextTypes",{getValuePath:r.default.func,onPatch:r.default.func,filterField:r.default.func,formBuilder:r.default.shape({schema:r.default.object,resolveInputComponent:r.default.func,document:r.default.any})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(1))&&r.__esModule?r:{default:r};function i(e){var t;return function(){return(t||(t=e()))(...arguments)}}var a=o.default.shape({name:o.default.string,type:o.default.object}),s=o.default.shape({name:o.default.string,title:o.default.string,description:o.default.string,placeholder:o.default.string,type:i(()=>s),to:i(()=>o.default.arrayOf(s)),fields:i(()=>o.default.arrayOf(a)),of:i(()=>o.default.arrayOf(s))}),u=o.default.shape({name:o.default.string,fields:o.default.arrayOf(s)}),l={type:s,field:a,schema:u};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s={fontSize:"0.8em",display:"inline-block",width:"1em",marginRight:"0.4em"},u={cursor:"default",userSelect:"none",WebkitUserSelect:"none",outline:"none",marginBottom:"0.5em"};class l extends r.default.Component{constructor(e){super(),a(this,"handleToggle",()=>{this.setState(e=>({isOpen:!e.isOpen}))}),this.state={isOpen:e.isOpen}}render(){var e=this.state.isOpen,t=this.props,n=t.title,o=t.children;return r.default.createElement("div",null,r.default.createElement("div",{tabIndex:"0",onClick:this.handleToggle,style:u},r.default.createElement("span",{style:s},e?"▼":"▶"),n),e?o:null)}}t.default=l,a(l,"propTypes",{children:o.default.node,isOpen:o.default.bool,title:o.default.node}),a(l,"defaultProps",{title:"Details",isOpen:!1})},function(e,t,n){var r=n(286);e.exports=function(e){if(r(e))return!isNaN(e);throw new TypeError(toString.call(e)+" is not an instance of Date")}},function(e,t){e.exports=function(e){return e instanceof Date}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value"]);switch(typeof t){case"number":case"boolean":case"string":return o.default.createElement(i.PreviewPrimitive,u({},n,{value:t}));case"undefined":return l;case"object":return null===t?l:Array.isArray(t)?o.default.createElement(s.PreviewArray,u({},n,{value:t})):o.default.createElement(a.PreviewObject,u({},n,{value:t}));default:return o.default.createElement("span",null,"")}};var r,o=(r=n(0))&&r.__esModule?r:{default:r},i=n(1261),a=n(1262),s=n(1263);function u(){return(u=Object.assign||function(e){for(var t=1;t"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),o=s(n(0)),i=s(n(494)),a=s(n(1282));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=2e4;class f extends o.default.Component{constructor(){super(...arguments),l(this,"renderChild",e=>{var t=this.props,n=t.children,r=t.type,i=t.value,s=t.ordering,c=u(t,["children","type","value","ordering"]);return null===e?null:o.default.createElement(a.default,{isActive:!0===e,type:r,value:i,ordering:s},e=>{var t=e.result,o=e.error,i=e.isLoading;return n(function(e){for(var t=1;ta.type(n.type,e)&&(0,o.default)(t,n.accepts)&&(0,o.default)(t,(0,r.default)(e.options,"accept")||""))};var r=s(n(19)),o=s(n(1365)),i=s(n(1366)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(303));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UPLOAD_STATUS_KEY=void 0;t.UPLOAD_STATUS_KEY="_upload"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.type=o,t.primitive=function(e){return r.some(t=>o(t,e))},t.default=void 0;var r=["string","number","boolean"];function o(e,t){return t.name===e||t.type&&o(e,t.type)}var i=o;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var r,o=n(18),i=n(29),a=(r=n(1393))&&r.__esModule?r:{default:r};o.KeyUtils.setGenerator(()=>(0,i.randomKey)(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){switch(r.call(e)){case"[object Function]":return"function";case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object String]":return"string"}if("object"==typeof e&&e&&"number"==typeof e.length)try{if("function"==typeof e.callee)return"arguments"}catch(e){if(e instanceof TypeError)return"arguments"}if(null===e)return"null";if(void 0===e)return"undefined";if(e&&1===e.nodeType)return"element";if(e===Object(e))return"object";return typeof e};var r=Object.prototype.toString},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=0;e._key||(e._key=(0,o.default)(12));if("block"!==e._type)return e;e.children||(e.children=[]);e.markDefs||(e.markDefs=[]);var n=e.children.slice(-1)[0];if(!n)return e.children=[{_type:"span",_key:"".concat(e._key,0),text:"",marks:[]}],e;return e.children=e.children.filter((t,o)=>{var i=e.children[o-1];return i&&"span"===t._type&&"span"===i._type&&(0,r.default)(i.marks,t.marks)?!(n&&n===t&&""===t.text&&e.children.length>1||(i.text+=t.text,1)):t}).map(n=>(n._key="".concat(e._key).concat(t++),"span"!==n._type||n.marks||(n.marks=[]),n)),e};var r=i(n(46)),o=i(n(143));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new r.Editor(e)};var r=n(18)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){function n(e,n){if(!e.document.nodes.get(n))throw new Error("No block found at index ".concat(n," in value"));return(0,i.editorValueToBlocks)({document:{nodes:[e.document.nodes.get(n).toJSON(l)]}},t)[0]}function u(e,u,f,d){if(!d||0===d.length){var p=(0,i.editorValueToBlocks)(f.toJSON(l),t);if(!d)return[(0,s.setIfMissing)(p),(0,s.set)(p,[])];if(d&&0===d.length)return[(0,s.set)(p,[])]}var h=n(u,e.path.get(0)),v=n(f,e.path.get(0)),m=f.document.getNode(e.path),y=function(e,t,n,r){if("text"!==e.object)throw new Error("Not a text node!");var o,i=n.document.getParent(e.key),a=0;if(i.nodes.some(n=>{if("text"===n.object){var i="";n.leaves.forEach(s=>{i+=s.text,n===e&&i.length>t?o="".concat(r._key).concat(a):a++})}else a++;return n===e}),o)return[{_key:r._key},"children",{_key:o},"text"];throw new Error("No target path found!")}(m,e.offset,f,v),g=(0,o.default)(y.slice(-2)[0],"_key"),b=v.children.find(e=>e._key===g);if(!b)throw new Error("Could not find span with key '".concat(g,"' in block"));var _=u.document.getNode(e.path);if(m.leaves.size!==u.document.getNode(e.path).leaves.size&&e.offset!==_.text.length)return c(e,u,f,d);if(!1===h.children.some(e=>e._key===g)){var w=v.children.findIndex(e=>e._key===g),O=y.slice(0,-2).concat({_key:v.children[w-1]._key});return[(0,s.insert)([b],"after",O)]}var k={path:e.path,offset:e.offset+1},E=u.document.getMarksAtRange(a.Range.fromJSON({anchor:k,focus:k})).map(e=>e.type).toArray();return(0,r.default)(E,b.marks)?[(0,s.set)(b.text,y)]:[(0,s.set)(b,y.slice(0,-1))]}function c(e,r,o,a){if(o.document.nodes.size>0&&o.document.nodes.every(e=>e.data.get("placeholder")))return[(0,s.unset)([])];if(!a){var u=(0,i.editorValueToBlocks)(o.toJSON(l),t);return[(0,s.setIfMissing)(u),(0,s.set)(u)]}if(a&&0===a.length)return[(0,s.set)((0,i.editorValueToBlocks)(o.toJSON(l),t),[])];var c=n(o,e.path.get(0));return[(0,s.set)(c,[{_key:c._key}])]}return function(e,r,o,a){switch(e.type){case"insert_text":return u(e,r,o,a);case"remove_text":case"add_mark":case"remove_mark":case"set_node":return c(e,r,o,a);case"insert_node":return function(e,r,o,a){if(o.document.nodes.size>0&&o.document.nodes.every(e=>e.data.get("placeholder")))return[];if(!a){var u=(0,i.editorValueToBlocks)(o.toJSON(l),t);return[(0,s.setIfMissing)(u),(0,s.set)(u,[])]}if(a&&0===a.length)return[(0,s.set)((0,i.editorValueToBlocks)(o.toJSON(l),t),[])];var c=n(o,e.path.get(0));if(1===e.path.size){var f,d="after";if(0===e.path.get(0)){var p=r.document.nodes.first();f=p?[{_key:p.key}]:[0],d="before"}else f=[{_key:r.document.nodes.get(e.path.get(0)-1).key}];return[(0,s.insert)([c],d,f)]}return[(0,s.set)(c,[{_key:c._key}])]}(e,r,o,a);case"remove_node":return function(e,t,r){var o=[],i=n(t,e.path.get(0));1===e.path.size&&o.push((0,s.unset)([{_key:i._key}]));if(e.path.size>1){if("block"!==i._type)return o;var a=n(r,e.path.get(0));o.push((0,s.set)(a,[{_key:a._key}]))}if(0===o.length)throw new Error("Don't know how to unset ".concat(JSON.stringify(e.toJSON(l))));return o}(e,r,o);case"split_node":return function(e,r,o){if(!o){var a=(0,i.editorValueToBlocks)(r.toJSON(l),t);return[(0,s.setIfMissing)(a),(0,s.set)(a)]}if(o&&0===o.length)return[(0,s.set)((0,i.editorValueToBlocks)(r.toJSON(l),t),[])];var u=[],c=n(r,e.path.get(0));if(1===e.path.size){u.push((0,s.set)(c,[{_key:c._key}]));var f=n(r,e.path.get(0)+1);u.push((0,s.insert)([f],"after",[{_key:c._key}]))}e.path.size>1&&u.push((0,s.set)(c,[{_key:c._key}]));return u}(e,o,a);case"merge_node":return function(e,r,o){var a=[];if(!o){var u=(0,i.editorValueToBlocks)(r.toJSON(l),t);return[(0,s.setIfMissing)(u),(0,s.set)(u)]}if(o&&0===o.length)return[(0,s.set)((0,i.editorValueToBlocks)(r.toJSON(l),t),[])];if(1===e.path.size){var c=n(r,e.path.get(0)),f=n(r,e.path.get(0)-1);a.push((0,s.unset)([{_key:c._key}])),a.push((0,s.set)(f,[{_key:f._key}]))}if(e.path.size>1){var d=n(r,e.path.get(0));a.push((0,s.set)(d,[{_key:d._key}]))}return a}(e,r,a);case"move_node":return function(e,t,r){var o=[];if(1===e.path.size){if(e.path.get(0)===e.newPath.get(0))return[];var i=n(t,e.path.get(0));o.push((0,s.unset)([{_key:i._key}]));var a,u="after";if(0===e.path.get(0)){var l=t.document.nodes.first();a=l?[{_key:l.key}]:[0],u="before"}else a=[{_key:t.document.nodes.get(e.path.get(0)-1).key}];o.push((0,s.insert)(i,u,a))}else{var c=n(r,e.path.get(0)),f=n(r,e.newPath.get(0));o.push((0,s.set)(c,[{_key:c._key}])),o.push((0,s.set)(f,[{_key:f._key}]))}return o}(e,r,o);default:return[]}}},t.VALUE_TO_JSON_OPTS=void 0;var r=u(n(46)),o=u(n(19)),i=n(29),a=n(18),s=n(10);function u(e){return e&&e.__esModule?e:{default:e}}var l={preserveData:!0,preserveKeys:!0,preserveSelection:!1,preserveHistory:!1};t.VALUE_TO_JSON_OPTS=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return o.Value.fromJSON((0,r.blocksToEditorValue)(e,t))};var r=n(29),o=n(18)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};var i={vectorEffect:"non-scaling-stroke"},a=()=>o.default.createElement("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"1em",height:"1em"},o.default.createElement("path",{d:"M12.5 6.5C7 6.5 3.5 10.5 2.5 12.5C3.5 14.5 7 18.5 12.5 18.5C18 18.5 21.5 14.5 22.5 12.5C21.5 10.5 18 6.5 12.5 6.5Z",stroke:"currentColor",style:i}),o.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"4",stroke:"currentColor",style:i}));t.default=a},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1480))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(0)),o=i(n(208));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t{if(1!==r.buttons)return;n=!0,r.preventDefault(),r.stopPropagation(),setTimeout(()=>{e.onAction(t)},300)},onClick:r=>{if(n)return;e.onAction(t)},style:{display:"contents"}},e.children)};var r,o=(r=n(0))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(0)),o=l(n(311)),i=l(n(209)),a=l(n(1485)),s=l(n(1)),u=l(n(190));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends r.default.Component{constructor(){super(...arguments),c(this,"state",{isOpen:!1}),c(this,"handleOpen",()=>{this.setState({isOpen:!0})}),c(this,"handleClose",()=>{this.setState({isOpen:!1})}),c(this,"handleToggle",()=>{this.state.isOpen?this.handleClose():this.handleOpen()})}render(){var e=this.props,t=e.icon,n=e.children,s=this.state.isOpen,l=t;return r.default.createElement("div",{className:a.default.root},r.default.createElement(i.default,{onClick:this.handleToggle},r.default.createElement(l,null),r.default.createElement(o.default,null),r.default.createElement(u.default,{onClickOutside:this.handleClose,onEscape:this.handleClose},s&&r.default.createElement("div",{className:a.default.popup},n))))}}t.default=f,f.propTypes={children:s.default.node,icon:s.default.any}},function(e,t,n){var r=n(66),o=n(22),i=n(36),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&r(e)==a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyAll=function(e,t){return t.reduce(c,e)},t.default=c;var r=l(n(315)),o=l(n(20)),i=l(n(1520)),a=l(n(1522)),s=l(n(1524)),u=l(n(1525));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){return function(e,t){return Array.isArray(e)?(0,i.default)(e,t):(0,r.default)(e)?(0,u.default)(e,t):(0,o.default)(e)?(0,a.default)(e,t):(0,s.default)(e,t)}(e,t)}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1543))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(6),o=u(n(1576)),i=u(n(13)),a=n(1605),s=n(4);function u(e){return e&&e.__esModule?e:{default:e}}var l={byIdPair:e=>(0,a.getPairListener)(e),byId:e=>i.default.listen("*[_id == $id]",{id:e},{includeResult:!1,events:["welcome","mutation","reconnect"]}).pipe((0,s.concatMap)(t=>"welcome"===t.type?function(e){return i.default.observable.getDocument(e).pipe((0,s.map)(e=>({type:"snapshot",document:e})))}(e):(0,r.of)(t))),query:(e,t)=>(0,r.defer)(()=>i.default.observable.listen(e,t||{},{includeResult:!1,events:["welcome","mutation","reconnect"]})).pipe((0,s.concatMap)(n=>"welcome"===n.type?function(e,t){return i.default.observable.fetch(e,t).pipe((0,s.map)(e=>({type:"snapshot",documents:e})))}(e,t):(0,r.of)(n))),mutate:e=>i.default.observable.dataRequest("mutate",e,{visibility:"async",returnDocuments:!1}),delete:e=>i.default.observable.delete(e,{visibility:"async",returnDocuments:!1}),create:e=>i.default.observable.create(e),createIfNotExists:e=>i.default.observable.createIfNotExists(e),createOrReplace:e=>i.default.observable.createOrReplace(e)},c=(0,o.default)({serverConnection:l});t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Matcher",{enumerable:!0,get:function(){return r.Matcher}}),Object.defineProperty(t,"Expression",{enumerable:!0,get:function(){return r.Expression}}),Object.defineProperty(t,"extract",{enumerable:!0,get:function(){return r.extract}}),Object.defineProperty(t,"extractWithPath",{enumerable:!0,get:function(){return r.extractWithPath}}),Object.defineProperty(t,"arrayToJSONMatchPath",{enumerable:!0,get:function(){return r.arrayToJSONMatchPath}}),Object.defineProperty(t,"Patcher",{enumerable:!0,get:function(){return o.Patcher}}),Object.defineProperty(t,"ImmutableAccessor",{enumerable:!0,get:function(){return o.ImmutableAccessor}}),Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return i.Document}}),Object.defineProperty(t,"Mutation",{enumerable:!0,get:function(){return i.Mutation}}),Object.defineProperty(t,"BufferedDocument",{enumerable:!0,get:function(){return i.BufferedDocument}});var r=n(321),o=n(550),i=n(1598)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Matcher",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Expression",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"extract",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"extractWithPath",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"arrayToJSONMatchPath",{enumerable:!0,get:function(){return s.default}});var r=u(n(1579)),o=u(n(322)),i=u(n(1584)),a=u(n(548)),s=u(n(549));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1582)),o=a(n(1583)),i=a(n(546));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}class u{constructor(e){var t,n,r;if(r=void 0,(n="expr")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,e.expr?this.expr=e.expr:this.expr=e,!this.expr.type)throw new Error("Attempt to create Expression for expression with no type")}isPath(){return"path"==this.expr.type}isUnion(){return"union"==this.expr.type}isCollection(){return this.isPath()||this.isUnion()}isConstraint(){return"constraint"==this.expr.type}isRecursive(){return"recursive"==this.expr.type}isExistenceConstraint(){return this.isConstraint()&&"?"==this.expr.operator}isIndex(){return"index"==this.expr.type}isRange(){return"range"==this.expr.type}expandRange(e){var t=this.expr.start||0;t=c(t,e);var n=this.expr.end||e.length();return{start:t,end:n=c(n,e),step:this.expr.step||1}}isAttributeReference(){return"attribute"==this.expr.type}isIndexReference(){return this.isIndex()||this.isRange()}name(){return this.expr.name}isSelfReference(){return"alias"==this.expr.type&&"self"==this.expr.target}constraintTargetIsSelf(){return this.isConstraint()&&"alias"==this.expr.lhs.type&&"self"==this.expr.lhs.target}constraintTargetIsAttribute(){return this.isConstraint()&&"attribute"==this.expr.lhs.type}testConstraint(e){if(this.constraintTargetIsSelf()){if("primitive"!=e.containerType())return!1;if(this.isExistenceConstraint())return!0;var t=e.get(),n=this.expr.rhs.value;return l(t,this.expr.operator,n)}if(!this.constraintTargetIsAttribute())throw new Error("Constraint target ".concat(this.expr.lhs.type," not supported"));if("object"!=e.containerType())return!1;var r=e.getAttribute(this.expr.lhs.name);if(null==r||"primitive"!=r.containerType())return!1;if(this.isExistenceConstraint())return!0;var o=this.expr.rhs.value;return l(r.get(),this.expr.operator,o)}pathNodes(){return this.isPath()?this.expr.nodes:[this.expr]}prepend(e){return e?new u({type:"path",nodes:e.pathNodes().concat(this.pathNodes())}):this}concat(e){return e?e.prepend(this):this}descend(){return(0,r.default)(this.expr).map(e=>{var t=s(e,2),n=t[0],r=t[1];return{head:n?new u(n):null,tail:r?new u(r):null}})}unwrapRecursive(){if(!this.isRecursive())throw new Error("Attempt to unwrap recursive on type ".concat(this.expr.type));return new u(this.expr.term)}toIndicies(e){if(!this.isIndexReference())throw new Error("Node cannot be converted to indexes");if("index"==this.expr.type)return[c(this.expr.value,e)];if("range"==this.expr.type){var t=[],n=this.expandRange(e),r=n.start,o=n.end;if(n.step<0){var i=[o,r];r=i[0],o=i[1]}for(var a=r;a":return e>n;case">=":return e>=n;case"<":return e{const n=e.options.filter.trim();if(["*","{"].includes(n[0]))throw new i.SerializeError(`\`filter\` cannot start with \`${n[0]}\` - looks like you are providing a query, not a filter`,t.path,e.id,e.title).withHelpUrl(i.HELP_URL.QUERY_PROVIDED_FOR_FILTER);return n},u=(e,t)=>{const n=t.parent;return Promise.resolve(n.schemaTypeName||(e=>{const t=e.replace(/^drafts\./,""),n=`drafts.${t}`;return r.client.fetch("*[_id in [$documentId, $draftId]]._type",{documentId:t,draftId:n}).then(e=>e[0])})(e)).then(t=>(new o.EditorBuilder).id("editor").documentId(e).schemaType(t||""))};class l extends a.GenericListBuilder{constructor(e){super(),this.spec=e||{}}filter(e){return this.clone({options:Object.assign({},this.spec.options||{},{filter:e})})}getFilter(){return this.spec.options&&this.spec.options.filter}schemaType(e){return this.clone({schemaTypeName:"string"==typeof e?e:e.name})}getSchemaType(){return this.spec.schemaTypeName}params(e){return this.clone({options:Object.assign({},this.spec.options||{filter:""},{params:e})})}getParams(){return this.spec.options&&this.spec.options.params}defaultOrdering(e){if(!Array.isArray(e))throw new Error("`defaultOrdering` must be an array of order clauses");return this.clone({options:Object.assign({},this.spec.options||{filter:""},{defaultOrdering:e})})}getDefaultOrdering(){return this.spec.options&&this.spec.options.defaultOrdering}serialize(e={path:[]}){if("string"!=typeof this.spec.id||!this.spec.id)throw new i.SerializeError("`id` is required for document lists",e.path,e.index,this.spec.title).withHelpUrl(i.HELP_URL.ID_REQUIRED);if(!this.spec.options||!this.spec.options.filter)throw new i.SerializeError("`filter` is required for document lists",e.path,this.spec.id,this.spec.title).withHelpUrl(i.HELP_URL.FILTER_REQUIRED);return Object.assign({},super.serialize(e),{type:"documentList",schemaTypeName:this.spec.schemaTypeName,child:this.spec.child||u,options:Object.assign({},this.spec.options,{filter:s(this.spec,e)})})}clone(e){const t=new l;return t.spec=Object.assign({},this.spec,e||{}),t}}t.DocumentListBuilder=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};var i={vectorEffect:"non-scaling-stroke"},a=()=>o.default.createElement("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"1em",height:"1em"},o.default.createElement("path",{d:"M12.5 4V21M4 12.5H21",stroke:"currentColor",style:i}));t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(51);t.maybeSerializeMenuItemGroup=function(e,t,n){return e instanceof o?e.serialize({path:n,index:t}):e};class o{constructor(e){this._id=e?e.id:"",this._title=e?e.title:""}id(e){return new o({id:e,title:this._title})}getId(){return this._id}title(e){return new o({id:this._id,title:e})}getTitle(){return this._title}serialize(e={path:[]}){const{_id:t,_title:n}=this;if(!t)throw new r.SerializeError("`id` is required for a menu item group",e.path,e.index,n).withHelpUrl(r.HELP_URL.ID_REQUIRED);if(!n)throw new r.SerializeError("`title` is required for a menu item group",e.path,t).withHelpUrl(r.HELP_URL.TITLE_REQUIRED);return{id:t,title:n}}}t.MenuItemGroupBuilder=o},function(e,t){e.exports={cardList:"ListView_cardList_3qvDq",cardListItem:"ListView_cardListItem_croNE shadows_shadow-1dp_XM5Y5",mediaList:"ListView_mediaList_1-qM3",mediaListItem:"ListView_mediaListItem_3zajE shadows_shadow-1dp_XM5Y5",scroll:"ListView_scroll_Z6OkK scrolling_scrollY_S9M7c scrolling_touchScroll_13M6t"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,((r=n(1772))&&r.__esModule?r:{default:r}).default)();t.default=o},function(e,t){e.exports=function(e){return Object.prototype.toString.call(e).slice(8,-1)}},function(e,t,n){var r=n(2);e.exports=function(e){var t=r(e),n=t.getFullYear(),o=t.getMonth(),i=new Date(0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}},function(e,t,n){var r=n(148);e.exports=function(e,t){var n=Number(t);return r(e,7*n)}},function(e,t,n){var r=n(2);e.exports=function(e,t){var n=r(e).getTime(),o=r(t).getTime();return n>o?-1:n0?Math.floor(n):Math.ceil(n)}},function(e,t,n){var r=n(2);e.exports=function(e){var t=r(e);return t.setHours(23,59,59,999),t}},function(e,t,n){var r=n(198);e.exports=function(e,t,n){var o=r(e,n),i=r(t,n);return o.getTime()===i.getTime()}},function(e,t){e.exports={"@sanity/base":"0.141.6","@sanity/components":"0.141.6","@sanity/core":"0.141.6","@sanity/default-layout":"0.141.6","@sanity/default-login":"0.141.5","@sanity/desk-tool":"0.141.6","@sanity/cli":null,"@sanity/color-input":"0.141.5"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=function(e){return"function"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(220),o=n(345);t.empty={closed:!0,next:function(e){},error:function(e){if(r.config.useDeprecatedSynchronousErrorHandling)throw e;o.hostReportError(e)},complete:function(){}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hostReportError=function(e){setTimeout(function(){throw e},0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),t.$$rxSubscriber=t.rxSubscriber},function(e,t,n){"use strict";e.exports=function(e){if("string"==typeof e||Array.isArray(e))return{id:e};if(e&&e.query)return{query:e.query};var t=["* Document ID ()","* Array of document IDs","* Object containing `query`"].join("\n");throw new Error("Unknown selection - must be one of:\n\n".concat(t))}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(14),i=n(98),a=n(221),s={returnDocuments:!1};function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;this.trxId=n,this.operations=e,this.client=t}o(u.prototype,{clone:function(){return new u(this.operations.slice(0),this.client,this.trxId)},create:function(e){return i.validateObject("create",e),this._add({create:e})},createIfNotExists:function(e){var t="createIfNotExists";return i.validateObject(t,e),i.requireDocumentId(t,e),this._add(r({},t,e))},createOrReplace:function(e){var t="createOrReplace";return i.validateObject(t,e),i.requireDocumentId(t,e),this._add(r({},t,e))},delete:function(e){return i.validateDocumentId("delete",e),this._add({delete:{id:e}})},patch:function(e,t){var n="function"==typeof t;if(e instanceof a)return this._add({patch:e.serialize()});if(n){var r=t(new a(e,{},this.client));if(!(r instanceof a))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:o({id:e},t)})},transactionId:function(e){return e?(this.trxId=e,this):this.trxId},serialize:function(){return this.operations.slice()},toJSON:function(){return this.serialize()},commit:function(e){if(!this.client)throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.client.mutate(this.serialize(),o({transactionId:this.trxId},s,e||{}))},reset:function(){return this.operations=[],this},_add:function(e){return this.operations.push(e),this}}),e.exports=u},function(e,t,n){"use strict";var r=encodeURIComponent;e.exports=function(e){var t=e.query,n=e.params,o=void 0===n?{}:n,i=e.options,a=void 0===i?{}:i,s="?query=".concat(r(t)),u=Object.keys(o).reduce(function(e,t){return"".concat(e,"&").concat(r("$".concat(t)),"=").concat(r(JSON.stringify(o[t])))},s);return Object.keys(a).reduce(function(e,t){return a[t]?"".concat(e,"&").concat(r(t),"=").concat(r(a[t])):e},u)}},function(e,t,n){e.exports=n(670)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(671),o=n(672),i=n(673),a=n(352),s=n(220),u=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,i=o.toSubscriber(e,t,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||s.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){s.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),r.canReportError(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=l(t))(function(t,r){var o;o=n.subscribe(function(t){try{e(t)}catch(e){r(e),o&&o.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[i.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(222),o=n(710),i=r.call(Function.call,String.prototype.replace),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,s=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=o.ToString(o.CheckObjectCoercible(this));return i(i(e,a,""),s,"")}},function(e,t,n){"use strict";var r=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,"callee").get}():function(){throw new TypeError},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=Object.getPrototypeOf||function(e){return e.__proto__},a=void 0,s="undefined"==typeof Uint8Array?void 0:i(Uint8Array),u={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":o?i([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":a&&o&&Symbol.asyncIterator?a[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":o?i(i([][Symbol.iterator]())):void 0,"$ %JSON%":JSON,"$ %JSONParse%":JSON.parse,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&o?i((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&o?i((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":o?i(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":o?Symbol:void 0,"$ %SymbolPrototype%":o?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":r,"$ %TypedArray%":s,"$ %TypedArrayPrototype%":s?s.prototype:void 0,"$ %TypeError%":TypeError,"$ %TypeErrorPrototype%":TypeError.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in u))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===u[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return u[n]}},function(e,t,n){"use strict";var r=n(222);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r=n(356);e.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:r}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(154),o=n(226),i={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(o.a)(e)},complete:function(){}}},function(e,t,n){"use strict";function r(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}n.d(t,"a",function(){return o}),r.prototype=Object.create(Error.prototype);var o=r},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return f});var r=n(3),o=n(28),i=n(9),a=n(5),s=n(21),u=n(230),l=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.a(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new s.a).add(this.source.subscribe(new d(this.getSubject(),this))),e.closed&&(this._connection=null,e=s.a.EMPTY)),e},t.prototype.refCount=function(){return Object(u.a)()(this)},t}(i.a),c=l.prototype,f={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:c._subscribe},_isComplete:{value:c._isComplete,writable:!0},getSubject:{value:c.getSubject},connect:{value:c.connect},refCount:{value:c.refCount}},d=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.a(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(o.b);a.a},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(3),o=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.a(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(n(21).a)},function(e,t,n){"use strict";t.b=function(e,t,n,r){return function(o){return o.lift(new u(e,t,n,r))}},n.d(t,"a",function(){return f});var r=n(3),o=n(5),i=n(21),a=n(9),s=n(28);var u=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),l=function(e){function t(t,n,r,o,i){var a=e.call(this,t)||this;return a.keySelector=n,a.elementSelector=r,a.durationSelector=o,a.subjectSelector=i,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return r.a(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups=new Map);var r,o=n.get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(e){this.error(e)}else r=e;if(!o){o=this.subjectSelector?this.subjectSelector():new s.a,n.set(t,o);var i=new f(t,o,this);if(this.destination.next(i),this.durationSelector){var a=void 0;try{a=this.durationSelector(new f(t,o))}catch(e){return void this.error(e)}this.add(a.subscribe(new c(t,o,this)))}}o.closed||o.next(r)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(o.a),c=function(e){function t(t,n,r){var o=e.call(this,n)||this;return o.key=t,o.group=n,o.parent=r,o}return r.a(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(o.a),f=function(e){function t(t,n,r){var o=e.call(this)||this;return o.key=t,o.groupSubject=n,o.refCountSubscription=r,o}return r.a(t,e),t.prototype._subscribe=function(e){var t=new i.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new d(n)),t.add(r.subscribe(e)),t},t}(a.a),d=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return r.a(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3),o=n(28),i=n(156),a=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r.a(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(734),o=new(n(736).a)(r.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}()},function(e,t,n){"use strict";t.b=function(e,t){void 0===t&&(t=0);return function(n){return n.lift(new a(e,t))}},n.d(t,"a",function(){return s});var r=n(3),o=n(5),i=n(157);var a=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.scheduler,this.delay))},e}(),s=function(e){function t(t,n,r){void 0===r&&(r=0);var o=e.call(this,t)||this;return o.scheduler=n,o.delay=r,o}return r.a(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new u(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(i.a.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(i.a.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(i.a.createComplete()),this.unsubscribe()},t}(o.a),u=function(){return function(e,t){this.notification=e,this.destination=t}}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return function(t){for(var n=0,r=e.length;n1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof u&&(n=e.pop());if(null===s&&1===e.length&&e[0]instanceof r.a)return e[0];return Object(i.a)(n)(Object(a.a)(e,s))};var r=n(9),o=n(48),i=n(236),a=n(123)},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),t.b=function(){return i};var r=n(9),o=n(155),i=new r.a(o.a)},function(e,t,n){"use strict";t.a=function(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}},function(e,t,n){"use strict";t.a=function(){for(var e=[],t=0;t(t[n]=function(e,t){var n=(0,o.default)(),r=function(){for(var r=arguments.length,o=new Array(r),i=0;in.subscribe(t=>{e.next(t)})),r}(n,e[n]),t),{})};var r,o=(r=n(77))&&r.__esModule?r:{default:r},i=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(13));function o(e){return e&&e.__esModule?e:{default:e}}var i={getProviders:o(n(766)).default,getCurrentUser:()=>r.default.request({uri:"/users/me",withCredentials:!0}).then(e=>e&&e.id?e:null).catch(e=>{if(401===e.statusCode)return null;throw e}),logout:()=>r.default.auth.logout()};t.default=i},function(e,t,n){"use strict";e.exports={providers:{mode:"append",redirectOnSingle:!1,entries:[]},project:{}}},function(e,t,n){var r=n(385),o=n(65);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(770)();e.exports=r},function(e,t,n){var r=n(771),o=n(162),i=n(22),a=n(163),s=n(164),u=n(241),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&u(e),p=n||c||f||d,h=p?r(e.length,String):[],v=h.length;for(var m in e)!t&&!l.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||h.push(m);return h}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(24))},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(171),o=n(811),i=n(172),a=1,s=2;e.exports=function(e,t,n,u,l,c){var f=n&a,d=e.length,p=t.length;if(d!=p&&!(f&&p>d))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var v=-1,m=!0,y=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++v{this._element=e}),f(this,"handleBlur",e=>{this.setState({triggeredFocus:void 0}),this.props.onBlur&&this.props.onBlur(e)}),f(this,"handleInnerBlur",e=>{this.setState({focusSetFromOutside:void 0})})}focus(){this._element.focus&&(this.setState({focusSetFromOutside:!0}),this._element.focus())}render(){var t=this.props,n=t.kind,r=t.ripple,l=t.inverted,f=t.color,d=t.icon,p=t.loading,h=t.className,v=t.children,m=t.padding,y=t.bleed,g=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["kind","ripple","inverted","color","icon","loading","className","children","padding","bleed"]),b=this.props.disabled,_=(0,u.default)(h,[a.default.root,a.default[n],a.default["padding_".concat(m)],l&&a.default.inverted,f&&a.default["color__".concat(f)],y&&a.default.bleed,b&&a.default.disabled,!v&&a.default.onlyIcon]);return o.default.createElement(e,c({},g,{className:_,ref:this.setRootElement,tabIndex:0,onBlur:this.handleBlur}),o.default.createElement("span",{className:a.default.inner,tabIndex:this.state.focusSetFromOutside?void 0:-1,onBlur:this.handleInnerBlur},o.default.createElement("span",{className:a.default.content},p&&o.default.createElement("span",{className:a.default.spinner},o.default.createElement(s.default,{inline:!0})),d&&o.default.createElement("div",{className:a.default.icon},o.default.createElement(d,null)),v,r&&!b&&o.default.createElement(i.default,{duration:1e3,opacity:.1,radius:200}))))}},f(n,"displayName",d||"ButtonLike(".concat("string"==typeof e?e:e.displayName||e.name,")")),f(n,"propTypes",{kind:r.default.oneOf(["default","simple"]),color:r.default.oneOf(["primary","success","danger","white","warning"]),onClick:r.default.func,children:r.default.node,inverted:r.default.bool,icon:r.default.func,loading:r.default.bool,ripple:r.default.bool,className:r.default.string,disabled:r.default.bool,tabIndex:r.default.number,padding:r.default.oneOf(["default","small","none"]),bleed:r.default.bool}),f(n,"defaultProps",function(e){for(var t=1;t{if("dir"===e.type)return e.name===r[n];var o=t.transform&&t.transform[e.name];return s[e.name]=o?o.toState(r[n]):r[n],!0});if(!u)return null;var l=r.slice(o);var c=null;var f="function"==typeof t.children?(0,i.default)(t.children(s)):t.children;f.some(t=>c=e(t,l.join("/")));if(l.length>0&&!c)return null;var d=function(e){for(var t=1;t0){var a=n.remaining;throw new Error("Unable to find matching route for state. Could not map the following state key".concat(1==a.length?"":"s"," to a valid url: ").concat(a.join(", ")))}if(0===n.nodes.length)throw new Error("Unable to resolve path from given state: ".concat(JSON.stringify(t)));var s=t,u=(0,r.default)(n.nodes.map(e=>(e.scope&&(s=s[e.scope]),e.route.segments.map(t=>{if("dir"===t.type)return t.name;var n=e.transform&&e.transform[t.name];return n?n.toPath(s[t.name]):s[t.name]})))).join("/");return(0,i.debug)("Resolved to /%s",u),"/".concat(u)};var r=a(n(23)),o=a(n(847)),i=n(408);function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(174),o=n(849),i=n(104);e.exports=function(e,t,n){for(var a=-1,s=t.length,u={};++a=l&&(d=u,p=!1,t=new r(t));e:for(;++fo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r{this.setState({routerState:e.getState()})}))}componentWillUnmount(){this.unsubscribe()}render(){var t=this.context.__internalRouter,n=t?{state:this.state.routerState,navigate:t.navigate,navigateIntent:t.navigateIntent}:u;return r.default.createElement(e,a({},this.props,{router:n}))}},s(t,"displayName","withRouter(".concat(e.displayName||e.name,")")),s(t,"contextTypes",{__internalRouter:o.default}),n};var r=i(n(0)),o=i(n(177));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t{throw new Error("Cannot navigate to the state ".concat(JSON.stringify(e),". No router found in context"))},navigateIntent:e=>{throw new Error("Cannot navigate to the intent ".concat(e,". No router found in context"))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s="\n.sanity-app-loading-screen__root {\n display: block;\n width: 100vw;\n height: 100vh;\n background-color: #333;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.sanity-app-loading-screen__inner {\n position: fixed;\n top: 50vh;\n left: 50vw;\n -webkit-transform: translateX(-50%) translateY(-50%);\n transform: translateX(-50%) translateY(-50%);\n text-align: center;\n}\n\n.sanity-app-loading-screen__text {\n font-size: 5em;\n color: #fff;\n font-family: sans-serif;\n margin-top: 7rem;\n font-size: 12px;\n opacity: 0.5;\n}\n.sanity-app-loading-screen__contentStudioLogo {\n display: block;\n top: 50vh;\n left: 50vw;\n position: absolute;\n width: 4rem;\n height: 4rem;\n transform: translate(-50%, -50%);\n opacity: 0.7;\n}\n";class u extends o.default.PureComponent{render(){return o.default.createElement("div",{className:"sanity-app-loading-screen__root"},o.default.createElement("style",{type:"text/css"},s),o.default.createElement("svg",{className:"sanity-app-loading-screen__contentStudioLogo",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 64",shapeRendering:"geometricPrecision",filter:"drop-shadow(0px 0px 5px rgba(0,0,0,0.20))"},o.default.createElement("style",null,"\n @keyframes contentStudioLogoRed2_o {\n 0%,60.9375%,85.9375%,to{opacity:1}75%{opacity:0}\n }\n @keyframes contentStudioLogoRed2_d{\n 0%,to{d:path('M31.8198,-0.152887C14.6198,-0.152887,-0.180693,5.34827,-0.180693,14.0483C-0.180693,14.0483,-0.116819,18.8939,-0.116819,27.9939C-0.116819,12.1939,23.9411,11.0675,31.8411,11.0675C39.7411,11.0675,63.8319,12.3036,63.8319,28.0036C63.8433,21.007,63.8093,17.833,63.8093,14.033C63.8093,5.23298,49.0198,-0.152887,31.8198,-0.152887Z')}26.5625%{d:path('M31.8038,13.9517C14.6038,13.9517,10.3384,14.018,-0.161616,14.018C-0.161616,14.018,-0.18039,21.0207,-0.171003,27.9952C10.6334,28.8307,24.0402,28.1057,31.9402,28.1057C39.8402,28.1057,53.3294,28.0328,63.8294,28.0328C63.8106,21.0113,63.8012,17.818,63.8012,14.018C54.3012,14.018,49.0038,13.9517,31.8038,13.9517Z')}50%{d:path('M31.8198,33.7067C14.6198,33.7067,-0.0937039,20.8851,-0.0937039,14.0532C-0.0937039,14.0532,-0.140498,18.851,-0.140498,27.951C-0.140498,38.951,23.9198,44.4693,31.8198,44.4693C39.7198,44.4693,63.7768,38.3882,63.7768,27.8882C63.7768,20.8189,63.7768,17.7433,63.7768,13.9433C63.7768,27.9433,49.0198,33.7067,31.8198,33.7067Z')}75%{d:path('M31.7785,53.0303C14.5785,53.0303,-0.194251,38.8008,-0.194251,21.0008C-0.194251,21.0008,-0.194251,20.9734,-0.194251,20.9734C-0.194251,39.7734,15.7579,53.0509,31.7579,53.0509C50.6512,53.0509,63.839,36.9524,63.839,21.0524C63.9008,21.0317,63.7857,21.0175,63.8462,21.0434C63.8462,39.1815,48.9785,53.0303,31.7785,53.0303Z')}76.5625%{d:path('M31.7399,-10.957C14.5399,-10.957,-0.222851,3.37264,-0.222851,21.0664C-0.222851,21.0664,-0.222851,20.6239,-0.222851,21.0664C-0.222851,5.48596,12.6065,-10.957,31.6599,-10.957C50.7326,-10.957,63.8248,5.31515,63.8248,21.0152C63.8248,21.0152,63.8158,21.0789,63.8248,21.0152C63.8248,3.42599,48.9399,-10.957,31.7399,-10.957Z')}}@keyframes contentStudioLogoBlue1_o{0%,60.9375%,85.9375%,to{opacity:1}75%{opacity:0}}\n @keyframes contentStudioLogoBlue1_d{\n 0%,to{d:path('M31.9068,-0.289009C14.7068,-0.289009,-0.09946,7.34292,-0.09946,16.0429C-0.09946,16.0429,-0.09946,20.9443,-0.09946,30.0443C-0.09946,14.2443,23.9888,11.047,31.8888,11.047C39.7888,11.047,63.8771,16.0398,63.8771,30.0443C63.8932,23.0516,63.9012,19.867,63.9012,16.067C63.9012,7.26694,49.1068,-0.289009,31.9068,-0.289009Z')}26.5625%{d:path('M32,16C14.8,16,10.5,16,0,16C0,16,0,20.9,0,30C11,30,24.1,30,32,30C39.9,30,53.5,30,64,30C63.8,25.7,64,19.8,64,16C54.5,16,49.2,16,32,16Z')}50%{d:path('M32,35C14.8,35,0,30,0,16C0,16,0,20.9,0,30C0,41,24.1,46,32,46C39.9,46,64,40.5,64,30C63.8,25.7,64,19.8,64,16C64,30,49.2,35,32,35Z')}75%{d:path('M31.9179,55.0576C14.7179,55.0576,0,41,0,23.2C0,23.2,0,23.2,0,23.2C0,42,15.9179,55.0576,31.9179,55.0576C50.9179,55.0576,64,38.9,64,23C63.8,18.7,64,26.8,64,23C64,40.6,49.1179,55.0576,31.9179,55.0576Z')}76.5625%{d:path('M32,-9C14.8,-9,0,4.5,0,23C0,23,0,13.9,0,23C0,7.2,12.5,-9,32,-9C51.5,-9,64,7.3,64,23C63.8,18.7,64,26.8,64,23C64,5,49.2,-9,32,-9Z')}}\n @keyframes contentStudioLogoBlue2_o{\n 0%,60.9375%,85.9375%,to{opacity:1}75%{opacity:0}}\n @keyframes contentStudioLogoBlue2_d{\n 0%,to{d:path('M32,0C14.8,0,0,7.3,0,16C0,16,0,20.9,0,30C0,14.2,23.3,11.1,31.2,11.1C39.1,11.1,64,14.3,64,30C63.8,25.7,64,19.8,64,16C64,7.19996,49.2,0,32,0Z')}26.5625%{d:path('M32,16C14.8,16,10.5,16,0,16C0,16,0,20.9,0,30C11,30,24.1,30,32,30C39.9,30,53.5,30,64,30C63.8,25.7,64,19.8,64,16C54.5,16,49.2,16,32,16Z')}50%{d:path('M32,35C14.8,35,0,30,0,16C0,16,0,20.9,0,30C0,41,24.1,46,32,46C39.9,46,64,40.5,64,30C63.8,25.7,64,19.8,64,16C64,30,49.2,35,32,35Z')}75%{d:path('M32,55C14.8,55,0,41,0,23.2C0,23.2,0,23.2,0,23.2C0,42,16,55,32,55C51,55,64,38.9,64,23C63.8,18.7,64,26.8,64,23C64,40.6,49.2,55,32,55Z')}76.5625%{d:path('M32,-9C14.8,-9,0,4.5,0,23C0,23,0,13.9,0,23C0,7.2,12.5,-9,32,-9C51.5,-9,64,7.3,64,23C63.8,18.7,64,26.8,64,23C64,5,49.2,-9,32,-9Z')}}@keyframes contentStudioLogoRed1_o{0%,60.9375%,85.9375%,to{opacity:1}75%{opacity:0}}\n @keyframes contentStudioLogoRed1_d{\n 0%,to{d:path('M32,0C14.8,0,0,7.3,0,16C0,16,0,20.9,0,30C0,14.2,23.3,11.1,31.2,11.1C39.1,11.1,64,14.3,64,30C63.8,25.7,64,19.8,64,16C64,7.19996,49.2,0,32,0Z')}26.5625%{d:path('M32,16C14.8,16,10.5,16,0,16C0,16,0,20.9,0,30C11,30,24.1,30,32,30C39.9,30,53.5,30,64,30C63.8,25.7,64,19.8,64,16C54.5,16,49.2,16,32,16Z')}50%{d:path('M32,35C14.8,35,0,30,0,16C0,16,0,20.9,0,30C0,41,24.1,46,32,46C39.9,46,64,40.5,64,30C63.8,25.7,64,19.8,64,16C64,30,49.2,35,32,35Z')}75%{d:path('M32,55.2764C14.8,55.2764,-0.117655,40.6867,-0.117655,22.9864C-0.117655,22.9864,-0.0144828,23.007,-0.0144828,23.007C-0.0144828,40.5402,14.5898,55.0607,32,55.0607C51.54,55.0607,63.9954,37.9296,63.9954,22.9491C63.9656,22.9854,64.0751,22.9592,64.0922,22.9762C64.0922,40.3408,49.5282,55.2764,32,55.2764Z')}76.5625%{d:path('M32.0038,-8.99676C14.8038,-8.99676,0.00341815,4.58518,0.00341815,23.0071C0.00341815,23.0071,-0.300638,23.0141,-0.300638,23.0141C-0.300638,6.81093,12.343,-9.24781,32,-9.24781C51.0138,-9.24781,64.2653,6.47886,64.2653,23.0071C64.2653,23.0071,64.0076,23.0181,64.0001,23.0106C64.0001,5.99807,50.2124,-8.99676,32.0038,-8.99676Z')}}\n "),o.default.createElement("path",{id:"contentStudioLogoRed2",d:"M31.8-.2C14.6-.2-.2 5.3-.2 14v14c0-15.8 24.1-17 32-17 8 0 32 1.3 32 17V14C63.8 5.2 49-.2 31.8-.2z",fill:"#666",transform:"rotate(135 29.6 26.5)",style:{animation:"contentStudioLogoRed2_o 2s linear infinite both,contentStudioLogoRed2_d 2s linear infinite both"}}),o.default.createElement("path",{id:"contentStudioLogoBlue1",d:"M32-.3C14.6-.3-.2 7.3-.2 16v14c0-15.8 24-19 32-19 7.9 0 32 5 32 19V16c0-8.7-14.8-16.3-32-16.3z",fill:"#999",transform:"rotate(45 21.2 27.7)",style:{animation:"contentStudioLogoBlue1_o 2s linear infinite both,contentStudioLogoBlue1_d 2s linear infinite both"}}),o.default.createElement("path",{id:"contentStudioLogoBlue2",d:"M32 0C14.8 0 0 7.3 0 16v14c0-15.8 23.3-18.9 31.2-18.9C39.1 11.1 64 14.3 64 30c-.2-4.3 0-10.2 0-14C64 7.2 49.2 0 32 0z",fill:"#eee",transform:"rotate(-135 33.9 27.5)",style:{animation:"contentStudioLogoBlue2_o 2s linear infinite both,contentStudioLogoBlue2_d 2s linear infinite both"}}),o.default.createElement("path",{id:"contentStudioLogoRed1",d:"M32 0C14.8 0 0 7.3 0 16v14c0-15.8 23.3-18.9 31.2-18.9C39.1 11.1 64 14.3 64 30c-.2-4.3 0-10.2 0-14C64 7.2 49.2 0 32 0z",fill:"#444",transform:"rotate(-45 42.9 27.5)",style:{animation:"contentStudioLogoRed1_o 2s linear infinite both,contentStudioLogoRed1_d 2s linear infinite both"}})),o.default.createElement("div",{className:"sanity-app-loading-screen__inner"},o.default.createElement("div",{className:"sanity-app-loading-screen__text"},this.props.text)))}}t.default=u,a(u,"propTypes",{text:r.default.string}),a(u,"defaultProps",{text:"Loading Content Studio"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.navigate=d,t.state=void 0;var r=l(n(890)),o=l(n(436)),i=l(n(1942)),a=n(118),s=l(n(634)),u=n(4);function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if(!a.HAS_SPACES||!e||e.space)return e;var t=a.CONFIGURED_SPACES.find(e=>e.default)||a.CONFIGURED_SPACES[0];return Object.assign({},e,{space:t.name})}function f(e){var t=function(e){var t=(0,o.default)()[0];return e&&!e.tool&&t?Object.assign({},e,{tool:t.name}):e}(function(e){return e&&(0,o.default)().find(t=>t.name===e.space)?Object.assign({},e,{tool:e.space,space:void 0}):e}(e));return a.HAS_SPACES?c(t):t}function d(e,t){r.default.actions.navigate(e,t)}var p=r.default.state.pipe((0,u.map)(function(e){return{type:e.type,state:s.default.decode(location.pathname),isNotFound:s.default.isNotFound(location.pathname)}}),(0,u.scan)(function(e,t){if(t&&t.state&&t.state.intent){var n=function(e,t){var n=t.intent,r=t.params,i=(0,o.default)(),a=e.tool?i.find(t=>t.name===e.tool):null,s=(a?[a,...i]:i).find(t=>t&&"function"==typeof t.canHandleIntent&&t.canHandleIntent(n,r,e[t.name]));if(s){var u=s.getIntentState(n,r,e[s.name]),l=c(e)||e;return Object.assign({},l,{tool:s.name,[s.name]:u})}return{isNotFound:!0,intent:{name:n,params:r}}}(e?e.state:{},t.state);if(n){var r=s.default.encode(n);return setTimeout(()=>d(r,{replace:!0}),0),null}}return t},null),(0,u.filter)(Boolean),(0,u.map)(function(e){var t=f(e.state);return t!==e.state?(d(s.default.encode(t),{replace:!0}),null):e}),(0,u.filter)(Boolean),(0,u.publishReplay)(1),(0,u.refCount)());t.state=p,a.HAS_SPACES&&p.pipe((0,u.map)(e=>e.state),(0,u.filter)(Boolean),(0,u.tap)(i.default)).subscribe()},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.lift(new a(e))}};var r=n(3),o=n(11),i=n(12);var a=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.durationSelector))},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.a(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=Object(i.a)(this,t);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(e,t,n,r){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(o.a)},function(e,t,n){"use strict";t.a=function(e,t){return Object(r.a)(e,t,1)};var r=n(127)},function(e,t,n){"use strict";t.a=function(e){return e instanceof Date&&!isNaN(+e)}},function(e,t,n){"use strict";t.a=function(e,t){return function(n){return n.lift(new i(e,t))}};var r=n(3),o=n(5);var i=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))},e}(),a=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return r.a(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(o.a)},function(e,t,n){"use strict";t.b=function(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(n){return n.lift(new i(e,n,!1,t))}},n.d(t,"a",function(){return i});var r=n(3),o=n(5);var i=function(){function e(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),a=function(e){function t(t,n,r,o,i){var a=e.call(this,t)||this;return a.predicate=n,a.source=r,a.yieldIndex=o,a.thisArg=i,a.index=0,a}return r.a(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),t.b=function(e,t){void 0===t&&(t=a);return function(n){return n.lift(new s(e,t.leading,t.trailing))}};var r=n(3),o=n(11),i=n(12),a={leading:!0,trailing:!1};var s=function(){function e(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.durationSelector,this.leading,this.trailing))},e}(),u=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i.destination=t,i.durationSelector=n,i._leading=r,i._trailing=o,i._hasValue=!1,i}return r.a(t,e),t.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},t.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},t.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=Object(i.a)(this,t))},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=null,t&&this.send()},t.prototype.notifyNext=function(e,t,n,r,o){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(o.a)},function(e,t,n){"use strict";t.a=function(e,t,n){void 0===n&&(n=o.a);return function(r){var o=Object(i.a)(e),a=o?+e-n.now():Math.abs(e);return r.lift(new u(a,o,t,n))}};var r=n(3),o=n(31),i=n(429),a=n(11),s=n(12);var u=function(){function e(e,t,n,r){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),l=function(e){function t(t,n,r,o,i){var a=e.call(this,t)||this;return a.absoluteTimeout=n,a.waitFor=r,a.withObservable=o,a.scheduler=i,a.action=null,a.scheduleTimeout(),a}return r.a(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(Object(s.a)(e,t))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},t}(a.a)},function(e,t,n){"use strict";t.decode=t.parse=n(978),t.encode=t.stringify=n(979)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t{var r=n.title||"";if(!n.name)return console.warn('Tool "'.concat(r,'" does not have the required "name"-property')),e;if(e[n.name]){var o=e[n.name].tool.title;return console.warn('Tools with duplicate name "'.concat(n.name,'" found ("').concat(r,'" and "').concat(o,'")')),e}var i=t.indexOf(n.name);return e[n.name]={tool:n,index:-1===i?1/0:i},e},{});return o.default.filter(e=>-1===n.indexOf(e.name)).sort((e,t)=>{var n=i[e.name],r=i[t.name],o=n?n.index:1/0,a=r?r.index:1/0;return o===a?0:o-a})};var r=i(n(984)),o=i(n(268));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolvePanes=function(e,t,n,c){return((0,s.default)(e)?(0,o.from)(e):(0,o.of)(e)).pipe((0,i.switchMap)(e=>(function(e,t,n,i){return o.Observable.create(o=>{try{(0,u.default)(e)}catch(e){return o.error(e),v}var s=[e.id].concat(t).filter(Boolean),c=function(e,t,n){var r=new Array(t).fill(f);if(!e)return r;return e.slice(0,n).concat(r.slice(n))}(n,s.length,i+1),d=[];return o.next(c),p(Math.max(0,c.indexOf(f))),v;function p(t){if(!(t>s.length-1)){var n=s[t],r=c[t-1],i={parent:r,index:t,path:s.slice(0,t+1)};0!==t?r&&r.child?h(r.child,t,i,[n,i]):o.complete():h(e,t,i)}}function h(e,t,n,i){var s=(0,l.default)(e,n,i);d.push(s.subscribe(e=>(function(e,t){void 0===e&&console.warn("Pane at index %d returned no child - see %s",t,(0,a.default)("structure-item-returned-no-child"));(function(e,t){if(c[t]===e||(0,r.default)(c[t],e))return;return c=c.slice(),e?c.splice(t,1,e):c.splice(t)})(e,t)&&o.next(c);p(t+1)})(e,t),e=>o.error(e)))}function v(){for(;d.length;)d.pop().unsubscribe()}})})(e,t,n,c)))},t.LOADING=void 0;var r=c(n(110)),o=n(6),i=n(4),a=c(n(53)),s=c(n(438)),u=c(n(992)),l=c(n(582));function c(e){return e&&e.__esModule?e:{default:e}}var f=Symbol("LOADING");t.LOADING=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&("function"==typeof e.then||"function"==typeof e.subscribe)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(38),o=n(51),i=n(180),a=n(576),s=e=>e instanceof c?"ListBuilder":function(e){return e&&"function"==typeof e.then}(e)?"Promise":Array.isArray(e)?"array":typeof e,u=e=>"listItem"===e.type,l=(e,t)=>{const n=(t.parent.items.filter(u).find(t=>t.id===e)||{child:void 0}).child;return n&&"function"==typeof n&&"function"==typeof n?n(e,t):n};class c extends a.GenericListBuilder{constructor(e){super(),this.spec=e||{}}items(e){return this.clone({items:e})}getItems(){return this.spec.items}serialize(e={path:[]}){const t=this.spec.id;if("string"!=typeof t||!t)throw new o.SerializeError("`id` is required for lists",e.path,e.index).withHelpUrl(o.HELP_URL.ID_REQUIRED);const n=void 0===this.spec.items?[]:this.spec.items;if(!Array.isArray(n))throw new o.SerializeError("`items` must be an array of items",e.path,e.index).withHelpUrl(o.HELP_URL.LIST_ITEMS_MUST_BE_ARRAY);const a=(e.path||[]).concat(t),u=n.map((e,t)=>(function(e,t,n){if(e instanceof i.ListItemBuilder)return e.serialize({path:n,index:t});const r=e;if(r&&"divider"===r.type)return e;if(!r||"listItem"!==r.type){const e=r&&r.type||s(r),i="array"===e?" - did you forget to spread (...moreItems)?":"";throw new o.SerializeError(`List items must be of type "listItem", got "${e}"${i}`,n,t).withHelpUrl(o.HELP_URL.INVALID_LIST_ITEM)}return e})(e,t,a)),c=u.filter((e,t)=>r.find(u,{id:e.id},t+1));if(c.length>0){const t=c.map(e=>e.id).slice(0,5),n=c.length>5?`${t.join(", ")}...`:t.join(", ");throw new o.SerializeError(`List items with same ID found (${n})`,e.path,e.index).withHelpUrl(o.HELP_URL.LIST_ITEM_IDS_MUST_BE_UNIQUE)}return Object.assign({},super.serialize(e),{type:"list",child:this.spec.child||l,items:u})}clone(e){const t=new c;return t.spec=Object.assign({},this.spec,e||{}),t}}t.ListBuilder=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(994))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";e.exports=function(e){return null==e?[]:Array.isArray(e)?e:[e]}},function(e,t,n){var r=n(1012),o=n(1013),i=n(55),a=n(1014);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},function(e,t,n){var r=n(1015)("toUpperCase");e.exports=r},function(e,t,n){var r=n(423);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t,n){var r=n(1016),o=n(182),i=n(1017);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t){var n="Expected a function";e.exports=function(e){if("function"!=typeof e)throw new TypeError(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectType=void 0;var r=d(n(70)),o=d(n(133)),i=d(n(448)),a=d(n(1027)),s=d(n(17)),u=n(86),l=d(n(134)),c=d(n(1028)),f=d(n(1029));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e){for(var t=1;t({name:"object",type:null,jsonType:"object"}),extend(e,t){var n=h({fields:[]},e),d=h({},n.options||{}),v=Object.assign((0,s.default)(this.get(),m),n,{type:this.get(),title:n.title||(n.name?(0,o.default)(n.name):""),options:d,orderings:n.orderings||(0,c.default)(n),fields:n.fields.map(e=>{var n=e.name,r=e.fieldset,i=p(e,["name","fieldset"]),a={name:n,fieldset:r};return(0,u.lazyGetter)(a,"type",()=>t(h({},i,{title:e.title||(0,o.default)(n)})))})});return(0,u.lazyGetter)(v,"fieldsets",()=>(function(e,t){var n=(e.fieldsets||[]).map(e=>{var t=e.name,n=e.title,r=e.description,o=e.options;return{name:t,title:n,description:r,options:o,fields:[]}}),r=(0,i.default)(n,"name");return t.map(t=>{if(t.fieldset){var n=r[t.fieldset];if(!n)throw new Error("Group '".concat(t.fieldset,"' is not defined in schema for type '").concat(e.name,"'"));return n.fields.push(t),1===n.fields.length?n:null}return{single:!0,field:t}}).filter(Boolean)})(n,v.fields)),(0,u.lazyGetter)(v,"preview",(0,l.default)(n)),(0,u.lazyGetter)(v,"__experimental_search",()=>{var e=n.__experimental_search?(e=>{if(!Array.isArray(e))throw new Error("The search config of a document type must be an array of search config objects");return e.map(e=>{if("defaults"===e)return e;if(!(0,r.default)(e))throw new Error("Search config must be an object of {path: string, weight: number}");if("string"!=typeof e.path)throw new Error("The path property of the search field declaration must be a string");return{weight:"weight"in e?e.weight:1,path:(0,a.default)(e.path)}})})(n.__experimental_search):null;return e?e.map(e=>"defaults"===e?(0,f.default)(n):e):(0,f.default)(v)},{enumerable:!1}),function e(t){return{get:()=>t,extend:r=>{if(r.fields)throw new Error('Cannot override `fields` of subtypes of "object"');var o=Object.assign({},t,(0,s.default)(r,m),{title:r.title||n.title,type:t});return(0,u.lazyGetter)(o,"__experimental_search",()=>t.__experimental_search),e(o)}}}(v)}};t.ObjectType=y},function(e,t,n){var r=n(130),o=n(239)(function(e,t,n){r(e,n,t)});e.exports=o},function(e,t,n){"use strict";e.exports={Rule:n(450),validateDocument:n(455),inferFromSchema:n(1073),inferFromSchemaType:n(456)}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(1056),i=n(1064),a=n(452),s=["Object","String","Number","Boolean","Array","Date"],u=["type","uri","email"],l=(e,t)=>{var n=e._required||t._required;return n||(n=!1!==e._required&&!1!==t._required&&void 0),n};class c{constructor(e){this.FIELD_REF=c.FIELD_REF,this._typeDef=e,this.reset()}valueOfField(){return c.valueOfField(...arguments)}error(e){var t=this.clone();return t._level="error",t._message=e||null,t}warning(e){var t=this.clone();return t._level="warning",t._message=e||null,t}reset(){return this._type=this._type||null,this._rules=(this._rules||[]).filter(e=>"type"===e.flag),this._message=null,this._required=void 0,this._level="error",this._fieldRules=void 0,this}isRequired(){return!0===this._required}clone(){var e=new c;return e._type=this._type,e._message=this._message,e._required=this._required,e._rules=o(this._rules),e._level=this._level,e._fieldRules=this._fieldRules,e._typeDef=this._typeDef,e}cloneWithRules(e){var t=this.clone(),n=new Set;return e.forEach(e=>{"type"===e.flag&&(t._type=e.constraint),n.add(e.flag)}),t._rules=t._rules.filter(e=>{var t=u.includes(e.flag),r=n.has(e.flag);return!(t&&r)}).concat(e),t}merge(e){if(this._type&&e._type&&this._type!==e._type)throw new Error("merge() failed: conflicting types");var t=this.cloneWithRules(e._rules);return t._type=this._type||e._type,t._message=this._message||e._message,t._required=l(this,e),t._level="error"===this._level?e._level:this._level,t}validate(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,e,t)}type(e){var t="".concat(e.slice(0,1).toUpperCase()).concat(e.slice(1));if(!s.includes(t))throw new Error('Unknown type "'.concat(e,'"'));var n=this.cloneWithRules([{flag:"type",constraint:t}]);return n._type=t,n}all(e){return this.cloneWithRules([{flag:"all",constraint:e}])}either(e){return this.cloneWithRules([{flag:"either",constraint:e}])}optional(){var e=this.cloneWithRules([{flag:"presence",constraint:"optional"}]);return e._required=!1,e}required(){var e=this.cloneWithRules([{flag:"presence",constraint:"required"}]);return e._required=!0,e}custom(e){return this.cloneWithRules([{flag:"custom",constraint:e}])}min(e){return this.cloneWithRules([{flag:"min",constraint:e}])}max(e){return this.cloneWithRules([{flag:"max",constraint:e}])}length(e){return this.cloneWithRules([{flag:"length",constraint:e}])}valid(e){var t=Array.isArray(e)?e:[e];return this.cloneWithRules([{flag:"valid",constraint:t}])}integer(){return this.cloneWithRules([{flag:"integer"}])}precision(e){return this.cloneWithRules([{flag:"precision",constraint:e}])}positive(){return this.cloneWithRules([{flag:"min",constraint:0}])}negative(){return this.cloneWithRules([{flag:"lessThan",constraint:0}])}greaterThan(e){return this.cloneWithRules([{flag:"greaterThan",constraint:e}])}lessThan(e){return this.cloneWithRules([{flag:"lessThan",constraint:e}])}uppercase(){return this.cloneWithRules([{flag:"stringCasing",constraint:"uppercase"}])}lowercase(){return this.cloneWithRules([{flag:"stringCasing",constraint:"lowercase"}])}regex(e,t,n){var r=n||{name:t};!n&&t&&(t.name||t.invert)&&(r=t);var o=Object.assign({},r,{pattern:e});return this.cloneWithRules([{flag:"regex",constraint:o}])}email(e){return this.cloneWithRules([{flag:"email",constraint:e}])}uri(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({scheme:["http","https"],allowRelative:!1,relativeOnly:!1},e),n=Array.isArray(t.scheme)?t.scheme:[t.scheme];if(t.scheme=n.map(e=>{var t="string"==typeof e;if(!(e instanceof RegExp)&&!1===t)throw new Error("scheme must be a RegExp or a String");return t?new RegExp("^".concat(i(e),"$")):e}),!t.scheme.length)throw new Error("scheme must have at least 1 scheme specified");return this.cloneWithRules([{flag:"uri",constraint:{options:t}}])}unique(e){return this.cloneWithRules([{flag:"unique",constraint:e}])}reference(){return this.cloneWithRules([{flag:"reference"}])}fields(e){if("Object"!==this._type)throw new Error("fields() can only be called on an object type");var t=this.cloneWithRules([]);return t._fieldRules=e,t}assetRequired(){var e=function e(t){return t&&t.type?e(t.type):t}(this._typeDef),t="Asset";return e&&["image","file"].includes(e.name)&&(t="image"===e.name?"Image":"File"),this.cloneWithRules([{flag:"assetRequired",constraint:{assetType:t}}])}}r(c,"FIELD_REF",Symbol("FIELD_REF")),r(c,"array",e=>new c(e).type("Array")),r(c,"object",e=>new c(e).type("Object")),r(c,"string",e=>new c(e).type("String")),r(c,"number",e=>new c(e).type("Number")),r(c,"boolean",e=>new c(e).type("Boolean")),r(c,"dateTime",e=>new c(e).type("Date")),r(c,"valueOfField",e=>({type:c.FIELD_REF,path:e})),e.exports=c},function(e,t,n){"use strict";e.exports=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)}},function(e,t,n){"use strict";var r=n(38),o=r.get,i=r.flatten,a=n(58),s=n(87),u={Boolean:n(1067),Number:n(1068),String:n(1069),Array:n(1070),Object:n(1071),Date:n(1072)};e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e._rules,l=null==t;if(void 0===e._required&&l)r=r.filter(e=>"custom"===e.flag);else if(!e._required&&l)return Promise.resolve([]);var c=e._type,f=u[c]||s,d=r.map(function(r){if(void 0===r.flag)return Promise.reject(new Error('Invalid rule, did not contain "flag"-property'));var i=f[r.flag];if(!i){var a=c?'type "'.concat(c,'"'):"rule without declared type";return Promise.reject(new Error('Validator for flag "'.concat(r.flag,'" not found for ').concat(a)))}var s=r.constraint;if(s&&s.type===e.FIELD_REF){if(!n.parent)return Promise.reject(new Error("Field reference provided, but no parent received"));s=o(n.parent,s.path)}var u=i(s,t,e._message,n);return Promise.resolve(u).then(p)});return Promise.all(d).then(e=>e.filter(Boolean)).then(i);function p(t){if(Array.isArray(t))return i(t.map(p));if(!(t instanceof a))return null;var n=[];return 0===t.paths.length&&n.push({level:e._level,item:t}),n.concat(t.paths.map(n=>({path:n,level:e._level,item:t})))}}},function(e,t,n){var r;r=function(){var e,t,n,r=(e=[Object,Function,Array,String,Boolean,Number,Date,RegExp,Error],t=e.length,function(n){for(var r=0;r{var s=o&&o._key?{_key:o._key}:i,u=function(e,t){var n=!e||!e._type&&a.string(e).toLowerCase();if(n)return t.find(e=>e.jsonType===n);return t.find(t=>t.type.name===e._type)||t.find(t=>t.name===e._type)}(o,t.of),f=c(n,[s]);return l(o,u,f,{parent:e,document:r.document,path:f})});return Promise.all([...o,...p]).then(s)}(e,t,n,r):"object"==typeof e?function(e,t,n,r){if(!t)return[];var o=[];t.validation&&(o=t.validation.map((a=i(function*(o){var i=yield o.validate(e,{parent:r.parent,document:r.document,path:n,type:t});return f(i,n)}),function(e){return a.apply(this,arguments)})));var a;var u=(t.fields||[]).map(t=>{var o=t.type&&t.type.validation;if(!o)return[];var i=c(n,t.name),a=e[t.name];return l(a,t.type,i,{parent:e,document:r.document,path:i,type:t.type})});return Promise.all([...o,...u]).then(s)}(e,t,n,r):function(e,t,n,r){if(!t)return[{type:"validation",level:"error",path:n,item:new u("Unable to resolve type for item")}];if(!t.validation)return[];var o=t.validation.map(t=>t.validate(e,{parent:r.parent,document:r.document,path:n}).then(e=>f(e,n)));return Promise.all(o).then(s)}(e,t,n,r)}function c(e,t){return e.concat(t)}function f(e,t){return e.map(e=>{return function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:new Set;if(n.has(e))return e;if(n.add(e),!1===e.validation)return e.validation=[],e;if(Array.isArray(e.validation)&&e.validation.every(e=>"function"==typeof e.validate))return l(e,t,n),c(e,t,n),e;var r=e.type,o=i[e.jsonType],d=o?o(e):new i(e);return r&&"datetime"===r.name&&(d=d.type("Date")),r&&"url"===r.name&&(d=d.uri()),r&&"slug"===r.name&&(d=d.custom(a)),r&&"reference"===r.name&&(d=d.reference()),r&&"email"===r.name&&(d=d.email()),r&&"block"===r.name&&(d=d.custom(s)),e.annotations&&e.annotations.forEach(e=>u(e)),e.options&&e.options.list&&(d=d.valid(e.options.list.map(f))),e.validation=function(e,t){if(!e.validation)return[t];var n="function"==typeof e.validation?e.validation(t):e.validation;return Array.isArray(n)?n:[n]}(e,d),l(e,t,n),c(e,t,n),e}function l(e,t,n){if(e.fields){var o=e.validation.map(e=>e._fieldRules).filter(Boolean).reduce((e,t)=>({fields:r({},e.fields,t),hasRules:!0}),{fields:{},hasRules:!1});e.fields.forEach(e=>{e.type.validation=o.fields[e.name]||e.type.validation,u(e.type,t,n)})}}function c(e,t,n){e.of&&"array"===e.jsonType&&e.of.forEach(e=>u(e,t,n))}function f(e){return e.value||e}e.exports=u},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&t.push(c.ofType(n,r));e.allowNode&&t.push(c.ifNotMatch(e.allowNode,r));var o=!e.escapeHtml&&!e.skipHtml,i=(e.astPlugins||[]).some(function(e){var t=Array.isArray(e)?e[0]:e;return t.identity===m.HtmlParser});o&&!i&&t.push(l);return e.astPlugins?t.concat(e.astPlugins):t}(e).reduce(function(e,t){return t(e,h)},s);return f(g,h)};function b(e,t){return Array.isArray(t)?e.use.apply(e,r(t)):e.use(t)}g.defaultProps={renderers:{},escapeHtml:!0,skipHtml:!1,sourcePos:!1,rawSourcePos:!1,transformLinkUri:h,astPlugins:[],plugins:[],parserOptions:{}},g.propTypes={className:s.string,source:s.string,children:s.string,sourcePos:s.bool,rawSourcePos:s.bool,escapeHtml:s.bool,skipHtml:s.bool,allowNode:s.func,allowedTypes:s.arrayOf(s.oneOf(y)),disallowedTypes:s.arrayOf(s.oneOf(y)),transformLinkUri:s.oneOfType([s.func,s.bool]),linkTarget:s.oneOfType([s.func,s.string]),transformImageUri:s.func,astPlugins:s.arrayOf(s.func),unwrapDisallowed:s.bool,renderers:s.object,plugins:s.array,parserOptions:s.object},g.types=y,g.renderers=v,g.uriTransformer=h,e.exports=g},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return(o?"/":"")+(t=n(r(t.split("/"),function(e){return!!e}),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=n(r(e.split("/"),function(e){return!!e}),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(t,n(56))},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},function(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(1118)}},function(e,t,n){"use strict";e.exports=function(e){var t,n=0,o=0,i=e.charAt(n),a={};for(;i in r;)t=r[i],o+=t,t>1&&(o=Math.floor(o/t)*t),a[o]=n,i=e.charAt(++n);return{indent:o,stops:a}};var r={" ":1,"\t":4}},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",o="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.openCloseTag=new RegExp("^(?:"+r+"|"+o+")"),t.tag=new RegExp("^(?:"+r+"|"+o+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)")},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("<",t)}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);if(-1===r)return n;return ne.height),c(d,this.animationStateClasses.animatingToHeightZero,0===b.height),c(d,this.animationStateClasses.animatingToHeightAuto,"auto"===b.height),c(d,this.animationStateClasses.animatingToHeightSpecific,b.height>0),d)),O=this.getStaticStateClasses(b.height);this.setState({animationStateClasses:w,height:g,overflow:"hidden",shouldUseTransitions:!_}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),_?(b.shouldUseTransitions=!0,n=function(){r.setState(b),v(f,{newHeight:b.height})},requestAnimationFrame(function(){requestAnimationFrame(function(){n()})}),this.animationClassesTimeoutID=setTimeout(function(){r.setState({animationStateClasses:O,shouldUseTransitions:!1}),r.hideContent(b.height),v(l,{newHeight:b.height})},y)):(v(f,{newHeight:g}),this.timeoutID=setTimeout(function(){b.animationStateClasses=O,b.shouldUseTransitions=!1,r.setState(b),"auto"!==s&&r.hideContent(g),v(l,{newHeight:g})},y))}}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null,this.animationClassesTimeoutID=null,this.animationStateClasses=null}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,u.default)((c(t={},this.animationStateClasses.static,!0),c(t,this.animationStateClasses.staticHeightZero,0===e),c(t,this.animationStateClasses.staticHeightSpecific,e>0),c(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.animateOpacity,i=n.applyInlineTransitions,s=n.children,l=n.className,f=n.contentClassName,p=n.duration,h=n.easing,v=n.delay,m=n.style,y=this.state,g=y.height,b=y.overflow,_=y.animationStateClasses,w=y.shouldUseTransitions,O=o({},m,{height:g,overflow:b||m.overflow});w&&i&&(O.transition="height "+p+"ms "+h+" "+v+"ms",m.transition&&(O.transition=m.transition+", "+O.transition),O.WebkitTransition=O.transition);var k={};r&&(k.transition="opacity "+p+"ms "+h+" "+v+"ms",k.WebkitTransition=k.transition,0===g&&(k.opacity=0));var E=(0,u.default)((c(e={},_,!0),c(e,l,l),e));return a.default.createElement("div",o({},function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=0||h(o)||"auto"===o?null:new TypeError('value "'+o+'" of type "'+(void 0===o?"undefined":r(o))+'" is invalid type for '+t+" in "+n+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},onAnimationEnd:s.default.func,onAnimationStart:s.default.func,style:s.default.object},m.defaultProps={animateOpacity:!1,animationStateClasses:f,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.default=m},function(e,t,n){var r=n(20),o=n(81),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(1195))&&r.__esModule?r:{default:r}},function(e,t){e.exports={root:"Field_root_1XEv8"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),o=s(n(0)),i=s(n(1209)),a=s(n(188));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends o.default.Component{constructor(){super(...arguments),u(this,"state",{hasFocus:!1}),u(this,"handleClick",e=>{if(!this.state.hasFocus){this.setState({hasFocus:!0});var t=this.props.onActivate;t&&t()}}),u(this,"handleClickOutside",()=>{this.state.hasFocus&&this.setState({hasFocus:!1})})}render(){var e=this.props,t=e.message,n=e.children,r=e.isActive,a=e.html,s=this.state.hasFocus;return o.default.createElement("div",{className:s?i.default.hasFocus:i.default.noFocus},!r&&o.default.createElement("div",{className:i.default.eventHandler,onClick:this.handleClick},o.default.createElement("div",{className:i.default.overlay}),!a&&o.default.createElement("div",{className:i.default.stringMessage},t),a&&o.default.createElement("div",{className:i.default.html},a)),o.default.createElement("div",{className:i.default.content},n))}}u(l,"propTypes",{children:r.default.node.isRequired,message:r.default.string,html:r.default.node,isActive:r.default.bool,onActivate:r.default.func}),u(l,"defaultProps",{message:"Click to activate…",isActive:!1});var c=(0,a.default)(l);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(1211))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(0)),o=u(n(189)),i=u(n(8)),a=u(n(106)),s=u(n(479));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class extends r.default.Component{constructor(){super(...arguments),l(this,"handleDropDownAction",e=>{this.handleInsertItem(e.type)}),l(this,"handleAddBtnClick",()=>{this.handleInsertItem(this.props.type.of[0])}),l(this,"handleInsertItem",e=>{var t=this.props,n=t.onCreateValue;(0,t.onAppendItem)(n(e))})}renderSelectType(){var e=this.props.type.of.map(e=>({title:e.title||e.type.name,type:e}));return r.default.createElement(o.default,{inverted:!0,items:e,onAction:this.handleDropDownAction},"Add")}render(){var e=this.props,t=e.type,n=e.readOnly,o=e.children;return n?null:r.default.createElement("div",{className:s.default.functions},r.default.createElement(a.default,{align:"start"},1===t.of.length?r.default.createElement(i.default,{inverted:!0,onClick:this.handleAddBtnClick,className:s.default.addButton},"Add"):this.renderSelectType(),o||null))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:this.props;return s.Children.toArray(e.children).filter(Boolean)}},{key:"setActiveChildIndex",value:function(){if(0!==this.state.activeChildIndex){var e=s.Children.count(this.state.children);0===e?this.setState({activeChildIndex:0}):this.state.activeChildIndex>=e&&this.setState({activeChildIndex:e-1})}}},{key:"componentWillMount",value:function(){this.setState({children:this.getFilteredChildren()})}},{key:"componentWillReceiveProps",value:function(e){if(e.children!==this.props.children)return this.setState({children:this.getFilteredChildren(e)},this.setActiveChildIndex);this.setActiveChildIndex()}},{key:"componentDidUpdate",value:function(e,t){this.state.activeChildIndex!==t.activeChildIndex&&this.setFocus(this.state.activeChildIndex)}},{key:"setFocus",value:function(e){var t=this.$wrapper.children[e];t&&t.hasAttribute("data-focus-skip")?this.moveFocus(t.compareDocumentPosition(document.activeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1):t&&document.activeElement!==t&&t.focus()}},{key:"moveFocus",value:function(e){var t=this.state.children?s.Children.count(this.state.children):0,n=this.state.activeChildIndex+e;n>=t?n=0:n<0&&(n=t-1),this.setState({activeChildIndex:n})}},{key:"renderChildren",value:function(){var e=this;return s.Children.map(this.state.children,function(t,o){var i;return n.i(s.cloneElement)(t,(r(i={},v,o),r(i,"data-focus-skip",-1===parseInt(t.props.tabIndex,10)||void 0),r(i,"key",t.key||o),r(i,"tabIndex",e.state.activeChildIndex===o?0:-1),i))})}},{key:"render",value:function(){return n.i(s.createElement)(this.props.component,p({},c()(this.props,t.internalKeys),{ref:this.persistWrapperElementReference,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown}),this.renderChildren())}}]),t}();m.mode={HORIZONTAL:d()(),VERTICAL:d()(),BOTH:d()()},m.propTypes={"*":a.a.any,component:a.a.oneOfType([a.a.string,a.a.func]),defaultActiveChildIndex:a.a.number,mode:a.a.oneOf([m.mode.BOTH,m.mode.HORIZONTAL,m.mode.VERTICAL])},m.defaultProps={component:"div",defaultActiveChildIndex:0,mode:m.mode.BOTH,onKeyDown:function(){}},m.internalKeys=Object.keys(m.defaultProps),t.default=m}])},function(e,t){e.exports={root:"ArrayInput_root_39W2v",list:"ArrayInput_list_ONVXk",listReadOnly:"ArrayInput_listReadOnly_mbCrC ArrayInput_list_ONVXk",functions:"ArrayInput_functions__wAte undefined",popupAnchor:"ArrayInput_popupAnchor_GD87i",movingItem:"ArrayInput_movingItem_21uh3 helpers_movingItem_1oAqL shadows_shadow-6dp_3hP4o",listItem:"ArrayInput_listItem_3kNvG backgrounds_listItemStates_32_ku DefaultListItem_lineBetween_3avII DefaultListItem_root_2MZTj",listItemMute:"ArrayInput_listItemMute_3h9sD DefaultListItem_lineBetween_3avII DefaultListItem_root_2MZTj",gridItem:"ArrayInput_gridItem_duYcg",popupAnchorRelative:"ArrayInput_popupAnchorRelative_3eBzi",sortable:"ArrayInput_sortable_22uFC",warning:"ArrayInput_warning_25Lon DefaultFieldset_root_2vneH DefaultFormField_root_3QGtQ",missingKeysWarning:"ArrayInput_missingKeysWarning_3VmkB ArrayInput_warning_25Lon DefaultFieldset_root_2vneH DefaultFormField_root_3QGtQ",fixMissingKeysButtonWrapper:"ArrayInput_fixMissingKeysButtonWrapper_1TZae",nonObjectsWarning:"ArrayInput_nonObjectsWarning_1gmQO ArrayInput_warning_25Lon DefaultFieldset_root_2vneH DefaultFormField_root_3QGtQ",removeNonObjectsButtonWrapper:"ArrayInput_removeNonObjectsButtonWrapper_R0Gs0 ArrayInput_fixMissingKeysButtonWrapper_1TZae"}},function(e,t,n){var r=n(240),o=n(79);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},function(e,t,n){var r=n(128),o=n(79),i=n(164),a=n(20);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(1242)(n(483));e.exports=r},function(e,t,n){var r=n(416),o=n(54),i=n(294),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var u=null==n?0:i(n);return u<0&&(u=a(s+u,0)),r(e,o(t,3),u)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.className,n=(e.onSortEnd,e.onSortStart,e.lockToContainerEdges,e.useDragHandle,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className","onSortEnd","onSortStart","lockToContainerEdges","useDragHandle"]));return r.default.createElement("ul",s({},n,{className:(0,i.default)(o.default.root,t)}))};var r=a(n(0)),o=a(n(1250)),i=a(n(27));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className"]);return r.default.createElement("li",s({},n,{className:(0,o.default)(i.default.root,t)}))};var r=a(n(0)),o=a(n(27)),i=a(n(1251));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t{this._rootElement=e}),h(this,"setPortalModalElement",e=>{this._portalModalElement=e})}componentDidMount(){window.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){window.removeEventListener("keydown",this.handleKeyDown)}render(){var e=this.props,t=e.title,n=e.onClose,o=e.children;return i.default.createElement(d.Manager,null,i.default.createElement(d.Reference,null,e=>{var t=e.ref;return i.default.createElement("div",{ref:t})}),i.default.createElement(u.default,null,e=>i.default.createElement(f.Portal,null,i.default.createElement(d.Popper,{placement:"bottom",modifiers:{preventOverflow:{boundariesElement:"viewport"},customStyle:{enabled:!0,fn:e=>{var t=(0,r.default)(e,"instance.reference.clientWidth")||500;return e.styles=function(e){for(var t=1;t{var u=r.ref,f=r.style,d=r.placement;r.arrowProps;return i.default.createElement("div",{ref:u,"data-placement":d,style:f,className:a.default.root},i.default.createElement(l.default,{onClickOutside:e?this.handleClose:void 0},i.default.createElement("div",{className:a.default.listContainer},i.default.createElement(c.default,{onEscape:t=>(e||t.shiftKey)&&this.handleClose()}),i.default.createElement("div",{className:a.default.root},i.default.createElement("div",{className:a.default.wrapper},t&&i.default.createElement("div",{className:a.default.head},t,i.default.createElement("button",{className:a.default.close,type:"button",onClick:n},i.default.createElement(s.default,null))),!t&&i.default.createElement("button",{className:a.default.closeDark,type:"button",onClick:this.handleClose},i.default.createElement(s.default,null)),i.default.createElement("div",{className:a.default.content},o))))))}))))}}t.default=v,h(v,"propTypes",{title:o.default.string,children:o.default.node.isRequired,onClose:o.default.func}),h(v,"defaultProps",{title:"",onClose(){}})},function(e,t,n){var r=n(1269),o=n(1270);e.exports=function(e){if(r.crypto&&r.crypto.getRandomValues)return r.crypto.getRandomValues(e);if("object"==typeof r.msCrypto&&"function"==typeof r.msCrypto.getRandomValues)return r.msCrypto.getRandomValues(e);if(o.randomBytes){if(!(e instanceof Uint8Array))throw new TypeError("expected Uint8Array");if(e.length>65536){var t=new Error;throw t.code=22,t.message="Failed to execute 'getRandomValues' on 'Crypto': The ArrayBufferView's byte length ("+e.length+") exceeds the number of bytes of entropy available via this API (65536).",t.name="QuotaExceededError",t}var n=o.randomBytes(e.length);return e.set(n),e}throw new Error("No secure random number generator available.")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(1271)),i=s(n(489)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(10));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class extends r.default.Component{constructor(){super(...arguments),u(this,"_input",void 0),u(this,"handleChange",e=>{this.props.onChange(a.default.from((0,a.set)(e.currentTarget.checked)))}),u(this,"setInput",e=>{this._input=e})}focus(){this._input&&this._input.focus()}render(){var e=this.props,t=e.value,n=e.type,a=e.readOnly,s=e.onFocus;return n.options&&"checkbox"===n.options.layout?r.default.createElement(i.default,{readOnly:a,onChange:this.handleChange,checked:t,ref:this.setInput,description:n.description},n.title):r.default.createElement(o.default,{readOnly:a,checked:t,label:n.title,description:n.description,onChange:this.handleChange,onFocus:s,ref:this.setInput})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=a(n(1273));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends o.default.Component{constructor(){super(...arguments),l(this,"state",{hasFocus:!1}),l(this,"handleFocus",e=>{this.setState({hasFocus:!0}),this.props.onFocus&&this.props.onFocus(e)}),l(this,"handleBlur",e=>{this.setState({hasFocus:!1}),this.props.onBlur&&this.props.onBlur(e)}),l(this,"setInput",e=>{this._input=e})}componentDidMount(){"undefined"==typeof value&&this._input&&(this._input.indeterminate=!0)}focus(){this._input&&this._input.focus()}render(){var e=this.props,t=e.disabled,n=(e.markers,e.checked),r=e.label,a=e.description,l=e.children,c=e.readOnly,f=u(e,["disabled","markers","checked","label","description","children","readOnly"]),d=this.state.hasFocus,p=n?i.default.isChecked:i.default.unChecked;return void 0===n&&(p=i.default.indeterminate),o.default.createElement("label",{title:r,className:"\n ".concat(t||c?i.default.isDisabled:i.default.isEnabled,"\n ").concat(p,"\n ").concat(t||c?i.default.isDisabled:i.default.isEnabled,"\n ").concat(n?i.default.isChecked:i.default.unChecked,"\n ").concat(d?i.default.hasFocus:"","\n "),onBlur:this.handleBlur},o.default.createElement("input",s({},f,{className:i.default.input,type:"checkbox",disabled:t||c,checked:n,ref:this.setInput,onFocus:this.handleFocus})),o.default.createElement("div",{className:i.default.label},l||r),a&&o.default.createElement("div",{className:i.default.description},a),o.default.createElement("div",{className:i.default.focusHelper}),o.default.createElement("div",{className:i.default.boxOutline},o.default.createElement("div",{className:i.default.tickOutline})))}}t.default=c,l(c,"propTypes",{label:r.default.string,description:r.default.string,markers:r.default.array,checked:r.default.bool,disabled:r.default.bool,readOnly:r.default.bool,children:r.default.any,onFocus:r.default.func,onBlur:r.default.func})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(0)),o=u(n(72)),i=u(n(33)),a=n(491),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(10));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class extends r.default.Component{constructor(){super(...arguments),l(this,"_input",void 0),l(this,"handleChange",e=>{var t=e.currentTarget.value;this.props.onChange(s.default.from(""===t?(0,s.unset)():(0,s.set)(Number(t))))}),l(this,"setInput",e=>{this._input=e})}focus(){this._input&&this._input.focus()}render(){var e=this.props,t=e.value,n=void 0===t?"":t,s=e.readOnly,u=e.markers,l=e.type,c=e.level,f=e.onFocus,d=u.filter(e=>"validation"===e.type).filter(e=>"error"===e.level),p=(0,a.getValidationRule)(l,"min"),h=p&&p.constraint>=0;return r.default.createElement(i.default,{markers:u,level:c,label:l.title,description:l.description},r.default.createElement(o.default,{customValidity:d&&d.length>0?d[0].item.message:"",type:"number",value:n,readOnly:s,placeholder:l.placeholder,onChange:this.handleChange,onFocus:f,ref:this.setInput,pattern:h?"[d]*":void 0}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getValidationRule=function(e,t){if(!e||!e.validation||!e.validation.length)return null;for(var n=0;n{var t=e.currentTarget.value;this.props.onChange(a.default.from(t?(0,a.set)(t):(0,a.unset)()))}),u(this,"setInput",e=>{this._input=e})}focus(){this._input&&this._input.focus()}render(){var e=this.props,t=e.value,n=e.markers,a=e.type,s=e.readOnly,u=e.level,l=e.onFocus,c=e.onBlur,f=n.filter(e=>"validation"===e.type).filter(e=>"error"===e.level);return r.default.createElement(o.default,{markers:n,level:u,label:a.title,description:a.description},r.default.createElement(i.default,{customValidity:f&&f.length>0?f[0].item.message:"",value:t,readOnly:s,placeholder:a.placeholder,onChange:this.handleChange,onFocus:l,onBlur:c,rows:a.rows,ref:this.setInput}))}}},function(e,t){e.exports={root:"DefaultTextArea_root_3avq- undefined",textarea:"DefaultTextArea_textarea_10owa textarea_root_hYKBu text-input_textInput_2io_4 text-input_root_3I0je",clearButton:"DefaultTextArea_clearButton_3xwlf clear-button_textarea_AKhvU clear-button_root_KE6l2"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(0)),o=n(6),i=u(n(1277)),a=u(n(1281)),s=n(4);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=a.default.pipe((0,s.map)(e=>!e.target.hidden)),p={minHeight:1,minWidth:1},h=(0,o.concat)((0,o.defer)(()=>(0,o.of)(!document.hidden)),d).pipe((0,s.distinctUntilChanged)(),(0,s.publishReplay)(1),(0,s.refCount)());t.default=class extends r.default.Component{constructor(){super(...arguments),f(this,"element",r.default.createRef()),f(this,"state",{isVisible:null})}componentDidMount(){var e=this.props.hideDelay,t=void 0===e?0:e,n=(0,i.default)(this.element.current).pipe((0,s.map)(e=>e.isIntersecting));this.subscription=h.pipe((0,s.switchMap)(e=>e?n:(0,o.of)(!1)),(0,s.switchMap)(e=>e?(0,o.of)(!0):(0,o.of)(!1).pipe((0,s.delay)(t))),(0,s.distinctUntilChanged)(),(0,s.tap)(e=>{this.setState({isVisible:e})})).subscribe()}componentWillUnmount(){this.subscription.unsubscribe(),this.subscription=null}render(){var e=this.state.isVisible,t=this.props,n=t.children,o=t.style,i=void 0===o?{}:o,a=t.element,s=void 0===a?"span":a,u=(t.hideDelay,c(t,["children","style","element","hideDelay"]));return r.default.createElement(s,l({ref:this.element,style:l({},p,i)},u),e?n(e):" ")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,u,l){if(function e(t,n){return n.name===t||n.type&&e(t,n.type)}("reference",n))return t._ref?(0,r.default)(t,n).pipe((0,a.switchMap)(r=>r?e(t,r,u):(0,i.of)({type:n,snapshot:null}))):(0,i.of)({snapshot:null});var c=n.preview.select;if(c){var f=Object.keys(c),d=u?f.filter(e=>u.includes(e)):f,p=d.map(e=>c[e].split("."));return(0,s.default)(t,p).pipe((0,a.map)(e=>({type:n,snapshot:e&&(0,o.default)(e,n,l)})))}return(0,i.of)({type:n,snapshot:(0,o.invokePrepare)(n,t,l)})};var r=u(n(1283)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1284)),i=n(6),a=n(4),s=u(n(496));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(497));function o(e){return e&&e.__esModule?e:{default:e}}var i=(0,o(n(1292)).default)(r.default);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e in b||(b[e]=[]);var n=b[e];(0,i.default)(t,(0,o.default)(n.map(e=>e.fields))).length>0&&n.push(function(e,t){var n=null,r=(0,s.merge)(new s.Observable(e=>{e.next(n),e.complete()}).pipe((0,u.filter)(Boolean)),function(e,t){return function(e){var t=v();return(0,s.merge)(t.welcome$,t.mutations$.pipe((0,u.filter)(t=>t.documentId===e)))}(e).pipe((0,u.switchMap)(n=>"welcome"===n.type||"query"===n.visibility?y(e,t).pipe((0,u.mergeMap)(n=>(0,s.concat)((0,s.of)(n),void 0===n?g(e,t):[]))):g(e,t)))}(e,t)).pipe((0,u.tap)(e=>n=e),(0,u.publishReplay)(1),(0,u.refCount)());return{id:e,fields:t,changes$:r}}(e,t));var r=n.filter(e=>e.fields.some(e=>t.includes(e))).map(e=>e.changes$);return(0,s.combineLatest)(r).pipe((0,u.map)(e=>e.filter(Boolean)),(0,u.filter)(e=>(0,p.default)(e,e=>e._rev)),(0,u.map)(e=>0===e.length?null:function(e,t){return[...f.INCLUDE_FIELDS,...t].reduce((t,n)=>{var r=function(e,t){var n;return e.some(e=>t in e&&(n=e[t],!0)),n}(e,n);return void 0!==r&&(t[n]=r),t},{})}(e,t)),(0,u.distinctUntilChanged)((0,d.default)(t)))};var r,o=h(n(23)),i=h(n(256)),a=h(n(13)),s=n(6),u=n(4),l=h(n(1285)),c=n(1286),f=n(196),d=h(n(1290)),p=h(n(1291));function h(e){return e&&e.__esModule?e:{default:e}}var v=()=>{if(!r){var e=(0,s.from)(a.default.listen('*[!(_id in path("_.**"))]',{},{events:["welcome","mutation"],includeResult:!1,visibility:"query"})).pipe((0,u.share)()),t=e.pipe((0,u.filter)(e=>"welcome"===e.type),(0,u.publishReplay)(1),(0,u.refCount)());t.subscribe();var n=e.pipe((0,u.filter)(e=>"mutation"===e.type));r={welcome$:t,mutations$:n}}return r};function m(e){var t=(0,c.combineSelections)(e);return a.default.observable.fetch((0,c.toGradientQuery)(t)).pipe((0,u.map)(e=>(0,c.reassemble)(e,t)))}var y=(0,l.default)(m,100),g=(0,l.default)(m,1e3);var b={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(1)),o=m(n(0)),i=m(n(1305)),a=m(n(1310)),s=m(n(1311)),u=m(n(1332)),l=m(n(1334)),c=m(n(1336)),f=m(n(1338)),d=m(n(1341)),p=m(n(1343)),h=m(n(13)),v=m(n(199));function m(e){return e&&e.__esModule?e:{default:e}}function y(){return(y=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _={default:u.default,card:s.default,media:f.default,detail:l.default,inline:c.default,block:d.default};class w extends o.default.PureComponent{constructor(){super(...arguments),g(this,"renderMedia",e=>{var t=(0,i.default)(h.default),n=e.dimensions,r=this.props.value,a=r.media;return o.default.createElement("img",{alt:r.title,src:t.image(a).width(n.width||100).height(n.height||100).fit(n.fit).url()})}),g(this,"renderImageUrl",e=>{var t=e.dimensions,n=this.props.value,r=n.imageUrl;if(r){var i=(0,a.default)(r.split("?")[0],t);return o.default.createElement("img",{src:i,alt:n.title})}}),g(this,"renderIcon",e=>{var t=this.props.icon||v.default;return t&&o.default.createElement(t,{className:"sanity-studio__preview-fallback-icon"})}),g(this,"resolveMedia",()=>{var e=this.props,t=e.value,n=e.icon,r=t.media;return!1!==n&&("function"==typeof r||o.default.isValidElement(r)?r:t.media&&"reference"===t.media._type&&t.media._ref?this.renderMedia:t.imageUrl?this.renderImageUrl:r&&r.asset?this.renderMedia:this.renderIcon)})}render(){var e=this.props,t=e.layout,n=e._renderAsBlockImage,r=b(e,["layout","_renderAsBlockImage"]),i=_.hasOwnProperty(t)?_[t]:_.default;n&&(i=p.default);var a=function(e){return e&&"object"==typeof e?{_upload:e._upload,value:b(e,["_upload"])}:{_upload:null,value:e}}(this.props.value),s=a._upload,u=a.value,l=s?function(e){for(var t=1;t12?t%12:t},hh:function(e){return f(l.h(e),2)},m:function(e){return e.getMinutes()},mm:function(e){return f(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return f(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return f(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return f(e.getMilliseconds(),3)},Z:function(e){return c(e.getTimezoneOffset(),":")},ZZ:function(e){return c(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function c(e,t){t=t||"";var n=e>0?"-":"+",r=Math.abs(e),o=r%60;return n+f(Math.floor(r/60),2)+t+f(o,2)}function f(e,t){for(var n=Math.abs(e).toString();n.length4?e:void 0}());var t},r.isLegacyOpera=function(){return!!window.opera}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){function n(n){var r=n.styles,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["styles"]);return o.default.createElement(e,i({styles:a({},t,r)},s))}return Object.assign(n,e),n.displayName="Styleable(".concat(e.displayName||e.name,")"),n};var r,o=(r=n(0))&&r.__esModule?r:{default:r};function i(){return(i=Object.assign||function(e){for(var t=1;t{var t=e.currentTarget.value;this.props.onChange(a.default.from(t?(0,a.set)(t):(0,a.unset)()))}),u(this,"setInput",e=>{this._input=e})}focus(){this._input&&this._input.focus()}render(){var e=this.props,t=e.value,n=e.readOnly,a=e.type,s=e.markers,u=e.level,l=e.onFocus,c=e.onBlur,f=s.filter(e=>"validation"===e.type).filter(e=>"error"===e.level);return r.default.createElement(i.default,{markers:s,level:u,label:a.title,description:a.description},r.default.createElement(o.default,{customValidity:f.length>0?f[0].item.message:"",type:"text",value:t,readOnly:n,placeholder:a.placeholder,onChange:this.handleChange,onFocus:l,onBlur:c,ref:this.setInput}))}}},function(e,t,n){(function(e){"use strict";e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n(41))},function(e,t,n){(function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n(41))},function(e,t,n){(function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})})(n(41))},function(e,t,n){(function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n(41))},function(e,t,n){(function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n(41))},function(e,t,n){(function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})})(n(41))},function(e,t,n){(function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})(n(41))},function(e,t,n){(function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})(n(41))},function(e,t){e.exports={"react-datepicker__month--selecting-range":"react-datepicker-cssmodules_react-datepicker__month--selecting-range_2iB0p"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(0)),o=d(n(25)),i=d(n(41)),a=d(n(1354));n(516);var s=d(n(33)),u=d(n(72)),l=d(n(8)),c=d(n(1356)),f=d(n(1358));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(e,t)=>e+(t?" ".concat(t):"");t.default=class extends r.default.Component{constructor(){super(...arguments),p(this,"_datepicker",void 0),p(this,"state",{inputValue:null,isDialogOpen:!1}),p(this,"handleInputChange",e=>{var t=e.currentTarget.value,n=this.props,r=n.onChange,o=n.dateFormat,a=n.timeFormat,s=(0,i.default)(t,h(o,a),!0);s.isValid()?(this.setState({inputValue:null}),r(s)):this.setState({inputValue:t})}),p(this,"handleDialogChange",e=>{(0,this.props.onChange)(e),this.setState({inputValue:null,isDialogOpen:!1})}),p(this,"handleSetNow",e=>{this.handleDialogChange((0,i.default)())}),p(this,"setDatePicker",e=>{this._datepicker=e}),p(this,"handleInputKeyDown",e=>(e&&"Enter"===e.key&&this.handleOpen(),e)),p(this,"handleButtonClick",e=>{this.focus(),this.handleOpen()}),p(this,"handleOpen",e=>{this.setState({isDialogOpen:!0})}),p(this,"handleClose",()=>{this.setState({isDialogOpen:!1})}),p(this,"handleBlur",e=>{this.handleClose(),this.setState({inputValue:null}),this.props.onBlur&&this.props.onBlur(e)}),p(this,"handleFocus",e=>{this.props.onFocus&&this.props.onFocus(e)}),p(this,"renderPopperContainer",e=>{var t=e.children,n=this.state.isDialogOpen;return o.default.createPortal(r.default.createElement("div",{className:n?f.default.portal:f.default.portalClosed},t),document.body)})}focus(){this._datepicker&&this._datepicker.input.focus()}render(){var e=this.props,t=e.value,n=e.markers,o=e.dateOnly,d=e.dateFormat,p=e.timeFormat,v=e.title,m=e.description,y=e.todayLabel,g=e.readOnly,b=e.timeStep,_=e.level,w=this.state,O=w.inputValue,k=w.isDialogOpen,E=h(d,p),S=this.props.placeholder||"e.g. ".concat((0,i.default)().format(E)),x=n.filter(e=>"validation"===e.type).filter(e=>"error"===e.level);return r.default.createElement(s.default,{markers:n,label:v,level:_,description:m},g&&r.default.createElement(u.default,{customValidity:x.length>0?x[0].item.message:"",readOnly:!0,value:t?t.format(E):""}),!g&&r.default.createElement("div",{className:x.length>0?f.default.rootError:f.default.root},r.default.createElement("div",{className:f.default.inputWrapper},r.default.createElement(a.default,{onKeyDown:k?void 0:this.handleInputKeyDown,autoFocus:!1,onFocus:this.handleFocus,onBlur:this.handleBlur,showMonthDropdown:!0,showYearDropdown:!0,disabledKeyboardNavigation:!k,selected:t||void 0,placeholderText:S,calendarClassName:f.default.datepicker,popperClassName:f.default.popper,popperContainer:this.renderPopperContainer,popperProps:{positionFixed:!0},className:f.default.input,onClickOutside:this.handleClose,onChange:this.handleDialogChange,onChangeRaw:this.handleInputChange,value:O||t&&t.format(E),showTimeSelect:!o,dateFormat:d,timeFormat:p,timeIntervals:b,ref:this.setDatePicker,dropdownMode:"select",todayButton:r.default.createElement(l.default,{color:"primary",onClick:this.handleSetNow},y)})),r.default.createElement("div",{className:f.default.buttonWrapper},r.default.createElement(l.default,{color:"primary",bleed:!0,onClick:this.handleButtonClick,icon:c.default,kind:"simple"},"Select"))))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n;return n=t=class extends r.default.PureComponent{constructor(e,t){super(),s(this,"state",void 0),s(this,"unsubscribe",void 0),s(this,"setInput",e=>{this._input=e});var n=t.formBuilder;this.state={document:n.getDocument()},this.unsubscribe=n.onPatch(e=>{var t=e.snapshot;t&&this.setState({document:t})})}componentWillUnmount(){this.unsubscribe()}focus(){this._input.focus()}render(){return r.default.createElement(e,a({ref:this.setInput,document:this.state.document},this.props))}},s(t,"displayName","withDocument(".concat(e.displayName||e.name,")")),s(t,"contextTypes",{formBuilder:o.default.any}),n};var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t{this._input=e})}focus(){this._input.focus()}render(){var t=this.context.getValuePath;return r.default.createElement(e,a({ref:this.setInput},this.props,{getValuePath:t}))}},s(t,"displayName","withValuePath(".concat(e.displayName||e.name,")")),s(t,"contextTypes",{getValuePath:o.default.func,formBuilder:o.default.any}),n};var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t{this.input=e}),(t="setInput")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}focus(){this.input.focus()}render(){return r.default.createElement(i.default,s({ref:this.setInput},this.props,{resolveUploader:o.default}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return new r.Observable(n=>{var r=s.indexOf(t)+1,l=function(e,t){var n=a[t-1],r=e.height/e.width;e.width=u/r,e.height=e.width*r;var s=document.createElement("canvas"),l=s.getContext("2d");o(t)?(s.height=e.width,s.width=e.height):(s.width=e.width,s.height=e.height);"flip-x"===n.op&&i(s,!0,!1);"flip-y"===n.op&&i(s,!1,!0);if(n.degrees&&(function(e,t){var n=t.x,r=t.y,o=t.degrees*(Math.PI/180);e.translate(n,r),e.rotate(o),e.translate(-n,-r)}(l,{degrees:n.degrees,x:s.width/2,y:s.height/2}),o(t))){var c=s.width-s.height;l.translate(c/2,-c/2)}return l.drawImage(e,0,0,e.width,e.height),s}(e,r);n.next(l.toDataURL("image/jpeg",.1)),n.complete()})},t.DEFAULT_ORIENTATION=void 0;var r=n(6);function o(e){return[5,6,7,8].indexOf(e)>-1}function i(e,t,n){var r=e.getContext("2d");r.translate(t?e.width:0,n?e.height:0),r.scale(t?-1:1,n?-1:1)}var a=[{op:"none",degrees:0},{op:"flip-x",degrees:0},{op:"none",degrees:180},{op:"flip-y",degrees:0},{op:"flip-x",degrees:90},{op:"none",degrees:90},{op:"flip-x",degrees:-90},{op:"none",degrees:-90}],s=["top-left","top-right","bottom-right","bottom-left","left-top","right-top","right-bottom","left-bottom"];t.DEFAULT_ORIENTATION="top-left";var u=120},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUploadEvent=i,t.createInitialUploadEvent=function(e){return i([(0,o.set)({progress:2,initiated:(new Date).toISOString(),file:{name:e.name,type:e.type}},[r.UPLOAD_STATUS_KEY])])},t.CLEANUP_EVENT=void 0;n(1372);var r=n(302),o=n(89);function i(){return{type:"uploadEvent",patches:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}}var a=i([(0,o.unset)([r.UPLOAD_STATUS_KEY])]);t.CLEANUP_EVENT=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFormBuilder=function(){throw new Error("The factory function createFormBuilder(...) has been removed. Please use instead")},Object.defineProperty(t,"FormBuilder",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"FormBuilderContext",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"BlockEditor",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"ReferenceInput",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"FileInput",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"ImageInput",{enumerable:!0,get:function(){return u.default}});var r=l(n(1376)),o=l(n(282)),i=l(n(304)),a=l(n(537)),s=l(n(1538)),u=l(n(1549));function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1400))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";n.d(t,"e",function(){return D}),n.d(t,"i",function(){return I}),n.d(t,"f",function(){return N}),n.d(t,"d",function(){return R}),n.d(t,"c",function(){return F}),n.d(t,"g",function(){return L}),n.d(t,"h",function(){return B}),n.d(t,"a",function(){return z}),n.d(t,"b",function(){return W});var r=n(1410),o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=void 0;if(r.a){var a=!0,s=!1,u=void 0;try{for(var l,c=[["edge",/Edge\/([0-9\._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+)\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["android",/Android\s([0-9\.]+)/],["safari",/Version\/([0-9\._]+).*Safari/]][Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var f=l.value,d=o(f,2),p=d[0];if(d[1].test(window.navigator.userAgent)){i=p;break}}}catch(e){s=!0,u=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw u}}}var h=void 0;if(r.a){var v=!0,m=!1,y=void 0;try{for(var g,b=[["ios",/os ([\.\_\d]+) like mac os/i],["macos",/mac os x/i],["android",/android/i],["firefoxos",/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/i],["windows",/windows\s*(?:nt)?\s*([\.\_\d]+)/i]][Symbol.iterator]();!(v=(g=b.next()).done);v=!0){var _=g.value,w=o(_,2),O=w[0];if(w[1].test(window.navigator.userAgent)){h=O;break}}}catch(e){m=!0,y=e}finally{try{!v&&b.return&&b.return()}finally{if(m)throw y}}}var k=[];if(r.a){var E=!0,S=!1,x=void 0;try{for(var C,P=[["inputeventslevel1",function(e){return"inputType"in(e.InputEvent?new e.InputEvent("input"):{})}],["inputeventslevel2",function(e){var t=e.document.createElement("div");return t.contentEditable=!0,"onbeforeinput"in t}]][Symbol.iterator]();!(E=(C=P.next()).done);E=!0){var j=C.value,M=o(j,2),T=M[0];(0,M[1])(window)&&k.push(T)}}catch(e){S=!0,x=e}finally{try{!E&&P.return&&P.return()}finally{if(S)throw x}}}var A=[[/^9([.]0|)/,28],[/^8[.]1/,27],[/^8([.]0|)/,26],[/^7[.]1/,25],[/^7([.]0|)/,24],[/^6([.]0|)/,23],[/^5[.]1/,22],[/^5([.]0|)/,21],[/^4[.]4/,20]];var D="firefox"===i,I="safari"===i,N="ie"===i,R="edge"===i,F="android"===h,L="ios"===h,B="macos"===h,z=function(){if("android"!==h)return null;var e=window.navigator.userAgent.match(/Android\s([0-9\.]+)/);if(null==e)return null;var t=e[1],n=!0,r=!1,i=void 0;try{for(var a,s=A[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value,l=o(u,2),c=l[0],f=l[1];if(t.match(c))return f}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return null}(),W=(k.includes("inputeventslevel1"),k.includes("inputeventslevel2")||F&&(28===z||null===z))},function(e,t,n){"use strict";t.atob=self.atob.bind(self),t.btoa=self.btoa.bind(self)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(205),o=(n.n(r),n(525)),i={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z"},a={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},s={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:"ctrl+y"},u={},l=o.g||o.h,c=!l;[].concat(Object.keys(i)).concat(Object.keys(a)).concat(Object.keys(s)).forEach(function(e){var t="is"+e[0].toUpperCase()+e.slice(1);if(!u[t]){var n=i[e],o=a[e],f=s[e],d=n&&Object(r.isKeyHotkey)(n),p=o&&Object(r.isKeyHotkey)(o),h=f&&Object(r.isKeyHotkey)(f);u[t]=function(e){return!(!d||!d(e))||(!!(l&&p&&p(e))||!!(c&&h&&h(e)))}}}),t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t.filterDescendants(t=>{if("inline"!==t.object)return!1;var n=t.data.get("annotations");return!!n&&Object.keys(n).find(t=>n[t]._key===e)}).get(0)};n(18)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.key||(0,o.randomKey)(12),r={_key:n,_type:"block",children:[{_type:"span",_key:"".concat(n,"0"),text:"",marks:[]}],style:t.style||"normal"};return(0,i.default)([(0,o.normalizeBlock)(r)],e.types.block).document.nodes.first()};var r,o=n(29),i=(r=n(309))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).decorators||[];return{onKeyDown(t,n,r){var u;if(o(t))u="strong";else if(i(t))u="em";else if(a(t))u="underline";else{if(!s(t))return r();u="code"}return e.includes(u)?(t.preventDefault(),n.toggleMark(u)):r()}}},t.keyMaps=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(205));var o=(0,r.default)("mod+b"),i=(0,r.default)("mod+i"),a=(0,r.default)("mod+u"),s=(0,r.default)("mod+'"),u=(0,r.toKeyName)("mod"),l={strong:"".concat(u," + b"),em:"".concat(u," + i"),underline:"".concat(u," + u"),code:"".concat(u," + '")};t.keyMaps=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.map(e=>e.type).every(e=>r.includes(e))};var r=["insert_text","remove_text"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),o=n(526);n.n(o);function i(e){var t=JSON.stringify(e);return Object(o.btoa)(encodeURIComponent(t))}function a(e){var t=decodeURIComponent(Object(o.atob)(e));return JSON.parse(t)}var s={deserialize:function(e,t){var n=a(e);return r.Value.fromJSON(n,t)},deserializeNode:function(e,t){var n=a(e);return r.Node.fromJSON(n,t)},serialize:function(e,t){return i(e.toJSON(t))},serializeNode:function(e,t){return i(e.toJSON(t))}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.style,n=e.styleComponent;if(n){var s=n;return r.default.createElement(s,null,e.children)}if(u.includes(t))return r.default.createElement(i.default,{style:t},e.children);if("blockquote"===t)return r.default.createElement(o.default,null,e.children);return r.default.createElement(a.default,null,e.children)};var r=s(n(0)),o=s(n(1459)),i=s(n(1461)),a=s(n(1463));function s(e){return e&&e.__esModule?e:{default:e}}var u=["h1","h2","h3","h4","h5","h6"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform);t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.icon,n=e.active,r={width:"1em",height:"1em",backgroundImage:"url(".concat(t,")"),borderRadius:"inherit",backgroundOrigin:"content-box",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",transform:"scale(0.7)",filter:n?"invert(100%)":"invert(0%)"};return o.default.createElement("div",{style:r})};var r,o=(r=n(0))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1491))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(1528))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=new Array(e),n=0;na(e))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(1540));function o(e){return e&&e.__esModule?e:{default:e}}var i=(0,o(n(405)).default)(r.default,{displayName:"FileInputButton"});t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.reference,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["reference"]),i=function(e){return e&&e._ref}(t);return i?r.default.createElement(o.default,a({},n,{documentId:i})):null};var r=i(n(0)),o=i(n(1545));n(318);function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(1559)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(t,n(56))},function(e,t,n){e.exports=n(1566)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WithReferringDocuments=void 0;var r,o=(r=n(319))&&r.__esModule?r:{default:r},i=n(141),a=n(6),s=n(4);function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e){for(var t=1;te.pipe((0,s.distinctUntilChanged)((e,t)=>e.id===t.id),(0,s.switchMap)(e=>(0,a.concat)((0,a.of)(l({},e,{referringDocuments:[],isLoading:!0})),o.default.query("*[references($docId)] [0...101]",{docId:e.id}).pipe((0,s.map)(t=>l({},e,{referringDocuments:t.documents,isLoading:!1})))))),e=>{return(0,e.children)(u(e,["children"]))});t.WithReferringDocuments=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new a(e).parse()};o(n(57));var r=o(n(1580));function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class a{constructor(e){i(this,"tokens",void 0),i(this,"length",void 0),i(this,"i",void 0),this.tokens=(0,r.default)(e),this.length=this.tokens.length,this.i=0}parse(){return this.parsePath()}EOF(){return this.i>=this.length}peek(){return this.EOF()?null:this.tokens[this.i]}consume(){var e=this.peek();return this.i+=1,e}probe(e){var t=this.peek();return t?Object.keys(e).find(n=>{var r=e[n];return!t[n]||t[n]!=r})?null:t:null}match(e){return this.probe(e)?this.consume():null}parseAttribute(){var e=this.match({type:"identifier"});if(e)return{type:"attribute",name:e.name};var t=this.match({type:"quoted",quote:"single"});return t?{type:"attribute",name:t.value}:null}parseAlias(){return this.match({type:"keyword",symbol:"@"})||this.match({type:"keyword",symbol:"$"})?{type:"alias",target:"self"}:null}parseNumber(){var e=this.match({type:"number"});return e?{type:"number",value:e.value}:null}parseNumberValue(){var e=this.parseNumber();return e?e.value:null}parseSliceSelector(){var e=this.i,t={type:"range"};return t.start=this.parseNumberValue(),this.match({type:"operator",symbol:":"})?(t.end=this.parseNumberValue(),this.match({type:"operator",symbol:":"})&&(t.step=this.parseNumberValue()),null===t.start&&null===t.end?(this.i=e,null):t):null!==t.start?{type:"index",value:t.start}:(this.i=e,null)}parseValueReference(){return this.parseAttribute()||this.parseSliceSelector()}parseLiteralValue(){var e=this.match({type:"quoted",quote:"double"});if(e)return{type:"string",value:e.value};var t=this.match({type:"boolean"});return t?{type:"boolean",value:"true"==t.symbol}:this.parseNumber()}parseFilterExpression(){var e=this.i,t=this.parseAttribute()||this.parseAlias();if(!t)return null;if(this.match({type:"operator",symbol:"?"}))return{type:"constraint",operator:"?",lhs:t};var n=this.match({type:"comparator"});if(!n)return this.i=e,null;var r=t,o=this.parseLiteralValue();if(!o)throw new Error("Operator ".concat(n.symbol," needs a literal value at the right hand side"));return{type:"constraint",operator:n.symbol,lhs:r,rhs:o}}parseExpression(){return this.parseFilterExpression()||this.parseValueReference()}parseUnion(){if(!this.match({type:"paren",symbol:"["}))return null;for(var e=[],t=this.parseFilterExpression()||this.parsePath()||this.parseValueReference();t&&(e.push(t),!this.match({type:"paren",symbol:"]"}));){if(!this.match({type:"operator",symbol:","}))throw new Error("Expected ]");if(!(t=this.parseFilterExpression()||this.parsePath()||this.parseValueReference()))throw new Error("Expected expression following ','")}return{type:"union",nodes:e}}parseRecursive(){if(this.match({type:"operator",symbol:".."})){var e=this.parsePath();if(!e)throw new Error("Expected path following '..' operator");return{type:"recursive",term:e}}return null}parsePath(){var e=[],t=this.parseAttribute()||this.parseUnion()||this.parseRecursive();if(!t)return null;for(e.push(t);!this.EOF();)if(this.match({type:"operator",symbol:"."})){var n=this.parseAttribute();if(!n)throw new Error("Expected attribute name following '.");e.push(n)}else{if(!this.probe({type:"paren",symbol:"["})){var r=this.parseRecursive();r&&e.push(r);break}var o=this.parseUnion();if(!o)throw new Error("Expected union following '['");e.push(o)}return 1==e.length?e[0]:{type:"path",nodes:e}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=[],r=i.Matcher.fromPath(e).setPayload(e=>{n.push(...e)}),a=new o.default(t);return function e(t,n){var r=t.match(n),o=r.leads,i=r.delivery;o.forEach(t=>{s(t.target,n).forEach(n=>{e(t.matcher,n)})}),i&&i.targets.forEach(e=>{i.payload(s(e,n))})}(r,a),n};var r=a(n(323)),o=a(n(1585)),i=n(321);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=[];if(e.isIndexReference())e.toIndicies(t).forEach(e=>{n.push(t.getIndex(e))});else if(e.isAttributeReference())n.push(t.getAttribute(e.name()));else{if(!e.isSelfReference())throw new Error("Unable to derive accessor for target ".concat(e.toString()));n.push(t)}return(0,r.default)(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e,t).map(e=>({path:e.path,value:e.get()}))};var r,o=(r=n(547))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.reduce((e,t,n)=>e+function(e,t){var n=typeof e;if("number"===n)return"[".concat(e,"]");if("object"===n&&null!=e)return Object.keys(e).map(t=>{var n=e[t];return"[".concat(t,'=="').concat(n,'"]')}).join("");if(r.test(e))return t?e:".".concat(e);return"['".concat(e,"']")}(t,0===n),"")};var r=/^[a-z_$]+/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Patcher",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"ImmutableAccessor",{enumerable:!0,get:function(){return o.default}});var r=i(n(1586)),o=i(n(553));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(81);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o{e.isIndexReference()&&n.push(...e.toIndicies(t))}),n.sort()}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class o{constructor(e,t){r(this,"_value",void 0),r(this,"path",void 0),this._value=e,this.path=t||[]}containerType(){return Array.isArray(this._value)?"array":null!==this._value&&"object"==typeof this._value?"object":"primitive"}get(){return this._value}length(){if("array"!==this.containerType())throw new Error("Won't return length of non-indexable _value");return this._value.length}getIndex(e){return"array"===this.containerType()&&(e>=this.length()?null:new o(this._value[e],this.path.concat(e)))}hasAttribute(e){return"object"===this.containerType()&&this._value.hasOwnProperty(e)}attributeKeys(){return"object"!==this.containerType()?[]:Object.keys(this._value)}getAttribute(e){if("object"!==this.containerType())throw new Error("getAttribute only applies to plain objects");return this.hasAttribute(e)?new o(this._value[e],this.path.concat(e)):null}set(e){return e===this._value?this:new o(e,this.path)}setAccessor(e){return e}setIndex(e,t){if(t===this._value[e])return this;var n=this._value.slice();return n[e]=t,new o(n,this.path)}setIndexAccessor(e,t){return this.setIndex(e,t.get())}unsetIndices(e){for(var t=this._value.length,n=[],r=0;r{this.pendingSuccessfullySubmitted(n),this.updateConsistencyFlag()},failure:()=>{this.pendingFailed(n),this.updateConsistencyFlag()}}}isConsistent(){return!this.inconsistentAt}considerIncoming(){var e,t=!1;if(this.HEAD){var n=new Date(this.HEAD._updatedAt);this.incoming.find(e=>e.timestamp&&e.timestampe.timestampe.previousRev==this.HEAD._rev):this.incoming.find(e=>e.appliesToMissingDocument())){var o=this.applyIncoming(e);if(t=t||o,r++>10)throw new Error("Mutator stuck flushing incoming mutations. Probably stuck here: ".concat(JSON.stringify(e)))}}while(e);this.incoming.length>0&&i.default.enabled&&(0,i.default)("Unable to apply mutations %s",this.incoming.map(e=>e.transactionId).join(", ")),t&&this.rebase()}updateConsistencyFlag(){var e=this.isConsistent(),t=0==this.pending.length&&0==this.submitted.length&&0==this.incoming.length;t?this.inconsistentAt=null:this.inconsistentAt||(this.inconsistentAt=new Date),e!=t&&this.onConsistencyChanged&&(t?(0,i.default)("Buffered document is inconsistent"):(0,i.default)("Buffered document is consistent"),this.onConsistencyChanged(t))}applyIncoming(e){if(!e)return!1;if((0,i.default)("Applying mutation %s -> %s to rev %s",e.previousRev,e.resultRev,this.HEAD&&this.HEAD._rev),this.HEAD=e.apply(this.HEAD),this.incoming=this.incoming.filter(t=>t.transactionId!=e.transactionId),this.anyUnresolvedMutations()){var t=this.consumeUnresolved(e.transactionId);return i.default.enabled&&((0,i.default)("Incoming mutation ".concat(e.transactionId," appeared while there were pending or submitted local mutations")),(0,i.default)("Submitted txnIds: ".concat(this.submitted.map(e=>e.transactionId).join(", "))),(0,i.default)("Pending txnIds: ".concat(this.pending.map(e=>e.transactionId).join(", "))),(0,i.default)("needRebase == %s",t)),t}return(0,i.default)("Remote mutation %s arrived w/o any pending or submitted local mutations",e.transactionId),this.EDGE=this.HEAD,this.onMutation&&this.onMutation({mutation:e,document:this.EDGE,remote:!0}),!1}anyUnresolvedMutations(){return this.submitted.length>0||this.pending.length>0}consumeUnresolved(e){if(0==this.submitted.length&&0==this.pending.length)return!1;if(0!=this.submitted.length){if(this.submitted[0].transactionId==e)return(0,i.default)("Remote mutation %s matches upcoming submitted mutation, consumed from 'submitted' buffer",e),this.submitted.shift(),!1}else if(this.pending.length>0&&this.pending[0].transactionId==e)return(0,i.default)("Remote mutation %s matches upcoming pending mutation, consumed from 'pending' buffer",e),this.pending.shift(),!1;return(0,i.default)("The mutation was not the upcoming mutation, scrubbing. Pending: %d, Submitted: %d",this.pending.length,this.submitted.length),this.submitted=this.submitted.filter(t=>t.transactionId!=e),this.pending=this.pending.filter(t=>t.transactionId!=e),(0,i.default)("After scrubbing: Pending: %d, Submitted: %d",this.pending.length,this.submitted.length),!0}pendingSuccessfullySubmitted(e){if(0!=this.pending.length)if(this.pending[0].transactionId!=e){var t,n=[];this.pending.forEach(r=>{r.transactionId!=e?n.push(r):t=r}),this.submitted.push(t),this.pending=n,this.rebase()}else this.submitted.push(this.pending.shift())}pendingFailed(e){this.pending=this.pending.filter(t=>t.transactionId!=e),this.rebase()}rebase(){var e=this.EDGE;this.EDGE=o.default.applyAll(this.HEAD,this.submitted.concat(this.pending)),null!==e&&null!==this.EDGE&&(e._rev=this.EDGE._rev),!(0,r.default)(this.EDGE,e)&&this.onRebase&&this.onRebase(this.EDGE)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};var i={vectorEffect:"non-scaling-stroke"},a=()=>o.default.createElement("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"1em",height:"1em"},o.default.createElement("circle",{cx:"12.5",cy:"6.5",r:"1.5",fill:"currentColor",style:i}),o.default.createElement("circle",{cx:"12.5",cy:"12.5",r:"1.5",fill:"currentColor",style:i}),o.default.createElement("circle",{cx:"12.5",cy:"18.5",r:"1.5",fill:"currentColor",style:i}));t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWeightedSearch=function(e,t){var n=e.map(e=>({typeName:e.name,paths:e.__experimental_search.map(e=>({weight:e.weight,path:(0,f.joinPath)(e.path)}))})),r=y(n.map(e=>e.paths.map(e=>e.path))),i=n.map(e=>'_type == "'.concat(e.typeName,'" => {').concat(e.paths.map((e,t)=>'"w'.concat(t,'": ').concat(e.path)),"}"));return function(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=(0,a.default)((0,l.default)((0,h.tokenize)((0,u.default)(e)))),v=f.map((e,t)=>r.map(e=>"".concat(e," match $t").concat(t))).filter(e=>e.length>0),y=["_type in $types",!1===s.includeDrafts&&"!(_id in path('drafts.**'))",...v.map(e=>"(".concat(e.join("||"),")"))].filter(Boolean),b=i.length>0?"...select(".concat(i.join(",\n"),")"):"",_="*[".concat(y.join("&&"),"][0...$limit]{_type, _id, ").concat(b,"}");return t.observable.fetch(_,function(e){for(var t=1;te.typeName),limit:1e3})).pipe((0,c.map)(d.removeDupes),(0,c.map)(e=>(0,p.applyWeights)(n,e,f)),(0,c.map)(e=>(0,o.default)(e,e=>-e.score)),(0,c.map)(e=>e.slice(0,100)))}};var r=v(n(557)),o=v(n(191)),i=v(n(1614)),a=v(n(57)),s=v(n(23)),u=v(n(560)),l=v(n(323)),c=n(4),f=n(1621),d=n(561),p=n(1622),h=n(1623);function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=(0,i.default)([s.default,r.default,l.default]),g=e=>e.reduce((e,t,n)=>(e["t".concat(n)]="".concat(t,"*"),e),{})},function(e,t,n){var r=n(129),o=n(108),i=n(183),a=n(131),s=o(function(e){return i(r(e,1,a,!0))});e.exports=s},function(e,t,n){var r=n(1616),o=n(273),i=r?function(e){return r.get(e)}:o;e.exports=i},function(e,t,n){var r=n(1617),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],i=o.call(r,t)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==e)return a.name}return t}},function(e,t,n){var r=n(55);e.exports=function(e){return r(e).toLowerCase()}},function(e,t,n){"use strict";function r(e){for(var t=1;te._id).filter(a);return e.filter(e=>{var n=s(e._id),r=u(e._id),o=t.includes(n),i=e._id===r;return!i||!o})},t.DRAFTS_FOLDER=void 0;t.DRAFTS_FOLDER="drafts";var i="".concat("drafts",".");function a(e){return e.startsWith(i)}function s(e){return a(e)?e:i+e}function u(e){return a(e)?e.slice(i.length):e}},function(e,t,n){"use strict";function r(e){if(e&&"object"==typeof e&&(Object.keys(e).length<=2&&"value"in e))return!0;return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacyOptionsItem=r,t.resolveValueWithLegacyOptionsSupport=function(e){return r(e)?e.value:e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){switch(e.jsonType){case"string":return"";case"number":return 0;case"boolean":return!1;default:return}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),o=s(n(0)),i=s(n(1639)),a=s(n(138));function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends o.default.Component{constructor(){super(...arguments),c(this,"handleChange",e=>{this.props.onChange(this.props.items[e.target.value])}),c(this,"setInput",e=>{this._input=e})}focus(){this._input&&this._input.focus()}render(){var e=this.props,t=(e.hasError,e.items),n=e.value,r=e.disabled,s=e.hasFocus,c=e.readOnly,f=l(e,["hasError","items","value","disabled","hasFocus","readOnly"]);return o.default.createElement("div",{className:"\n ".concat(r||c?i.default.disabled:"","\n ").concat(s?i.default.hasFocus:i.default.root,"\n ")},o.default.createElement("select",u({},f,{className:i.default.select,onChange:this.handleChange,disabled:r||c,value:n&&t.indexOf(n)||"",autoComplete:"off",ref:this.setInput}),!n&&o.default.createElement("option",null),t.length&&t.map((e,t)=>o.default.createElement("option",{key:t,value:t},e.title))),o.default.createElement("div",{className:i.default.functions},o.default.createElement("span",{className:i.default.arrow},o.default.createElement(a.default,{color:"inherit"}))))}}t.default=f,c(f,"propTypes",{onChange:r.default.func,value:r.default.object,hasError:r.default.bool,onFocus:r.default.func,onBlur:r.default.func,hasFocus:r.default.bool,disabled:r.default.bool,readOnly:r.default.bool,items:r.default.arrayOf(r.default.shape({title:r.default.string}))}),c(f,"defaultProps",{onChange(){},onBlur(){},onFocus(){},readOnly:!1,hasError:!1,hasFocus:!1,value:{},items:[]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),o=s(n(0)),i=s(n(1640)),a=s(n(1641));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends o.default.Component{constructor(){super(...arguments),u(this,"state",{focusedItem:null}),u(this,"handleRadioChange",e=>{this.props.onChange(e)}),u(this,"handleFocus",e=>{this.setState({focusedItem:e})}),u(this,"handleBlur",()=>{this.setState({focusedItem:null})})}focus(){}render(){var e=this.props,t=e.items,n=e.value,r=e.name,s=e.direction,u=e.readOnly,l=this.state.focusedItem;return o.default.createElement("div",{className:"\n ".concat("vertical"==s?i.default.vertical:i.default.horizontal,"\n ")},o.default.createElement("div",{className:i.default.radioContainer},t.map((e,t)=>o.default.createElement("div",{className:i.default.item,key:t},o.default.createElement(a.default,{disabled:u,name:r,label:e.title,item:e,onChange:this.handleRadioChange,checked:n===e,onFocus:this.handleFocus,onBlur:this.handleBlur,hasFocus:l===e})))))}}t.default=l,u(l,"propTypes",{name:r.default.string,direction:r.default.oneOf(["horizontal","vertical"]),onChange:r.default.func,value:r.default.object,readOnly:r.default.bool,items:r.default.arrayOf(r.default.shape({title:r.default.string}))}),u(l,"defaultProps",{onChange(){}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkout=function(e){c||(console.warn("[deprecation] The checkout() function has been deprecated in favor of checkoutPair()"),c=!0);return l(o.default.checkout(e))},t.checkoutPair=function(e){var t=o.default.checkoutPair(e),n=t.draft,r=t.published;return{draft:l(n),published:l(r)}};var r,o=(r=n(319))&&r.__esModule?r:{default:r},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1646)),a=n(4);function s(e){for(var t=1;t"mutation"===e.type?function(e){var t=e.mutations.map(e=>e.patch).filter(Boolean);return s({},e,{patches:i.toFormBuilder(e.origin,t)})}(e):"rebase"===e.type?function(e){var t=[{id:e.document._id,set:e.document}];return{type:"mutation",document:e.document,mutations:t.map(e=>({patch:e})),patches:i.toFormBuilder("internal",t)}}(e):e),(0,a.scan)((e,t)=>{return s({},t,{deletedSnapshot:e&&"mutation"===t.type&&null!==e.document&&null===t.document?e.document:null})},null));return s({},e,{events:t,patch(t){e.patch(i.toGradient(t))}})}var c=!1},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toGradient=function(e){return(0,r.arrayToJSONMatchPath)(e)},t.toFormBuilder=function(e){return t=e,t.split(/[[.\]]/g).filter(Boolean).map(e=>e.includes("==")?function(e){var t,n,r,o=(t=e.split("=="),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),i=o[0],a=o[1];return{[i]:(r=a,r.replace(/^['"]/,"").replace(/['"]$/,""))}}(e):function(e){return o.test(e)?Number(e):e}(e));var t};var r=n(320);var o=/^\d+$/},function(e,t){e.exports={tabs:"MarkdownInput_tabs_33pTY",tab:"MarkdownInput_tab_20lJV",activeTab:"MarkdownInput_activeTab_pE4OA MarkdownInput_tab_20lJV",previewFocusTarget:"MarkdownInput_previewFocusTarget_3OzGu",preview:"MarkdownInput_preview_21DkE"}},function(e,t){e.exports={actionButtons:"Controls_actionButtons_X6aNl",staticActionButtons:"Controls_staticActionButtons_UDP10",button:"Controls_button_2CLPl",buttonGroupStart:"Controls_buttonGroupStart_34ntN Controls_button_2CLPl"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1672);Object.defineProperty(t,"Alpha",{enumerable:!0,get:function(){return f(r).default}});var o=n(328);Object.defineProperty(t,"Checkboard",{enumerable:!0,get:function(){return f(o).default}});var i=n(1683);Object.defineProperty(t,"EditableInput",{enumerable:!0,get:function(){return f(i).default}});var a=n(1684);Object.defineProperty(t,"Hue",{enumerable:!0,get:function(){return f(a).default}});var s=n(1686);Object.defineProperty(t,"Raised",{enumerable:!0,get:function(){return f(s).default}});var u=n(1691);Object.defineProperty(t,"Saturation",{enumerable:!0,get:function(){return f(u).default}});var l=n(1693);Object.defineProperty(t,"ColorWrap",{enumerable:!0,get:function(){return f(l).default}});var c=n(1697);function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Swatch",{enumerable:!0,get:function(){return f(c).default}})},function(e,t,n){var r=n(68);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(130),o=n(128);e.exports=function(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(108),o=n(481);e.exports=function(e){return r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r=128?"#000":"#fff"},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}};t.default=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(38),o=n(1706),i=n(213),a=n(331),s=n(51);function u(){}t.GenericListBuilder=class{constructor(){this.spec={}}id(e){return this.clone({id:e})}getId(){return this.spec.id}title(e){return this.clone({title:e,id:this.spec.id||r.camelCase(e)})}getTitle(){return this.spec.title}defaultLayout(e){return this.clone({defaultLayout:e})}getDefaultLayout(){return this.spec.defaultLayout}menuItems(e){return this.clone({menuItems:e})}getMenuItems(){return this.spec.menuItems}menuItemGroups(e){return this.clone({menuItemGroups:e})}getMenuItemGroups(){return this.spec.menuItemGroups}child(e){return this.clone({child:e})}getChild(){return this.spec.child}canHandleIntent(e){return this.clone({canHandleIntent:e})}getCanHandleIntent(){return this.spec.canHandleIntent}showIcons(e){return this.clone({displayOptions:Object.assign({},this.spec.displayOptions||{},{showIcons:e})})}getShowIcons(){return this.spec.displayOptions?this.spec.displayOptions.showIcons:void 0}serialize(e={path:[]}){const t=this.spec.id||"",n=e.path,r=this.spec.defaultLayout;if(r&&!o.layoutOptions.includes(r))throw new s.SerializeError(`\`layout\` must be one of ${o.layoutOptions.map(e=>`"${e}"`).join(", ")}`,n,t||e.index,this.spec.title);return{id:t,title:this.spec.title,type:"genericList",defaultLayout:r,child:this.spec.child||u,canHandleIntent:this.spec.canHandleIntent,displayOptions:this.spec.displayOptions,menuItems:(this.spec.menuItems||[]).map((e,t)=>i.maybeSerializeMenuItem(e,t,n)),menuItemGroups:(this.spec.menuItemGroups||[]).map((e,t)=>a.maybeSerializeMenuItemGroup(e,t,n))}}clone(e){return new this.constructor}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(181);t.getPlusIcon=(()=>r.default(n(330))),t.getSortIcon=(()=>r.default(n(1708))),t.getListIcon=(()=>r.default(n(140))),t.getDetailsIcon=(()=>r.default(n(1710)))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ORDER_BY_UPDATED_AT={title:"Last edited",name:"updatedAt",by:[{field:"_updatedAt",direction:"desc"}]},t.ORDER_BY_CREATED_AT={title:"Created",name:"createdAt",by:[{field:"_createdAt",direction:"desc"}]},t.DEFAULT_SELECTED_ORDERING_OPTION=t.ORDER_BY_UPDATED_AT,t.DEFAULT_ORDERING_OPTIONS=[t.ORDER_BY_UPDATED_AT,t.ORDER_BY_CREATED_AT]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(38),o=n(51),i=n(213),a=n(331);class s{constructor(e){this.spec=e||{}}id(e){return this.clone({id:e})}getId(){return this.spec.id}title(e){return this.clone({title:e,id:this.spec.id||r.camelCase(e)})}getTitle(){return this.spec.title}component(e){return this.clone({component:e,id:this.spec.id||(t=e,"string"==typeof t.displayName?t.displayName:t.name)});var t}getComponent(){return this.spec.component}menuItems(e){return this.clone({menuItems:e})}getMenuItems(){return this.spec.menuItems}menuItemGroups(e){return this.clone({menuItemGroups:e})}getMenuItemGroups(){return this.spec.menuItemGroups}serialize(e={path:[]}){const{id:t,title:n,component:r}=this.spec;if(!t)throw new o.SerializeError("`id` is required for `component` structure item",e.path,e.index).withHelpUrl(o.HELP_URL.ID_REQUIRED);if(!r)throw new o.SerializeError("`component` is required for `component` structure item",e.path,e.index).withHelpUrl(o.HELP_URL.ID_REQUIRED);return{id:t,title:n,type:"component",component:r,menuItems:(this.spec.menuItems||[]).map((t,n)=>i.maybeSerializeMenuItem(t,n,e.path)),menuItemGroups:(this.spec.menuItemGroups||[]).map((t,n)=>a.maybeSerializeMenuItemGroup(t,n,e.path))}}clone(e){const t=new s;return t.spec=Object.assign({},this.spec,e||{}),t}}t.ComponentBuilder=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1712),o=n(270),i=n(1713),a=n(577),s=n(213),u=n(578),l=n(180),c=n(146),f=n(1715),d=n(1716),p=a.getPlusIcon(),h=a.getListIcon(),v=a.getDetailsIcon(),m=r.default(i.dataAspects);function y(e,t=o.defaultSchema){const n=t.get(e);if(!n)throw new Error(`Schema type with name "${e}" not found`);const r=m(t).getDisplayName(e);return(new l.ListItemBuilder).id(e).title(r).schemaType(n).child(g(e,t))}function g(e,n=o.defaultSchema){const r=n.get(e);if(!r)throw new Error(`Schema type with name "${e}" not found`);const i=m(n).getDisplayName(e),a=function(e){const t=e.preview;return Boolean(t&&(t.prepare||t.select&&t.select.media))}(r),l=f.isActionEnabled(r,"create"),y=(t,n)=>Boolean("edit"===t&&n&&n.id&&n.type===e)||Boolean("create"===t&&n&&n.type===e);return y.identity=t.DEFAULT_INTENT_HANDLER,(new d.DocumentTypeListBuilder).id(e).title(i).filter("_type == $type").params({type:e}).schemaType(r).showIcons(a).defaultOrdering(u.DEFAULT_SELECTED_ORDERING_OPTION.by).menuItemGroups([{id:"sorting",title:"Sort"},{id:"layout",title:"Layout"},{id:"actions",title:"Actions"}]).child(e=>(new c.EditorBuilder).id("editor").schemaType(r).documentId(e)).canHandleIntent(y).menuItems([...l?[(new s.MenuItemBuilder).title(`Create new ${i}`).icon(p).intent({type:"create",params:{type:e}}).showAsAction({whenCollapsed:!0})]:[],...s.getOrderingMenuItemsForSchemaType(r),(new s.MenuItemBuilder).group("layout").title("List").icon(h).action("setLayout").params({layout:"default"}),(new s.MenuItemBuilder).group("layout").title("Details").icon(v).action("setLayout").params({layout:"detail"}),...l?[(new s.MenuItemBuilder).group("actions").title("Create new…").icon(p).intent({type:"create",params:{type:e}})]:[]])}t.DEFAULT_INTENT_HANDLER=Symbol("Document type list canHandleIntent"),t.getDocumentTypeListItems=function(e=o.defaultSchema){return m(e).getDocumentTypes().map(t=>y(t,e))},t.getDocumentTypeListItem=y,t.getDocumentTypeList=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(133)),o=a(n(1714)),i=a(n(53));function a(e){return e&&e.__esModule?e:{default:e}}var s=["geopoint","richDate","date","sanity.imageAsset","sanity.fileAsset"],u=["sanity.imageAsset","sanity.fileAsset"];function l(e){return e.type&&"document"===e.type.name}function c(e){return u.includes(e)}var f=!1;var d=class{constructor(e){this.schema=e,this.config=Object.assign({hiddenTypes:[],typeOptions:{}},o.default||{})}getConfig(){return this.config}getField(e,t){return e.fields.filter(e=>e.name===t)}getType(e){return this.schema.get(e)}inferTypesLegacy(){return(this.schema.getTypeNames()||[]).filter(e=>!s.includes(e)&&!this.config.hiddenTypes.includes(e)&&function(e){return null!==e.type&&"object"===e.jsonType}(this.getType(e)))}getDocumentTypes(){return this.config.hiddenTypes.length>0&&(f||(f=!0,console.warn("👋 Hi there! Looks like you have hidden types configured in your studio's config/@sanity/data-aspects.json"+" This config is now obsolete and should be removed. Read more at ".concat((0,i.default)("toplevel-objects-to-document-type"))))),this.schema.getTypeNames().filter(e=>!c(e)&&l(this.schema.get(e)))}getInferredTypes(){return(e=this.schema).getTypeNames().some(t=>!c(t)&&l(e.get(t)))?this.getDocumentTypes():this.inferTypesLegacy();var e}getDisplayName(e){var t=this.config.typeOptions[e]||{},n=this.getType(e);return t.displayName||n.title||(0,r.default)(e)}getIcon(e){return this.getType(e).icon}getListConstraints(e){var t=this.config.typeOptions[e];if(!t)return"";var n=[];return t.order,(t.limit||0==t.limit)&&n.push("limit: ".concat(t.limit)),t.offset&&n.push("offset: ".concat(t.offset)),n.filter(Boolean).join(", ")}getListQuery(e){var t=e.typeName,n=e.keyForId,r=e.keyForDisplayFieldName,o=this.getItemDisplayField(t),i=this.getListConstraints(t),a='"'.concat(n,'": _id, "').concat(r,'": ').concat(o);return"".concat(this.schema.name,".").concat(t," [").concat(i,"] {").concat(a,"}")}};t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if("function"==typeof t)return e(t(...r),n,r);if((0,a.default)(t))return(0,o.from)(t).pipe((0,i.mergeMap)(t=>e(t,n,r)));if(t&&"function"==typeof t.serialize)return e(t.serialize(n));return(0,o.of)(t)};var r,o=n(6),i=n(4),a=(r=n(438))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(0)),o=c(n(1)),i=n(6),a=n(4),s=c(n(97)),u=c(n(26)),l=c(n(1734));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends r.default.PureComponent{constructor(){super(...arguments),f(this,"state",{message:"Loading…"}),f(this,"updateStatus",e=>{this.setState({message:e})})}componentDidMount(){var e,t;this.subscription=(this.props.path,e=[{ms:300,message:"Loading…"},{ms:5e3,message:"Still loading…"}],t=(0,i.of)(null),(0,i.merge)(...e.map(e=>{var n=e.ms,r=e.message;return t.pipe((0,a.mapTo)(r),(0,a.delay)(n))}))).subscribe(this.updateStatus)}componentWillUnmount(){this.subscription&&this.subscription.unsubscribe()}render(){var e=this.props,t=e.isSelected,n=e.isCollapsed,o=e.onCollapse,i=e.onExpand,a=this.state.message;return r.default.createElement(s.default,{title:" ",isScrollable:!1,isSelected:t,isCollapsed:n,onCollapse:o,onExpand:i,index:this.props.index},r.default.createElement("div",{className:l.default.root},r.default.createElement(u.default,{center:!0,message:a})))}}t.default=d,f(d,"propTypes",{isSelected:o.default.bool.isRequired,isCollapsed:o.default.bool.isRequired,onExpand:o.default.func,onCollapse:o.default.func,path:o.default.arrayOf(o.default.string),index:o.default.number}),f(d,"defaultProps",{path:[],onExpand:void 0,onCollapse:void 0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(23)),o=d(n(1729)),i=d(n(1)),a=d(n(0)),s=n(16),u=d(n(585)),l=d(n(188)),c=d(n(27)),f=d(n(1730));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=Symbol("__ungrouped__");class v extends a.default.Component{static getDerivedStateFromProps(e){var t=e.items.reduce((e,t)=>t.group?e.includes(t.group)?e:e.concat(t.group):e,(e.groups||[]).map(e=>e.id)),n=(0,o.default)(e.items,e=>e.group||h),i=void 0!==n[h]?[h].concat(t):t;return{items:(0,r.default)(i.map(e=>n[e]||[]))}}constructor(e){super(e),p(this,"handleClickOutside",e=>{var t=this.props,n=t.id,r=t.onClickOutside;n&&function(e,t){var n=e;do{if("BUTTON"===n.tagName&&n.dataset.menuButtonId===t)return!0}while(n=n.parentNode);return!1}(e.target,n)||r(e)}),p(this,"handleKeyDown",e=>{var t=this.props.router,n=this.state.focusedItem,r=this.state.items.filter(e=>!e.isDisabled),o=r.indexOf(n)||0;"Escape"===e.key&&this.props.onClose(e),"ArrowDown"===e.key&&this.setState({focusedItem:r[o0?o-1:r.length-1]}),"Enter"===e.key&&n&&(n.intent?t.navigateIntent(n.intent.type,n.intent.params):this.handleAction(e,n))}),p(this,"handleAction",(e,t)=>{e.stopPropagation(),t.intent?this.props.onClose():this.props.onAction(t)}),p(this,"handleFocus",(e,t)=>{this.setState({focusedItem:t})}),p(this,"handleKeyPress",e=>{var t=e.target.getAttribute("data-action-id");"Enter"===e.key&&this.props.onAction(this.props.items[t])}),this.state={focusedItem:null}}componentDidMount(){window.addEventListener("keydown",this.handleKeyDown,!1),window.addEventListener("resize",this.handleResize,!1)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize,!1),window.removeEventListener("keydown",this.handleKeyDown,!1)}renderGroupedItems(){var e=this.props.ripple,t=this.state,n=t.focusedItem,r=t.items;return r.map((t,o)=>{var i=r[o-1];return a.default.createElement(f.default,{key:o,item:t,ripple:e,danger:t.danger,isDisabled:t.isDisabled,isFocused:t===n,onFocus:this.handleFocus,onAction:this.handleAction,className:i&&i.group!==t.group?u.default.divider:""})})}render(){var e=this.props.className;return a.default.createElement("div",{className:(0,c.default)([u.default.root,e])},a.default.createElement("ul",{className:u.default.list},this.renderGroupedItems()))}}p(v,"propTypes",{id:i.default.string,onAction:i.default.func.isRequired,ripple:i.default.bool,className:i.default.string,onClickOutside:i.default.func,onClose:i.default.func,items:i.default.arrayOf(i.default.shape({title:i.default.node.isRequired,icon:i.default.func,intent:i.default.shape({type:i.default.string.isRequired,params:i.default.object})})),groups:i.default.arrayOf(i.default.shape({id:i.default.string.isRequired,title:i.default.string})),router:i.default.shape({navigateIntent:i.default.func.isRequired}).isRequired}),p(v,"defaultProps",{id:void 0,className:"",items:[],groups:[],ripple:!0,onClickOutside(){},onClose(){}});var m=(0,s.withRouterHOC)((0,l.default)(v));t.default=m},function(e,t){e.exports={root:"DefaultMenu_root_354i- shadows_shadow-6dp_3hP4o",list:"DefaultMenu_list_kPc6N helpers_resetList_WfyWz",item:"DefaultMenu_item_17VCr helpers_resetListItem__Z6e9 selectable_item_LB4ab",isDisabled:"DefaultMenu_isDisabled_2ij2o",focusedItem:"DefaultMenu_focusedItem_1Xrpv DefaultMenu_item_17VCr helpers_resetListItem__Z6e9 selectable_item_LB4ab selectable_selected_21Ajz selectable_item_LB4ab",iconContainer:"DefaultMenu_iconContainer_2INio",link:"DefaultMenu_link_1Kmh9",dangerLink:"DefaultMenu_dangerLink_sC_gm DefaultMenu_link_1Kmh9",divider:"DefaultMenu_divider_ZXRHA"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1740))&&r.__esModule?r:{default:r}).default.forNamespace("desk-tool");t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var r=p(n(1)),o=p(n(0)),i=p(n(39)),a=n(52),s=p(n(1749)),u=p(n(199)),l=p(n(1751)),c=p(n(1756)),f=p(n(1757)),d=p(n(1758));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){var t,n=e.id,r=e.getLinkState,p=e.isSelected,h=e.schemaType,v=e.layout,m=e.icon,y=e.value,g="card"===v||"media"===v,b=h&&h.name&&i.default.get(h.name);return t=y&&y._id?b?o.default.createElement(l.default,{icon:(0,c.default)(m,h,u.default),layout:v,schemaType:h,value:y}):o.default.createElement(f.default,{value:y}):o.default.createElement(a.SanityDefaultPreview,{icon:(0,c.default)(m,h,s.default),layout:v,value:y}),o.default.createElement(d.default,{linkState:r(n),isSelected:p,layout:v,useGrid:g},t)}h.propTypes={id:r.default.string.isRequired,getLinkState:r.default.func.isRequired,layout:r.default.string,isSelected:r.default.bool,icon:r.default.oneOfType([r.default.bool,r.default.func]),value:r.default.shape({_id:r.default.string,_type:r.default.string,title:r.default.string,subtitle:r.default.string,media:r.default.oneOfType([r.default.node,r.default.func])}),schemaType:r.default.shape({name:r.default.string,icon:r.default.func})},h.defaultProps={layout:"default",icon:void 0,value:null,isSelected:!1,schemaType:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(1754))&&r.__esModule?r:{default:r}},function(e,t){e.exports={itemStatus:"ItemStatus_itemStatus_qz9UQ",selectedItem:"ItemStatus_selectedItem_2Tqpj"}},function(e,t){e.exports=[]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i,a=l(n(1)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),u=l(n(1784));function l(e){return e&&e.__esModule?e:{default:e}}class c extends s.default.PureComponent{render(){var e=this.props.keys;return e&&0!==e.length?s.default.createElement("span",{className:u.default.root},e.map((t,n)=>s.default.createElement(s.Fragment,{key:t},s.default.createElement("span",{className:u.default.key},t),n{var o=n.isLoading,i=n.referringDocuments;return r.default.createElement(e,s({},t,{referringDocuments:i,isCheckingReferringDocuments:o}))};return t.published?r.default.createElement(i.WithReferringDocuments,{id:t.published._id},n):n({referringDocuments:[],isLoading:!1})}return t.displayName="enhanceWithReferringDocuments(".concat(e.displayName||e.name,")"),t.propTypes={published:o.default.object},t};var r=a(n(0)),o=a(n(1)),i=n(545);function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t{var t=l.default.get(e._type);return r.default.createElement(i.Item,{className:a.default.item,key:e._id},t?r.default.createElement(u.IntentLink,{className:a.default.link,intent:"edit",params:{id:e._id,type:e._type}},r.default.createElement(s.default,{value:e,type:t})):r.default.createElement("div",null,"A document of the unknown type ",r.default.createElement("em",null,e._type)))}))}f.propTypes={documents:o.default.arrayOf(o.default.shape({_id:o.default.string,_type:o.default.string}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(20)),o=m(n(1)),i=m(n(0)),a=n(6),s=n(4);n(1789);var u=m(n(1790)),l=m(n(1791)),c=m(n(32)),f=m(n(565)),d=m(n(1805)),p=m(n(586)),h=n(141),v=m(n(215));function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var b=(0,d.default)(1e3);function _(e,t){var n=b.get(e);return void 0===n?(b.set(e,Array.isArray(t)||(0,r.default)(t)),_(e,t)):n}function w(e){var t=e.path,n=b.get(t);void 0!==n&&b.set(t,!n)}function O(e){var t=window.getSelection();t.removeAllRanges();var n=document.createRange();n.selectNodeContents(e),t.addRange(n)}function k(e){O(e.currentTarget)}function E(e){65===e.keyCode&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),O(e.currentTarget))}var S={id:"parsed",title:"Parsed"},x={id:"raw",title:"JSON"},C=[S,x],P=p.default.forKey("inspect-view-preferred-view-mode");function j(e){var t=e.value,n=e.viewMode,r=e.onClose,o=e.onViewModeChange;return i.default.createElement(c.default,{showHeader:!0,title:i.default.createElement("span",null,"Inspecting"," ",i.default.createElement("em",null,i.default.createElement(v.default,{document:t}))),onClose:r},i.default.createElement("div",{className:u.default.toolbar},i.default.createElement(f.default,{value:n,items:C,onChange:o})),i.default.createElement("div",{className:u.default.content},n===S&&i.default.createElement(l.default,{isExpanded:_,onClick:w,data:t}),n===x&&i.default.createElement("pre",{className:u.default.raw,tabIndex:0,onKeyDown:E,onDoubleClick:k,onFocus:k},JSON.stringify(t,null,2))))}j.propTypes={value:o.default.object,onClose:o.default.func,onViewModeChange:o.default.func,viewMode:o.default.shape({id:o.default.string,title:o.default.string})};var M=(0,h.withPropsStream)(function(e){var t=e=>P.set(e.id),n=P.listen("parsed").pipe((0,s.map)(e=>C.find(t=>t.id===e)));return(0,a.combineLatest)(e,n).pipe((0,s.map)(e=>{var n=g(e,2);return function(e){for(var t=1;t0?(m=o(e),y=o(t)):(m=o(t),y=o(e));var b,_=i(y,m),w=y.getTimezoneOffset()-m.getTimezoneOffset(),O=Math.round(_/60)-w;if(O<2)return d.includeSeconds?_<5?v("lessThanXSeconds",5,g):_<10?v("lessThanXSeconds",10,g):_<20?v("lessThanXSeconds",20,g):_<40?v("halfAMinute",null,g):v(_<60?"lessThanXMinutes":"xMinutes",1,g):0===O?v("lessThanXMinutes",1,g):v("xMinutes",O,g);if(O<45)return v("xMinutes",O,g);if(O<90)return v("aboutXHours",1,g);if(O5?"".concat(n,"s ago"):"just now"}class c extends o.default.PureComponent{constructor(){super(...arguments),u(this,"update",()=>{this.forceUpdate()})}componentDidMount(){this.start()}componentWillUnmount(){this.stop()}componentWillReceiveProps(e){(0,i.default)(this.props,e)||(this.stop(),this.start())}start(){this.update(),this.intervalId=setInterval(this.update,this.props.refreshInterval)}stop(){clearInterval(this.intervalId)}render(){var e=(0,a.format)(this.props.time,"MMM D, YYYY, h:mm A Z");return o.default.createElement("span",{title:e},l(this.props.time))}}t.default=c,u(c,"propTypes",{refreshInterval:r.default.number,time:r.default.string.isRequired}),u(c,"defaultProps",{refreshInterval:5e3})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1936))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){e.exports=n(269).StructureBuilder},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.maybeRedirectToBase=function(){var e=f.getRedirectBase(location.pathname);e&&history.replaceState(null,null,e)},t.default=void 0;var r,o=(r=n(268))&&r.__esModule?r:{default:r},i=n(63),a=n(16),s=n(118);var u=(i.project&&i.project.basePath||"").replace(/\/+$/,""),l=(0,a.route)("/:tool",e=>{var t=o.default.find(t=>t.name===e.tool);return t?a.route.scope(t.name,"/",t.router):(0,a.route)("/")}),c=(0,a.route)("/:space",e=>{return s.CONFIGURED_SPACES.find(t=>t.name===e.space)?l:(0,a.route)("/")}),f=(0,a.route)("".concat(u,"/"),[a.route.intents("/intent"),s.HAS_SPACES?c:l]);var d=f;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(1)),o=l(n(0)),i=n(16),a=l(n(1953)),s=l(n(1954)),u=l(n(636));function l(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t{var n=this.props,r=n.activeToolName,a=n.router,l=n.isVisible,c=n.onSwitchTool,d=n.direction,p=n.showLabel,h=l?"0":"-1";return o.default.createElement(i.StateLink,{state:f({},a.state,{tool:e.name,[e.name]:void 0}),onClick:c,className:u.default.link,tabIndex:h},o.default.createElement(s.default,{direction:d,icon:e.icon,showIcon:t,showLabel:p,title:e.title||e.name,label:e.title||e.name,isActive:r===e.name}))})}render(){var e=this.props.tools;return o.default.createElement(a.default,c({},this.props,{renderItem:this.renderItem,tools:e}))}}p.defaultProps={direction:"horizontal",tools:[]},p.propTypes={activeToolName:r.default.string,onSwitchTool:r.default.func,direction:r.default.oneOf(["horizontal","vertical"]),router:r.default.shape({state:r.default.object}),tools:r.default.arrayOf(r.default.shape({name:r.default.string.isRequired,icon:r.default.func}))};var h=(0,i.withRouterHOC)(p);t.default=h},function(e,t){e.exports={root:"ToolSwitcherWidget_root_2M1_C",rootVertical:"ToolSwitcherWidget_rootVertical_34mal ToolSwitcherWidget_root_2M1_C",rootHorizontal:"ToolSwitcherWidget_rootHorizontal_2uDjS ToolSwitcherWidget_root_2M1_C",item:"ToolSwitcherWidget_item_3nGL_",link:"ToolSwitcherWidget_link_17SPa ToolSwitcherWidget_item_3nGL_",activeItem:"ToolSwitcherWidget_activeItem_1GX_B ToolSwitcherWidget_item_3nGL_"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};var i={vectorEffect:"non-scaling-stroke"},a=()=>o.default.createElement("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"1em",height:"1em"},o.default.createElement("circle",{cx:"10.5",cy:"10.5",r:"6",stroke:"currentColor",style:i}),o.default.createElement("line",{x1:"14.6036",y1:"14.6464",x2:"20.6069",y2:"20.6498",stroke:"currentColor",style:i}));t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};var i={vectorEffect:"non-scaling-stroke"},a=()=>o.default.createElement("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"1em",height:"1em"},o.default.createElement("rect",{x:"3.5",y:"5.5",width:"14",height:"14",stroke:"currentColor",style:i}),o.default.createElement("path",{d:"M8 12.5H23M21 10L23.5 12.5L21 15",stroke:"currentColor",style:i}));t.default=a},function(e,t){e.exports=function(e,t){for(var n=e.split("."),r=t.split("."),o=0;o<3;o++){var i=Number(n[o]),a=Number(r[o]);if(i>a)return 1;if(a>i)return-1;if(!isNaN(i)&&isNaN(a))return 1;if(isNaN(i)&&!isNaN(a))return-1}return 0}},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(1963),a=e=>r.createElement("div",{className:i.container},r.createElement("button",{className:i.closeButton,onClick:e.onClose},"✖"),r.createElement("div",{className:i.content},r.createElement("h1",null,e.title),e.children));a.propTypes={title:o.string.isRequired,children:o.node.isRequired,onClose:o.func.isRequired},e.exports=a},function(e,t){e.exports={content:"UpdateNotifierDialog_content_Pb2Q1",versionsTable:"UpdateNotifierDialog_versionsTable_2OjUP",upgradeText:"UpdateNotifierDialog_upgradeText_MJR0V",code:"UpdateNotifierDialog_code_319vw"}},function(e,t){e.exports={root:"SearchResults_root_3WfP_",isLoading:"SearchResults_isLoading_2T2Hv",noResults:"SearchResults_noResults_1CI1T",listItem:"SearchResults_listItem_UUSUp helpers_resetListItem__Z6e9",sharedItem:"SearchResults_sharedItem_3R2up",item:"SearchResults_item_2HezA SearchResults_sharedItem_3R2up selectable_item_LB4ab helpers_resetLink_1w3sf",activeItem:"SearchResults_activeItem_WnNJ7 SearchResults_sharedItem_3R2up selectable_selected_21Ajz selectable_item_LB4ab helpers_resetLink_1w3sf",itemType:"SearchResults_itemType_IN5Pe"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(1)),o=d(n(0)),i=d(n(188)),a=n(16),s=n(4),u=d(n(564)),l=n(426),c=n(118),f=d(n(1975));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=l.state.pipe((0,s.map)(e=>e.state&&e.state.space),(0,s.map)(e=>c.CONFIGURED_SPACES.find(t=>t.name===e)));class v extends o.default.PureComponent{constructor(){super(...arguments),p(this,"state",{menuOpen:!1,currentSpace:null}),p(this,"handleClickOutside",()=>{this.state.menuOpen&&this.setState({menuOpen:!1})}),p(this,"handleMenuToggle",()=>{this.setState(e=>({menuOpen:!e.menuOpen}))}),p(this,"handleChange",e=>{this.props.router.navigate({space:e.name}),this.setState({menuOpen:!1})})}componentDidMount(){this.currentSpaceSubscription=h.subscribe(e=>{this.setState({currentSpace:e})})}componentWillUnmount(){this.currentSpaceSubscription.unsubscribe()}render(){var e=this.state,t=e.currentSpace,n=e.isVisible?"0":"-1";return o.default.createElement("div",{className:f.default.root},o.default.createElement(u.default,{onChange:this.handleChange,items:c.CONFIGURED_SPACES,tabIndex:n,value:t}))}}p(v,"propTypes",{router:r.default.shape({navigate:r.default.func})});var m=(0,a.withRouterHOC)((0,i.default)(v));t.default=m},function(e,t,n){n(645),e.exports=n(646)},function(e,t){},function(e,t,n){"use strict";n(647);var r=a(n(0)),o=a(n(25)),i=a(n(654));function a(e){return e&&e.__esModule?e:{default:e}}o.default.render(r.default.createElement(i.default,null),document.getElementById("sanity"))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,r){var o,i=n(649);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.default=a}.call(t,n(24),n(648)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";t.a=function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable";return t}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(0)),o=c(n(63)),i=c(n(655)),a=c(n(1983)),s=c(n(1985)),u=c(n(1986)),l=c(n(1987));function c(e){return e&&e.__esModule?e:{default:e}}var f=function(){var e=o.default.api||{},t=e.projectId,n=e.dataset;return t&&n?r.default.createElement("div",{className:l.default.root},r.default.createElement(a.default,null),r.default.createElement(i.default,null),r.default.createElement(s.default,null)):r.default.createElement(u.default,null)};t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(0)),o=p(n(656)),i=n(16),a=p(n(425)),s=d(n(426)),u=p(n(436)),l=d(n(634)),c=p(n(1943)),f=p(n(1982));function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function p(e){return e&&e.__esModule?e:{default:e}}var h=s.navigate;t.default=class extends r.default.PureComponent{constructor(){var e,t,n;super(...arguments),n={},(t="state")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}componentWillMount(){(0,l.maybeRedirectToBase)(),this.urlStateSubscription=s.state.subscribe({next:e=>this.setState({urlState:e.state,isNotFound:e.isNotFound,intent:e.intent})})}componentWillUnmount(){this.urlStateSubscription.unsubscribe()}render(){var e=this.state,t=e.intent,n=e.urlState,s=e.isNotFound,d=(0,u.default)(),p=s?r.default.createElement(f.default,null,t&&r.default.createElement("div",null,"No tool can handle the intent: ",r.default.createElement("strong",null,t.name)," with parameters"," ",r.default.createElement("pre",null,JSON.stringify(t.params)))):r.default.createElement(c.default,{tools:d}),v=r.default.createElement(i.RouterProvider,{router:l.default,state:n,onNavigate:h},p);return o.default?r.default.createElement(o.default,{LoadingScreen:r.default.createElement(a.default,{text:"Logging in"})},v):v}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(1)),o=p(n(0)),i=p(n(13)),a=p(n(119)),s=p(n(767)),u=p(n(835)),l=p(n(26)),c=p(n(836)),f=p(n(838)),d=p(n(841));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=i.default.config().useProjectHostname&&i.default.config().projectId?i.default.config().projectId:null;class m extends o.default.PureComponent{constructor(e){super(e),h(this,"state",{isLoading:!0,user:null,error:null}),h(this,"userSubscription",null),h(this,"handleRetry",()=>{this.setState({error:null,isLoading:!0}),a.default.actions.retry()});var t=!0;this.userSubscription=a.default.currentUser.subscribe({next:e=>{var n={user:e.user,error:e.error,isLoading:!1};t?this.state=function(e){for(var t=1;tthis.setState({error:e,isLoading:!1})}),t=!1}componentWillUnmount(){this.userSubscription&&this.userSubscription.unsubscribe()}render(){var e=this.state,t=e.error,n=e.user,r=e.isLoading,i=this.props,a=i.children,u=i.LoadingScreen,l=i.sanityLogo,p=i.SanityLogo;if(l){console.warn("sanityLogo is a deprecated property on LoginWrapper. Pass a React component to the SanityLogo property instead.")}return r?"function"==typeof u?o.default.createElement(u,{center:!0,fullscreen:!0}):u:t?o.default.createElement(f.default,{onRetry:this.handleRetry,error:t}):n?v&&!n.role?o.default.createElement(d.default,{user:n}):"function"==typeof a?a(n):a:o.default.createElement(c.default,this.props,o.default.createElement(s.default,{title:this.props.title,description:this.props.description,SanityLogo:p,projectId:v}))}}t.default=m,h(m,"propTypes",{children:r.default.oneOfType([r.default.node,r.default.func]).isRequired,title:r.default.node,description:r.default.node,sanityLogo:r.default.node,SanityLogo:r.default.func,LoadingScreen:r.default.oneOfType([r.default.node,r.default.func])}),h(m,"defaultProps",{title:"Log in with",description:null,sanityLogo:null,SanityLogo:u.default,LoadingScreen:l.default})},function(e,t,n){"use strict";var r=n(658);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(14),o=n(152).filter,i=n(153).map,a=n(221),s=n(348),u=n(668),l=n(686),c=n(687),f=n(688),d=n(690),p=n(691),h=n(692),v=n(730),m=n(731),y=m.defaultConfig,g=m.initConfig;function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;if(!(this instanceof b))return new b(e);if(this.config(e),this.assets=new f(this),this.datasets=new l(this),this.projects=new c(this),this.users=new d(this),this.auth=new p(this),this.clientConfig.isPromiseAPI){var t=r({},this.clientConfig,{isPromiseAPI:!1});this.observable=new b(t)}}r(b.prototype,u),r(b.prototype,{clone:function(){return new b(this.config())},config:function(e){if(void 0===e)return r({},this.clientConfig);if(this.observable){var t=r({},e,{isPromiseAPI:!1});this.observable.config(t)}return this.clientConfig=g(e,this.clientConfig||{}),this},getUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this.clientConfig.cdnUrl:this.clientConfig.url;return"".concat(t,"/").concat(e.replace(/^\//,""))},isPromiseAPI:function(){return this.clientConfig.isPromiseAPI},_requestObservable:function(e){var t=e.url||e.uri,n=this.clientConfig.useCdn&&["GET","HEAD"].indexOf(e.method||"GET")>=0&&0===t.indexOf("/data/"),o=v(this.clientConfig,r({},e,{url:this.getUrl(t,n)}));return h(o,this.clientConfig.requester)},request:function(e){var t=this._requestObservable(e).pipe(o(function(e){return"response"===e.type}),i(function(e){return e.body}));return this.isPromiseAPI()?function(e){return e.toPromise()}(t):t}}),b.Patch=a,b.Transaction=s,b.ClientError=h.ClientError,b.ServerError=h.ServerError,b.requester=h.defaultRequester,e.exports=b},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(76);t.filter=function(e,t){return function(n){return n.lift(new a(e,t))}};var a=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.predicate,this.thisArg))},e}(),s=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return o(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(i.Subscriber)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(662),o=n(663),i=n(343),a=n(664),s=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return{returnIds:!0,returnDocuments:(e=n.returnDocuments,t=!0,!1===e?void 0:void 0===e?t:e),visibility:n.visibility||"sync"}},h=function(e){return"response"===e.type},v=function(e){return e.body},m=function(e){return e.toPromise()};e.exports={listen:d,getDataUrl:function(e,t){var n=this.clientConfig,r=n.gradientMode?n.namespace:s.hasDataset(n),o="/".concat(e,"/").concat(r),i=t?"".concat(o,"/").concat(t):o;return(this.clientConfig.gradientMode?i:"/data".concat(i)).replace(/\/($|\?)/,"$1")},fetch:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!1===n.filterResponse?function(e){return e}:function(e){return e.result},o=this._dataRequest("query",{query:e,params:t},n).pipe(a(r));return this.isPromiseAPI()?m(o):o},getDocument:function(e){var t={uri:this.getDataUrl("doc",e),json:!0},n=this._requestObservable(t).pipe(i(h),a(function(e){return e.body.documents&&e.body.documents[0]}));return this.isPromiseAPI()?m(n):n},create:function(e,t){return this._create(e,"create",t)},createIfNotExists:function(e,t){return s.requireDocumentId("createIfNotExists",e),this._create(e,"createIfNotExists",t)},createOrReplace:function(e,t){return s.requireDocumentId("createOrReplace",e),this._create(e,"createOrReplace",t)},patch:function(e,t){return new f(e,t,this)},delete:function(e,t){return this.dataRequest("mutate",{mutations:[{delete:u(e)}]},t)},mutate:function(e,t){var n=e instanceof f||e instanceof c?e.serialize():e,r=Array.isArray(n)?n:[n],o=t&&t.transactionId;return this.dataRequest("mutate",{mutations:r,transactionId:o},t)},transaction:function(e){return new c(e,this)},dataRequest:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._dataRequest(e,t,n);return this.isPromiseAPI()?m(r):r},_dataRequest:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="mutate"===e,s=!o&&l(t),u=!o&&s.length<11264,c=u?s:"",f=n.returnFirst,d=n.timeout,m=n.token,y={method:u?"GET":"POST",uri:this.getDataUrl(e,c),json:!0,body:u?void 0:t,query:o&&p(n),timeout:d,token:m};return this._requestObservable(y).pipe(i(h),a(v),a(function(e){if(!o)return e;var t=e.results||[];if(n.returnDocuments)return f?t[0]&&t[0].document:t.map(function(e){return e.document});var i=f?"documentId":"documentIds",a=f?t[0]&&t[0].id:t.map(function(e){return e.id});return r({transactionId:e.transactionId,results:t},i,a)}))},_create:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r({},t,e),a=o({returnFirst:!0,returnDocuments:!0},n);return this.dataRequest("mutate",{mutations:[i]},a)}}},function(e,t,n){"use strict";var r=n(14),o=n(350),i=n(682),a=n(684),s=n(685),u=n(349),l=n(53),c=n(353),f=["Using token with listeners is not supported in browsers. ","For more info, see ".concat(l("js-client-listener-tokens-browser"),".")],d=c(function(){return console.warn(f.join(" "))}),p=Boolean("undefined"!=typeof window&&window.EventSource),h=p?window.EventSource:i,v=["includePreviousRevision","includeResult","visibility"],m={includeResult:!0};function y(e){try{var t=e.data&&JSON.parse(e.data)||{};return r({type:e.type},t)}catch(e){return e}}e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=s(n,m),i=a(r,v),l=u({query:e,params:t,options:i}),c=this.clientConfig,f=c.url,g=c.token,b=c.withCredentials,_="".concat(f).concat(this.getDataUrl("listen",l)),w=r.events?r.events:["mutation"],O=-1!==w.indexOf("reconnect");g&&p&&d();var k={};return(g||b)&&(k.withCredentials=!0),g&&(k.headers={Authorization:"Bearer ".concat(g)}),new o(function(e){var t,n=l(),r=!1;function o(){r||(O&&e.next({type:"reconnect"}),r||n.readyState===h.CLOSED&&(u(),clearTimeout(t),t=setTimeout(c,100)))}function i(t){e.error(function(e){if(e instanceof Error)return e;var t=y(e);return t instanceof Error?t:new Error(function(e){if(!e.error)return e.message||"Unknown listener error";if(e.error.description)return e.error.description;return"string"==typeof e.error?e.error:JSON.stringify(e.error,null,2)}(t))}(t))}function a(t){var n=y(t);return n instanceof Error?e.error(n):e.next(n)}function s(t){r=!0,u(),e.complete()}function u(){n.removeEventListener("error",o,!1),n.removeEventListener("channelError",i,!1),n.removeEventListener("disconnect",s,!1),w.forEach(function(e){return n.removeEventListener(e,a,!1)}),n.close()}function l(){var e=new h(_,k);return e.addEventListener("error",o,!1),e.addEventListener("channelError",i,!1),e.addEventListener("disconnect",s,!1),w.forEach(function(t){return e.addEventListener(t,a,!1)}),e}function c(){n=l()}return function(){r=!0,u()}})}},function(e,t,n){"use strict";var r=n(351).Observable,o=n(14),i=n(153).map,a=n(152).filter,s=n(675).reduce;function u(){r.apply(this,arguments)}function l(e,t){var n=!1;return function(){return n||(n=!0,console.warn(new Error("Calling observable.".concat(e,"(...) is deprecated. Please use observable.pipe(").concat(e,"(...)) instead")))),this.pipe(t.apply(this,arguments))}}u.prototype=Object.create(o(Object.create(null),r.prototype)),Object.defineProperty(u.prototype,"constructor",{value:u,enumerable:!1,writable:!0,configurable:!0}),u.prototype.lift=function(e){var t=new u;return t.source=this,t.operator=e,t},u.prototype.map=l("map",i),u.prototype.filter=l("filter",a),u.prototype.reduce=l("filter",s),e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(76);t.canReportError=function(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&o instanceof r.Subscriber?o:null}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(76),o=n(346),i=n(344);t.toSubscriber=function(e,t,n){if(e){if(e instanceof r.Subscriber)return e;if(e[o.rxSubscriber])return e[o.rxSubscriber]()}return e||t||n?new r.Subscriber(e,t,n):new r.Subscriber(i.empty)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=function(){}},function(e,t,n){t.reduce=n(676).reduce},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(677),o=n(678),i=n(681),a=n(352);t.reduce=function(e,t){return arguments.length>=2?function(n){return a.pipe(r.scan(e,t),o.takeLast(1),i.defaultIfEmpty(t))(n)}:function(t){return a.pipe(r.scan(function(t,n,r){return e(t,n,r+1)}),o.takeLast(1))(t)}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(76);t.scan=function(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(e,t,n))}};var a=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.accumulator,this.seed,this.hasSeed))},e}(),s=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(i.Subscriber)},function(e,t,n){"use strict";var r,o=this&&this.__extends||(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)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(76),a=n(679),s=n(680);t.takeLast=function(e){return function(t){return 0===e?s.empty():t.lift(new u(e))}};var u=function(){function e(e){if(this.total=e,this.total<0)throw new a.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.total))},e}(),l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=new Array,r.count=0,r}return o(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;othis.bufferSizeLimit&&(this.log("buffer.length > this.bufferSizeLimit"),this.pollAgain()),0==this.cursor&&t.length>0&&"\ufeff"==t.substring(0,1)&&(this.cursor=1);var n=this.lastMessageIndex(t);if(n[0]>=this.cursor){var r=n[1],o=t.substring(this.cursor,r);this.parseStream(o),this.cursor=r}e.isDone()&&(this.log("request.isDone(). reopening the connection"),this.pollAgain(this.interval))}else this.readyState!==this.CLOSED&&(this.log("this.readyState !== this.CLOSED"),this.pollAgain(this.interval))},parseStream:function(e){var t,n,r,i,a,s,u=(e=this.cache+this.normalizeToLF(e)).split("\n\n");for(t=0;t=0;--r)if(n[r]===t){n.splice(r,1);break}},_pollTimer:null,_noactivityTimer:null,_xhr:null,lastEventId:null,cache:"",cursor:0,onerror:null,onmessage:null,onopen:null,readyState:0,urlWithParams:function(e,t){var n=[];if(t){var r,o,i=encodeURIComponent;for(r in t)t.hasOwnProperty(r)&&(o=i(r)+"="+i(t[r]),n.push(o))}return n.length>0?-1==e.indexOf("?")?e+"?"+n.join("&"):e+"&"+n.join("&"):e},lastMessageIndex:function(e){var t=e.lastIndexOf("\n\n"),n=e.lastIndexOf("\r\r"),r=e.lastIndexOf("\r\n\r\n");return r>Math.max(t,n)?[r,r+4]:[Math.max(t,n),Math.max(t,n)+2]},trimWhiteSpace:function(e){return e.replace(/^(\s|\u00A0)+|(\s|\u00A0)+$/g,"")},normalizeToLF:function(e){return e.replace(/\r\n|\r/g,"\n")}},window.XDomainRequest&&window.XMLHttpRequest&&void 0===(new XMLHttpRequest).responseType){n.isPolyfill="IE_8-9";var r=n.prototype.defaultOptions;r.xhrHeaders=null,r.getArgs.evs_preamble=2056,n.prototype.XHR=function(e){request=new XDomainRequest,this._request=request,request.onprogress=function(){request._ready=!0,e.ondata()},request.onload=function(){this._loaded=!0,e.ondata()},request.onerror=function(){this._failed=!0,e.readyState=e.CLOSED,e.dispatchEvent("error",{type:"error",data:"XDomainRequest error"})},request.ontimeout=function(){this._failed=!0,e.readyState=e.CLOSED,e.dispatchEvent("error",{type:"error",data:"XDomainRequest timed out"})};var t={};if(e.getArgs){var n=e.getArgs;for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);e.lastEventId&&(t.evs_last_event_id=e.lastEventId)}request.open("GET",e.urlWithParams(e.URL,t)),request.send()},n.prototype.XHR.prototype={useXDomainRequest:!0,_request:null,_ready:!1,_loaded:!1,_failed:!1,isReady:function(){return this._request._ready},isDone:function(){return this._request._loaded},hasError:function(){return this._request._failed},getBuffer:function(){var e="";try{e=this._request.responseText||""}catch(e){}return e},abort:function(){this._request&&this._request.abort()}}}else n.isPolyfill="XHR",n.prototype.XHR=function(e){request=new XMLHttpRequest,this._request=request,e._xhr=this,request.onreadystatechange=function(){request.readyState>1&&e.readyState!=e.CLOSED&&(200==request.status||request.status>=300&&request.status<400?e.ondata():(request._failed=!0,e.readyState=e.CLOSED,e.dispatchEvent("error",{type:"error",data:"The server responded with "+request.status}),e.close()))},request.onprogress=function(){},request.open("GET",e.urlWithParams(e.URL,e.getArgs),!0);var t=e.xhrHeaders;for(var n in t)t.hasOwnProperty(n)&&request.setRequestHeader(n,t[n]);e.lastEventId&&request.setRequestHeader("Last-Event-Id",e.lastEventId),request.send()},n.prototype.XHR.prototype={useXDomainRequest:!1,_request:null,_failed:!1,isReady:function(){return this._request.readyState>=2},isDone:function(){return 4==this._request.readyState},hasError:function(){return this._failed||this._request.status>=400},getBuffer:function(){var e="";try{e=this._request.responseText||""}catch(e){}return e},abort:function(){this._request&&this._request.abort()}};e[t]=n}function o(e,t,n,r){this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.data=t||null,this.origin=n||"",this.lastEventId=r||"",this.type=e||"message"}}(this)},function(e,t,n){"use strict";e.exports=function(e,t){return t.reduce(function(t,n){return void 0===e[n]?t:(t[n]=e[n],t)},{})}},function(e,t,n){"use strict";e.exports=function(e,t){return Object.keys(t).concat(Object.keys(e)).reduce(function(n,r){return n[r]=void 0===e[r]?t[r]:e[r],n},{})}},function(e,t,n){"use strict";var r=n(14),o=n(98);function i(e){this.request=e.request.bind(e)}r(i.prototype,{create:function(e,t){return this._modify("PUT",e,t)},edit:function(e,t){return this._modify("PATCH",e,t)},delete:function(e){return this._modify("DELETE",e)},list:function(){return this.request({uri:"/datasets"})},_modify:function(e,t,n){return o.dataset(t),this.request({method:e,uri:"/datasets/".concat(t),body:n})}}),e.exports=i},function(e,t,n){"use strict";function r(e){this.client=e}n(14)(r.prototype,{list:function(){return this.client.request({uri:"/projects"})},getById:function(e){return this.client.request({uri:"/projects/".concat(e)})}}),e.exports=r},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var o=n(14),i=n(153).map,a=n(152).filter,s=n(689),u=n(98);function l(e){this.client=e}o(l.prototype,{upload:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u.validateAssetType(e);var r=n.extract||void 0;r&&!r.length&&(r=["none"]);var s=u.hasDataset(this.client.clientConfig),l="image"===e?"images":"files",c=function(e,t){return"undefined"!=typeof window&&t instanceof window.File?o({filename:!1===e.preserveFilename?void 0:t.name,contentType:t.type},e):e}(n,t),f={label:c.label,filename:c.filename,meta:r},d=this.client._requestObservable({method:"POST",timeout:c.timeout||0,uri:"/assets/".concat(l,"/").concat(s),headers:c.contentType?{"Content-Type":c.contentType}:{},query:f,body:t});return this.client.isPromiseAPI()?d.pipe(a(function(e){return"response"===e.type}),i(function(e){return t=e.body,n=t.document,Object.defineProperty(n,"document",{enumerable:!1,get:function(){return console.warn("The promise returned from client.asset.upload(...) now resolves with the asset document"),n}}),n;var t,n})).toPromise():d},delete:function(e,t){console.warn("client.assets.delete() is deprecated, please use client.delete()");var n=t||"";return/^(image|file)-/.test(n)?e._id&&(n=e._id):n="".concat(e,"-").concat(n),u.hasDataset(this.client.clientConfig),this.client.delete(n)},getImageUrl:function(e,t){var n=e._ref||e;if("string"!=typeof n)throw new Error("getImageUrl() needs either an object with a _ref, or a string with an asset document ID");if(!/^image-[A-Za-z0-9_]+-\d+x\d+-[a-z]{1,5}$/.test(n))throw new Error('Unsupported asset ID "'.concat(n,'". URL generation only works for auto-generated IDs.'));var o=r(n.split("-"),4),i=o[1],a=o[2],l=o[3];u.hasDataset(this.client.clientConfig);var c=this.client.clientConfig,f=c.projectId,d=c.dataset,p=t?s(t):"";return"https://cdn.sanity.io/images/".concat(f,"/").concat(d,"/").concat(i,"-").concat(a,".").concat(l).concat(p)}}),e.exports=l},function(e,t,n){"use strict";e.exports=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e[n])));return t.length>0?"?".concat(t.join("&")):""}},function(e,t,n){"use strict";function r(e){this.client=e}n(14)(r.prototype,{getById:function(e){return this.client.request({uri:"/users/".concat(e)})}}),e.exports=r},function(e,t,n){"use strict";function r(e){this.client=e}n(14)(r.prototype,{getLoginProviders:function(){return this.client.request({uri:"/auth/providers"})},logout:function(){return this.client.request({uri:"/auth/logout",method:"POST"})}}),e.exports=r},function(e,t,n){"use strict";var r=n(693),o=n(14),i=n(720),a=n(722),s=n(724),u=n(725),l=n(350),c=n(727),f=c.ClientError,d=c.ServerError,p={onResponse:function(e){if(e.statusCode>=500)throw new d(e);if(e.statusCode>=400)throw new f(e);return e}},h=r(n(729).concat([a(),s(),u(),p,i({implementation:l})]));function v(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:h)(o({maxRedirects:0},e))}v.defaultRequester=h,v.ClientError=f,v.ServerError=d,e.exports=v},function(e,t,n){e.exports=n(694)},function(e,t,n){"use strict";var r=n(77),o=n(695),i=n(696),a=n(700),s=n(701),u=["request","response","progress","error","abort"],l=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];e.exports=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],c=l.reduce(function(e,t){return e[t]=e[t]||[],e},{processOptions:[i],validateOptions:[a]});function f(e){var t=u.reduce(function(e,t){return e[t]=r(),e},{}),n=o(c),i=n("processOptions",e);n("validateOptions",i);var a={options:i,channels:t,applyMiddleware:n},l=null,f=t.request.subscribe(function(e){l=s(e,function(r,o){return function(e,r,o){var i=e,a=r;if(!i)try{a=n("onResponse",r,o)}catch(e){a=null,i=e}(i=i&&n("onError",i,o))?t.error.publish(i):a&&t.response.publish(a)}(r,o,e)})});t.abort.subscribe(function(){f(),l&&l.abort()});var d=n("onReturn",t,a);return d===t&&t.request.publish(a),d}return f.use=function(e){if(!e)throw new Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&c.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return l.forEach(function(t){e[t]&&c[t].push(e[t])}),n.push(e),f},f.clone=function(){return e(n)},t.forEach(f.use),f}},function(e,t,n){"use strict";e.exports=function(e){return function(t,n){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i12e3&&e<12156)return k();e=1223===p.status?204:p.status,t=1223===p.status?"No Content":t}return{body:p.response||p.responseText,url:u.url,method:u.method,headers:h?{}:o(p.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())}()},p.open(u.method,u.url,!0),p.withCredentials=!!u.withCredentials,v&&p.setRequestHeader)for(var b in v)v.hasOwnProperty(b)&&p.setRequestHeader(b,v[b]);else if(v&&h)throw new Error("Headers cannot be set on an XDomainRequest object");u.rawBody&&(p.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:u,adapter:"xhr",request:p,context:e}),p.send(u.body||null);var _=u.timeout;return _&&(l.connect=setTimeout(function(){return w("ETIMEDOUT")},_.connect)),{abort:function(){m=!0,p&&p.abort()}};function w(t){g=!0,p.abort();var n=new Error("ESOCKETTIMEDOUT"===t?"Socket timed out on request to "+u.url:"Connection timed out on request to "+u.url);n.code=t,e.channels.error.publish(n)}function O(){(m||p.readyState>=2&&l.connect)&&clearTimeout(l.connect),l.socket&&clearTimeout(l.socket)}function k(){if(!y){O(),y=!0,p=null;var e=new Error("Network error while attempting to reach "+u.url);e.isNetworkError=!0,e.request=u,t(e)}}}},function(e,t,n){"use strict";var r=n(704);e.exports=function(e,t,n){if(e===t)return!0;var o=r.parse(e,!1,!0),i=r.parse(t,!1,!0),a=0|o.port||("https"===o.protocol?443:80),s=0|i.port||("https"===i.protocol?443:80),u={proto:o.protocol===i.protocol,hostname:o.hostname===i.hostname,port:a===s};return u.proto&&u.hostname&&(u.port||n)}},function(e,t,n){"use strict";var r=/^(?:(?:(?:([^:\/#\?]+:)?(?:(?:\/\/)((?:((?:[^:@\/#\?]+)(?:\:(?:[^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/;e.exports={regex:r,parse:function(e){var t=r.exec(e);return t?{protocol:(t[1]||"").toLowerCase()||void 0,hostname:(t[5]||"").toLowerCase()||void 0,port:t[6]||void 0}:{}}}},function(e,t,n){var r=n(706),o=n(719);e.exports=function(e){if(!e)return{};var t={};return o(r(e).split("\n"),function(e){var n,o=e.indexOf(":"),i=r(e.slice(0,o)).toLowerCase(),a=r(e.slice(o+1));void 0===t[i]?t[i]=a:(n=t[i],"[object Array]"===Object.prototype.toString.call(n)?t[i].push(a):t[i]=[t[i],a])}),t}},function(e,t,n){"use strict";var r=n(222),o=n(354),i=n(356),a=n(359),s=n(718),u=r.call(Function.call,a());o(u,{getPolyfill:a,implementation:i,shim:s}),e.exports=u},function(e,t,n){"use strict";var r=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,i=r.call(arguments,1),a=Math.max(0,t.length-i.length),s=[],u=0;u0&&!o.call(e,0))for(var v=0;v0)for(var m=0;m>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(u(t)||0===t||!l(t))return 0;var n=c(t)*Math.floor(Math.abs(t));return f(n,65536)},ToString:function(e){return a(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:d,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:u(e)&&u(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(h(e,n)&&!t[n])return!1;var r=h(e,"[[Value]]"),o=h(e,"[[Get]]")||h(e,"[[Set]]");if(r&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!h(e,"[[Get]]")&&!h(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!(!h(e,"[[Value]]")&&!h(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(s(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(s(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(h(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),h(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),h(e,"value")&&(t["[[Value]]"]=e.value),h(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),h(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(h(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new i("setter must be a function");t["[[Set]]"]=r}if((h(t,"[[Get]]")||h(t,"[[Set]]"))&&(h(t,"[[Value]]")||h(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=v},function(e,t,n){"use strict";var r=n(357),o=r("%TypeError%"),i=r("%SyntaxError%"),a=n(358),s={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(a(t,r)&&!n[r])return!1;var i=a(t,"[[Value]]"),s=a(t,"[[Get]]")||a(t,"[[Set]]");if(i&&s)throw new o("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var a=s[t];if("function"!=typeof a)throw new i("unknown record type: "+t);if(!a(e,r))throw new o(n+" must be a "+t);console.log(a(e,r),r)}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){var n=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!n(e)&&e!==1/0&&e!==-1/0}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(717),i=n(223),a=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,s=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1?a(e,arguments[1]):a(e)}},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(354),o=n(359);e.exports=function(){var e=o();return r(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}},function(e,t,n){"use strict";var r=n(223),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r0&&void 0!==arguments[0]?arguments[0]:{}).implementation||r.Observable;if(!e)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(t,n){return new e(function(e){return t.error.subscribe(function(t){return e.error(t)}),t.progress.subscribe(function(t){return e.next(o({type:"progress"},t))}),t.response.subscribe(function(t){e.next(o({type:"response"},t)),e.complete()}),t.request.publish(n),function(){return t.abort.publish()}})}}}},function(e,t,n){"use strict";(function(t){"undefined"!=typeof window?e.exports=window:void 0!==t?e.exports=t:"undefined"!=typeof self?e.exports=self:e.exports={}}).call(t,n(24))},function(e,t,n){"use strict";var r="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=n(14),i=n(224),a=["boolean","string","number"];e.exports=function(){return{processOptions:function(e){var t,n=e.body;return n&&!("function"==typeof n.pipe)&&!((t=n).constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))&&(-1!==a.indexOf(void 0===n?"undefined":r(n))||Array.isArray(n)||i(n))?o({},e,{body:JSON.stringify(e.body),headers:o({},e.headers,{"Content-Type":"application/json"})}):e}}}},function(e,t,n){"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t,n){"use strict";var r=n(14);function o(e){try{return JSON.parse(e)}catch(e){throw e.message="Failed to parsed response body as JSON: "+e.message,e}}e.exports=function(e){return{onResponse:function(t){var n=t.headers["content-type"]||"",i=e&&e.force||-1!==n.indexOf("application/json");return t.body&&n&&i?r({},t,{body:o(t.body)}):t},processOptions:function(e){return r({},e,{headers:r({Accept:"application/json"},e.headers)})}}}},function(e,t,n){"use strict";e.exports=n(726)},function(e,t,n){"use strict";e.exports=function(){return{onRequest:function(e){if("xhr"===e.adapter){var t=e.request,n=e.context;"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=r("upload")),"onprogress"in t&&(t.onprogress=r("download"))}function r(e){return function(t){var r=t.lengthComputable?t.loaded/t.total*100:-1;n.channels.progress.publish({stage:e,percent:r,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}}}}},function(e,t,n){"use strict";var r=n(728),o=n(14);function i(e){var t=s(e);i.super.call(this,t.message),o(this,t)}function a(e){var t=s(e);a.super.call(this,t.message),o(this,t)}function s(e){var t=e.body,n={response:e,statusCode:e.statusCode,responseBody:u(t,e)};return t.error&&t.message?(n.message="".concat(t.error," - ").concat(t.message),n):t.error&&t.error.description?(n.message=t.error.description,n.details=t.error,n):(n.message=t.error||t.message||function(e){var t=e.statusMessage?" ".concat(e.statusMessage):"";return"".concat(e.method,"-request to ").concat(e.url," resulted in HTTP ").concat(e.statusCode).concat(t)}(e),n)}function u(e,t){return-1!==(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(e,null,2):e}r(i),r(a),t.ClientError=i,t.ServerError=a},function(e,t,n){"use strict";var r="undefined"!=typeof Reflect?Reflect.construct:void 0,o=Object.defineProperty,i=Error.captureStackTrace;function a(e){void 0!==e&&o(this,"message",{configurable:!0,value:e,writable:!0});var t=this.constructor.name;void 0!==t&&t!==this.name&&o(this,"name",{configurable:!0,value:t,writable:!0}),i(this,this.constructor)}void 0===i&&(i=function(e){var t=new Error;o(e,"stack",{configurable:!0,get:function(){var e=t.stack;return o(this,"stack",{configurable:!0,value:e,writable:!0}),e},set:function(t){o(e,"stack",{configurable:!0,value:t,writable:!0})}})}),a.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:a,writable:!0}});var s=function(){function e(e,t){return o(e,"name",{configurable:!0,value:t})}try{var t=function(){};if(e(t,"foo"),"foo"===t.name)return e}catch(e){}}();(e.exports=function(e,t){if(null==t||t===Error)t=a;else if("function"!=typeof t)throw new TypeError("super_ should be a function");var n;if("string"==typeof e)n=e,e=void 0!==r?function(){return r(t,arguments,this.constructor)}:function(){t.apply(this,arguments)},void 0!==s&&(s(e,n),n=void 0);else if("function"!=typeof e)throw new TypeError("constructor should be either a string or a function");e.super_=e.super=t;var o={constructor:{configurable:!0,value:e,writable:!0}};return void 0!==n&&(o.name={configurable:!0,value:n,writable:!0}),e.prototype=Object.create(t.prototype,o),e}).BaseError=a},function(e,t,n){"use strict";e.exports=[]},function(e,t,n){"use strict";var r=n(14);e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},o=t.token||e.token;o&&(n.Authorization="Bearer ".concat(o)),t.useGlobalApi||e.useProjectHostname||!e.projectId||(n["X-Sanity-Project-ID"]=e.projectId);var i=Boolean(void 0===t.withCredentials?e.token||e.withCredentials:t.withCredentials),a=void 0===t.timeout?e.timeout:t.timeout;return r({},t,{headers:r({},n,t.headers||{}),timeout:void 0===a?3e5:a,json:!0,withCredentials:i})}},function(e,t,n){"use strict";var r=n(53),o=n(14),i=n(98),a=n(353),s={apiHost:"https://api.sanity.io",useProjectHostname:!0,gradientMode:!1,isPromiseAPI:!0},u=["localhost","127.0.0.1","0.0.0.0"],l=function(e){return a(function(){return console.warn(e.join(" "))})},c=l(["You are not using the Sanity CDN. That means your data is always fresh, but the CDN is faster and","cheaper. Think about it! For more info, see ".concat(r("js-client-cdn-configuration"),"."),"To hide this warning, please set the `useCdn` option to either `true` or `false` when creating","the client."]),f=l(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.","See ".concat(r("js-client-browser-token")," for more information and how to hide this warning.")]),d=l(["You have set `useCdn` to `true` while also specifying a token. This is usually not what you","want. The CDN cannot be used with an authorization token, since private data cannot be cached.","See ".concat(r("js-client-usecdn-token")," for more information.")]);t.defaultConfig=s,t.initConfig=function(e,t){var n=o({},s,t,e),a=n.gradientMode,l=!a&&n.useProjectHostname;if("undefined"==typeof Promise){var p=r("js-client-promise-polyfill");throw new Error("No native Promise-implementation found, polyfill needed - see ".concat(p))}if(a&&!n.namespace)throw new Error("Configuration must contain `namespace` when running in gradient mode");if(l&&!n.projectId)throw new Error("Configuration must contain `projectId`");var h="undefined"!=typeof window&&window.location&&window.location.hostname,v=h&&function(e){return-1!==u.indexOf(e)}(window.location.hostname);if(h&&v&&n.token&&!0!==n.ignoreBrowserTokenWarning?f():(!h||v)&&n.useCdn&&n.token?d():void 0===n.useCdn&&c(),l&&i.projectId(n.projectId),!a&&n.dataset&&i.dataset(n.dataset,n.gradientMode),n.isDefaultApi=n.apiHost===s.apiHost,n.useCdn=Boolean(n.useCdn)&&!n.token&&!n.withCredentials,n.gradientMode)n.url=n.apiHost,n.cdnUrl=n.apiHost;else{var m=n.apiHost.split("://",2),y=m[0],g=m[1],b=n.isDefaultApi?"apicdn.sanity.io":g;n.useProjectHostname?(n.url="".concat(y,"://").concat(n.projectId,".").concat(g,"/v1"),n.cdnUrl="".concat(y,"://").concat(n.projectId,".").concat(b,"/v1")):(n.url="".concat(n.apiHost,"/v1"),n.cdnUrl=n.url)}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{actions:(0,o.default)({logout:v,retry:h}),currentUser:m,getUser:g,getUsers:b}};var r=n(6),o=u(n(381)),i=u(n(77)),a=u(n(382)),s=u(n(13));function u(e){return e&&e.__esModule?e:{default:e}}var l=(0,i.default)(),c=(0,i.default)(),f=!1,d=null,p=null;function h(){return a.default.getCurrentUser().then(e=>l.publish(e),e=>c.publish(e))}function v(){return a.default.logout().then(()=>l.publish(null),e=>c.publish(e))}l.subscribe(e=>{d=e}),c.subscribe(e=>{p=e});var m=new r.Observable(e=>{f?(p?r:o)(p||d):(f=!0,h());var t=l.subscribe(e=>o(e)),n=c.subscribe(e=>r(e));return()=>{t(),n()};function r(t){e.next({type:"error",error:t})}function o(t){e.next({type:"snapshot",user:t})}}),y={},g=e=>(y[e]||(y[e]=s.default.request({uri:"/users/".concat(e),withCredentials:!0}).then(e=>e&&e.id?e:null)),y[e]),b=e=>Promise.all(e.map(e=>g(e)))},function(e,t,n){"use strict";t.a=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[o.a])return e[o.a]()}if(!e&&!t&&!n)return new r.a(i.a);return new r.a(e,t,n)};var r=n(5),o=n(228),i=n(360)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(3),o=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.a(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n(121).a)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(3),o=function(e){function t(t,n){return e.call(this)||this}return r.a(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(21).a)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(3),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t}(n(122).a)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(3),o=n(738),i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.a(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=o.a.setImmediate(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(o.a.clearImmediate(n),t.scheduled=void 0)},t}(n(121).a)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=1,o={};var i={setImmediate:function(e){var t=r++;return o[t]=e,Promise.resolve().then(function(){return function(e){var t=o[e];t&&t()}(t)}),t},clearImmediate:function(e){delete o[e]}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(3),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,o=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(n(121).a)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(3),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,o=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++rt.index?1:-1:e.delay>t.delay?1:-1},t}(o.a)},function(e,t,n){"use strict";t.a=function(e){return!!e&&(e instanceof r.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)};var r=n(9)},function(e,t,n){"use strict";t.a=function e(t,n,c){if(n){if(!Object(u.a)(n))return function(){for(var r=[],o=0;o1?e.next(Array.prototype.slice.call(arguments)):e.next(t)},e,s)})};var r=n(9),o=n(30),i=n(120),a=n(35);Object.prototype.toString},function(e,t,n){"use strict";t.a=function e(t,n,s){if(s)return e(t,n).pipe(Object(a.a)(function(e){return Object(o.a)(e)?s.apply(void 0,e):s(e)}));return new r.a(function(e){var r,o=function(){for(var t=[],n=0;n=t){r.complete();break}if(r.next(a++),r.closed)break}})};var r=n(9);function o(e){var t=e.start,n=e.index,r=e.count,o=e.subscriber;n>=r?o.complete():(o.next(t),o.closed||(e.index=n+1,e.start=t+1,this.schedule(e)))}},function(e,t,n){"use strict";t.a=function(e,t){return new r.a(function(n){var r,a;try{r=e()}catch(e){return void n.error(e)}try{a=t(r)}catch(e){return void n.error(e)}var s=a?Object(o.a)(a):i.a,u=s.subscribe(n);return function(){u.unsubscribe(),r&&r.unsubscribe()}})};var r=n(9),o=n(49),i=n(47)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=o.default||{};return r.default.request({uri:"/auth/providers",withCredentials:!0}).then(t=>{var n=t.providers,r=t.thirdPartyLogin,o=(e.providers&&e.providers.entries?e.providers.entries:[]).map(e=>(e.custom=!0,e.supported=r,e));return o.length&&e.providers&&"replace"===e.providers.mode?Promise.resolve(o):n.concat(o)})};var r=i(n(13)),o=i(n(383));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(0)),o=d(n(1)),i=d(n(382)),a=d(n(383)),s=d(n(32)),u=d(n(831)),l=d(n(53)),c=d(n(833)),f=d(n(834));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class h extends r.default.Component{constructor(){super(...arguments),p(this,"state",{providers:[],isLoaded:!1,shouldRedirect:!1,error:null}),p(this,"handleLoginButtonClicked",(e,t)=>{t.preventDefault(),this.redirectToProvider(e)}),p(this,"handleErrorDialogClosed",()=>{this.setState({error:null})})}componentDidMount(){this.getProviders=(0,f.default)(i.default.getProviders()),this.getProviders.promise.then(e=>this.setState({providers:e,isLoaded:!0,shouldRedirect:1===e.length&&a.default.providers.redirectOnSingle})).catch(e=>this.setState({error:e}))}componentWillUnmount(){this.getProviders.cancel()}componentDidUpdate(){var e=this.state,t=e.providers,n=e.isLoaded,r=e.shouldRedirect;n&&r&&this.redirectToProvider(t[0])}redirectToProvider(e){var t=this.props.projectId,n=encodeURIComponent(window.location.toString()),r=["origin=".concat(n),t&&"projectId=".concat(t)].filter(Boolean);!e.custom||e.supported?window.location="".concat(e.url,"?").concat(r.join("&")):this.setState({error:{message:'This project is missing the required "thirdPartyLogin" feature to support custom logins.',link:(0,l.default)("third-party-login")}})}render(){var e=this.state,t=e.error,n=e.providers,o=e.isLoaded,i=e.shouldRedirect,a=this.props,l=a.title,f=a.description,d=a.SanityLogo;return t?r.default.createElement(s.default,{color:"danger",title:"Error",isOpen:!0,centered:!0,onClose:this.handleErrorDialogClosed},r.default.createElement("div",{className:c.default.error},t.message,t.link&&r.default.createElement("p",null,r.default.createElement("a",{href:t.link},"Read more")))):o&&0===n.length?r.default.createElement("div",null,"No providers configured"):o&&!i?r.default.createElement(u.default,{title:l,description:f,providers:n,SanityLogo:d,onLoginButtonClick:this.handleLoginButtonClicked}):null}}t.default=h,p(h,"propTypes",{title:o.default.node.isRequired,description:o.default.node,projectId:o.default.string,SanityLogo:o.default.func}),p(h,"defaultProps",{description:null,projectId:null,SanityLogo:null})},function(e,t){e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}},function(e,t,n){var r=n(168);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(167);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(167),o=n(245),i=n(246),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.lengtho.default.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"1em",height:"1em"},o.default.createElement("path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 7.84072 4.53924 4.27455 8.15208 2.76711L7.38316 0.920257C3.04741 2.72903 0 7.00861 0 12C0 18.6274 5.37258 24 12 24C18.6274 24 24 18.6274 24 12C24 7.00842 20.9524 2.72869 16.6163 0.920044L15.8464 2.76647C19.46 4.27354 22 7.84013 22 12Z",fill:"currentColor"}));t.default=i},function(e,t){e.exports={captureTabFocus:"Portal_captureTabFocus_1nqlt"}},function(e,t){e.exports={root:"ButtonGrid_root_2YSJ3",alignStart:"ButtonGrid_alignStart_3nQ6U ButtonGrid_root_2YSJ3",alignEnd:"ButtonGrid_alignEnd_34kxH ButtonGrid_root_2YSJ3",small:"ButtonGrid_small_1fvj-",secondary:"ButtonGrid_secondary_2iOae"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i,a=c(n(0)),s=c(n(1)),u=c(n(83)),l=c(n(84));function c(e){return e&&e.__esModule?e:{default:e}}class f extends a.default.Component{render(){var e=this.props.onEscape;return a.default.createElement(l.default,null,t=>a.default.createElement(u.default,{onEscape:n=>(t||n.shiftKey)&&e(n)},this.props.children))}}t.default=f,r=f,o="propTypes",i={onEscape:s.default.func.isRequired,children:s.default.node.isRequired},o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(0)),o=u(n(1)),i=u(n(63)),a=u(n(15)),s=u(n(832));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=i.default.project&&i.default.project.name||"",f=()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 438.55 438.55"},r.default.createElement("path",{d:"M409.13 114.57a218.32 218.32 0 0 0-79.8-79.8Q278.94 5.36 219.27 5.36T109.21 34.77a218.29 218.29 0 0 0-79.8 79.8Q0 165 0 224.63q0 71.67 41.83 128.91t108.06 79.23q7.71 1.43 11.42-2a11.17 11.17 0 0 0 3.69-8.57q0-.86-.14-15.42t-.14-25.41l-6.57 1.14a83.77 83.77 0 0 1-15.85 1 120.73 120.73 0 0 1-19.84-2 44.34 44.34 0 0 1-19.11-8.51 36.23 36.23 0 0 1-12.56-17.6l-2.86-6.57a71.34 71.34 0 0 0-9-14.56q-6.14-8-12.42-10.85l-2-1.43a21 21 0 0 1-3.71-3.43 15.66 15.66 0 0 1-2.57-4q-.86-2 1.43-3.29C61.2 310.42 64 310 68 310l5.71.85q5.71 1.14 14.13 6.85a46.08 46.08 0 0 1 13.85 14.84q6.57 11.71 15.85 17.85t18.7 6.14a81.19 81.19 0 0 0 16.27-1.42 56.78 56.78 0 0 0 12.85-4.29q2.57-19.14 14-29.41a195.49 195.49 0 0 1-29.36-5.13 116.52 116.52 0 0 1-26.83-11.14 76.86 76.86 0 0 1-23-19.13q-9.14-11.42-15-30t-5.8-42.81q0-34.55 22.56-58.82-10.57-26 2-58.24 8.28-2.57 24.55 3.85t23.84 11q7.57 4.56 12.13 7.71a206.2 206.2 0 0 1 109.64 0l10.85-6.85a153.65 153.65 0 0 1 26.26-12.56q15.13-5.71 23.13-3.14 12.84 32.26 2.28 58.24 22.55 24.27 22.56 58.82 0 24.27-5.85 43t-15.12 30a79.82 79.82 0 0 1-23.13 19 116.74 116.74 0 0 1-26.84 11.14 195.29 195.29 0 0 1-29.23 5.07q14.8 12.84 14.81 40.58v60.2a11.37 11.37 0 0 0 3.57 8.56q3.57 3.42 11.28 2 66.24-22 108.07-79.23t41.83-128.91q-.03-59.62-29.43-110.05z"})),d=()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},r.default.createElement("path",{d:"M11 24a13 13 0 0 1 .66-4.08l-7.4-5.66a22.18 22.18 0 0 0 0 19.49l7.4-5.67A13 13 0 0 1 11 24z",fill:"#fbbc05"}),r.default.createElement("path",{d:"M24 11a12.72 12.72 0 0 1 8.1 2.9l6.4-6.4a22 22 0 0 0-34.24 6.75l7.4 5.66A13 13 0 0 1 24 11z",fill:"#ea4335"}),r.default.createElement("path",{d:"M24 37a13 13 0 0 1-12.34-8.92l-7.4 5.66A21.93 21.93 0 0 0 24 46a21 21 0 0 0 14.33-5.48l-7-5.44A13.59 13.59 0 0 1 24 37zm-12.35-8.93l-7.4 5.67 7.4-5.66z",fill:"#34a853"}),r.default.createElement("path",{d:"M44.5 20H24v8.5h11.8a9.91 9.91 0 0 1-4.49 6.58l7 5.44C42.37 36.76 45 31.17 45 24a18.25 18.25 0 0 0-.5-4z",fill:"#4285f4"})),p=()=>r.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 112 112"},r.default.createElement("path",{d:"M0 0h112v112H0z"}),r.default.createElement("circle",{cx:"56",cy:"56",r:"56",fill:"#A4A4A4"}),r.default.createElement("path",{d:"M22 24h68v68H22z"}),r.default.createElement("path",{d:"M27.667 35.333h56.667v45.333H27.667z"}),r.default.createElement("path",{fill:"#fff",d:"M84.333 41c0-3.117-2.55-5.667-5.666-5.667H33.333c-3.116 0-5.666 2.55-5.666 5.667v34c0 3.117 2.55 5.667 5.666 5.667h45.334c3.116 0 5.666-2.55 5.666-5.667V41zm-5.666 0L56 55.167 33.333 41h45.334zm0 34H33.333V46.667L56 60.833l22.667-14.166V75z"}));class h extends r.default.Component{constructor(){super(...arguments),l(this,"handleLoginButtonClicked",(e,t)=>{this.props.onLoginButtonClick?this.props.onLoginButtonClick(e,t):console.warn("LoginDialogContent is missing the onLoginButtonClick property")})}render(){var e=this.props,t=e.title,n=e.description,o=e.providers,i=e.SanityLogo;return r.default.createElement("div",{className:s.default.root},r.default.createElement("div",{className:s.default.inner},i&&r.default.createElement("div",{className:s.default.sanityLogo},r.default.createElement(i,null)),r.default.createElement("div",{className:s.default.branding},r.default.createElement("h1",{className:a.default?s.default.projectNameHidden:s.default.projectName},c),a.default&&r.default.createElement("div",{className:s.default.brandLogoContainer},r.default.createElement(a.default,{projectName:c}))),r.default.createElement("h2",{className:s.default.title},t),n&&r.default.createElement("div",{className:s.default.description},n),r.default.createElement("ul",{className:s.default.providers},o.map(e=>{var t=function(e){switch(e.name){case"google":return d;case"github":return f;default:return function(){return e.logo?r.default.createElement("img",{src:e.logo,alt:"Logo for ".concat(e.name)}):r.default.createElement(p,null)}}}(e),n=this.handleLoginButtonClicked.bind(this,e);return r.default.createElement("li",{key:e.name,className:s.default.provider},r.default.createElement("button",{type:"button",onClick:n,className:s.default.providerButton},r.default.createElement("span",{className:s.default.providerLogo},r.default.createElement(t,null)),r.default.createElement("span",{className:s.default.providerName},e.title)))}))))}}t.default=h,l(h,"propTypes",{title:o.default.node.isRequired,description:o.default.node,providers:o.default.array,onLoginButtonClick:o.default.func,SanityLogo:o.default.func}),l(h,"defaultProps",{description:null,title:null,providers:null,onLoginButtonClick:null,SanityLogo:null})},function(e,t){e.exports={root:"LoginDialogContent_root_21L06",title:"LoginDialogContent_title_2y9la",description:"LoginDialogContent_description_2Vh8t",sanityLogo:"LoginDialogContent_sanityLogo_1g-zs",branding:"LoginDialogContent_branding_3Y2vV",projectName:"LoginDialogContent_projectName_OGF8K undefined",projectNameHidden:"LoginDialogContent_projectNameHidden_13BBf LoginDialogContent_projectName_OGF8K undefined",brandLogoContainer:"LoginDialogContent_brandLogoContainer_1daIF",providers:"LoginDialogContent_providers_PRqEP",inner:"LoginDialogContent_inner_19WKW",provider:"LoginDialogContent_provider_3gQ8U",providerButton:"LoginDialogContent_providerButton_1u-vD",providerName:"LoginDialogContent_providerName_18p1Y",providerLogo:"LoginDialogContent_providerLogo_3mZX2"}},function(e,t){e.exports={error:"LoginDialog_error_3X6oM"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!1;return{promise:new Promise((n,r)=>{e.then(e=>{t||n(e)}),e.catch(e=>{t||r(e)})}),cancel(){t=!0}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};var i=e=>o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 300 35"},o.default.createElement("path",{fill:"currentColor",d:"M105.5 30.7h6.8V12.6l-6.8 3.6zM35 21.5l-3.4 8.8L43 24.2l-2.1-5.7zm71.9-13.9h-.8l-.2.2-.4.1v7l6.8-3.5.6-.3.5-.3 6-3.2h-11.3zM55.8 30.7h6.5v-18l-6.5-9.8zM25.6 25l-.3.8-.3.8-.1.3 4.9 4.3.1.2.2-.3 3.5-8.9.3-.7.3-.8 3.9-9.8-3.2-8.6zM50 21.2l-2.5-6.6-.3-.5L42.1.5h-6.7l.1.3v.1l3.2 8.5.3.7.2.8 2.3 6.1.2.5.2.5 2.1 5.7.2.5.2.6 2.3 5.9h6.8l-3.3-9zM57.7.5h-2.2l.3.4 6.5 9.8.6.8.5.8 11 16.5V18.2L63.1.5zm28.8 0h6.7v30.2h-6.7zm32.4.7l-.2-.5-.2-.2H96.2v6H122l-.6-1.1zm3.4-.7L132.4 18l3.6-6.4L129.7.5zM75.5 17.8v12.9H82V.5h-6.5zM12.2 31.1c2.7.1 5.4-.7 7.7-2.3V27c.2-2-.7-3.9-2.3-5.1-.6 2.2-2.5 3.5-5.4 3.5-2 0-4.6-.6-5.5-3.6l-.1-.2H-.3l.1.4c1 5.7 5.6 9.1 12.4 9.1zM11.4 0C8.7-.1 6.1.8 4 2.3v1.9c-.1 1.9.8 3.7 2.3 4.8.7-2 2.6-3.3 5.1-3.3 2.2-.2 4.3 1.2 5.1 3.3l.1.2h6.7l-.1-.4C22.1 3.3 17.7 0 11.4 0z"}),o.default.createElement("path",{fill:"currentColor",d:"M15.5 13l-5.3-1.3c-1-.2-2-.6-3-1l-.5-.3-.5-.3C4 9 2.7 6.7 2.8 4.2v-1l-.5.8-.1.1c-.4.5-.7 1.1-1 1.7C.7 7 .5 8.2.5 9.4c0 4.4 2.6 7.2 7.7 8.4l5.2 1.2c1.1.3 2.2.6 3.2 1.1l.5.3.5.3c2.2 1.3 3.5 3.7 3.3 6.3v1l.6-.7.1-.1c.2-.3.4-.5.5-.8.2-.3.3-.6.5-.9.5-1.2.8-2.5.8-3.8 0-4.4-2.8-7.5-7.9-8.7zm118.1 7.6h-.5v10.1h6.7V20.6h-5.6zm-.4-1.1h6.4l.1-.2.1-.1v-.1L150.6.5h-7.2v.1l-6.2 11-.3.5-.3.6-3.6 6.4.1.1v.3z"}),o.default.createElement("path",{fill:"currentColor",d:"M159.7 24c1.2 3.7 4.5 5.6 8.7 5.6 4.4 0 7.6-2.2 7.6-6.1 0-2.7-1.4-4.6-5.3-5.7l-5.9-1.6c-4.3-1.2-7.1-3.1-7.1-7.5 0-5.2 4.4-8.3 9.7-8.3 6 0 9.6 3.2 10.8 7.7h-2.6c-1.1-3.2-3.8-5.4-8.2-5.4-4 0-7.2 2.1-7.2 5.8 0 3.2 2.1 4.4 5.9 5.4l5.1 1.5c5.1 1.4 7.2 3.9 7.2 8 0 5.4-4.4 8.6-10.1 8.6s-10.1-2.9-11.4-8h2.8zm25.5-12.6h-3.8V9.3h3.8V3.6h2.4v5.7h5.8v2.2h-5.8v14.7c0 2.5 1.1 3.6 3.2 3.6 1.1 0 2.1-.3 3.1-.9v2.4c-1 .5-2.2.8-3.3.8-3.2 0-5.4-1.8-5.4-5.6V11.4zm30.7 20.1h-2.4V28c-1.5 2.4-4.2 3.9-7.1 4-5.1 0-7.7-3.2-7.7-8V9.3h2.4v14.4c0 3.5 1.8 6 5.7 6 3-.1 5.6-2 6.6-4.8V9.3h2.4v22.2zm22.1-3.3c-1.6 2.3-4.1 3.7-6.9 3.8-6.6 0-9.7-5.4-9.7-11.5S224.5 9 231.1 9c2.8.1 5.3 1.5 6.9 3.7V-1h2.4v32.5H238v-3.3zm0-12.7c-1.2-2.6-3.8-4.3-6.7-4.4-4.6 0-7.4 3.9-7.4 9.2s2.8 9.2 7.4 9.2c2.9-.1 5.5-1.8 6.7-4.4v-9.6zm10.8-11.3c-.9 0-1.7-.7-1.7-1.7 0-.9.8-1.7 1.7-1.7.9 0 1.7.8 1.7 1.7 0 1-.7 1.7-1.7 1.7 0 .1 0 .1 0 0zm1.3 27.3h-2.5V9.3h2.5v22.2zm15.3.5c-5.9 0-9.8-4.7-9.8-11.5s4-11.5 9.8-11.5 9.9 4.7 9.9 11.5-4 11.5-9.9 11.5zm0-20.9c-4.4 0-7.3 3.8-7.3 9.3s2.9 9.4 7.3 9.4 7.4-3.8 7.4-9.4-3-9.4-7.4-9.3z"}));t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(1)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),i=f(n(13)),a=f(n(63)),s=f(n(8)),u=f(n(15)),l=f(n(26)),c=f(n(837));function f(e){return e&&e.__esModule?e:{default:e}}var d,p,h,v=a.default.project&&a.default.project.name||"",m=()=>i.default.request({method:"post",uri:"/auth/testCookie",withCredentials:!0}).then(()=>i.default.request({uri:"/auth/testCookie",withCredentials:!0}).then(()=>!0).catch(()=>!1)).then(e=>({isCookieError:!e})).catch(e=>({error:e}));class y extends o.PureComponent{constructor(){super(...arguments),this.state={isLoading:!0}}componentWillMount(){m().then(e=>this.setState({result:e,isLoading:!1}))}renderWhiteListForm(){var e=this.props,t=e.SanityLogo,n=e.sanityLogo,r="".concat(i.default.clientConfig.url,"/auth/whitelist?redirectTo=").concat(encodeURIComponent(window.location.toString()));return o.default.createElement("div",{className:c.default.root},o.default.createElement("div",{className:c.default.inner},t&&o.default.createElement("div",{className:c.default.sanityLogo},o.default.createElement(t,null)),n&&!t&&o.default.createElement("div",{className:c.default.sanityLogo},n),o.default.createElement("div",{className:c.default.branding},o.default.createElement("h1",{className:u.default?c.default.projectNameHidden:c.default.projectName},v),u.default&&o.default.createElement("div",{className:c.default.brandLogoContainer},o.default.createElement(u.default,{projectName:v}))),o.default.createElement("div",{className:c.default.title},o.default.createElement("h2",null,"Accept the Cookie")),o.default.createElement("div",{className:c.default.description},o.default.createElement("p",null,"Your browser didn't accept our cookie so we're having trouble logging you in."),o.default.createElement("p",null,"You can explicitly accept it though by clicking below.")),o.default.createElement("form",{method:"post",className:c.default.acceptCookieForm,action:"".concat(i.default.clientConfig.url,"/auth/testCookie"),encType:"application/x-www-form-urlencoded"},o.default.createElement("input",{type:"hidden",name:"redirectTo",value:r}),o.default.createElement(s.default,{color:"success",inverted:!0,type:"submit"},"ACCEPT COOKIE"))))}render(){var e=this.state,t=e.isLoading,n=e.result;return t?o.default.createElement(l.default,{fullscreen:!0,center:!0}):n.isCookieError?this.renderWhiteListForm():o.default.createElement("div",null,this.props.children)}}d=y,p="propTypes",h={children:r.default.node.isRequired},p in d?Object.defineProperty(d,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):d[p]=h,y.propTypes={sanityLogo:r.default.node,SanityLogo:r.default.func};var g=y;t.default=g},function(e,t){e.exports={error:"CookieTest_error_nHhmd",root:"CookieTest_root_3f8fr",sanityLogo:"CookieTest_sanityLogo_2hTjj",inner:"CookieTest_inner_3w2gB",branding:"CookieTest_branding_xqQVb",projectName:"CookieTest_projectName_3DpfI undefined",projectNameHidden:"CookieTest_projectNameHidden_647QV CookieTest_projectName_3DpfI undefined",brandLogoContainer:"CookieTest_brandLogoContainer_2HpJ3",title:"CookieTest_title_F4ORi",description:"CookieTest_description_2g5La",acceptCookieForm:"CookieTest_acceptCookieForm_3eDHn"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=l(n(1)),o=l(n(0)),i=l(n(32)),a=l(n(8)),s=l(n(107)),u=l(n(840));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.error.isNetworkError;return o.default.createElement(i.default,{color:"danger",title:"Error",isOpen:!0,centered:!0},!t&&o.default.createElement("p",null,e.error.message),t&&o.default.createElement(s.default,{size:"medium",padding:"none"},o.default.createElement("p",null,"An error occured while attempting to reach the Sanity API."),o.default.createElement(u.default,null)),o.default.createElement(a.default,{onClick:e.onRetry},"Retry"))}c.propTypes={error:r.default.shape({isNetworkError:r.default.bool,message:r.default.string.isRequired}).isRequired,onRetry:r.default.func.isRequired}},function(e,t){e.exports={root:"DialogContent_root_3-efC",auto:"DialogContent_auto_Qjur7 DialogContent_root_3-efC",padding_none:"DialogContent_padding_none_QxWbh",padding_small:"DialogContent_padding_small_1em72",padding_medium:"DialogContent_padding_medium_1jmHG",padding_large:"DialogContent_padding_large_7f9KE",small:"DialogContent_small_1GRRA DialogContent_root_3-efC",medium:"DialogContent_medium_300hf DialogContent_root_3-efC",large:"DialogContent_large_3YlVz DialogContent_root_3-efC"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),o=a(n(13)),i=a(n(26));function a(e){return e&&e.__esModule?e:{default:e}}var s=()=>Promise.all([o.default.request({uri:"/ping",withCredentials:!1}).then(()=>!0),o.default.request({uri:"/users/me",withCredentials:!1}).then(()=>!0).catch(()=>!1)]).then(e=>({isCorsError:e[0]&&!e[1],pingResponded:e[0]})).catch(e=>({error:e})),u="noopener noreferrer";var l=class extends r.PureComponent{constructor(){super(...arguments),this.state={isLoading:!0}}componentWillMount(){s().then(e=>this.setState({result:e,isLoading:!1}))}renderWrapper(e){var t=this.state.result,n=t&&t.error&&t.error.response;return n&&n.body&&n.body.message?r.default.createElement("div",null,r.default.createElement("p",null,"Error message:"),r.default.createElement("pre",null,r.default.createElement("code",null,n.body.message)),e):e}render(){var e=this.state,t=e.isLoading,n=e.result,a=window.location.origin||window.location.href.replace(new RegExp("".concat(window.location.pathname,"$")),"");if(t)return r.default.createElement(i.default,{fullscreen:!0,center:!0});var s=o.default.config().apiHost.replace(/.*?sanity\.([a-z]+).*/,"$1"),l=o.default.config().projectId,c="https://manage.sanity.".concat(s,"/projects/").concat(l,"/settings/api"),f=n.error&&n.error.response;if(f){var d=404===f.statusCode,p=f.body.attributes&&f.body.attributes.type;if(d&&"project"===p)return r.default.createElement("div",null,r.default.createElement("p",null,f.body.message||f.statusCode),r.default.createElement("p",null,"Double-check that your ",r.default.createElement("code",null,"sanity.json")," points to the right project ID?"))}return n.isCorsError?this.renderWrapper(r.default.createElement("p",null,"It seems the error could be caused by the current origin (",r.default.createElement("code",null,a),") not being an allowed origin for this project. If you are an administrator or developer of the project, you can head to"," ",r.default.createElement("a",{rel:u,target:"_blank",href:c},"the project management")," ","interface and add the origin under the ",r.default.createElement("em",null,"CORS Origins")," section.")):n.pingResponded?this.renderWrapper(r.default.createElement("p",null,"The cause of this error is a little uncertain. It could be a temporary glitch, in which case you might want to try hitting the ",r.default.createElement("strong",null,"Retry")," button below. If you are the developer of this project, you could take a look at the browsers developer console and see if any issues are reported there.")):this.renderWrapper(r.default.createElement("p",null,"It might be that your internet connection is unstable or down, or it ",r.default.createElement("em",null,"might")," be the Sanity API is having some issues, in which case it should hopefully be back up soon! You could also try hitting the ",r.default.createElement("strong",null,"Retry")," button and see if it was just a temporary glitch."))}};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=u(n(1)),o=u(n(0)),i=u(n(32)),a=u(n(119)),s=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function l(){a.default.actions.logout()}function c(e){return o.default.createElement(i.default,{title:"Unauthorized",isOpen:!0,centered:!0},o.default.createElement("p",null,"You are not authorized to access this studio. Maybe you could ask someone to invite you to collaborate on this project?"),o.default.createElement("p",null,"If you think this is an error, verify that you are logged in with the correct account. You are currently logged in as"," ",o.default.createElement("span",null,e.user.name," (",e.user.email,")")),o.default.createElement(s.default,{onClick:l},"Logout"))}c.propTypes={user:r.default.shape({name:r.default.string.isRequired,email:r.default.string.isRequired})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveStateFromPath",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"resolvePathFromState",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"route",{enumerable:!0,get:function(){return i.default}});var r=a(n(407)),o=a(n(410)),i=a(n(859));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){(function(r){function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(844)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())}).call(t,n(56))},function(e,t,n){var r;function o(e){function n(){if(n.enabled){var e=n,o=+new Date,i=o-(r||o);e.diff=i,e.prev=r,e.curr=o,r=o;for(var a=new Array(arguments.length),s=0;s0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*o;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===l&&!1===isNaN(e))return t.long?s(u=e,i,"day")||s(u,o,"hour")||s(u,r,"minute")||s(u,n,"second")||u+" ms":function(e){if(e>=i)return Math.round(e/i)+"d";if(e>=o)return Math.round(e/o)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){var r=n(103),o=n(162),i=n(22),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){if(null==n)return u([],[],[]);var s=t.scope?n[t.scope]:n;var l=t.route.segments.filter(e=>"param"===e.type).map(e=>e.name);var c=s?Object.keys(s):[];var f=(0,o.default)(c,l);var d=(0,i.default)(l,f);var p=(0,i.default)(c,f);if(d.length>0)return u([],d,[]);if(0===p.length)return u([t],[],[]);var h=("function"==typeof t.children?t.children(s):t.children)||[];if(p.length>0&&0===h.length)return u([],p,[]);var v=(0,r.default)(s,p);var m={nodes:[],remaining:[],missing:[]};(0,a.default)(h).some(t=>(m=e(t,v)).nodes.length>0);if(0===m.nodes.length)return u([],d,p);return u([t,...m.nodes],m.missing,m.remaining)};var r=s(n(17)),o=s(n(415)),i=s(n(256)),a=s(n(409));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return{nodes:e,missing:t,remaining:n}}},function(e,t,n){var r=n(411),o=n(403);e.exports=function(e,t){return r(e,t,function(t,n){return o(e,n)})}},function(e,t,n){var r=n(252),o=n(104),i=n(164),a=n(20),s=n(82);e.exports=function(e,t,n,u){if(!a(e))return e;for(var l=-1,c=(t=o(t,e)).length,f=c-1,d=e;null!=d&&++l0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(171),o=n(254),i=n(255),a=n(50),s=n(78),u=n(172),l=Math.min;e.exports=function(e,t,n){for(var c=n?i:o,f=e[0].length,d=e.length,p=d,h=Array(d),v=1/0,m=[];p--;){var y=e[p];p&&t&&(y=a(y,s(t))),v=l(y.length,v),h[p]=!n&&(t||f>=120&&y.length>=120)?new r(p&&y):void 0}y=e[0];var g=-1,b=h[0];e:for(;++g1?t-1:0),r=1;re.concat(t.split("/")),[]).filter(Boolean)}(e).join("/");return d("".concat(t,"/:intent"),[d(":params",{transform:{params:{toState:a.decodeParams,toPath:a.encodeParams}}})])};var p={};function h(e){for(var t=e.split("/"),n=0;n{var n=t.split("="),r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(n,2),o=r[0],i=r[1];return e[o]=i,e},{})},t.encodeParams=function(e){return Object.keys(e).map(t=>"".concat(t,"=").concat(e[t])).join(";")}},function(e,t,n){e.exports=n(863)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterProvider",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"StateLink",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"IntentLink",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"RouteScope",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"WithRouter",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"withRouterHOC",{enumerable:!0,get:function(){return l.default}});var r=c(n(864)),o=c(n(257)),i=c(n(884)),a=c(n(885)),s=c(n(886)),u=c(n(889)),l=c(n(424));function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(0)),o=a(n(1)),i=a(n(77));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends r.default.Component{constructor(e){var t;super(),t=this,s(this,"props",void 0),s(this,"__internalRouter",void 0),s(this,"_state",void 0),s(this,"navigateUrl",function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,t.props.onNavigate)(e,n)}),s(this,"navigateState",function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.navigateUrl(t.resolvePathFromState(e),n)}),s(this,"navigateIntent",function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.navigateUrl(t.resolveIntentLink(e,n),r)}),s(this,"getState",()=>this._state),s(this,"resolvePathFromState",e=>this.props.router.encode(e)),s(this,"resolveIntentLink",(e,t)=>this.props.router.encode({intent:e,params:t})),this._state=e.state,this.__internalRouter={resolvePathFromState:this.resolvePathFromState,resolveIntentLink:this.resolveIntentLink,navigateUrl:this.navigateUrl,navigate:this.navigateState,navigateIntent:this.navigateIntent,getState:this.getState,channel:(0,i.default)()}}getChildContext(){return{__internalRouter:this.__internalRouter}}componentWillReceiveProps(e){this.props.state!==e.state&&(this._state=e.state,this.__internalRouter.channel.publish(e.state))}render(){return this.props.children}}t.default=u,s(u,"childContextTypes",{__internalRouter:o.default.object})},function(e,t,n){var r=n(85),o=n(65);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(85),o=n(175);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(20),o=n(243),i=n(868),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(85),o=n(250);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(85),o=n(420);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(261),o=n(873),i=n(874),a=n(875),s=n(421),u="[object Boolean]",l="[object Date]",c="[object Map]",f="[object Number]",d="[object RegExp]",p="[object Set]",h="[object String]",v="[object Symbol]",m="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",O="[object Int32Array]",k="[object Uint8Array]",E="[object Uint8ClampedArray]",S="[object Uint16Array]",x="[object Uint32Array]";e.exports=function(e,t,n){var C=e.constructor;switch(t){case m:return r(e);case u:case l:return new C(+e);case y:return o(e,n);case g:case b:case _:case w:case O:case k:case E:case S:case x:return s(e,n);case c:return new C;case f:case h:return new C(e);case d:return i(e);case p:return new C;case v:return a(e)}}},function(e,t,n){var r=n(261);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(103),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(877),o=n(78),i=n(165),a=i&&i.isMap,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(173),o=n(36),i="[object Map]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(879),o=n(78),i=n(165),a=i&&i.isSet,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(173),o=n(36),i="[object Set]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(104),o=n(881),i=n(882),a=n(82);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(174),o=n(423);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},function(e,t,n){var r=n(70);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(0)),o=a(n(257)),i=a(n(177));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c={};class f extends r.default.PureComponent{constructor(){super(...arguments),l(this,"props",void 0),l(this,"context",void 0),l(this,"_element",void 0),l(this,"setElement",e=>{e&&(this._element=e)})}resolveUrl(){var e=this.props,t=e.toIndex,n=e.state;if(n&&t)throw new Error("Passing both `state` and `toIndex` as props to StateLink is invalid");n||t||console.error(new Error("No state passed to StateLink. If you want to link to an empty state, its better to use the the `toIndex` property"));var r=t?c:n||c;return this.resolvePathFromState(r)}resolvePathFromState(e){return this.context.__internalRouter?this.context.__internalRouter.resolvePathFromState(e):"javascript://state@".concat(JSON.stringify(e))}focus(){this._element&&this._element.focus()}render(){var e=this.props,t=(e.state,e.toIndex,u(e,["state","toIndex"]));return r.default.createElement(o.default,s({},t,{href:this.resolveUrl(),ref:this.setElement}))}}t.default=f,l(f,"defaultProps",{replace:!1,toIndex:!1}),l(f,"contextTypes",{__internalRouter:i.default})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(0)),o=a(n(257)),i=a(n(177));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends r.default.PureComponent{constructor(){super(...arguments),l(this,"props",void 0),l(this,"context",void 0),l(this,"_element",void 0),l(this,"setElement",e=>{e&&(this._element=e)})}focus(){this._element&&this._element.focus()}resolveIntentLink(e,t){return this.context.__internalRouter?this.context.__internalRouter.resolveIntentLink(e,t):"javascript://intent@".concat(JSON.stringify({intent:e,params:t}))}render(){var e=this.props,t=e.intent,n=e.params,i=u(e,["intent","params"]);return r.default.createElement(o.default,s({href:this.resolveIntentLink(t,n)},i,{ref:this.setElement}))}}t.default=c,l(c,"contextTypes",{__internalRouter:i.default})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=a(n(887));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){for(var t=1;t{var e=this.props.scope;return this.context.__internalRouter.getState()[e]}),u(this,"resolvePathFromState",e=>{var t=this.context.__internalRouter,n=this.props.scope,r=(0,i.default)(e)?{}:l(t.getState(),n,e);return t.resolvePathFromState(r)}),u(this,"navigate",(e,t)=>{var n=this.context.__internalRouter,r=l(n.getState(),this.props.scope,e);n.navigate(r,t)});var n=t.__internalRouter;this.__internalRouter=s({},n,{resolvePathFromState:this.resolvePathFromState,navigate:this.navigate,getState:this.getScopedState})}getChildContext(){return{__internalRouter:this.__internalRouter}}render(){return this.props.children}}t.default=c,u(c,"childContextTypes",c.contextTypes={__internalRouter:r.default.object})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t in e)if((0,o.default)(e,t))return!1;return!0};var r,o=(r=n(888))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Object.prototype.hasOwnProperty,o=r.call.bind(r);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;r(n(0));function r(e){return e&&e.__esModule?e:{default:e}}var o=(0,r(n(424)).default)(e=>e.children(e.router));t.default=o},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,((r=n(891))&&r.__esModule?r:{default:r}).default)();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{state:new r.Observable(e=>{var t=h.subscribe(e);return e.next({type:"snapshot",location:f()}),t}),intercept:e=>(d.push(e),()=>{d.splice(d.indexOf(e),1)}),actions:(0,s.default)({navigate:p})}};var r=n(6),o=n(4),i=u(n(974)),a=n(980),s=u(n(381));function u(e){return e&&e.__esModule?e:{default:e}}var l=()=>{},c=(0,a.createBrowserHistory)();function f(){return i.default.parse(document.location.href)}var d=[];function p(e,t){if(d.length>0){var n=!1,o={nextUrl:e,cancel(){n=!0}};if(d.some(e=>(e(o),!n)),n)return{progress:new r.Observable(l)}}return t.replace?c.replace(e):c.push(e),{progress:new r.Observable(l)}}var h=new r.Observable(e=>c.listen(()=>e.next(f()))).pipe((0,o.map)(e=>({type:"change",location:e})),(0,o.share)())},function(e,t,n){"use strict";t.a=function(e,t){void 0===t&&(t=r.a);return Object(o.a)(function(){return Object(i.a)(e,t)})};var r=n(31),o=n(427),i=n(380)},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.lift(new a(e))}};var r=n(3),o=n(11),i=n(12);var a=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.closingNotifier))},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.buffer=[],r.add(Object(i.a)(r,n)),r}return r.a(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(e,t,n,r,o){var i=this.buffer;this.buffer=[],this.destination.next(i)},t}(o.a)},function(e,t,n){"use strict";t.a=function(e,t){void 0===t&&(t=null);return function(n){return n.lift(new i(e,t))}};var r=n(3),o=n(5);var i=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?s:a}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.bufferSize=n,r.buffer=[],r}return r.a(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(o.a),s=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.bufferSize=n,o.startBufferEvery=r,o.buffers=[],o.count=0,o}return r.a(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,o=this.count;this.count++,o%n==0&&r.push([]);for(var i=r.length;i--;){var a=r[i];a.push(e),a.length===t&&(r.splice(i,1),this.destination.next(a))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var r=t.shift();r.length>0&&n.next(r)}e.prototype._complete.call(this)},t}(o.a)},function(e,t,n){"use strict";t.a=function(e){var t=arguments.length,n=o.a;Object(a.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;t>=3&&(i=arguments[2]);return function(t){return t.lift(new s(e,r,i,n))}};var r=n(3),o=n(31),i=n(5),a=n(48);var s=function(){function e(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),u=function(){return function(){this.buffer=[]}}(),l=function(e){function t(t,n,r,o,i){var a=e.call(this,t)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=r,a.maxBufferSize=o,a.scheduler=i,a.contexts=[];var s=a.openContext();if(a.timespanOnly=null==r||r<0,a.timespanOnly){var u={subscriber:a,context:s,bufferTimeSpan:n};a.add(s.closeAction=i.schedule(c,n,u))}else{var l={subscriber:a,context:s},p={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:a,scheduler:i};a.add(s.closeAction=i.schedule(d,n,l)),a.add(i.schedule(f,r,p))}return a}return r.a(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,r=n.length,o=0;o0;){var r=t.shift();n.next(r.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(c,n,r))}},t.prototype.openContext=function(){var e=new u;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(i.a);function c(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function f(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,o=e.scheduler,i=r.openContext();r.closed||(r.add(i.closeAction=o.schedule(d,n,{subscriber:r,context:i})),this.schedule(e,t))}function d(e){var t=e.subscriber,n=e.context;t.closeContext(n)}},function(e,t,n){"use strict";t.a=function(e,t){return function(n){return n.lift(new s(e,t))}};var r=n(3),o=n(21),i=n(12),a=n(11);var s=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.openings,this.closingSelector))},e}(),u=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.openings=n,o.closingSelector=r,o.contexts=[],o.add(Object(i.a)(o,n)),o}return r.a(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,o){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,r=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new o.a,r={buffer:[],subscription:n};t.push(r);var a=Object(i.a)(this,e,r);!a||a.closed?this.closeBuffer(r):(a.context=r,this.add(a),n.add(a))},t}(a.a)},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.lift(new s(e))}};var r=n(3),o=n(21),i=n(11),a=n(12);var s=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.closingSelector))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.a(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},t.prototype.notifyNext=function(e,t,n,r,o){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{t=(0,this.closingSelector)()}catch(e){return this.error(e)}e=new o.a,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(Object(a.a)(this,t)),this.subscribing=!1},t}(i.a)},function(e,t,n){"use strict";t.a=function(e){return function(t){var n=new s(e),r=t.lift(n);return n.caught=r}};var r=n(3),o=n(11),i=n(64),a=n(12);var s=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.selector,this.caught))},e}(),u=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.selector=n,o.caught=r,o}return r.a(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var r=new i.a(this,void 0,void 0);this.add(r),Object(a.a)(this,n,void 0,void 0,r)}},t}(o.a)},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.lift(new r.a(e))}};var r=n(234)},function(e,t,n){"use strict";t.a=function(){for(var e=[],t=0;t0&&n[0].time-r.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var i=Math.max(0,n[0].time-r.now());this.schedule(e,i)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new c(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(s.a.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(s.a.createComplete()),this.unsubscribe()},t}(a.a),c=function(){return function(e,t){this.time=e,this.notification=t}}()},function(e,t,n){"use strict";t.a=function(e,t){if(t)return function(n){return new c(n,t).lift(new u(e))};return function(t){return t.lift(new u(e))}};var r=n(3),o=n(5),i=n(9),a=n(11),s=n(12);var u=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.delayDurationSelector))},e}(),l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.a(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(e),this.removeSubscription(o),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=Object(s.a)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(a.a),c=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subscriptionDelay=n,r}return r.a(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new f(e,this.source))},t}(i.a),f=function(e){function t(t,n){var r=e.call(this)||this;return r.parent=t,r.source=n,r.sourceSubscribed=!1,r}return r.a(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(o.a)},function(e,t,n){"use strict";t.a=function(){return function(e){return e.lift(new i)}};var r=n(3),o=n(5);var i=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new a(e))},e}(),a=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(o.a)},function(e,t,n){"use strict";t.a=function(e,t){return function(n){return n.lift(new a(e,t))}};var r=n(3),o=n(11),i=n(12);var a=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.keySelector,this.flushes))},e}(),s=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.keySelector=n,o.values=new Set,r&&o.add(Object(i.a)(o,r)),o}return r.a(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.values.clear()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){return void n.error(e)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(o.a)},function(e,t,n){"use strict";t.a=function(e,t){return Object(r.a)(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})};var r=n(430)},function(e,t,n){"use strict";t.a=function(e,t){if(e<0)throw new r.a;var n=arguments.length>=2;return function(u){return u.pipe(Object(o.a)(function(t,n){return n===e}),Object(s.a)(1),n?Object(a.a)(t):Object(i.a)(function(){return new r.a}))}};var r=n(124),o=n(101),i=n(178),a=n(132),s=n(263)},function(e,t,n){"use strict";t.a=function(){for(var e=[],t=0;t0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(o.a)},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.lift(new a(e))}};var r=n(3),o=n(5),i=n(21);var a=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.callback))},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new i.a(n)),r}return r.a(t,e),t}(o.a)},function(e,t,n){"use strict";t.a=function(e,t){return function(n){return n.lift(new r.a(e,n,!0,t))}};var r=n(431)},function(e,t,n){"use strict";t.a=function(e,t){var n=arguments.length>=2;return function(l){return l.pipe(e?Object(o.a)(function(t,n){return e(t,n,l)}):u.a,Object(i.a)(1),n?Object(a.a)(t):Object(s.a)(function(){return new r.a}))}};var r=n(125),o=n(101),i=n(263),a=n(132),s=n(178),u=n(100)},function(e,t,n){"use strict";t.a=function(){return function(e){return e.lift(new i)}};var r=n(3),o=n(5);var i=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new a(e))},e}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype._next=function(e){},t}(o.a)},function(e,t,n){"use strict";t.a=function(){return function(e){return e.lift(new i)}};var r=n(3),o=n(5);var i=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new a(e))},e}(),a=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(o.a)},function(e,t,n){"use strict";t.a=function(e,t){var n=arguments.length>=2;return function(l){return l.pipe(e?Object(o.a)(function(t,n){return e(t,n,l)}):u.a,Object(i.a)(1),n?Object(s.a)(t):Object(a.a)(function(){return new r.a}))}};var r=n(125),o=n(101),i=n(264),a=n(178),s=n(132),u=n(100)},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.lift(new i(e))}};var r=n(3),o=n(5);var i=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.value))},e}(),a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return r.a(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(o.a)},function(e,t,n){"use strict";t.a=function(){return function(e){return e.lift(new a)}};var r=n(3),o=n(5),i=n(157);var a=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new s(e))},e}(),s=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t.prototype._next=function(e){this.destination.next(i.a.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(i.a.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(i.a.createComplete()),e.complete()},t}(o.a)},function(e,t,n){"use strict";t.a=function(e){var t="function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t};return Object(r.a)(t)};var r=n(179)},function(e,t,n){"use strict";t.a=function(){for(var e=[],t=0;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(i.a)},function(e,t,n){"use strict";t.a=function(e){var t="function"==typeof e?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(o.a)},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.lift(new s(e))}};var r=n(3),o=n(28),i=n(11),a=n(12);var s=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.notifier,t))},e}(),u=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.notifier=n,o.source=r,o.sourceIsBeingSubscribedTo=!0,o}return r.a(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(t){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){var t;this.notifications=new o.a;try{t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=Object(a.a)(this,t)},t}(i.a)},function(e,t,n){"use strict";t.a=function(e){void 0===e&&(e=-1);return function(t){return t.lift(new i(e,t))}};var r=n(3),o=n(5);var i=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.count,this.source))},e}(),a=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.count=n,o.source=r,o}return r.a(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return e.prototype.error.call(this,t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(o.a)},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.lift(new s(e,t))}};var r=n(3),o=n(28),i=n(11),a=n(12);var s=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.notifier,this.source))},e}(),u=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.notifier=n,o.source=r,o}return r.a(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{n=new o.a;try{r=(0,this.notifier)(n)}catch(t){return e.prototype.error.call(this,t)}i=Object(a.a)(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype.notifyNext=function(e,t,n,r,o){var i=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=i,this.source.subscribe(this)},t}(i.a)},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.lift(new a(e))}};var r=n(3),o=n(11),i=n(12);var a=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new s(e),r=t.subscribe(n);return r.add(Object(i.a)(n,this.notifier)),r},e}(),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return r.a(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(e,t,n,r,o){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(o.a)},function(e,t,n){"use strict";t.a=function(e,t){void 0===t&&(t=i.a);return function(n){return n.lift(new a(e,t))}};var r=n(3),o=n(5),i=n(31);var a=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.period,this.scheduler))},e}(),s=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.period=n,o.scheduler=r,o.hasValue=!1,o.add(r.schedule(u,n,{subscriber:o,period:n})),o}return r.a(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(o.a);function u(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}},function(e,t,n){"use strict";t.a=function(e,t){return function(n){return n.lift(new i(e,t))}};var r=n(3),o=n(5);var i=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.compareTo,this.comparator))},e}(),a=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.compareTo=n,o.comparator=r,o._a=[],o._b=[],o._oneComplete=!1,o.destination.add(n.subscribe(new s(t,o))),o}return r.a(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var r=e.shift(),o=t.shift(),i=!1;try{i=n?n(r,o):r===o}catch(e){this.destination.error(e)}i||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(o.a),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r.parent=n,r}return r.a(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(o.a)},function(e,t,n){"use strict";t.a=function(){return function(e){return Object(o.a)()(Object(r.a)(a)(e))}};var r=n(109),o=n(230),i=n(28);function a(){return new i.a}},function(e,t,n){"use strict";t.a=function(e,t,n){var o;o=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n};return function(e){return e.lift((a=(t=o).bufferSize,s=void 0===a?Number.POSITIVE_INFINITY:a,u=t.windowTime,l=void 0===u?Number.POSITIVE_INFINITY:u,c=t.refCount,f=t.scheduler,d=0,p=!1,h=!1,function(e){d++,n&&!p||(p=!1,n=new r.a(s,l,f),i=e.subscribe({next:function(e){n.next(e)},error:function(e){p=!0,n.error(e)},complete:function(){h=!0,n.complete()}}));var t=n.subscribe(this);this.add(function(){d--,t.unsubscribe(),i&&!h&&c&&0===d&&(i.unsubscribe(),i=void 0,n=void 0)})}));var t,n,i,a,s,u,l,c,f,d,p,h}};var r=n(231)},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.lift(new a(e,t))}};var r=n(3),o=n(5),i=n(125);var a=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.predicate,this.source))},e}(),s=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.predicate=n,o.source=r,o.seenValue=!1,o.index=0,o}return r.a(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new i.a)},t}(o.a)},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.lift(new i(e))}};var r=n(3),o=n(5);var i=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.total))},e}(),a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.a(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(o.a)},function(e,t,n){"use strict";t.a=function(e){return function(t){return t.lift(new a(e))}};var r=n(3),o=n(5),i=n(124);var a=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new i.a}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new o.a(e)):t.subscribe(new s(e,this._skipCount))},e}(),s=function(e){function t(t,n){var r=e.call(this,t)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.a(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,o=this.windows,a=o.length,s=0;s=0&&u%t==0&&!this.closed&&o.shift().complete(),++this.count%t==0&&!this.closed){var l=new i.a;o.push(l),n.next(l)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(o.a)},function(e,t,n){"use strict";t.a=function(e){var t=i.a,n=null,r=Number.POSITIVE_INFINITY;Object(u.a)(arguments[3])&&(t=arguments[3]);Object(u.a)(arguments[2])?t=arguments[2]:Object(s.a)(arguments[2])&&(r=arguments[2]);Object(u.a)(arguments[1])?t=arguments[1]:Object(s.a)(arguments[1])&&(n=arguments[1]);return function(o){return o.lift(new l(e,n,r,t))}};var r=n(3),o=n(28),i=n(31),a=n(5),s=n(161),u=n(48);var l=function(){function e(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return r.a(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(o.a),f=function(e){function t(t,n,r,o,i){var a=e.call(this,t)||this;a.destination=t,a.windowTimeSpan=n,a.windowCreationInterval=r,a.maxWindowSize=o,a.scheduler=i,a.windows=[];var s=a.openWindow();if(null!==r&&r>=0){var u={subscriber:a,window:s,context:null},l={windowTimeSpan:n,windowCreationInterval:r,subscriber:a,scheduler:i};a.add(i.schedule(h,n,u)),a.add(i.schedule(p,r,l))}else{var c={subscriber:a,window:s,windowTimeSpan:n};a.add(i.schedule(d,n,c))}return a}return r.a(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,r=0;r=this.maxWindowSize&&this.closeWindow(o))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new c;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(a.a);function d(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function p(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,o=e.windowCreationInterval,i=n.openWindow(),a={action:this,subscription:null},s={subscriber:n,window:i,context:a};a.subscription=r.schedule(h,t,s),this.add(a.subscription),this.schedule(e,o)}function h(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}},function(e,t,n){"use strict";t.a=function(e,t){return function(n){return n.lift(new u(e,t))}};var r=n(3),o=n(28),i=n(21),a=n(11),s=n(12);var u=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.openings,this.closingSelector))},e}(),l=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.openings=n,o.closingSelector=r,o.contexts=[],o.add(o.openSubscription=Object(s.a)(o,n,n)),o}return r.a(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r0){var a=i.indexOf(n);-1!==a&&i.splice(a,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.a)},function(e,t,n){"use strict";t.a=function(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:{qsImpl:n(434)}).qsImpl;class t{get search(){var t=e.stringify(this.query||{});return t.length>1?"?".concat(t):null}set search(t){this.query=e.parse(t.replace(/^\?/,""))}get host(){return this.port?"".concat(this.hostname,":").concat(this.port):this.hostname}get path(){return this.pathname+(this.search||"")}set path(t){var n=o.default.parse(t,!1,!1);Object.assign(this,{pathname:n.pathname,query:e.parse(n.search.substring(1))})}set host(e){var t=i(e.split(":"),2),n=t[0],r=t[1];Object.assign(this,{hostname:n,port:r})}get href(){return o.default.format(this)}set href(t){var n=o.default.parse(t,!1,!1);Object.assign(this,{protocol:n.protocol,slashes:n.slashes,hostname:n.hostname,pathname:n.pathname,port:n.port,auth:n.auth,query:e.parse((n.search||"").substring(1)),hash:n.hash})}clone(){Object.assign(new t,this)}extend(e){return Object.assign(new t,this,e)}}return{parse:e=>Object.assign(new t,{href:e}),stringify:e=>o.default.format({protocol:e.protocol,slashes:e.slashes,hostname:e.hostname,pathname:e.pathname,port:e.port,search:e.search,hash:e.hash})}}var s=a();t.default=s},function(e,t,n){"use strict";var r=n(976),o=n(977);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),f=["%","/","?",";","#"].concat(c),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(434);function b(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i127?D+="x":D+=A[I];if(!D.match(p)){var R=M.slice(0,C),F=M.slice(C+1),L=A.match(h);L&&(R.push(L[1]),F.unshift(L[2])),F.length&&(b="/"+F.join(".")+b),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+B,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!v[O])for(C=0,T=c.length;C0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=k.slice(-1)[0],x=(n.host||e.host||k.length>1)&&("."===S||".."===S)||""===S,C=0,P=k.length;P>=0;P--)"."===(S=k[P])?k.splice(P,1):".."===S?(k.splice(P,1),C++):C&&(k.splice(P,1),C--);if(!w&&!O)for(;C--;C)k.unshift("..");!w||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),x&&"/"!==k.join("/").substr(-1)&&k.push("");var j,M=""===k[0]||k[0]&&"/"===k[0].charAt(0);E&&(n.hostname=n.host=M?"":k.length?k.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(w=w||n.host&&k.length)&&!M&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){(function(e,r){var o;!function(i){"object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,l=36,c=1,f=26,d=38,p=700,h=72,v=128,m="-",y=/^xn--/,g=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=l-c,O=Math.floor,k=String.fromCharCode;function E(e){throw new RangeError(_[e])}function S(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function x(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+S((e=e.replace(b,".")).split("."),t).join(".")}function C(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=k((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=k(e)}).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function M(e,t,n){var r=0;for(e=n?O(e/p):e>>1,e+=O(e/t);e>w*f>>1;r+=l)e=O(e/w);return O(r+(w+1)*e/(e+d))}function T(e){var t,n,r,o,i,a,s,d,p,y,g,b=[],_=e.length,w=0,k=v,S=h;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r=128&&E("not-basic"),b.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<_;){for(i=w,a=1,s=l;o>=_&&E("invalid-input"),((d=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:l)>=l||d>O((u-w)/a))&&E("overflow"),w+=d*a,!(d<(p=s<=S?c:s>=S+f?f:s-S));s+=l)a>O(u/(y=l-p))&&E("overflow"),a*=y;S=M(w-i,t=b.length+1,0==i),O(w/t)>u-k&&E("overflow"),k+=O(w/t),w%=t,b.splice(w++,0,k)}return P(b)}function A(e){var t,n,r,o,i,a,s,d,p,y,g,b,_,w,S,x=[];for(b=(e=C(e)).length,t=v,n=0,i=h,a=0;a=t&&gO((u-n)/(_=r+1))&&E("overflow"),n+=(s-t)*_,t=s,a=0;au&&E("overflow"),g==t){for(d=n,p=l;!(d<(y=p<=i?c:p>=i+f?f:p-i));p+=l)S=d-y,w=l-y,x.push(k(j(y+S%w,0))),d=O(S/w);x.push(k(j(d,0))),i=M(n,_,r==o),n=0,++r}++n,++t}return x.join("")}s={version:"1.4.1",ucs2:{decode:C,encode:P},decode:T,encode:A,toASCII:function(e){return x(e,function(e){return g.test(e)?"xn--"+A(e):e})},toUnicode:function(e){return x(e,function(e){return y.test(e)?T(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(t,n(67)(e),n(24))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var c=0;c=0?(f=v.substr(0,m),d=v.substr(m+1)):(f=v,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),r(a,p)?o(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r=0?t:0)+"#"+e)}function C(e){void 0===e&&(e={}),y||Object(a.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?g:o,u=n.hashType,l=void 0===u?"slash":u,d=e.basename?f(s(e.basename)):"",b=E[l],_=b.encodePath,w=b.decodePath;function O(){var e=w(S());return d&&(e=c(e,d)),h(e)}var C=m();function P(e){Object(r.a)(z,e),z.length=t.length,C.notifyListeners(z.location,z.action)}var j=!1,M=null;function T(){var e=S(),t=_(e);if(e!==t)x(t);else{var n=O(),r=z.location;if(!j&&v(r,n))return;if(M===p(n))return;M=null,function(e){if(j)j=!1,P();else{C.confirmTransitionTo(e,"POP",i,function(t){t?P({action:"POP",location:e}):function(e){var t=z.location,n=N.lastIndexOf(p(t));-1===n&&(n=0);var r=N.lastIndexOf(p(e));-1===r&&(r=0);var o=n-r;o&&(j=!0,R(o))}(e)})}}(n)}}var A=S(),D=_(A);A!==D&&x(D);var I=O(),N=[p(I)];function R(e){t.go(e)}var F=0;function L(e){1===(F+=e)&&1===e?window.addEventListener(k,T):0===F&&window.removeEventListener(k,T)}var B=!1;var z={length:t.length,action:"POP",location:I,createHref:function(e){return"#"+_(d+p(e))},push:function(e,t){var n=h(e,void 0,void 0,z.location);C.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=p(n),r=_(d+t);if(S()!==r){M=t,function(e){window.location.hash=e}(r);var o=N.lastIndexOf(p(z.location)),i=N.slice(0,-1===o?0:o+1);i.push(t),N=i,P({action:"PUSH",location:n})}else P()}})},replace:function(e,t){var n=h(e,void 0,void 0,z.location);C.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=p(n),r=_(d+t);S()!==r&&(M=t,x(r));var o=N.indexOf(p(z.location));-1!==o&&(N[o]=t),P({action:"REPLACE",location:n})}})},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return B||(L(1),B=!0),function(){return B&&(B=!1,L(-1)),t()}},listen:function(e){var t=C.appendListener(e);return L(1),function(){L(-1),t()}}};return z}function P(e,t,n){return Math.min(Math.max(e,t),n)}function j(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,s=void 0===a?0:a,u=t.keyLength,l=void 0===u?6:u,c=m();function f(e){Object(r.a)(_,e),_.length=_.entries.length,c.notifyListeners(_.location,_.action)}function d(){return Math.random().toString(36).substr(2,l)}var v=P(s,0,i.length-1),y=i.map(function(e){return h(e,void 0,"string"==typeof e?d():e.key||d())}),g=p;function b(e){var t=P(_.index+e,0,_.entries.length-1),r=_.entries[t];c.confirmTransitionTo(r,"POP",n,function(e){e?f({action:"POP",location:r,index:t}):f()})}var _={length:y.length,action:"POP",location:y[v],index:v,entries:y,createHref:g,push:function(e,t){var r=h(e,t,d(),_.location);c.confirmTransitionTo(r,"PUSH",n,function(e){if(e){var t=_.index+1,n=_.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,t){var r=h(e,t,d(),_.location);c.confirmTransitionTo(r,"REPLACE",n,function(e){e&&(_.entries[_.index]=r,f({action:"REPLACE",location:r}))})},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return _}},function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&r(e),s=t&&r(t),u=a||s;if(e&&r(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var l=void 0;if(i.length){var c=i[i.length-1];l="."===c||".."===c||""===c}else l=!1;for(var f=0,d=i.length;d>=0;d--){var p=i[d];"."===p?o(i,d):".."===p?(o(i,d),f++):f&&(o(i,d),f--)}if(!u)for(;f--;f)i.unshift("..");!u||""===i[0]||i[0]&&r(i[0])||i.unshift("");var h=i.join("/");return l&&"/"!==h.substr(-1)&&(h+="/"),h}},function(e,t,n){"use strict";var r="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};t.a=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var o=void 0===t?"undefined":r(t);if(o!==(void 0===n?"undefined":r(n)))return!1;if("object"===o){var i=t.valueOf(),a=n.valueOf();if(i!==t||a!==n)return e(i,a);var s=Object.keys(t),u=Object.keys(n);return s.length===u.length&&s.every(function(r){return e(t[r],n[r])})}return!1}},function(e,t,n){"use strict"},function(e,t,n){"use strict";e.exports={toolSwitcher:{order:[],hidden:[]},project:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(0)),o=u(n(986)),i=u(n(987)),a=n(16),s=u(n(991));function u(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t"edit"===e&&t.id||"create"===e&&t.type,getIntentState(e,t,n){for(var r=n&&n.panes||[],o=c.activePanes||[],a=t.id||(0,i.default)(),s=o.length-1;s>=0;s--){var u=o[s];if(u.canHandleIntent&&u.canHandleIntent(e,t))return{panes:r.slice(0,s).concat(a)}}return{editDocumentId:a,type:t.type||"*"}},title:"Desk",name:"desk",icon:o.default,component:function(e){return r.default.createElement(s.default,l({},e,{onPaneChange:f}))}};t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};var i={vectorEffect:"non-scaling-stroke"},a=()=>o.default.createElement("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"1em",height:"1em"},o.default.createElement("rect",{x:"3.5",y:"4.5",width:"18",height:"16",stroke:"currentColor",style:i}),o.default.createElement("line",{x1:"9.5",y1:"5",x2:"9.5",y2:"20",stroke:"currentColor",style:i}),o.default.createElement("line",{x1:"15.5",y1:"5",x2:"15.5",y2:"20",stroke:"currentColor",style:i}));t.default=a},function(e,t,n){e.exports=n(988)},function(e,t,n){var r=n(989),o=n(990);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||o(a)}},function(e,t,n){(function(t){var n,r=t.crypto||t.msCrypto;if(r&&r.getRandomValues){var o=new Uint8Array(16);n=function(){return r.getRandomValues(o),o}}if(!n){var i=new Array(16);n=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}e.exports=n}).call(t,n(24))},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+"-"+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]+o[e[r++]]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=g(n(0)),a=g(n(1)),s=n(6),u=n(4),l=g(n(110)),c=g(n(13)),f=n(16),d=n(437),p=g(n(1718)),h=g(n(1719)),v=g(n(1935)),m=g(n(582)),y=g(n(1938));function g(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e){for(var t=1;te&&"function"==typeof e.serialize?e.serialize({path:[]}):e,E=(0,f.withRouterHOC)((o=r=class extends i.default.Component{constructor(e){super(e),w(this,"state",{isResolving:!0,panes:null}),w(this,"maybeAddEditorPane",(e,t)=>{var n=t.router,r=n.state,o=r.editDocumentId,i=r.type;if(!o)return(0,s.of)(e);var a={id:"editor",type:"document",options:{id:o,type:i}};return"*"!==i?(0,s.of)(e.concat(a)):(0,s.of)(e.concat(d.LOADING)).pipe((0,u.concat)(c.default.observable.fetch("*[_id == $id][0]._type",{id:o}).pipe((0,u.map)(t=>(n.navigate(_({},n.state,{type:t}),{replace:!0}),e.concat(_({},a,{options:_({},a.options,{type:t})})))))))}),w(this,"setResolvedPanes",e=>{var t=this.props.router,n=t.state.panes||[];this.setState({panes:e,isResolving:!1}),e.length{e,console.error(e),this.setState({error:e,isResolving:!1})}),w(this,"shouldDerivePanes",e=>{var t=e.router.state,n=this.props.router.state;return!(0,l.default)(t.panes,n.panes)||t.editDocumentId!==n.editDocumentId||t.legacyEditDocumentId!==n.legacyEditDocumentId||t.type!==n.type||t.action!==n.action}),e.onPaneChange([])}derivePanes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.paneDeriver&&this.paneDeriver.unsubscribe(),this.setState({isResolving:!0}),this.paneDeriver=(()=>{var e;try{var t=n(1941)||y.default;e=t&&t.__esModule?t.default:t,null}catch(e){return e,(0,s.throwError)(e)}return(e=>e&&("function"==typeof e||"function"!=typeof e.serialize||"function"!=typeof e.then||"function"!=typeof e.subscribe||"string"!=typeof e.type))(e)?(0,s.defer)(()=>(0,m.default)(e)):(0,s.throwError)(new Error("Structure needs to export a function, an observable, a promise or a stucture builder, got ".concat(typeof e)))})().pipe((0,u.distinctUntilChanged)(),(0,u.map)(k),(0,u.switchMap)(n=>(0,d.resolvePanes)(n,e.router.state.panes||[],this.state.panes,t)),(0,u.switchMap)(t=>this.maybeAddEditorPane(t,e)),(0,u.debounce)(e=>(0,s.interval)((e=>e.some(e=>e===d.LOADING))(e)?50:0))).subscribe(this.setResolvedPanes,this.setResolveError)}UNSAFE_componentWillReceiveProps(e){if(this.shouldDerivePanes(e)){var t=this.props.router.state.panes||[],n=(e.router.state.panes||[]).findIndex((e,n)=>t[n]!==e);this.derivePanes(e,-1===n?0:n)}}componentDidUpdate(e,t){e.onPaneChange===this.props.onPaneChange&&t.panes===this.state.panes||this.props.onPaneChange(this.state.panes||[])}shouldComponentUpdate(e,t){if(this.shouldDerivePanes(e))return!1;var n=this.props,r=(n.router,b(n,["router"])),o=(e.router,b(e,["router"])),i=this.state,a=i.panes,s=b(i,["panes"]),u=t.panes,c=b(t,["panes"]);return!(0,l.default)(r,o)||!(0,l.default)(a,u)||!(0,l.default)(s,c)}maybeHandleOldUrl(){var e=this.props.router.navigate,t=this.props.router.state,n=t.panes,r=t.action,o=t.legacyEditDocumentId;"edit"===r&&o&&e({panes:n.concat([o])},{replace:!0})}componentDidMount(){this.maybeHandleOldUrl(),this.derivePanes(this.props),this.props.onPaneChange(this.state.panes||[])}componentWillUnmount(){this.paneDeriver&&this.paneDeriver.unsubscribe()}getFallbackKeys(){var e=this.props.router.state;return e.type&&e.editDocumentId?["".concat(e.type,"-").concat(e.editDocumentId)]:O}render(){var e=this.state,t=e.panes,n=e.error;if(n)return i.default.createElement(v.default,{error:n});var r=this.props.router.state.panes||this.getFallbackKeys();return i.default.createElement("div",{className:p.default.deskTool},t&&i.default.createElement(h.default,{panes:this.state.panes,keys:r,autoCollapse:!0}))}},w(r,"propTypes",{router:a.default.shape({navigate:a.default.func.isRequired,state:a.default.shape({panes:a.default.arrayOf(a.default.string),editDocumentId:a.default.string,legacyEditDocumentId:a.default.string,type:a.default.string,action:a.default.string})}).isRequired,onPaneChange:a.default.func.isRequired}),o));t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(269);t.default=(e=>{if(!e){var t="null";throw null!==e&&(t=void 0===e?"undefined":"false"),new r.SerializeError("Structure resolved to ".concat(t),[],"root")}if(!e.id)throw new r.SerializeError("Structure did not contain required `id` property",[],"root");if("edit"===e.id)throw new r.SerializeError("The root structure cannot have value `edit` as `id`",[],"root")})},function(e,t,n){"use strict";var r=g(n(440)),o=g(n(15)),i=g(n(1036)),a=g(n(1055)),s=n(449),u=g(n(1076)),l=g(n(1077)),c=g(n(1078)),f=g(n(1079)),d=g(n(1080)),p=g(n(1081)),h=g(n(1082)),v=g(n(1083)),m=g(n(1084)),y=g(n(1085));function g(e){return e&&e.__esModule?e:{default:e}}var b=e=>"error"===e.severity;e.exports=(e=>{var t=(0,i.default)(e.types).getTypes(),n=(0,a.default)(t),g=[];n.some(e=>e.problems.some(b))||(g=[...e.types,u.default,l.default,o.default,d.default,y.default,c.default,f.default,m.default,v.default,p.default,h.default].filter(Boolean));var _=r.default.compile({name:e.name,types:g});return _._source=e,_._validation=n,(0,s.inferFromSchema)(_)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(995));class o{static compile(e){return new o(e)}constructor(e){this._original=e,this._registry=function(e){var t=Object.assign(Object.create(null),r),n=e.types.reduce((e,t)=>{if(e[t.name])throw new Error("Duplicate type name added to schema: ".concat(t.name));return e[t.name]=t,e},{});return e.types.forEach(a),t;function o(e){if(!t[e]){if(!n[e])throw new Error("Unknown type: ".concat(e));a(n[e])}}function i(e){return o(e.type),t[e.type].extend(e,i).get()}function a(e){o(e.type),t[e.name]||(t[e.name]=t[e.type].extend(e,i))}}(e)}get name(){return this._original.name}get(e){return this._registry[e]&&this._registry[e].get()}has(e){return e in this._registry}getTypeNames(){return Object.keys(this._registry)}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"any",{enumerable:!0,get:function(){return r.AnyType}}),Object.defineProperty(t,"string",{enumerable:!0,get:function(){return o.StringType}}),Object.defineProperty(t,"text",{enumerable:!0,get:function(){return i.TextType}}),Object.defineProperty(t,"datetime",{enumerable:!0,get:function(){return a.DateTimeType}}),Object.defineProperty(t,"date",{enumerable:!0,get:function(){return s.DateType}}),Object.defineProperty(t,"boolean",{enumerable:!0,get:function(){return u.BooleanType}}),Object.defineProperty(t,"url",{enumerable:!0,get:function(){return l.UrlType}}),Object.defineProperty(t,"email",{enumerable:!0,get:function(){return c.EmailType}}),Object.defineProperty(t,"number",{enumerable:!0,get:function(){return f.NumberType}}),Object.defineProperty(t,"reference",{enumerable:!0,get:function(){return d.ReferenceType}}),Object.defineProperty(t,"image",{enumerable:!0,get:function(){return p.ImageType}}),Object.defineProperty(t,"file",{enumerable:!0,get:function(){return h.FileType}}),Object.defineProperty(t,"object",{enumerable:!0,get:function(){return v.ObjectType}}),Object.defineProperty(t,"document",{enumerable:!0,get:function(){return m.DocumentType}}),Object.defineProperty(t,"array",{enumerable:!0,get:function(){return y.ArrayType}}),Object.defineProperty(t,"block",{enumerable:!0,get:function(){return g.BlockType}}),Object.defineProperty(t,"span",{enumerable:!0,get:function(){return b.SpanType}});var r=n(996),o=n(997),i=n(998),a=n(999),s=n(1e3),u=n(1001),l=n(1002),c=n(1003),f=n(1004),d=n(1005),p=n(1006),h=n(1026),v=n(447),m=n(1031),y=n(1032),g=n(1033),b=n(1035)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnyType=void 0;var r=i(n(43)),o=i(n(17));function i(e){return e&&e.__esModule?e:{default:e}}var a=["jsonType","type","name","title","description","options","fieldsets"],s={name:"any",type:null,jsonType:"any"},u={get:()=>s,extend(e,t){return function e(t){return{get:()=>t,extend:n=>{if(n.of)throw new Error('Cannot override `of` property of subtypes of "array"');var r=Object.assign({},t,(0,o.default)(n,a),{type:t});return e(r)}}}(Object.assign((0,o.default)(s,a),e,{type:s,of:e.of.map(e=>({name:e.name,type:t((0,r.default)(e,"name"))}))}))}};t.AnyType=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringType=void 0;var r=i(n(17)),o=i(n(71));function i(e){return e&&e.__esModule?e:{default:e}}var a=["jsonType","type","name","title","description","options","fieldsets"],s={name:"string",type:null,jsonType:"string"},u={get:()=>s,extend(e){return function e(t){return{get:()=>t,extend:n=>{var o=Object.assign({},t,(0,r.default)(n,a),{type:t});return e(o)}}}(Object.assign((0,r.default)(s,a),e,{type:s,preview:o.default}))}};t.StringType=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextType=void 0;var r=i(n(17)),o=i(n(71));function i(e){return e&&e.__esModule?e:{default:e}}var a=["jsonType","type","name","title","description","options","fieldsets"],s={name:"text",type:null,jsonType:"string"},u={get:()=>s,extend(e){return function e(t){return{get:()=>t,extend:n=>{var o=Object.assign({},t,(0,r.default)(n,a),{type:t});return e(o)}}}(Object.assign((0,r.default)(s,a),e,{type:s,preview:o.default}))}};t.TextType=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeType=void 0;var r=i(n(17)),o=i(n(71));function i(e){return e&&e.__esModule?e:{default:e}}var a=["jsonType","type","name","title","description","options"],s={name:"datetime",title:"Datetime",type:null,jsonType:"string"},u={get:()=>s,extend(e){return function e(t){return{get:()=>t,extend:n=>{var o=Object.assign({},t,(0,r.default)(n,a),{type:t});return e(o)}}}(Object.assign((0,r.default)(s,a),e,{type:s,preview:o.default}))}};t.DateTimeType=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateType=void 0;var r=i(n(17)),o=i(n(71));function i(e){return e&&e.__esModule?e:{default:e}}var a=["jsonType","type","name","title","description","options"],s={name:"date",title:"Datetime",type:null,jsonType:"string"},u={get:()=>s,extend(e){return function e(t){return{get:()=>t,extend:n=>{var o=Object.assign({},t,(0,r.default)(n,a),{type:t});return e(o)}}}(Object.assign((0,r.default)(s,a),e,{type:s,preview:o.default}))}};t.DateType=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanType=void 0;var r=i(n(17)),o=i(n(71));function i(e){return e&&e.__esModule?e:{default:e}}var a=["jsonType","type","name","title","description","options"],s={name:"boolean",type:null,jsonType:"boolean"},u={get:()=>s,extend(e){return function e(t){return{get:()=>t,extend:n=>{var o=Object.assign({},t,(0,r.default)(n,a),{type:t});return e(o)}}}(Object.assign((0,r.default)(s,a),e,{type:s,preview:o.default}))}};t.BooleanType=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UrlType=void 0;var r=i(n(17)),o=i(n(71));function i(e){return e&&e.__esModule?e:{default:e}}var a=["jsonType","type","name","title","description","options"],s={name:"url",title:"Url",type:null,jsonType:"string"},u={get:()=>s,extend(e){return function e(t){return{get:()=>t,extend:n=>{var o=Object.assign({},t,(0,r.default)(n,a),{type:t});return e(o)}}}(Object.assign((0,r.default)(s,a),e,{type:s,preview:o.default}))}};t.UrlType=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmailType=void 0;var r=i(n(17)),o=i(n(71));function i(e){return e&&e.__esModule?e:{default:e}}var a=["jsonType","type","name","title","description","options"],s={name:"email",title:"Email",type:null,jsonType:"string"},u={get:()=>s,extend(e){return function e(t){return{get:()=>t,extend:n=>{var o=Object.assign({},t,(0,r.default)(n,a),{type:t});return e(o)}}}(Object.assign((0,r.default)(s,a),e,{type:s,preview:o.default}))}};t.EmailType=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberType=void 0;var r=i(n(17)),o=i(n(71));function i(e){return e&&e.__esModule?e:{default:e}}var a=["jsonType","type","name","title","description","options","fieldsets"],s={name:"number",type:null,jsonType:"number"},u={get:()=>s,extend(e){return function e(t){return{get:()=>t,extend:n=>{var o=Object.assign({},t,(0,r.default)(n,a),{type:t});return e(o)}}}(Object.assign((0,r.default)(s,a),e,{type:s,preview:o.default}))}};t.NumberType=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceType=t.WEAK_FIELD=t.REF_FIELD=void 0;var r=a(n(17)),o=a(n(441)),i=n(86);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u={name:"_ref",title:"Referenced document ID",type:"string"};t.REF_FIELD=u;var l={name:"_weak",title:"Weak reference",type:"boolean"};t.WEAK_FIELD=l;var c=[u,l],f=["jsonType","type","name","title","description","options"],d={name:"reference",type:null,jsonType:"object"};var p={get:()=>d,extend(e,t){if(!e.to)throw new Error('Missing "to" field in reference definition. Check the type '.concat(e.name));var n,a=Object.assign((0,r.default)(d,f),e,{type:d,title:e.title||(n=e,n.title?n.title:n.to&&0!==n.to.length?"Reference to ".concat(function(e,t){var n=e.length;if(1===n)return e[0];var r=e.slice(0,n-1),o=e[n-1];return"".concat(r.join(", ")," ").concat(t," ").concat(o)}((0,o.default)(n.to).map(e=>(e.title||e.name||e.type||"").toLowerCase()),"or")):"Reference")});return(0,i.lazyGetter)(a,"fields",()=>c.map(e=>{var n=e.name,r=s(e,["name"]);return{name:n,type:t(r)}})),(0,i.lazyGetter)(a,"to",()=>(0,o.default)(e.to).map(e=>t(e))),function e(t){return{get:()=>t,extend:n=>{if(n.of)throw new Error('Cannot override `of` of subtypes of "reference"');var o=Object.assign({},t,(0,r.default)(n,f),{type:t});return e(o)}}}(a)}};t.ReferenceType=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageType=void 0;var r=u(n(133)),o=u(n(17)),i=n(86),a=n(1018),s=u(n(134));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e){for(var t=1;tp,extend(e,t){var n=c({},e.options||h),u=[a.HOTSPOT_FIELD,a.CROP_FIELD];n.hotspot||(u=u.map(e=>c({},e,{hidden:!0})));var f=(e.fields||[]).concat(a.ASSET_FIELD).concat(u),v=Object.assign((0,o.default)(p,d),e,{type:p,title:e.title||(0,r.default)(e.name||e.type||""),options:n,isCustomized:Boolean(e.fields)});return(0,i.lazyGetter)(v,"fields",()=>f.map(e=>{var n=e.name,r=l(e,["name"]);return{name:n,type:t(r)}})),(0,i.lazyGetter)(v,"preview",(0,s.default)(Object.assign({},e,{fields:f}))),function e(t){return{get:()=>t,extend:n=>{if(n.fields)throw new Error('Cannot override `fields` of subtypes of "image"');var r=Object.assign({},t,(0,o.default)(n,d),{type:t});return e(r)}}}(v)}};t.ImageType=v},function(e,t,n){var r=n(1008),o=n(1009),i=n(442),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},function(e,t){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o"string"===e.type).map(e=>e.name),i=l.find(e=>n.includes(e)),s=c.find(e=>e!==i&&n.includes(e));i||(i=n[0],s=n[1]);var f=t.fields.find(e=>"image"===e.type),h=function(e){var t=e.fields||[],n=t.find(d);if(n)return n.name;var r=t.find(e=>(e.fields||[]).some(d));return r?"".concat(r.name,".asset"):void 0}(t);if(!i){var v=function(e){var t=e.fields||[],n=t.find(p);if(n)return n.name;var r=t.find(e=>(e.fields||[]).some(p));return r?"".concat(r.name,".asset"):void 0}(t);v&&(i="".concat(v,".originalFilename")),h&&(i="".concat(h,".originalFilename"))}if(!i&&!h){var m=t.fields.map(e=>e.name),y=m.reduce((e,t)=>(e[t]=t,e),{});return{select:y,prepare:(0,a.createFallbackPrepare)(m)}}return{select:(0,o.default)({title:i,description:s,imageUrl:!f&&h?"".concat(h,".url"):void 0,media:f?f.name:void 0},r.default)}};var r=s(n(1020)),o=s(n(1021)),i=s(n(441)),a=n(1023);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=["title","name","label","heading","header","caption"],c=["description",...l];function f(e,t){return(0,i.default)(e.to||[]).some(e=>e.type===t)}function d(e){return f(e,"sanity.imageAsset")}function p(e){return f(e,"sanity.fileAsset")}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(54),o=n(446),i=n(1022);e.exports=function(e,t){return i(e,o(r(t)))}},function(e,t,n){var r=n(50),o=n(54),i=n(411),a=n(260);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),function(e){return[e]});return t=o(t),i(e,n,function(e,n){return t(e,n[0])})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFallbackPrepare=function(e){return t=>({title:(0,o.default)((0,r.default)(t,e),a)})};var r=i(n(17)),o=i(n(1024));function i(e){return e&&e.__esModule?e:{default:e}}var a={maxEntries:2,maxDepth:2,maxBreadth:2,ignoreKeys:["_id","_type","_key","_ref"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={maxDepth:"maxDepth"in t?t.maxDepth:2,maxBreadth:"maxBreadth"in t?t.maxBreadth:2,ignoreKeys:"ignoreKeys"in t?t.ignoreKeys:[]};return function e(t,n,r){if(r>n.maxDepth)return"...";if(Array.isArray(t)){if(0===t.length)return"[empty]";var i=Math.max(t.length-n.maxBreadth),a=t.slice(0,n.maxBreadth).map((t,o)=>e(t,n,r+1)).concat(i>0?"…+".concat(i):[]).join(", ");return 0===r?a:"[".concat(a,"]")}if("object"==typeof t&&null!==t){var s=Object.keys(t).filter(e=>!n.ignoreKeys.includes(e)&&void 0!==t[e]);if(function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}((0,o.default)(t,s)))return"{empty}";var u=s.slice(0,n.maxBreadth).map(o=>"".concat(o,": ").concat(e(t[o],n,r+1))).join(", ");return 0===r?u:"{".concat(u,"}")}var l=String(t);return""===l?'""':l}(e,n,0)};var r,o=(r=n(17))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warnIfPreviewOnOptions=function(e){e.options&&e.options.preview&&console.warn('Heads up! The preview config is no longer defined on "options", but instead on the type/field itself.\nPlease move {options: {preview: ...}} to {..., preview: ...} on the type/field definition of "'.concat(e.name,'".\n'))},t.warnIfPreviewHasFields=function(e){var t=e.preview||(e.options||{}).preview;t&&"fields"in t&&console.warn('Heads up! "preview.fields" should be renamed to "preview.select". Please update the preview config for "'.concat(e.name,'".\n'))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileType=t.ASSET_FIELD=void 0;var r=a(n(17)),o=n(86),i=a(n(134));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l={name:"asset",type:"reference",to:{type:"sanity.fileAsset"}};t.ASSET_FIELD=l;var c=["jsonType","type","name","title","description","options","fieldsets","validation"],f={name:"file",type:null,jsonType:"object"},d={accept:""},p={get:()=>f,extend(e,t){var n=function(e){for(var t=1;ta.map(e=>{var n=e.name,r=s(e,["name"]);return{name:n,type:t(r)}})),(0,o.lazyGetter)(p,"preview",(0,i.default)(Object.assign({},e,{fields:a}))),function e(t){return{get:()=>t,extend:n=>{if(n.fields)throw new Error('Cannot override `fields` of subtypes of "file"');var o=Object.assign({},t,(0,r.default)(n,c),{type:t});return e(o)}}}(p)}};t.FileType=p},function(e,t,n){var r=n(50),o=n(176),i=n(22),a=n(81),s=n(400),u=n(82),l=n(55);e.exports=function(e){return i(e)?r(e,u):a(e)?[e]:o(s(l(e)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=a.filter(t=>e.fields.some(e=>u(e)&&e.name===t));0===t.length&&(t=e.fields.filter(u).map(e=>e.name));return t.map(e=>({name:e,title:(0,o.default)((0,r.default)(e)),by:[{field:e,direction:"asc"}]}))};var r=i(n(133)),o=i(n(271));function i(e){return e&&e.__esModule?e:{default:e}}var a=["title","name","label","heading","header","caption","description"],s=["string","boolean","number"],u=e=>s.includes(e.type)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(e,t){e[i]||(e[i]=(0,o.default)([...u,...c(e),...f(e,t).map(e=>({weight:1,path:e}))],e=>e.path.join(".")));return e[i]}(e,4)};var r,o=(r=n(272))&&r.__esModule?r:{default:r};var i=Symbol("__cachedStringFields"),a=e=>e.type&&"reference"===e.type.name;function s(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0;return o<0?n:"array"===e.jsonType&&Array.isArray(e.of)?function(e,t,n,r,o){return e.of.reduce((e,n)=>s(n,t,e,r,o-1),n)}(e,t,n,r,o):"object"===e.jsonType&&Array.isArray(e.fields)&&!a(e)?function(e,t,n,r,o){return e.fields.reduce((e,n)=>{var i=[n.name].concat("array"===n.type.jsonType?[[]]:[]);return s(n.type,t,e,r.concat(i),o-1)},n)}(e,t,n,r,o):t(n,e,r)}var u=[{weight:1,path:["_id"]},{weight:1,path:["_type"]}],l={title:10,subtitle:5,description:1.5};function c(e){var t=e.preview.select;return Object.keys(t).filter(e=>e in l).map(e=>({weight:l[e],path:t[e].split(".")}))}function f(e,t){return s(e,(e,t,n)=>"string"===t.jsonType?[...e,n]:e,[],[],t)}},function(e,t,n){var r=n(396),o=n(273),i=n(248),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentType=void 0;var r=n(447),o={name:"document",type:null,jsonType:"object"},i={get:()=>o,extend:r.ObjectType.extend};t.DocumentType=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayType=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(86);var a=["jsonType","type","name","title","description","options","fieldsets"],s={name:"array",type:null,jsonType:"array",of:[]},u={get:()=>s,extend(e,t){var n=Object.assign((0,o.default)(s,a),e,{type:s});return(0,i.lazyGetter)(n,"of",()=>e.of.map(e=>t(e))),function e(t){return{get:()=>t,extend:n=>{if(n.of)throw new Error('Cannot override `of` property of subtypes of "array"');var r=Object.assign({},t,(0,o.default)(n,a),{type:t});return e(r)}}}(n)}};t.ArrayType=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockType=void 0;var r=s(n(17)),o=n(86),i=s(n(134)),a=n(1034);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=["type","name","title","jsonType","description","options","fieldsets"],f={name:"block",type:null,jsonType:"object"},d={},p={get:()=>f,extend(e,t){var n=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return{name:"children",title:"Content",type:"array",of:[{type:"span",fields:[a.DEFAULT_TEXT_FIELD,a.DEFAULT_MARKS_FIELD],annotations:e&&e.annotations?e.annotations:v,decorators:e&&e.decorators?e.decorators:a.DEFAULT_DECORATORS},...t.filter(e=>"span"!==e.type)]}}(s,y),function(e){return{name:"style",title:"Style",type:"string",options:{list:h(e||a.DEFAULT_BLOCK_STYLES)}}}(p),function(e){return{name:"list",title:"List type",type:"string",options:{list:e||a.DEFAULT_LIST_TYPES}}}(m)].concat(e.fields||[]),_=Object.assign((0,r.default)(f,c),g,{type:f,options:n});return(0,o.lazyGetter)(_,"fields",()=>b.map(e=>{var n=e.name,r=u(e,["name"]);return{name:n,type:t(r)}})),(0,o.lazyGetter)(_,"preview",(0,i.default)(e)),function e(t){return{get:()=>t,extend:n=>{if(n.fields)throw new Error('Cannot override `fields` of subtypes of "block"');var o=Object.assign({},t,(0,r.default)(n,c),{type:t});return e(o)}}}(_)}};function h(e){return e.some(e=>"normal"===e.value)?e:[a.BLOCK_STYLES.normal,...e]}t.BlockType=p;var v=[a.DEFAULT_LINK_ANNOTATION]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_DECORATORS=t.DECORATORS=t.DECORATOR_STRIKE=t.DECORATOR_UNDERLINE=t.DECORATOR_CODE=t.DECORATOR_EMPHASIS=t.DECORATOR_STRONG=t.DEFAULT_BLOCK_STYLES=t.BLOCK_STYLES=t.DEFAULT_LIST_TYPES=t.LIST_TYPES=t.DEFAULT_MARKS_FIELD=t.DEFAULT_TEXT_FIELD=t.DEFAULT_LINK_ANNOTATION=void 0;t.DEFAULT_LINK_ANNOTATION={type:"object",name:"link",options:{editModal:"popover"},fields:[{name:"href",type:"url",title:"Url",validation:e=>e.uri({scheme:["http","https","tel","mailto"],allowRelative:!0})}]};t.DEFAULT_TEXT_FIELD={type:"text",name:"text",title:"Text"};t.DEFAULT_MARKS_FIELD={name:"marks",type:"array",of:[{type:"string"}],title:"Marks"};var r={bullet:{title:"Bullet",value:"bullet"},numbered:{title:"Numbered",value:"number"}};t.LIST_TYPES=r;var o=[r.bullet,r.numbered];t.DEFAULT_LIST_TYPES=o;var i={normal:{title:"Normal",value:"normal"},h1:{title:"Heading 1",value:"h1"},h2:{title:"H2",value:"h2"},h3:{title:"H3",value:"h3"},h4:{title:"H4",value:"h4"},h5:{title:"H5",value:"h5"},h6:{title:"H6",value:"h6"},blockquote:{title:"Quote",value:"blockquote"}};t.BLOCK_STYLES=i;var a=[i.normal,i.h1,i.h2,i.h3,i.h4,i.h5,i.h6,i.blockquote];t.DEFAULT_BLOCK_STYLES=a;var s={title:"Strong",value:"strong"};t.DECORATOR_STRONG=s;var u={title:"Emphasis",value:"em"};t.DECORATOR_EMPHASIS=u;var l={title:"Code",value:"code"};t.DECORATOR_CODE=l;var c={title:"Underline",value:"underline"};t.DECORATOR_UNDERLINE=c;var f={title:"Strike",value:"strike-through"};t.DECORATOR_STRIKE=f;var d={strong:s,em:u,code:l,underline:c,strikeThrough:f};t.DECORATORS=d;var p=[d.strong,d.em,d.code,d.underline,d.strikeThrough];t.DEFAULT_DECORATORS=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpanType=void 0;var r=a(n(17)),o=n(86),i=a(n(134));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=["type","name","title","jsonType","description","options","fieldsets"],c={name:"span",type:null,jsonType:"object"},f={name:"marks",title:"Marks",type:"array",of:[{type:"string"}]},d={name:"text",title:"Text",type:"string"},p={},h={get:()=>c,extend(e,t){var n=function(e){for(var t=1;ty.map(e=>{var n=e.name,r=s(e,["name"]);return{name:n,type:t(r)}})),(0,o.lazyGetter)(g,"annotations",()=>h.map(t)),(0,o.lazyGetter)(g,"marks",()=>m.map(t)),(0,o.lazyGetter)(g,"preview",(0,i.default)(e)),function e(t){return{get:()=>t,extend:n=>{if(n.fields)throw new Error('Cannot override `fields` of subtypes of "span"');var o=Object.assign({},t,(0,r.default)(n,l),{type:t});return e(o)}}}(g)}};t.SpanType=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,(e,t)=>{var n=e&&e.type&&m[e.type]||y(t);return t.isRoot?g(d.default,f.default,n)(e,t):g(f.default,n)(e,t)})};var r=p(n(1037)),o=p(n(1040)),i=p(n(1044)),a=p(n(1045)),s=p(n(1046)),u=p(n(1047)),l=p(n(1048)),c=p(n(1049)),f=p(n(1051)),d=p(n(1054));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){for(var t=1;tt=>h({name:"")},t,{_problems:[]});function g(){for(var e=arguments.length,t=new Array(e),n=0;nt.reduce((e,t)=>{var r=t(e,n);return h({},r,{_problems:e._problems.concat(r._problems)})},h({_problems:[]},e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,o.default,t)};var r=i(n(1038)),o=i(n(1039));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s,a=Object.create(null),c=Object.create(null),f=t.map(e=>e.name),d=l.concat(f),p=e.map(e=>e&&e.name).filter(Boolean);function h(e){return"type"===e?u:a[e]||c[e]||null}t.forEach(e=>{a[e.name]=e}),e.forEach((e,t)=>{c[e&&e.name||"__unnamed_".concat(t)]={}});var v=(0,r.default)((0,o.default)((0,i.getDupes)(p)));function m(e){return v.includes(e)}function y(){return p.concat(f)}function g(e){return"type"===e||d.includes(e)}var b=e=>(t,r)=>n(t,{visit:b(!1),isRoot:e,getType:h,getTypeNames:y,isReserved:g,isDuplicate:m,index:r});return t.forEach(e=>{Object.assign(a[e.name],b(e))}),e.forEach((e,t)=>{Object.assign(c[e&&e.name||"__unnamed_".concat(t)],b(!0)(e,t))}),{get(e){var t=c[e]||a[e];if(t)return t;throw new Error("No such type: ".concat(e))},has:e=>e in c||e in a,getTypeNames:()=>Object.keys(c),getTypes(){return this.getTypeNames().map(this.get)},toJSON(){return this.getTypes()}}},t.UnknownType=void 0;var r=a(n(57)),o=a(n(23)),i=n(274);function a(e){return e&&e.__esModule?e:{default:e}}var s=e=>e;t.UnknownType=class{constructor(e){var t,n,r;r=void 0,(n="name")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.name=e}};var u={name:"type",type:null},l=["any","time","date"]},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=[{name:"array",jsonType:"array"},{name:"block",jsonType:"object"},{name:"boolean",jsonType:"boolean"},{name:"datetime",jsonType:"string"},{name:"date",jsonType:"string"},{name:"document",jsonType:"object"},{name:"email",jsonType:"string"},{name:"file",jsonType:"object"},{name:"geopoint",jsonType:"object"},{name:"image",jsonType:"object"},{name:"number",jsonType:"number"},{name:"object",jsonType:"object"},{name:"reference",jsonType:"object"},{name:"slug",jsonType:"object"},{name:"string",jsonType:"string"},{name:"telephone",jsonType:"string"},{name:"text",jsonType:"string"},{name:"url",jsonType:"string"}].map(e=>(function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=/^[A-Za-z]+[0-9A-Za-z_]*$/,c=/^[A-Za-z_]+[0-9A-Za-z_]*$/;function f(e,t){var n=e.name;e.fieldset,u(e,["name","fieldset"]);return"name"in e?function(e){return"string"!=typeof e?[(0,o.error)('Field names must be strings. Saw "'.concat((0,i.default)(e),'"'),o.HELP_IDS.OBJECT_FIELD_NAME_INVALID)]:e.startsWith("_")?[(0,o.error)('Invalid field name "'.concat(e,'". Field names cannot start with underscores "_" as it\'s reserved for system fields.'),o.HELP_IDS.OBJECT_FIELD_NAME_INVALID)]:l.test(e)?c.test(e)?[]:[(0,o.warning)("Thats an interesting field name for sure! But it is... how to put it... a bit... unconventional? It may be wise to keep special characters out of field names for easier access later on."),o.HELP_IDS.OBJECT_FIELD_NAME_INVALID]:[(0,o.error)('Invalid field name: "'.concat(e,'". Fields can only contain characters from A-Z, numbers and underscores and should not start with a number (must pass the regular expression ').concat(String(l),")."),o.HELP_IDS.OBJECT_FIELD_NAME_INVALID)]}(n):[(0,o.error)("Missing field name",o.HELP_IDS.OBJECT_FIELD_NAME_INVALID)]}t.default=((e,t)=>{var n=[],r=Array.isArray(e.fields);r?(function(e){var t={};return e.forEach(e=>{t[e.name]||(t[e.name]=[]),t[e.name].push(e)}),Object.keys(t).map(e=>t[e].length>1?t[e]:null).filter(Boolean)}(e.fields.filter(e=>"string"==typeof e.name)).forEach(e=>{n.push((0,o.error)("Found ".concat(e.length,' fields with name "').concat(e[0].name,'" in object'),o.HELP_IDS.OBJECT_FIELD_NOT_UNIQUE))}),0===e.fields.length&&n.push((0,o.error)("Object should have at least one field",o.HELP_IDS.OBJECT_FIELDS_INVALID))):n.push((0,o.error)('The "fields" property must be an array of fields. Instead saw "'.concat(typeof e.fields,'"'),o.HELP_IDS.OBJECT_FIELDS_INVALID));return a({},e,{fields:(r?e.fields:[]).map(e=>{var n=e.name,r=u(e,["name"]),o=t.visit(r,t),i=o._problems;return a({name:n},u(o,["_problems"]),{_problems:f(e).concat(i||[])})}),_problems:n})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(1042))&&r.__esModule?r:{default:r}},function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&u&&"function"==typeof u.get?u.get:null,c=s&&Set.prototype.forEach,f=Boolean.prototype.valueOf,d=Object.prototype.toString,p="function"==typeof BigInt?BigInt.prototype.valueOf:null,h=n(1043).custom,v=h&&b(h)?h:null;function m(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function y(e){return String(e).replace(/"/g,""")}function g(e){return"[object Array]"===O(e)}function b(e){return"[object Symbol]"===O(e)}e.exports=function e(t,n,r,o){if(n||(n={}),w(n,"quoteStyle")&&"single"!==n.quoteStyle&&"double"!==n.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function(e,t){return m(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,k),"single",t)}(t,n);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var s=void 0===n.depth?5:n.depth;if(void 0===r&&(r=0),r>=s&&s>0&&"object"==typeof t)return"[Object]";if(void 0===o)o=[];else if(function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n=0)return"[Circular]";function u(t,i){return i&&(o=o.slice()).push(i),e(t,n,r+1,o)}if("function"==typeof t){var d=function(e){if(e.name)return e.name;var t=String(e).match(/^function\s*([\w$]+)/);if(t)return t[1]}(t);return"[Function"+(d?": "+d:"")+"]"}if(b(t)){var h=Symbol.prototype.toString.call(t);return"object"==typeof t?E(h):h}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var _="<"+String(t.nodeName).toLowerCase(),C=t.attributes||[],P=0;P"}if(g(t))return 0===t.length?"[]":"[ "+x(t,u).join(", ")+" ]";if(function(e){return"[object Error]"===O(e)}(t))return 0===(j=x(t,u)).length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.join(", ")+" }";if("object"==typeof t){if(v&&"function"==typeof t[v])return t[v]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var j=[];return a.call(t,function(e,n){j.push(u(n,t)+" => "+u(e,t))}),S("Map",i.call(t),j)}if(function(e){if(!l)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){j=[];return c.call(t,function(e){j.push(u(e,t))}),S("Set",l.call(t),j)}if(function(e){return"[object Number]"===O(e)}(t))return E(u(Number(t)));if(function(e){return"[object BigInt]"===O(e)}(t))return E(u(p.call(t)));if(function(e){return"[object Boolean]"===O(e)}(t))return E(f.call(t));if(function(e){return"[object String]"===O(e)}(t))return E(u(String(t)));if(!function(e){return"[object Date]"===O(e)}(t)&&!function(e){return"[object RegExp]"===O(e)}(t)){var M=x(t,u);return 0===M.length?"{}":"{ "+M.join(", ")+" }"}return String(t)};var _=Object.prototype.hasOwnProperty||function(e){return e in this};function w(e,t){return _.call(e,t)}function O(e){return d.call(e)}function k(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16)}function E(e){return"Object("+e+")"}function S(e,t,n){return e+" ("+t+") {"+n.join(", ")+"}"}function x(e,t){var n=g(e),r=[];if(n){r.length=e.length;for(var o=0;o{var n=Array.isArray(e.to)||(0,r.default)(e.to),s=function(e){return Array.isArray(e.to)?e.to:e.to?[e.to]:e.to}(e),l=(0,o.default)([n?(0,a.getDupes)(s,e=>"".concat(e.name,";").concat(e.type)).map(e=>(0,i.error)("Found ".concat(e.length,' members with same type, but not unique names "').concat(e[0].type,'" in reference. This makes it impossible to tell their values apart and you should consider naming them'),i.HELP_IDS.REFERENCE_TO_INVALID)):(0,i.error)('The reference type is missing or having an invalid value for the required "to" property. It should be an array of accepted types.',i.HELP_IDS.REFERENCE_TO_INVALID)]);return n&&0===s.length&&l.push((0,i.error)('The reference type should define at least one accepted type. Please check the "to" property.',i.HELP_IDS.REFERENCE_TO_INVALID)),function(e){for(var t=1;t{var n=Array.isArray(e.of);if(n){var r=e.of.reduce((e,t,n)=>{if(t)return e;var r="Found ".concat(null===t?"null":typeof t,", expected member declaration");return e.concat((0,i.error)("Found invalid type member declaration in array at index ".concat(n,": ").concat(r),i.HELP_IDS.ARRAY_OF_INVALID))},[]);if(r.length>0)return s({},e,{of:[],_problems:r})}var u=(0,o.default)([n?(0,a.getDupes)(e.of,e=>"".concat(e.name,";").concat(e.type)).map(e=>(0,i.error)("Found ".concat(e.length,' members with same type, but not unique names "').concat(e[0].type,'" in array. This makes it impossible to tell their values apart and you should consider naming them'),i.HELP_IDS.ARRAY_OF_NOT_UNIQUE)):(0,i.error)('The array type is missing or having an invalid value for the required "of" property',i.HELP_IDS.ARRAY_OF_INVALID)]),l=n?e.of:[],c=l.some(e=>"object"===e.type&&void 0===e.name);return l.some(e=>"block"===e.type)&&c&&u.push((0,i.error)("The array type's 'of' property can't have an object type without a 'name' property as member, when the 'block' type is also a member of that array.",i.HELP_IDS.ARRAY_OF_INVALID)),s({},e,{of:l.map(t.visit),_problems:u})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(44);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=((e,t)=>{var n=[];return e.options&&e.options.slugifyFn&&(n.push((0,r.warning)('Heads up! The "slugifyFn" option has been renamed to "slugify".',r.HELP_IDS.SLUG_SLUGIFY_FN_RENAMED)),e.options.slugify=e.options.slugifyFn),function(e){for(var t=1;t{var n=[];return e.options&&void 0!==e.options.metadata&&!Array.isArray(e.options.metadata)&&n.push((0,r.error)("Invalid type for file `metadata` field - must be an array of strings",r.HELP_IDS.ASSET_METADATA_FIELD_INVALID)),function(e){for(var t=1;t{var n=[];return e.options&&void 0!==e.options.metadata&&!Array.isArray(e.options.metadata)&&n.push((0,r.error)("Invalid type for image `metadata` field - must be an array of strings",r.HELP_IDS.ASSET_METADATA_FIELD_INVALID)),function(e){for(var t=1;t!p.includes(e)&&!e.startsWith("_"));g.length>0&&n.push((0,a.error)("Found unknown properties for block declaration: ".concat((0,i.default)(g.map(d)))));c&&(c=function(e,t,n){var o=e.decorators,u=e.annotations;if(!(0,r.default)(e))return n.push((0,a.error)('"marks" declaration should be an object, got '.concat(f(e)))),n;var c=Object.keys(e).filter(e=>!h.includes(e)&&!e.startsWith("_"));c.length>0&&n.push((0,a.error)("Found unknown properties for block declaration: ".concat((0,i.default)(c.map(d)))));o&&!Array.isArray(o)?n.push((0,a.error)('"marks.decorators" declaration should be an array, got '.concat(f(o)))):o&&(o=function(e,t,n){return e.forEach((e,t)=>{if((0,r.default)(e)){var o=e.value||"#".concat(t),s=Object.keys(e).filter(e=>!m.includes(e)&&!e.startsWith("_"));s.length>0&&n.push((0,a.error)("Found unknown properties for decorator ".concat(o,": ").concat((0,i.default)(s.map(d))))),e.value?"string"!=typeof e.value?n.push((0,a.error)("Decorator #".concat(t,' has an invalid "value" property, expected string, got ').concat(f(e.value)))):e.title||n.push((0,a.warning)("Decorator ".concat(o,' is missing recommended "title" property'))):n.push((0,a.error)("Decorator #".concat(t,' is missing required "value" property')))}else n.push((0,a.error)("Annotation must be an object, got ".concat(f(e))))}),e}(o,0,n));u&&!Array.isArray(u)?n.push((0,a.error)('"marks.annotations" declaration should be an array, got '.concat(f(u)))):u&&(u=function(e,t,n){return e.map(e=>{if(!(0,r.default)(e))return l({},e,{_problems:[(0,a.error)("Annotation must be an object, got ".concat(f(e)))]});var n=t.visit(e,t),o=n._problems,i=e.type&&t.getType(e.type);return i&&!(0,s.isJSONTypeOf)(i,"object",t)&&o.push((0,a.error)('Annotation cannot have type "'.concat(e.type,'" - annotation types must inherit from object'))),l({},e,{_problems:o})})}(u,t));return l({},e,{decorators:o,annotations:u})}(e.marks,t,n));u&&(u=function(e,t,n){if(!Array.isArray(e))return n.push((0,a.error)('"styles" declaration should be an array, got '.concat(f(e)))),n;return e.forEach((e,t)=>{if((0,r.default)(e)){var o=e.value||"#".concat(t),s=Object.keys(e).filter(e=>!v.includes(e)&&!e.startsWith("_"));s.length>0&&n.push((0,a.error)("Found unknown properties for style ".concat(o,": ").concat((0,i.default)(s.map(d))))),e.value?"string"!=typeof e.value?n.push((0,a.error)("Style #".concat(t,' has an invalid "value" property, expected string, got ').concat(f(e.value)))):e.title||n.push((0,a.warning)("Style ".concat(o,' is missing recommended "title" property'))):n.push((0,a.error)("Style #".concat(t,' is missing required "value" property')))}else n.push((0,a.error)("Style must be an object, got ".concat(f(e))))}),e}(u,0,n));y&&(y=function(e,t,n){if(!Array.isArray(e))return void n.push((0,a.error)('"of" declaration should be an array, got '.concat(f(e))));return e.map(e=>{var n=t.visit(e,t),r=n._problems;return l({},e,{_problems:r})})}(y,t,n));return l({},(0,o.default)(e,g),{marks:c,styles:u,of:y,_problems:n})};var r=u(n(70)),o=u(n(43)),i=u(n(275)),a=n(44),s=n(1050);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){for(var t=1;tArray.isArray(e)?"array":typeof e,d=e=>'"'.concat(e,'"'),p=["type","styles","marks","lists","of","title","name"],h=["decorators","annotations"],v=["title","value","blockEditor"],m=["title","value","blockEditor"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJSONTypeOf=function e(t,n,r){if("jsonType"in t)return t.jsonType===n;var o=r.getType(t.type);if(!o)throw new Error("Could not resolve jsonType of ".concat(t.name,". No parent type found"));return e(o,n,r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(44);var r=n(1052);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=((e,t)=>(function(e){for(var t=1;t[(0,r.default)(e,t),t]).filter(e=>{var t=s(e,1),n=t[0];return n<3}).map(e=>{var t=s(e,2),n=(t[0],t[1]);return n}),l=a.length>0?" Did you mean ".concat((0,o.default)(a.map(u),{conjunction:"or"}),"?"):"";return[(0,i.error)("Unknown type: ".concat(e,".").concat(l," Valid types are: ").concat((0,o.default)(n)))]}return[]};var r=a(n(1053)),o=a(n(275)),i=n(44);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var u=e=>'"'.concat(e,'"')},function(e,t,n){"use strict";var r=[],o=[];e.exports=function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var i=e.length,a=t.length;if(0===i)return a;if(0===a)return i;for(;i>0&&e.charCodeAt(~-i)===t.charCodeAt(~-a);)i--,a--;if(0===i)return a;for(var s,u,l,c,f=0;fu?c>u?u+1:c:c>l?l+1:c;return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(44);function o(e){for(var t=1;t{var n=Boolean(e.name);if(!n&&1===Object.keys(e).length)return o({},e,{_problems:[(0,r.error)("Invalid/undefined type declaration, check declaration or the import/export of the schema type.",r.HELP_IDS.TYPE_INVALID)]});var i=[];return function(e){return!e.name&&e.default&&(e.default.name||e.default.title)}(e)?i.push((0,r.error)("Type appears to be an ES6 module imported through CommonJS require - use an import statement or access the `.default` property",r.HELP_IDS.TYPE_IS_ESM_MODULE)):n?t.isReserved(e.name)&&i.push((0,r.error)('Invalid type name: "'.concat(e.name,'" is a reserved name.'),r.HELP_IDS.TYPE_NAME_RESERVED)):i.push((0,r.error)("Missing type name",r.HELP_IDS.TYPE_MISSING_NAME)),t.isDuplicate(e.name)&&i.push((0,r.error)('Invalid type name: A type with name "'.concat(e.name,'" is already defined in the schema.'))),"title"in e?"string"!=typeof e.title&&i.push((0,r.warning)("Type title is not a string.",r.HELP_IDS.TYPE_TITLE_INVALID)):i.push((0,r.warning)("Type is missing title. It's recommended to always set a descriptive title.",r.HELP_IDS.TYPE_TITLE_RECOMMENDED)),o({},e,{_problems:i})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeProblems=h,t.default=function(e){return(0,r.default)(e.map(e=>h(e))).filter(e=>e.problems.length>0)};var r=a(n(23)),o=a(n(19)),i=n(44);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>(0,o.default)(t,e);return function(n,o){var a=[...o,{kind:"type",type:n.type,name:n.name}],s=t(n)||[],u=Array.isArray(s)?s.map(t=>{return h(t,[...a,{kind:"property",name:e}])}):[{path:a,problems:[(0,i.error)("Member declaration (".concat(e,") is not an array"))]}];return[{path:a,problems:n._problems||[]},...(0,r.default)(u)]}}var u=s("fields"),l=s("of"),c=s("to",e=>(e=>Array.isArray(e)?e:void 0===e&&[]||[e])(e.to)),f=s("marks.annotations"),d=s("of"),p=function(){return[...f(...arguments),...d(...arguments)]};function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e.type){case"object":case"document":return u(e,t);case"array":return l(e,t);case"reference":return c(e,t);case"block":return p(e,t);default:return function(e){return[{path:[...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],{kind:"type",type:e.type,name:e.name}],problems:e._problems||[]}]}(e,t)}}},function(e,t,n){"use strict";var r=n(224),o=n(1057),i=n(1061),a=n(1062);function s(e,t){switch(i(e)){case"object":return function(e,t){if(r(e)||!0===t&&"object"===i(e)){var n={};return a(e,function(e,n){this[n]=s(e,t)},n),n}if("function"==typeof t)return t(e);return e}(e,t);case"array":return function(e,t){for(var n=[],r=0;re.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&"))},function(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),r(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(e).stack,writable:!0}),n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o(Error)),t}();t.default=i},function(e,t,n){"use strict";e.exports=function(e){return e.reduce((e,t,n)=>{var r=typeof t;if("number"===r)return"".concat(e,"[").concat(t,"]");if("string"===r){var o=0===n?"":".";return"".concat(e).concat(o).concat(t)}if(t._key)return"".concat(e,'[_key=="').concat(t._key,'"]');throw new Error('Unsupported path segment "'.concat(t,'"'))},"")}},function(e,t,n){"use strict";var r=n(58),o=n(87);e.exports=Object.assign({},o,{presence:(e,t,n)=>"required"!==e||"boolean"==typeof t||new r(n||"Required")})},function(e,t,n){"use strict";var r=n(58),o=n(87),i=/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/;e.exports=Object.assign({},o,{min:(e,t,n)=>t>=e||new r(n||"Must be greater than or equal ".concat(e)),max:(e,t,n)=>t<=e||new r(n||"Must be less than or equal ".concat(e)),lessThan:(e,t,n)=>tt>e||new r(n||"Must be greater than ".concat(e)),integer:(e,t,n)=>!!Number.isInteger(t)||new r(n||"Must be an integer"),precision:(e,t,n)=>{var o=t.toString().match(i);return!(Math.max((o[1]?o[1].length:0)-(o[2]?parseInt(o[2],10):0),0)>e)||new r(n||"Max precision is ".concat(e))}})},function(e,t,n){"use strict";var r=n(58),o=n(87),i=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;e.exports=Object.assign({},o,{stringCasing:(e,t,n)=>{var o=t||"";return"uppercase"===e&&o!==o.toLocaleUpperCase()?new r(n||"Must be all uppercase letters"):"lowercase"!==e||o===o.toLocaleLowerCase()||new r(n||"Must be all lowercase letters")},presence:(e,t,n)=>!("required"===e&&!t)||new r(n||"Required"),regex:(e,t,n)=>{var o=e.pattern,i=e.name,a=e.invert,s=i||'"'.concat(o.toString(),'"'),u=t||"",l=o.test(u);if(!a&&!l||a&&l){var c=a?"Should not match ".concat(s,"-pattern"):"Does not match ".concat(s,"-pattern");return new r(n||c)}return!0},length:(e,t,n)=>{return(t||"").length===e||new r(n||"Must be exactly ".concat(e," characters long"))},email:(e,t,n)=>{var o="".concat(t||"").trim();return!(o&&!i.test(o))||new r(n||"Must be a valid email address")},min:(e,t,n)=>!t||t.length>=e||new r(n||"Must be at least ".concat(e," characters long")),max:(e,t,n)=>!t||t.length<=e||new r(n||"Must be at most ".concat(e," characters long")),uri:(e,t,n)=>{var o,i=t||"",a=e.options,s=a.allowCredentials,u=a.relativeOnly,l=a.allowRelative||u;try{o=l?new URL(i,"http://sanity"):new URL(i)}catch(e){return new r(n||"Not a valid URL")}if(u&&"http://sanity"!==o.origin)return new r(n||"Only relative URLs are allowed");if(!l&&"http://sanity"===o.origin&&(e=>/^\.*\//.test(e))(i))return new r(n||"Relative URLs are not allowed");if(!s&&(o.username||o.password))return new r(n||"Username/password not allowed");var c=o.protocol.replace(/:$/,"");return!!a.scheme.some(e=>e.test(c))||new r(n||"Does not match allowed protocols/schemes")}})},function(e,t,n){"use strict";var r=n(454),o=n(58),i=n(87);e.exports=Object.assign({},i,{presence:(e,t,n)=>!("required"===e&&!t)||new o(n||"Required"),unique:(e,t,n)=>{var i=[];if(!t)return!0;for(var a=0;a{var n=t[e];return[n&&n._key?{_key:n._key}:e]});return!(i.length>0)||new o(n||"Can't be a duplicate",{paths:c})},length:(e,t,n)=>!t||t.length===e||new o(n||"Must have exactly ".concat(e," items")),valid:(e,t,n)=>{if(void 0===t)return!0;for(var i=[],a=function(n){var o=t[n];if(e.some(e=>r(e,o)))return"continue";var a=o&&o._key?{_key:o._key}:n;i.push([a])},s=0;s!t||t.length>=e||new o(n||"Must have at least ".concat(e," items")),max:(e,t,n)=>!t||t.length<=e||new o(n||"Must have at most ".concat(e," items"))})},function(e,t,n){"use strict";var r=n(58),o=n(87),i=["_key","_type","_weak"];e.exports=Object.assign({},o,{presence:(e,t,n)=>{if("required"!==e)return!0;var o=t&&Object.keys(t).filter(e=>!i.includes(e));return!(void 0===t||o&&0===o.length)||new r(n||"Required")},reference:(e,t,n)=>!t||"string"==typeof t._ref||new r(n||"Must be a reference to a document",{paths:["$"]}),assetRequired:(e,t,n)=>{if(!t||!t.asset||!t.asset._ref){var o=e.assetType||"Asset";return new r(n||"".concat(o," required"))}return!0}})},function(e,t,n){"use strict";var r=n(58),o=n(87),i=/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/;function a(e,t){if("now"===e)return new Date;var n=new Date(e),r=isNaN(n.getTime());if(r&&t)throw new Error('Unable to parse "'.concat(e,'" to a date'));return r?null:n}e.exports=Object.assign({},o,{type:(e,t,n)=>{return!("".concat(t)&&!i.test(t))||new r(n||"Must be a valid ISO-8601 formatted date string")},min:(e,t,n)=>{var o=t&&a(t);return!o||!t||o>=a(e,!0)||new r(n||"Must be at or after ".concat(e))},max:(e,t,n)=>{var o=t&&a(t);return!o||!t||o<=a(e,!0)||new r(n||"Must be before or at ".concat(e))}})},function(e,t,n){"use strict";var r=n(456);e.exports=function(e){return e.getTypeNames().forEach(t=>{r(e.get(t),e)}),e}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.slugValidator=void 0;var o=n(38).get;var i=(e,t)=>{var r=n(13),o=t.document,i=t.path,a=function(e){var t=0===e.indexOf("drafts.");return{published:t?e.slice("drafts.".length):e,draft:t?e:"drafts.".concat(e)}}(o._id),s=a.published,u=a.draft,l=o._type,c=function(e){return e.reduce((e,t,n)=>{var r="number"==typeof t,o=t&&t._key,i=r||o?"[]":"".concat(0===n?"":".").concat(t);return"".concat(e).concat(i)},"")}(i.concat("current")),f=["_type == $docType","!(_id in [$draft, $published])","".concat(c," == $slug")].join(" && ");return r.fetch("!defined(*[".concat(f,"][0]._id)"),{docType:l,draft:u,published:s,slug:e})};t.slugValidator=((e,t)=>{if(!e)return!0;if(!e.current)return"Slug must have a value";var n=o(t,"type.options.isUnique",i);return Promise.resolve(n(e.current,function(e){for(var t=1;t!!e||"Slug is already in use")})},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}Object.defineProperty(t,"__esModule",{value:!0}),t.blockValidator=void 0;var o=n(455).validateItem,i=n(38).flatten,a=function(){var e,t=(e=function*(e,t){var n=t.type.fields.find(e=>"children"===e.name).type.of.find(e=>"span"===e.name).annotations.filter(t=>e.markDefs.map(e=>e._type).includes(t.name)),r=[];e.markDefs.forEach(i=>{var a=n.find(e=>e.name===i._type),s=o(i,a,["markDefs",{_key:i._key}],{parent:e,document:t.document});r.push(s)});var a=yield Promise.all(r).then(i);return!a.length||a.map(e=>(e.item.paths=[e.path],e.item))},function(){var t=this,n=arguments;return new Promise(function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,u,"next",e)}function u(e){r(a,o,i,s,u,"throw",e)}s(void 0)})});return function(e,n){return t.apply(this,arguments)}}();t.blockValidator=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={title:"Slug",name:"slug",type:"object",fields:[{name:"current",title:"Current slug",type:"string"}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={title:"Geographical Point",name:"geopoint",type:"object",fields:[{name:"lat",type:"number",title:"Latitude"},{name:"lng",type:"number",title:"Longitude"},{name:"alt",type:"number",title:"Altitude"}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={name:"sanity.imageCrop",title:"Image crop",type:"object",fields:[{name:"top",type:"number"},{name:"bottom",type:"number"},{name:"left",type:"number"},{name:"right",type:"number"}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={name:"sanity.imageHotspot",title:"Image hotspot",type:"object",fields:[{name:"x",type:"number"},{name:"y",type:"number"},{name:"height",type:"number"},{name:"width",type:"number"}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={name:"sanity.imageAsset",title:"Image",type:"document",fieldsets:[{name:"system",title:"System fields",description:"These fields are managed by the system and not editable"}],fields:[{name:"originalFilename",type:"string",title:"Original file name",readOnly:!0},{name:"label",type:"string",title:"Label"},{name:"sha1hash",type:"string",title:"SHA1 hash",readOnly:!0,fieldset:"system"},{name:"extension",type:"string",readOnly:!0,title:"File extension",fieldset:"system"},{name:"mimeType",type:"string",readOnly:!0,title:"Mime type",fieldset:"system"},{name:"size",type:"number",title:"File size in bytes",readOnly:!0,fieldset:"system"},{name:"assetId",type:"string",title:"Asset ID",readOnly:!0,fieldset:"system"},{name:"path",type:"string",title:"Path",readOnly:!0,fieldset:"system"},{name:"url",type:"string",title:"Url",readOnly:!0,fieldset:"system"},{name:"metadata",type:"sanity.imageMetadata",title:"Metadata"}],preview:{select:{id:"_id",title:"originalFilename",mimeType:"mimeType",size:"size"},prepare:e=>({title:e.title||e.path.split("/").slice(-1)[0],media:{asset:{_ref:e.id}},subtitle:"".concat(e.mimeType," (").concat((e.size/1024/1024).toFixed(2)," MB)")})},orderings:[{title:"File size",name:"fileSizeDesc",by:[{field:"size",direction:"desc"}]}]};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={name:"sanity.imagePalette",title:"Image palette",type:"object",fields:[{name:"darkMuted",type:"sanity.imagePaletteSwatch",title:"Dark Muted"},{name:"lightVibrant",type:"sanity.imagePaletteSwatch",title:"Light Vibrant"},{name:"darkVibrant",type:"sanity.imagePaletteSwatch",title:"Dark Vibrant"},{name:"vibrant",type:"sanity.imagePaletteSwatch",title:"Vibrant"},{name:"dominant",type:"sanity.imagePaletteSwatch",title:"Dominant"},{name:"lightMuted",type:"sanity.imagePaletteSwatch",title:"Light Muted"},{name:"muted",type:"sanity.imagePaletteSwatch",title:"Muted"}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={name:"sanity.imagePaletteSwatch",title:"Image palette swatch",type:"object",fields:[{name:"background",type:"string",title:"Background",readOnly:!0},{name:"foreground",type:"string",title:"Foreground",readOnly:!0},{name:"population",type:"number",title:"Population",readOnly:!0},{name:"title",type:"string",title:"String",readOnly:!0}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={name:"sanity.imageDimensions",type:"object",title:"Image dimensions",fields:[{name:"height",type:"number",title:"Height",readOnly:!0},{name:"width",type:"number",title:"Width",readOnly:!0},{name:"aspectRatio",type:"number",title:"Aspect ratio",readOnly:!0}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={name:"sanity.imageMetadata",title:"Image metadata",type:"object",fieldsets:[{name:"extra",title:"Extra metadata…",options:{collapsable:!0}}],fields:[{name:"location",type:"geopoint"},{name:"dimensions",title:"Dimensions",type:"sanity.imageDimensions",fieldset:"extra"},{name:"palette",type:"sanity.imagePalette",title:"Palette",fieldset:"extra"},{name:"lqip",title:"LQIP (Low-Quality Image Placeholder)",type:"string",readOnly:!0},{name:"hasAlpha",title:"Has alpha channel",type:"boolean",readOnly:!0},{name:"isOpaque",title:"Is opaque",type:"boolean",readOnly:!0}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={name:"sanity.fileAsset",title:"File",type:"document",fieldsets:[{name:"system",title:"System fields",description:"These fields are managed by the system and not editable"}],fields:[{name:"originalFilename",type:"string",title:"Original file name",readOnly:!0},{name:"label",type:"string",title:"Label"},{name:"sha1hash",type:"string",title:"SHA1 hash",readOnly:!0,fieldset:"system"},{name:"extension",type:"string",title:"File extension",readOnly:!0,fieldset:"system"},{name:"mimeType",type:"string",title:"Mime type",readOnly:!0,fieldset:"system"},{name:"size",type:"number",title:"File size in bytes",readOnly:!0,fieldset:"system"},{name:"assetId",type:"string",title:"Asset ID",readOnly:!0,fieldset:"system"},{name:"path",type:"string",title:"Path",readOnly:!0,fieldset:"system"},{name:"url",type:"string",title:"Url",readOnly:!0,fieldset:"system"}],preview:{select:{title:"originalFilename",path:"path",mimeType:"mimeType",size:"size"},prepare:e=>({title:e.title||e.path.split("/").slice(-1)[0],subtitle:"".concat(e.mimeType," (").concat((e.size/1024/1024).toFixed(2)," MB)")})},orderings:[{title:"File size",name:"fileSizeDesc",by:[{field:"size",direction:"desc"}]}]};t.default=r},function(e,t,n){e.exports=[n(1087),n(1669),n(1702),n(1703),n(1704)].map(function(e){return e&&e.__esModule?e.default:e})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={name:"markdown",title:"Markdown",type:"string",inputComponent:((r=n(1088))&&r.__esModule?r:{default:r}).default};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),o=g(n(1)),i=g(n(457)),a=g(n(1168)),s=g(n(186)),u=g(n(1171)),l=g(n(72)),c=g(n(33)),f=g(n(1189)),d=n(137),p=g(n(493)),h=g(n(1653)),v=g(n(1654)),m=g(n(1665)),y=g(n(568));function g(e){return e&&e.__esModule?e:{default:e}}function b(e){for(var t=1;t{},x=new s.default,C=navigator.userAgent.includes("Mac OS"),P=e=>`${e.slice(0,1).toUpperCase()}${e.slice(1)}`,j=e=>r.default.createElement("textarea",e),M={editorClassName:p.default.textarea,minRows:10,usePreview:!0,autoGrow:!0,previewOptions:m.default.defaultOptions},T=e=>{if(!e)return;const t=getComputedStyle(e);return e.clientHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom))};class A extends r.Component{constructor(...e){super(...e),w(this,"id",`md-input-${Date.now()}-${O++}`),w(this,"state",{mode:"write",hasFocus:!1}),w(this,"previewButtonRef",r.default.createRef()),w(this,"setInput",e=>{this._input=e,this._editor=new a.default(e)}),w(this,"setUrlInput",e=>{this._urlInput=e,e&&e.focus()}),w(this,"handleKeyDown",e=>{if(!this.state.hasFocus)return;const t=C?e.metaKey:e.ctrlKey;"p"===e.key&&t&&e.shiftKey&&(e.preventDefault(),this.handleToggleMode()),"b"===e.key&&t&&(e.preventDefault(),this._editor.toggle("bold")),"i"===e.key&&t&&(e.preventDefault(),this._editor.toggle("italic")),"k"===e.key&&t&&(e.preventDefault(),this.setState({showUrlDialogFor:"link"})),"7"===e.key&&t&&e.shiftKey&&(e.preventDefault(),this._editor.toggle("orderedList")),"8"===e.key&&t&&e.shiftKey&&(e.preventDefault(),this._editor.toggle("unorderedList")),/^Digit[1-5]$/.test(e.code)&&t&&e.altKey&&(e.preventDefault(),this._editor.toggle(`header${e.code.slice(-1)}`))}),w(this,"getSelectedText",()=>{if(!this._editor||!this._input)return"";const e=this._input.value,t=_(this._editor.range(),2),n=t[0],r=t[1];return e.slice(n,r)}),w(this,"recordEditPosition",()=>{if(!this._editor||!this._input)return null;const e=this._input.value,t=_(this._editor.range(),2),n=t[0],r=t[1],o=Math.max(0,n-4),i=Math.min(e.length,r+4),a=e.slice(o,i),s=n-o;return this.editPosition={text:a,cursorDiff:s,searchFrom:o,length:r-n,index:n},this.editPosition}),w(this,"restoreEditPosition",()=>{if(!this.editPosition)return;const e=this.props.value,t=this.editPosition,n=t.text,r=t.cursorDiff,o=t.searchFrom,i=t.length,a=t.index,s=x.match_main(e,n,o);if(-1!==s){const e=s+r,t=e+i;this._editor.range([e,t])}else this._editor.range([a,a+i]);this.editPosition=null}),w(this,"getEditorHeight",()=>T(this._editor&&this._editor.el)),w(this,"handlePreventClick",e=>e.preventDefault()),w(this,"handleBlurred",()=>this.setState({hasFocus:!1})),w(this,"handleFocused",()=>this.setState({hasFocus:!0})),w(this,"handleSetWriteMode",()=>{this.setState({mode:"write",editorHeight:this.getEditorHeight()},()=>this.focus())}),w(this,"handleSetPreviewMode",()=>{this.setState({mode:"preview",editorHeight:this.getEditorHeight()})}),w(this,"handleToggleMode",()=>{const e=this.props.type.options||{};(void 0===e.usePreview||e.usePreview)&&(this.handleCloseUrlDialog(),this.setState(({mode:e})=>({mode:"write"===e?"preview":"write",editorHeight:this.getEditorHeight()})))}),w(this,"handleInputFocused",e=>{this.setState({hasFocus:!0}),this.props.onFocus(e)}),w(this,"handleInputBlurred",e=>{this.setState({hasFocus:!1}),this.props.onBlur(e)}),w(this,"handleFocusRedirect",()=>{if(this.handleFocused(),!this.previewButtonRef)return;const e=this.previewButtonRef.current||this.previewButtonRef;e.focus&&e.focus()}),w(this,"handleChange",e=>{this._didInput=!0;const t=e.currentTarget.value;this.props.onChange(d.PatchEvent.from(t?k(t):E()))}),w(this,"handleAction",(e,t)=>{"link"===t||"image"===t?this._editor.hasFormat(t)?this._editor.unformat(t):this.setState({showUrlDialogFor:t}):this._editor.toggle(t)}),w(this,"handleCloseUrlDialog",e=>{const t="function"==typeof e?e:S;this.setState({showUrlDialogFor:null,urlValue:""},()=>{this.focus(),t()})}),w(this,"handleUrlInputChange",e=>{this.setState({urlValue:e.target.value})}),w(this,"handleUrlInputKeyUp",e=>{"Enter"===e.key&&this.handleUrlInputComplete()}),w(this,"handleUrlInputComplete",()=>{const e=this.state,t=e.showUrlDialogFor,n=e.urlValue;this.handleCloseUrlDialog(()=>{this._editor.toggle(t,n||void 0)})})}focus(){this._input&&this._input.focus()}setValidityFromMarkers(e){if(!this._input)return;const t=e.filter(e=>"validation"===e.type).filter(e=>"error"===e.level),n=t&&t.length>0?t[0].item.message:"";this._input.setCustomValidity(n)}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown,!0)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown,!0)}getSnapshotBeforeUpdate(e,t){let n=!1;const r={};return e.value===this.props.value||this._didInput||(n=!0,this.recordEditPosition(),r.restoreEditPosition=!0),"write"===t.mode&&"write"!==this.state.mode&&this.recordEditPosition(),n?r:null}componentDidUpdate(e,t,n){this._didInput=!1,e.markers!==this.props.markers&&this.setValidityFromMarkers(this.props.markers),("write"===this.state.mode&&"write"!==t.mode||n&&n.restoreEditPosition)&&this.restoreEditPosition(),!t.showUrlDialogFor&&this.state.showUrlDialogFor&&this._urlInput&&this._urlInput.focus()}render(){const e=this.state,t=e.mode,n=e.showUrlDialogFor,o=e.urlValue,i=e.editorHeight,a=this.props,s=a.value,d=a.markers,g=a.type,_=a.readOnly,w=a.level,O=b({},M,g.options||{}),k=O.usePreview,E=O.autoGrow,S=O.minRows,x="write"===t,C=E?u.default:j,T=O.renderPreview||m.default;return r.default.createElement(c.default,{markers:d,level:w,label:g.title,labelFor:this.id,description:g.description},r.default.createElement("div",{className:y.default.tabs},k&&r.default.createElement(h.default,{previewRef:this.previewButtonRef,currentMode:t,onSetWriteMode:this.handleSetWriteMode,onSetPreviewMode:this.handleSetPreviewMode,onBlur:this.handleBlurred,onFocus:this.handleFocused}),r.default.createElement(v.default,{onClick:this.handleAction,float:k})),r.default.createElement("div",{className:p.default.root},x?r.default.createElement(C,{id:this.id,readOnly:_,className:O.editorClassName,rows:S,value:s,onInput:this.handleChange,onFocus:this.handleInputFocused,onBlur:this.handleInputBlurred,autoComplete:"off",innerRef:this.setInput,placeholder:g.placeholder}):r.default.createElement("div",{className:y.default.preview,style:{minHeight:`${i}px`},onClick:this.handlePreventClick},r.default.createElement("input",{className:y.default.previewFocusTarget,id:this.id,onFocus:this.handleFocusRedirect}),r.default.createElement(T,{options:b({},M.previewOptions,O.previewOptions),value:s}))),n&&r.default.createElement(f.default,{onCancel:this.handleCloseUrlDialog,onClose:this.handleCloseUrlDialog,onConfirm:this.handleUrlInputComplete,confirmButtonText:"Add"},r.default.createElement(l.default,{type:"url",value:o,placeholder:`${P(n)} URL`,onChange:this.handleUrlInputChange,onKeyUp:this.handleUrlInputKeyUp,ref:this.setUrlInput})))}}t.default=A,w(A,"defaultOptions",b({},M)),w(A,"propTypes",{value:o.default.string,level:o.default.number.isRequired,readOnly:o.default.bool,onChange:o.default.func.isRequired,onFocus:o.default.func,onBlur:o.default.func,type:o.default.shape({title:o.default.string,description:o.default.string,placeholder:o.default.string,options:o.default.shape({editorClassName:o.default.string,minRows:o.default.number,usePreview:o.default.bool,autoGrow:o.default.bool,previewOptions:o.default.shape(i.default.propTypes||{}),renderPreview:o.default.func})}).isRequired,markers:o.default.arrayOf(o.default.shape({type:o.default.string.isRequired,level:o.default.string.isRequired,item:o.default.shape({message:o.default.string.isRequired})}))}),w(A,"defaultProps",{value:"",readOnly:!1,onFocus:S,onBlur:S,markers:[]})},function(e,t,n){"use strict";var r=n(1090),o=n(1091),i=n(1092),a=n(1098),s=n(1100),u=n(1101);e.exports=function e(){var t=[];var n=a();var g={};var b=!1;var _=-1;w.data=function(e,t){if(s(e))return 2===arguments.length?(v("data",b),g[e]=t,w):c.call(g,e)&&g[e]||null;if(e)return v("data",b),g=e,w;return g};w.freeze=O;w.attachers=t;w.use=function(e){var n;if(v("use",b),null==e);else if("function"==typeof e)s.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?a(e):o(e)}n&&(g.settings=r(g.settings||{},n));return w;function o(e){a(e.plugins),e.settings&&(n=r(n||{},e.settings))}function i(e){if("function"==typeof e)s(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?s.apply(null,e):o(e)}}function a(e){var t,n;if(null==e);else{if(!("object"==typeof e&&"length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(t=e.length,n=-1;++na.length;s&&a.push(o);try{t=e.apply(null,a)}catch(e){if(s&&n)throw e;return o(e)}s||(t&&"function"==typeof t.then?t.then(i,o):t instanceof Error?o(t):i(t))};function o(){n||(n=!0,t.apply(null,arguments))}function i(e){o(null,e)}}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return"[object String]"===n.call(e)}},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===r.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},function(e,t,n){"use strict";var r=n(1103),o=n(59),i=n(1105);function a(e){var t=r(i);t.prototype.options=o(t.prototype.options,this.data("settings"),e),this.Parser=t}e.exports=a,a.Parser=i},function(e,t,n){"use strict";var r=n(59),o=n(1104);e.exports=function(e){var t,n,i;for(n in o(s,e),o(a,s),t=s.prototype)(i=t[n])&&"object"==typeof i&&(t[n]="concat"in i?i.concat():r(i));return s;function a(t){return e.apply(this,t)}function s(){return this instanceof s?e.apply(this,arguments):new a(arguments)}}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";var r=n(59),o=n(1106),i=n(1107),a=n(1108),s=n(1109),u=n(1115);function l(e,t){this.file=t,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=i(t).toOffset,this.unescape=a(this,"escape"),this.decode=s(this)}e.exports=l;var c=l.prototype;function f(e){var t,n=[];for(t in e)n.push(t);return n}c.setOptions=n(1116),c.parse=n(1119),c.options=n(460),c.exitStart=o("atStart",!0),c.enterList=o("inList",!1),c.enterLink=o("inLink",!1),c.enterBlock=o("inBlock",!1),c.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],c.blockTokenizers={newline:n(1123),indentedCode:n(1124),fencedCode:n(1125),blockquote:n(1126),atxHeading:n(1127),thematicBreak:n(1128),list:n(1129),setextHeading:n(1131),html:n(1132),footnote:n(1133),definition:n(1135),table:n(1136),paragraph:n(1137)},c.inlineTokenizers={escape:n(1138),autoLink:n(1140),url:n(1141),html:n(1143),link:n(1144),reference:n(1145),strong:n(1146),emphasis:n(1148),deletion:n(1151),code:n(1153),break:n(1155),text:n(1157)},c.blockMethods=f(c.blockTokenizers),c.inlineMethods=f(c.inlineTokenizers),c.tokenizeBlock=u("block"),c.tokenizeInline=u("inline"),c.tokenizeFactory=u},function(e,t,n){"use strict";e.exports=function(e,t,n){return function(){var r=n||this,o=r[e];return r[e]=!t,function(){r[e]=o}}}},function(e,t,n){"use strict";function r(e){return function(t){var n=-1,r=e.length;if(t<0)return{};for(;++nt)return{line:n+1,column:t-(e[n-1]||0)+1,offset:t};return{}}}function o(e){return function(t){var n=t&&t.line,r=t&&t.column;if(!isNaN(n)&&!isNaN(r)&&n-1 in e)return(e[n-2]||0)+r-1||0;return-1}}e.exports=function(e){var t=function(e){var t=[],n=e.indexOf("\n");for(;-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}(String(e));return{toPosition:r(t),toOffset:o(t)}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(n){var r,o=0,i=n.indexOf("\\"),a=e[t],s=[];for(;-1!==i;)s.push(n.slice(o,i)),o=i+1,(r=n.charAt(o))&&-1!==a.indexOf(r)||s.push("\\"),i=n.indexOf("\\",o);return s.push(n.slice(o)),s.join("")}}},function(e,t,n){"use strict";var r=n(59),o=n(276);e.exports=function(e){return i.raw=function(e,i,a){return o(e,r(a,{position:t(i),warning:n}))},i;function t(t){for(var n=e.offset,r=t.line,o=[];++r&&r in n;)o.push((n[r]||0)+1);return{start:t,indent:o}}function n(t,n,r){3!==r&&e.file.message(t,n)}function i(r,i,a){o(r,{position:t(i),warning:n,text:a,reference:a,textContext:e,referenceContext:e})}}},function(e,t){e.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e,t){e.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},function(e,t,n){"use strict";var r=n(459),o=n(184);e.exports=function(e){return r(e)||o(e)}},function(e,t,n){"use strict";var r,o=59;e.exports=function(e){var t,n="&"+e+";";if((r=r||document.createElement("i")).innerHTML=n,(t=r.textContent).charCodeAt(t.length-1)===o&&"semi"!==e)return!1;return t!==n&&t}},function(e,t,n){"use strict";e.exports=function(e){return function(t,n){var i,a,s,u,l,c,f=this,d=f.offset,p=[],h=f[e+"Methods"],v=f[e+"Tokenizers"],m=n.line,y=n.column;if(!t)return p;w.now=b,w.file=f.file,g("");for(;t;){for(i=-1,a=h.length,l=!1;++i"],o=r.concat(["~","|"]),i=o.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function a(e){var t=e||{};return t.commonmark?i:t.gfm?o:r}a.default=r,a.gfm=o,a.commonmark=i},function(e,t){e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";var r=n(59),o=n(1120);e.exports=function(){var e,t=String(this.file),n={line:1,column:1,offset:0},s=r(n);65279===(t=t.replace(a,i)).charCodeAt(0)&&(t=t.slice(1),s.column++,s.offset++);e={type:"root",children:this.tokenizeBlock(t,s),position:{start:n,end:this.eof||r(n)}},this.options.position||o(e,!0);return e};var i="\n",a=/\r\n|\r/g},function(e,t,n){"use strict";var r=n(185);function o(e){delete e.position}function i(e){e.position=void 0}e.exports=function(e,t){return r(e,t?o:i),e}},function(e,t,n){"use strict";e.exports=s;var r=n(1122),o=!0,i="skip",a=!1;function s(e,t,n,o){var s;function l(e,r,c){var f,d=[];return(t&&!s(e,r,c[c.length-1]||null)||(d=u(n(e,c)))[0]!==a)&&e.children&&d[0]!==i&&(f=u(function(e,t){var n,r=o?-1:1,i=(o?e.length:-1)+r;for(;i>-1&&i=c)){for(v="";Es)return;if(!c||!f.pedantic&&t.charAt(p+1)===a)return;d=t.length+1,l="";for(;++p=l&&(!c||c===r)?(m+=p,!!n||e(m)({type:"thematicBreak"})):void 0;p+=c}};var r="\n",o="\t",i=" ",a="*",s="_",u="-",l=3},function(e,t,n){"use strict";var r=n(111),o=n(277),i=n(184),a=n(461),s=n(1130),u=n(279);e.exports=function(e,t,n){var o,a,s,v,y,g,b,_,w,x,C,P,j,M,T,A,D,I,N,R,F,L,B,z,W=this.options.commonmark,U=this.options.pedantic,H=this.blockTokenizers,q=this.interruptList,V=0,Y=t.length,G=null,K=0;for(;V=m)return;if(v=t.charAt(V),o=W?E:k,!0===O[v])y=v,s=!1;else{for(s=!0,a="";V=m&&(z=!0),D&&K>=D.indent&&(z=!0),v=t.charAt(V),w=null,!z){if(!0===O[v])w=v,V++,K++;else{for(a="";V=D.indent||K>m):z=!0,_=!1,V=b;if(C=t.slice(b,g),x=b===V?C:t.slice(V,g),(w===l||w===c||w===f)&&H.thematicBreak.call(this,e,C,!0))break;if(P=j,j=!r(x).length,z&&D)D.value=D.value.concat(A,C),T=T.concat(A,C),A=[];else if(_)0!==A.length&&(D.value.push(""),D.trail=A.concat()),D={value:[C],indent:K,trail:[]},M.push(D),T=T.concat(A,C),A=[];else if(j){if(P)break;A.push(C)}else{if(P)break;if(u(q,H,this,[e,C,!0]))break;D.value=D.value.concat(A,C),T=T.concat(A,C),A=[]}V=g+1}F=e(T.join(p)).reset({type:"list",ordered:s,start:G,loose:null,children:[]}),I=this.enterList(),N=this.enterBlock(),R=!1,V=-1,Y=M.length;for(;++V0&&l.indent=a){v--;break}m+=c}u="",l="";for(;++v|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];for(;yB){if(N1&&(x?(w+=S.slice(0,S.length-1),S=S.charAt(S.length-1)):(w+=S,S="")),D=e.now(),e(w)({type:"tableCell",children:this.tokenizeInline(j,D)},O)),e(S+x),S="",j=""}else if(S&&(j+=S,S=""),j+=x,x===o&&g!==k-2&&(j+=R.charAt(g+1),g++),x===i){for(T=1;R.charAt(g+1)===x;)j+=x,g++,T++;A?T>=A&&(A=0):A=T}M=!1,g++}else j?S+=x:e(x),g++;I||e(c+b)}return L};var o="\\",i="`",a="-",s="|",u=":",l=" ",c="\n",f="\t",d=1,p=2,h="left",v="center",m="right",y=null},function(e,t,n){"use strict";var r=n(111),o=n(184),i=n(278),a=n(279);e.exports=function(e,t,n){var f,d,p,h,v,m=this.options,y=m.commonmark,g=m.gfm,b=this.blockTokenizers,_=this.interruptParagraph,w=t.indexOf(s),O=t.length;for(;w=c){w=t.indexOf(s,w+1);continue}}if(d=t.slice(w+1),a(_,b,this,[e,d,!0]))break;if(b.list.call(this,e,d,!0)&&(this.inList||y||g&&!o(r.left(d).charAt(0))))break;if(f=w,-1!==(w=t.indexOf(s,w+1))&&""===r(t.slice(f,w))){w=f;break}}if(d=t.slice(0,w),""===r(d))return e(d),null;if(n)return!0;return v=e.now(),d=i(d),e(d)({type:"paragraph",children:this.tokenizeInline(d,v)})};var s="\n",u="\t",l=" ",c=4},function(e,t,n){"use strict";var r=n(1139);function o(e,t,n){var r,o;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(o="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(o))}e.exports=o,o.locator=r},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("\\",t)}},function(e,t,n){"use strict";var r=n(40),o=n(276),i=n(463);e.exports=d,d.locator=i,d.notInLink=!0;var a="<",s=">",u="@",l="/",c="mailto:",f=c.length;function d(e,t,n){var i,d,p,h,v,m,y,g,b,_,w;if(t.charAt(0)===a){for(this,i="",d=t.length,p=0,h="",m=!1,y="",p++,i=a;p/i;function u(e,t,n){var o,u,l=t.length;if(!("<"!==t.charAt(0)||l<3)&&(o=t.charAt(1),(r(o)||"?"===o||"!"===o||"/"===o)&&(u=t.match(i))))return!!n||(u=u[0],!this.inLink&&a.test(u)?this.inLink=!0:this.inLink&&s.test(u)&&(this.inLink=!1),e(u)({type:"html",value:u}))}},function(e,t,n){"use strict";var r=n(40),o=n(464);e.exports=m,m.locator=o;var i={}.hasOwnProperty,a="\\",s="[",u="]",l="(",c=")",f="<",d=">",p="`",h={'"':'"',"'":"'"},v={};function m(e,t,n){var o,m,y,g,b,_,w,O,k,E,S,x,C,P,j,M,T,A,D,I="",N=0,R=t.charAt(0),F=this.options.pedantic,L=this.options.commonmark,B=this.options.gfm;if("!"===R&&(k=!0,I=R,R=t.charAt(++N)),R===s&&(k||!this.inLink)){for(I+=R,j="",N++,x=t.length,P=0,(T=e.now()).column+=N,T.offset+=N;N=y&&(y=0):y=m}else if(R===a)N++,_+=t.charAt(N);else if(y&&!B||R!==s){if((!y||B)&&R===u){if(!P){if(!F)for(;Nt&&" "===e.charAt(n-1);)n--;return n}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,o,i,a,s,u,l,c,f,d;if(n)return!0;r=this.inlineMethods,a=r.length,o=this.inlineTokenizers,i=-1,f=t.length;for(;++i$/i,a=/^<(\/?)([a-z]+)\s*>$/;e.exports=function(e){var t,n;return r(e,"html",function(e,r,s){n!==s&&(t=[],n=s);var u=function(e){var t=e.value.match(i);return!!t&&t[1]}(e);if(u)return s.children.splice(r,1,{type:o,tag:u,position:e.position}),!0;var l=function(e,t){var n=e.value.match(a);return!!n&&{tag:n[2],opening:!n[1],node:e}}(e);if(!l)return!0;var c=function(e,t){var n=e.length;for(;n--;)if(e[n].tag===t)return e.splice(n,1)[0];return!1}(t,l.tag);return c?s.children.splice(r,0,function(e,t,n){var r=n.children.indexOf(e.node),i=n.children.indexOf(t.node),a=n.children.splice(r,i-r+1).slice(1,-1);return{type:o,children:a,tag:e.tag,position:{start:e.node.position.start,end:t.node.position.end,indent:[]}}}(l,c,s)):l.opening||t.push(l),!0},!0),e}},function(e,t,n){"use strict";var r=n(185);function o(e,t,n,r){if("remove"===r)n.children.splice(t,1);else if("unwrap"===r){var o=[t,1];e.children&&(o=o.concat(e.children)),Array.prototype.splice.apply(n.children,o)}}t.ofType=function(e,t){return function(t){return e.forEach(function(e){return r(t,e,n,!0)}),t};function n(e,n,r){r&&o(e,n,r,t)}},t.ifNotMatch=function(e,t){return function(e){return r(e,n,!0),e};function n(n,r,i){i&&!e(n,r,i)&&o(n,r,i,t)}}},function(e,t,n){"use strict";var r=n(0),o=n(59);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=t.renderers[e.type],l=e.position.start,c=[e.type,l.line,l.column].join("-");if("function"!=typeof u&&"string"!=typeof u&&!function(e){return r.Fragment&&r.Fragment===e}(u))throw new Error("Renderer for type `".concat(e.type,"` not defined or is not renderable"));var f=function(e,t,n,s,u,l){var c={key:t},f="string"==typeof s;n.sourcePos&&e.position&&(c["data-sourcepos"]=[(d=e.position).start.line,":",d.start.column,"-",d.end.line,":",d.end.column].map(String).join(""));var d;n.rawSourcePos&&!f&&(c.sourcePosition=e.position);n.includeNodeIndex&&u.node&&u.node.children&&!f&&(c.index=u.node.children.indexOf(e),c.parentChildCount=u.node.children.length);var p=null!==e.identifier&&void 0!==e.identifier?n.definitions[e.identifier]||{}:null;switch(e.type){case"root":a(c,{className:n.className});break;case"text":c.nodeKey=t,c.children=e.value;break;case"heading":c.level=e.depth;break;case"list":c.start=e.start,c.ordered=e.ordered,c.tight=!e.loose,c.depth=e.depth;break;case"listItem":c.checked=e.checked,c.tight=!e.loose,c.ordered=e.ordered,c.index=e.index,c.children=function(e,t){if(e.loose)return e.children;if(t.node&&e.index>0&&t.node.children[e.index-1].loose)return e.children;return function(e){return e.children.reduce(function(e,t){return e.concat("paragraph"===t.type?t.children||[]:[t])},[])}(e)}(e,u).map(function(t,r){return i(t,n,{node:e,props:c},r)});break;case"definition":a(c,{identifier:e.identifier,title:e.title,url:e.url});break;case"code":a(c,{language:e.lang&&e.lang.split(/\s/,1)[0]});break;case"inlineCode":c.children=e.value,c.inline=!0;break;case"link":a(c,{title:e.title||void 0,target:"function"==typeof n.linkTarget?n.linkTarget(e.url,e.children,e.title):n.linkTarget,href:n.transformLinkUri?n.transformLinkUri(e.url,e.children,e.title):e.url});break;case"image":a(c,{alt:e.alt||void 0,title:e.title||void 0,src:n.transformImageUri?n.transformImageUri(e.url,e.children,e.title,e.alt):e.url});break;case"linkReference":a(c,o(p,{href:n.transformLinkUri?n.transformLinkUri(p.href):p.href}));break;case"imageReference":a(c,{src:n.transformImageUri&&p.href?n.transformImageUri(p.href,e.children,p.title,e.alt):p.href,title:p.title||void 0,alt:e.alt||void 0});break;case"table":case"tableHead":case"tableBody":c.columnAlignment=e.align;break;case"tableRow":c.isHeader="tableHead"===u.node.type,c.columnAlignment=u.props.columnAlignment;break;case"tableCell":a(c,{isHeader:u.props.isHeader,align:u.props.columnAlignment[l]});break;case"virtualHtml":c.tag=e.tag;break;case"html":c.isBlock=e.position.start.line!==e.position.end.line,c.escapeHtml=n.escapeHtml,c.skipHtml=n.skipHtml;break;case"parsedHtml":var h;e.children&&(h=e.children.map(function(t,r){return i(t,n,{node:e,props:c},r)})),c.escapeHtml=n.escapeHtml,c.skipHtml=n.skipHtml,c.element=function(e,t){var n=e.element;if(Array.isArray(n)){var o=r.Fragment||"div";return r.createElement(o,null,n)}if(n.props.children||t){var i=r.Children.toArray(n.props.children).concat(t);return r.cloneElement(n,null,i)}return r.cloneElement(n,null)}(e,h);break;default:a(c,o(e,{type:void 0,position:void 0,children:void 0}))}!f&&e.value&&(c.value=e.value);return c}(e,c,t,u,n,s);return r.createElement(u,f,f.children||e.children&&e.children.map(function(n,r){return i(n,t,{node:e,props:f},r)})||void 0)}function a(e,t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}e.exports=i},function(e,t,n){"use strict";var r=n(185);function o(e){var t=e.children;e.children=[{type:"tableHead",align:e.align,children:[t[0]],position:t[0].position}],t.length>1&&e.children.push({type:"tableBody",align:e.align,children:t.slice(1),position:{start:t[1].position.start,end:t[t.length-1].position.end}})}e.exports=function(e){return r(e,"table",o),e}},function(e,t,n){"use strict";e.exports=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t.children||[]).reduce(function(t,n){return"definition"===n.type&&(t[n.identifier]={href:n.url,title:n.title}),e(n,t)},n)}},function(e,t,n){"use strict";var r=["http","https","mailto","tel"];e.exports=function(e){var t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;var o=t.indexOf(":");if(-1===o)return t;for(var i=r.length,a=-1;++aa?t:-1!==(a=t.indexOf("#"))&&o>a?t:"javascript:void(0)"}},function(e,t,n){"use strict";var r=n(59),o=n(0),i=parseInt((o.version||"16").slice(0,2),10)>=16,a=o.createElement;function s(e,t){return a(e,u(t),t.children)}function u(e){return e["data-sourcepos"]?{"data-sourcepos":e["data-sourcepos"]}:{}}e.exports={break:"br",paragraph:"p",emphasis:"em",strong:"strong",thematicBreak:"hr",blockquote:"blockquote",delete:"del",link:"a",image:"img",linkReference:"a",imageReference:"img",table:s.bind(null,"table"),tableHead:s.bind(null,"thead"),tableBody:s.bind(null,"tbody"),tableRow:s.bind(null,"tr"),tableCell:function(e){var t=e.align?{textAlign:e.align}:void 0,n=u(e);return a(e.isHeader?"th":"td",t?r({style:t},n):n,e.children)},root:function(e){var t=!e.className,n=t&&o.Fragment||"div";return a(n,t?null:e,e.children)},text:function(e){return i?e.children:a("span",null,e.children)},list:function(e){var t=u(e);null!==e.start&&1!==e.start&&(t.start=e.start.toString());return a(e.ordered?"ol":"ul",t,e.children)},listItem:function(e){var t=null;if(null!==e.checked){var n=e.checked;t=a("input",{type:"checkbox",checked:n,readOnly:!0})}return a("li",u(e),t,e.children)},definition:function(){return null},heading:function(e){return a("h".concat(e.level),u(e),e.children)},inlineCode:function(e){return a("code",u(e),e.children)},code:function(e){var t=e.language&&"language-".concat(e.language),n=a("code",t?{className:t}:null,e.value);return a("pre",u(e),n)},html:function(e){if(e.skipHtml)return null;var t=e.isBlock?"div":"span";if(e.escapeHtml){var n=o.Fragment||t;return a(n,null,e.value)}var r={dangerouslySetInnerHTML:{__html:e.value}};return a(t,r)},virtualHtml:function(e){return a(e.tag,u(e),e.children)},parsedHtml:function(e){return e["data-sourcepos"]?o.cloneElement(e.element,{"data-sourcepos":e["data-sourcepos"]}):e.element}}},function(e,t,n){"use strict";t.HtmlParser="undefined"==typeof Symbol?"__RMD_HTML_PARSER__":Symbol("__RMD_HTML_PARSER__")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Formats=void 0;var r="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=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n1?t-1:0),r=1;r1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:"";return"object"==(void 0===e?"undefined":r(e))?e:{value:e,pattern:(0,a.default)(e)}}function y(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r "}}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(1172);t.default=r.TextareaAutosize},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function a(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,a=null,s=function(){e.clientWidth!==r&&f()},u=function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",f,!1),e.removeEventListener("keyup",f,!1),e.removeEventListener("autosize:destroy",u,!1),e.removeEventListener("autosize:update",f,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",u,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",f,!1),window.addEventListener("resize",s,!1),e.addEventListener("input",f,!1),e.addEventListener("autosize:update",f,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:u,update:f}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),f()}function l(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function c(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach(function(e){e.node.scrollTop=e.scrollTop}),o&&(document.documentElement.scrollTop=o)}}function f(){c();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=()=>{};class p extends o.default.PureComponent{constructor(){super(...arguments),f(this,"setInput",e=>{this._input=e})}componentDidMount(){this._input.setCustomValidity(this.props.customValidity)}componentWillReceiveProps(e){e.customValidity!==this.props.customValidity&&this._input.setCustomValidity(e.customValidity)}select(){this._input&&this._input.select()}focus(){this._input&&this._input.focus()}render(){var e=this.props,t=e.onClear,n=(e.hasError,e.isClearable),r=(e.isSelected,e.disabled),u=(e.markers,e.styles),d=(e.customValidity,e.focusPath,c(e,["onClear","hasError","isClearable","isSelected","disabled","markers","styles","customValidity","focusPath"])),p=function(e){for(var t=1;t=0){o=1;break}var a=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},o))}};function s(e){return e&&"[object Function]"==={}.toString.call(e)}function u(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=u(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:c(l(e))}var f={},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";if(e=e.toString(),f.hasOwnProperty(e))return f[e];switch(e){case"11":f[e]=-1!==navigator.userAgent.indexOf("Trident");break;case"10":f[e]=-1!==navigator.appVersion.indexOf("MSIE 10");break;case"all":f[e]=-1!==navigator.userAgent.indexOf("Trident")||-1!==navigator.userAgent.indexOf("MSIE")}return f.all=f.all||Object.keys(f).some(function(e){return f[e]}),f[e]};function p(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===u(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function v(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,u=i.commonAncestorContainer;if(e!==u&&t!==u||r.contains(o))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&p(a.firstElementChild)!==a?p(u):u;var l=h(e);return l.host?v(l.host,t):v(e,h(t).host)}function m(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function y(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function g(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function b(){var e=document.body,t=document.documentElement,n=d(10)&&getComputedStyle(t);return{height:g("Height",e,t,n),width:g("Width",e,t,n)}}var _=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},w=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=d(10),o="HTML"===t.nodeName,i=S(e),a=S(t),s=c(e),l=u(t),f=parseFloat(l.borderTopWidth,10),p=parseFloat(l.borderLeftWidth,10);n&&"HTML"===t.nodeName&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=E({top:i.top-a.top-f,left:i.left-a.left-p,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var v=parseFloat(l.marginTop,10),y=parseFloat(l.marginLeft,10);h.top-=f-v,h.bottom-=f-v,h.left-=p-y,h.right-=p-y,h.marginTop=v,h.marginLeft=y}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(t,"top"),o=m(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(h,t)),h}function C(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===u(t,"transform");)t=t.parentElement;return t||document.documentElement}function P(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?C(e):v(e,t);if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=x(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:m(n),s=t?0:m(n,"left");return E({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i})}(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=c(l(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var f=x(s,a,o);if("HTML"!==s.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===u(t,"position")||e(l(t)))}(a))i=f;else{var d=b(),p=d.height,h=d.width;i.top+=f.top-f.marginTop,i.bottom=p+f.top,i.left+=f.left-f.marginLeft,i.right=h+f.left}}return i.left+=n,i.top+=n,i.right-=n,i.bottom-=n,i}function j(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=P(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map(function(e){return k({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),l=u.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),c=l.length>0?l[0].key:u[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function M(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return x(n,r?C(t):v(t,n),r)}function T(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function A(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function D(e,t,n){n=n.split("-")[0];var r=T(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",u=i?"height":"width",l=i?"width":"height";return o[a]=t[a]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[l]:t[A(s)],o}function I(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function N(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=I(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&s(n)&&(t.offsets.popper=E(t.offsets.popper),t.offsets.reference=E(t.offsets.reference),t=n(t,e))}),t}function R(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function F(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=V.indexOf(e),r=V.slice(n+1).concat(V.slice(0,n));return t?r.reverse():r}var G={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function K(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(I(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(l=l.map(function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return E(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){W(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var J={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:O({},u,i[u]),end:O({},u,i[u]+i[l]-a[l])};e.offsets.popper=k({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],u=void 0;return u=W(+n)?[+n,0]:K(n,i,a,s),"left"===s?(i.top+=u[0],i.left-=u[1]):"right"===s?(i.top+=u[0],i.left+=u[1]):"top"===s?(i.left+=u[0],i.top-=u[1]):"bottom"===s&&(i.left+=u[0],i.top+=u[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=P(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);t.boundaries=r;var o=t.priority,i=e.offsets.popper,a={primary:function(e){var n=i[e];return i[e]r[e]&&!t.escapeWithReference&&(o=Math.min(i[n],r[e]-("right"===e?i.width:i.height))),O({},n,o)}};return o.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";i=k({},i,a[t](e))}),e.offsets.popper=i,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]i(r[s])&&(e.offsets.popper[u]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!H(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",f=l?"Top":"Left",d=f.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",v=T(r)[c];s[h]-va[h]&&(e.offsets.popper[d]+=s[d]+v-a[h]),e.offsets.popper=E(e.offsets.popper);var m=s[d]+s[c]/2-v/2,y=u(e.instance.popper),g=parseFloat(y["margin"+f],10),b=parseFloat(y["border"+f+"Width"],10),_=m-e.offsets.popper[d]-g-b;return _=Math.max(Math.min(a[c]-v,_),0),e.arrowElement=r,e.offsets.arrow=(O(n={},d,Math.round(_)),O(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(R(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=P(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=A(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case G.FLIP:a=[r,o];break;case G.CLOCKWISE:a=Y(r);break;case G.COUNTERCLOCKWISE:a=Y(r,!0);break;default:a=t.behavior}return a.forEach(function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],o=A(r);var l=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)f(c.top)||"bottom"===r&&f(l.top)f(n.right),v=f(l.top)f(n.bottom),y="left"===r&&p||"right"===r&&h||"top"===r&&v||"bottom"===r&&m,g=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(g&&"start"===i&&p||g&&"end"===i&&h||!g&&"start"===i&&v||!g&&"end"===i&&m);(d||y||b)&&(e.flipped=!0,(d||y)&&(r=a[u+1]),b&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=k({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=N(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=A(t),e.offsets.popper=E(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!H(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=I(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};_(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=a(this.update.bind(this)),this.options=k({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(k({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=k({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return k({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&s(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return w(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=M(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=j(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=N(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,R(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[F("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return z.call(this)}}]),e}();$.Utils=("undefined"!=typeof window?window:e).PopperUtils,$.placements=q,$.Defaults=J,t.default=$}.call(t,n(24))},function(e,t){e.exports={root:"ValidationList_root_1RpVY",block:"ValidationList_block_axUGS",items:"ValidationList_items_3i8LF ValidationList_block_axUGS"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(0)),o=u(n(1)),i=u(n(1187)),a=u(n(60)),s=u(n(112));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends r.default.PureComponent{constructor(){super(...arguments),l(this,"handleKeyPress",e=>{"Enter"===e.key&&this.handleClick(e)}),l(this,"handleClick",e=>{var t=this.props,n=t.marker,r=t.onClick;r&&r(e,n.path)}),l(this,"setElement",e=>{this._element=e})}componentDidMount(){this.props.hasFocus&&this.focus()}focus(){setTimeout(()=>{this._element.focus()},200)}componentWillReceiveProps(e){e.hasFocus&&this.focus()}render(){var e=this.props,t=e.marker,n=e.onClick,o=e.path,u=e.showLink,l=e.truncate,c=n&&u;return r.default.createElement("a",{ref:this.setElement,tabIndex:0,onClick:this.handleClick,onKeyPress:this.handleKeyPress,className:"\n ".concat(n?i.default.interactiveItem:i.default.item,"\n ").concat(i.default[t.level],"\n ").concat(l?i.default.truncate:"","\n ")},r.default.createElement("span",{className:i.default.icon},r.default.createElement(a.default,null)),r.default.createElement("div",{className:i.default.content},r.default.createElement("span",{className:i.default.path},o),r.default.createElement("span",{className:i.default.message},t.item.message)),c&&r.default.createElement("span",{className:i.default.link,title:"View"},r.default.createElement(s.default,null)))}}t.default=c,l(c,"propTypes",{onClick:o.default.func,showLink:o.default.bool,path:o.default.string,hasFocus:o.default.bool,truncate:o.default.bool,marker:o.default.shape({path:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.number,o.default.shape({_key:o.default.string})])),type:o.default.string,level:o.default.string,item:o.default.any}).isRequired}),l(c,"defaultProps",{path:"",onClick:void 0,showLink:!1})},function(e,t){e.exports={item:"ValidationListItem_item_14b6e",truncate:"ValidationListItem_truncate_1oAWY",error:"ValidationListItem_error_2F8Xm",warning:"ValidationListItem_warning_1HrNt",interactiveItem:"ValidationListItem_interactiveItem_2rQd6 ValidationListItem_item_14b6e",icon:"ValidationListItem_icon_rsLmZ",content:"ValidationListItem_content_iQ11F",path:"ValidationListItem_path_12oRX",message:"ValidationListItem_message_2cU1Y",link:"ValidationListItem_link_3csX4"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{e.stopPropagation()}),u(this,"setDialogElement",e=>{this.dialog=e}),u(this,"handleAction",(e,t)=>{"confirm"===e.key?this.props.onConfirm(t):this.props.onCancel(t)})}render(){var e=this.props,t=e.color,n=e.confirmColor,r=e.cancelColor,s=e.confirmButtonText,u=e.cancelButtonText,l=e.onConfirm,c=e.onCancel,f=e.title,d=[{key:"confirm",index:1,title:s,color:n,action:l},{key:"cancel",index:2,title:u,color:r,action:c,kind:"simple",secondary:!0}];return o.default.createElement(i.default,{color:t,actions:d,title:f,showCloseButton:!1,onEscape:this.props.onCancel,onAction:this.handleAction},o.default.createElement("div",{className:a.default.content},this.props.children))}}t.default=l,u(l,"propTypes",{title:r.default.string,color:r.default.oneOf(["default","warning","success","danger","info"]),cancelColor:r.default.oneOf(["primary","success","danger","white"]),confirmColor:r.default.oneOf(["primary","success","danger","white"]),children:r.default.node,onConfirm:r.default.func.isRequired,onCancel:r.default.func,confirmButtonText:r.default.string,cancelButtonText:r.default.string}),u(l,"defaultProps",{confirmColor:"danger",cancelColor:void 0,confirmButtonText:"OK",cancelButtonText:"Cancel"})},function(e,t,n){var r=n(42);e.exports=function(){return r.Date.now()}},function(e,t){e.exports={root:"DefaultDialog_root_1Xv5C positioning_flexCenter_117L1",overlay:"DefaultDialog_overlay_1XNWo backgrounds_frosted_2rBwe",fadeIn:"DefaultDialog_fadeIn_270j0",default:"DefaultDialog_default_2MKpB DefaultDialog_root_1Xv5C positioning_flexCenter_117L1",danger:"DefaultDialog_danger_3_IkR DefaultDialog_root_1Xv5C positioning_flexCenter_117L1",success:"DefaultDialog_success_1Kylb DefaultDialog_root_1Xv5C positioning_flexCenter_117L1",info:"DefaultDialog_info_3F6oa DefaultDialog_root_1Xv5C positioning_flexCenter_117L1",warning:"DefaultDialog_warning_2zuOi DefaultDialog_root_1Xv5C positioning_flexCenter_117L1",dialog:"DefaultDialog_dialog_1ENXR shadows_shadow-24dp_2lGyX",reveal:"DefaultDialog_reveal_31rxF",isClosed:"DefaultDialog_isClosed_1KbOY",isOpen:"DefaultDialog_isOpen_l3vbU",header:"DefaultDialog_header_1Gf2r",inner:"DefaultDialog_inner_1BOYd",content:"DefaultDialog_content_1RD9K scrolling_scrollY_S9M7c scrolling_touchScroll_13M6t",contentWithoutFooter:"DefaultDialog_contentWithoutFooter_3e1jr DefaultDialog_content_1RD9K scrolling_scrollY_S9M7c scrolling_touchScroll_13M6t",title:"DefaultDialog_title_33_i-",closeButton:"DefaultDialog_closeButton_Z-eQz",closeButtonIcon:"DefaultDialog_closeButtonIcon_xfx4R",closeButtonOutside:"DefaultDialog_closeButtonOutside_1Rh-u shadows_shadow-6dp_3hP4o",footer:"DefaultDialog_footer_2Gr-Z",footerWithShadow:"DefaultDialog_footerWithShadow_2AYBS DefaultDialog_footer_2Gr-Z"}},function(e,t){e.exports={root:"ConfirmDialog_root_1gl7H DefaultDialog_root_1Xv5C positioning_flexCenter_117L1",inner:"ConfirmDialog_inner_3HEga DefaultDialog_inner_1BOYd",content:"ConfirmDialog_content_25HMW",footer:"ConfirmDialog_footer_bDhsZ"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(0)),o=a(n(281)),i=n(61);n(1643);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends r.default.Component{constructor(){super(...arguments),s(this,"_input",void 0),s(this,"setInput",e=>{this._input=e})}componentDidMount(){var e=this.props.autoFocus;this._input&&e&&this._input.focus()}render(){var e=this.props,t=e.value,n=e.schema,a=e.patchChannel,s=e.type,u=e.onChange,l=e.readOnly,c=e.markers,f=e.onFocus,d=e.onBlur,p=e.focusPath,h=e.filterField;return r.default.createElement(o.default,{value:t,schema:n,patchChannel:a},r.default.createElement(i.FormBuilderInput,{type:s,onChange:u,level:0,value:t,onFocus:f,onBlur:d,markers:c,focusPath:p,isRoot:!0,readOnly:l,filterField:h,ref:this.setInput}))}}t.default=u,u.createPatchChannel=o.default.createPatchChannel},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fallbackInputs=void 0;var r=u(n(468)),o=u(n(472)),i=u(n(488)),a=u(n(490)),s=u(n(492));function u(e){return e&&e.__esModule?e:{default:e}}var l={object:r.default,array:o.default,boolean:i.default,number:a.default,string:s.default};t.fallbackInputs=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(1)),o=d(n(0)),i=d(n(283)),a=d(n(1196)),s=d(n(73)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(10)),l=d(n(1206)),c=d(n(1207)),f=d(n(469));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return!0===e.collapsible||!0===e.collapsable?{collapsible:!0,collapsed:!1!==e.collapsed}:!1===e.collapsible||!1===e.collapsable?{collapsible:t>9,collapsed:t>9}:{collapsible:t>2,collapsed:t>2}}class v extends o.default.PureComponent{constructor(){super(...arguments),p(this,"handleFieldChange",(e,t)=>{var n=this.props,r=n.onChange,o=n.type,i=n.value,a=n.isRoot,s=e.prefixAll(t.name);if(!a&&(s=s.prepend((0,u.setIfMissing)("object"===o.name?{}:{_type:o.name})),i)){var l=i&&i._type,c=o.name;l&&"object"===c?s=s.prepend((0,u.unset)(["_type"])):"object"!==c&&l!==c&&(s=s.prepend((0,u.set)(c,["_type"])))}r(s)}),p(this,"setFirstField",e=>{this._firstField=e})}handleBlur(){var e=this.props,t=e.onChange,n=e.value;(0,l.default)(n)&&t(u.default.from((0,u.unset)()))}renderField(e,t,n){var r=this.props,i=r.type,s=r.value,u=r.markers,l=r.readOnly,c=r.focusPath,f=r.onFocus,d=r.onBlur,p=r.filterField;if(!p(i,e)||e.type.hidden)return null;var h=s&&s[e.name];return o.default.createElement(a.default,{key:e.name,field:e,value:h,onChange:this.handleFieldChange,onFocus:f,onBlur:d,markers:u,focusPath:c,level:t,readOnly:l,filterField:p,ref:0===n&&this.setFirstField})}renderFieldset(e,t){var n=this.props,r=n.level,i=n.focusPath,a=e.options&&e.options.columns,u=h(e.options,r),l=i.length>0&&e.fields.some(e=>i[0]===e.name);return o.default.createElement("div",{key:e.name,className:f.default.root},o.default.createElement(s.default,{legend:e.title,description:e.description,level:r+1,columns:a,isCollapsible:u.collapsible,isCollapsed:!l&&u.collapsed},e.fields.map((e,n)=>this.renderField(e,r+2,t+n))))}getRenderedFields(){var e=this.props,t=e.type,n=e.level;return t.fieldsets?t.fieldsets.map((e,t)=>e.single?this.renderField(e.field,n+1,t):this.renderFieldset(e,t)):(t.fields||[]).map((e,t)=>this.renderField(e,n+1,t))}renderUnknownFields(){var e=this.props,t=e.value,n=e.type,r=e.onChange,i=e.readOnly;if(!n.fields)return null;var a=n.fields.map(e=>e.name),s=Object.keys(t||{}).filter(e=>!e.startsWith("_")&&!a.includes(e));return 0===s.length?null:o.default.createElement(c.default,{readOnly:i,fieldNames:s,value:t,onChange:r})}focus(){this._firstField&&this._firstField.focus()}render(){var e=this.props,t=e.type,n=e.level,r=e.focusPath,i=this.getRenderedFields(),a=this.renderUnknownFields();if(0===n)return o.default.createElement("div",null,i,a);var u=h(t.options,n),l=r.length>0,c=t.options&&t.options.columns;return o.default.createElement(s.default,{level:n,legend:t.title,description:t.description,columns:c,isCollapsible:u.collapsible,isCollapsed:!l&&u.collapsed},i,a)}}t.default=v,p(v,"propTypes",{type:i.default.type,value:r.default.object,onChange:r.default.func,onFocus:r.default.func.isRequired,focusPath:r.default.array,markers:r.default.array,onBlur:r.default.func.isRequired,level:r.default.number,readOnly:r.default.bool,isRoot:r.default.bool,filterField:r.default.func}),p(v,"defaultProps",{onChange(){},level:0,focusPath:[],isRoot:!1,filterField:()=>!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(283)),o=f(n(1)),i=f(n(0)),a=f(n(73)),s=n(61),u=f(n(113)),l=n(74),c=f(n(469));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class p extends i.default.Component{constructor(){super(...arguments),d(this,"handleChange",e=>{var t=this.props,n=t.field,r=t.onChange;n.type.readOnly||r(e,n)}),d(this,"setInput",e=>{this._input=e})}focus(){this._input.focus()}render(){var e=this.props,t=e.value,n=e.readOnly,r=e.field,o=e.level,f=e.onFocus,d=e.onBlur,p=e.markers,h=e.focusPath,v=e.filterField;if(void 0!==t){var m=r.type.name,y=(0,l.resolveTypeName)(t),g=y===r.type.jsonType;if(m!==y&&!g)return i.default.createElement("div",{className:c.default.root},i.default.createElement(a.default,{legend:r.type.title,level:o},i.default.createElement(u.default,{value:t,onChange:this.handleChange,validTypes:[r.type.name],actualType:y,ref:this.setInput})))}return i.default.createElement("div",{className:c.default.root},i.default.createElement(s.FormBuilderInput,{value:t,type:r.type,onChange:this.handleChange,path:[r.name],onFocus:f,onBlur:d,readOnly:n||r.type.readOnly,focusPath:h,filterField:v,markers:p,level:o,ref:this.setInput}))}}t.default=p,d(p,"propTypes",{field:r.default.field.isRequired,value:o.default.any,onChange:o.default.func.isRequired,onFocus:o.default.func.isRequired,onBlur:o.default.func.isRequired,focusPath:o.default.array,filterField:o.default.func,readOnly:o.default.bool,markers:o.default.array,level:o.default.number}),d(p,"defaultProps",{level:0,focusPath:[]})},function(e,t){e.exports={root:"DefaultFieldset_root_2vneH DefaultFormField_root_3QGtQ",fieldset:"DefaultFieldset_fieldset_1vyaf",header:"DefaultFieldset_header_2jymZ",headerMain:"DefaultFieldset_headerMain_2imKb",headerStatus:"DefaultFieldset_headerStatus_29g-K",validationIconError:"DefaultFieldset_validationIconError_somLQ validation_validationIconError_HpBhp",description:"DefaultFieldset_description_QAEkj text-blocks_description_2qcZa text-blocks_small_YOrZq text-blocks_base_3DYD1 text-blocks_root_2QRzu",columns4:"DefaultFieldset_columns4_1BBtN",fieldWrapper:"DefaultFieldset_fieldWrapper_uk3jA",columns3:"DefaultFieldset_columns3_7dlj4",columns2:"DefaultFieldset_columns2_gXwMF DefaultFieldset_root_2vneH DefaultFormField_root_3QGtQ",transparent:"DefaultFieldset_transparent_16LaJ",columns1:"DefaultFieldset_columns1_1jO5P DefaultFieldset_root_2vneH DefaultFormField_root_3QGtQ",content:"DefaultFieldset_content_2Jef8",hasErrors:"DefaultFieldset_hasErrors_3-jSD",contentCollapsible:"DefaultFieldset_contentCollapsible_2xzTQ DefaultFieldset_content_2Jef8",level1:"DefaultFieldset_level1_YEwrL",level2:"DefaultFieldset_level2_imqVx",level3:"DefaultFieldset_level3_2SRp7",level4:"DefaultFieldset_level4_2iia1",inner:"DefaultFieldset_inner_3UhJR",arrow:"DefaultFieldset_arrow_10Y-o",isOpen:"DefaultFieldset_isOpen_1tZIA",legend:"DefaultFieldset_legend_3q-NS forms_headingLevel_1_3BxP7",level5:"DefaultFieldset_level5_2j9UZ",animateHeight:"DefaultFieldset_animateHeight_1RaiU",canFocus:"DefaultFieldset_canFocus_22QTS",debugNestingLevel:"DefaultFieldset_debugNestingLevel_k2GGu"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1199))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;te._key===t._key)}if("string"==typeof t&&(o="object"==typeof o&&null!==o?o[t]:void 0),void 0===o)return{v:n}},a=0;a0&&u(e,o)},t.startsWith=function(e,t){return e.every((e,n)=>u(e,t[n]))},t.trimLeft=function e(t,n){if(0===t.length||0===n.length)return n;var o=r(t),i=o[0],a=o.slice(1);var s=r(n),l=s[0],c=s.slice(1);if(!u(i,l))return n;return e(a,c)},t.trimRight=function(e,t){var n=e.length,r=t.length;if(0===n||0===r)return t;var o=0;for(;o{var r=typeof t;if("number"===r)return"".concat(e,"[").concat(t,"]");if("string"===r){var o=0===n?"":".";return"".concat(e).concat(o).concat(t)}if(t._key)return"".concat(e,'[_key=="').concat(t._key,'"]');throw new Error("Unsupported path segment `".concat(JSON.stringify(t),"`"))},"")},t.fromString=l,t.FOCUS_TERMINATOR=void 0;var o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/_key\s*==\s*['"](.*)['"]/,a="$";function s(e,t){return e.length===t.length&&e.every((e,n)=>u(e,t[n]))}function u(e,t){var n=typeof e;return n===typeof t&&("string"===n||"number"===n?e===t:!(!e||!t)&&e._key===t._key)}function l(e){if("string"!=typeof e)throw new Error("Path is not a string");var t=e.match(o);if(!t)throw new Error("Invalid path string");return t.map(c)}function c(e){return f(e)?function(e){return Number(e.replace(/[^\d]/g,""))}(e):d(e)?function(e){return{_key:e.match(i)[1]}}(e):e}function f(e){return"number"==typeof e||/^\[\d+\]$/.test(e)}function d(e){return"string"==typeof e?i.test(e.trim()):e&&e._key}t.FOCUS_TERMINATOR=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(1)),o=c(n(0)),i=c(n(8)),a=c(n(284)),s=c(n(1202)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(10)),l=c(n(1203));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=e=>{e&&(e.style.height="".concat(Math.min(300,e.scrollHeight),"px"),e.style.padding="".concat(4,"px"),e.style.overflow="auto")};function p(e,t,n){return t in l.default?Object.keys(l.default[t]).filter(e=>n.includes(e)).map(e=>(function(e){for(var t=1;tt.test(e)):[]}class h extends o.default.PureComponent{constructor(){super(...arguments),f(this,"handleClearClick",()=>{this.props.onChange(u.default.from((0,u.unset)()))}),f(this,"handleConvertTo",e=>{this.props.onChange(u.default.from((0,u.set)(e)))}),f(this,"setElement",e=>{this.element=e})}focus(){this.element&&this.element.focus()}renderValidTypes(){var e=this.props.validTypes;return 1===e.length?o.default.createElement("div",null,"Only content of type ",o.default.createElement("code",null,e[0])," are valid here according to schema"):o.default.createElement("div",null,"Only the following types are valid here according to schema:"," ",e.map(e=>o.default.createElement("li",{key:e},o.default.createElement("code",null,e))))}render(){var e=this.props,t=e.value,n=e.actualType,r=e.validTypes,u=p(t,n,r);return o.default.createElement("div",{className:s.default.root,tabIndex:0,ref:this.setElement},o.default.createElement("h3",null,"Content has invalid type: ",o.default.createElement("code",null,n)),o.default.createElement(a.default,null,"Encountered a value of type ",o.default.createElement("code",null,n),".",this.renderValidTypes(),o.default.createElement("h4",null,"The current value is:"),o.default.createElement("textarea",{ref:d,className:s.default.currentValueDump,onFocus:e=>e.target.select(),readOnly:!0,value:t&&"object"==typeof t?JSON.stringify(t,null,2):t}),u.map(e=>o.default.createElement(i.default,{key:"".concat(e.from,"-").concat(e.to),onClick:()=>this.handleConvertTo(e.convert(t)),color:"primary"},"Convert value to ",e.to))),o.default.createElement("div",{className:s.default.removeButtonWrapper},o.default.createElement(i.default,{onClick:this.handleClearClick,color:"danger"},"Remove value")))}}t.default=h,f(h,"propTypes",{actualType:r.default.string,validTypes:r.default.array,value:r.default.any,onChange:r.default.func})},function(e,t){e.exports={root:"InvalidValueInput_root_3Yk9X DefaultFieldset_root_2vneH DefaultFormField_root_3QGtQ",removeButtonWrapper:"InvalidValueInput_removeButtonWrapper_ogU8w",currentValueDump:"InvalidValueInput_currentValueDump_rOHWB"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(285)),o=i(n(2));function i(e){return e&&e.__esModule?e:{default:e}}var a=["yes","true","1"],s=["false","no","false","0","null"],u=a.concat(s),l=()=>!0;function c(e){var t=new Date(e.getTime()+60*e.getTimezoneOffset()*1e3),n=e.getTimezoneOffset()/60,r=e.getHours();return t.setHours(r-n),t}function f(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return null}var d={string:{number:{test:Number,convert:Number},boolean:{test:e=>u.includes(e.toLowerCase()),convert:e=>a.includes(e.toLowerCase())||!s.includes(e.toLowerCase())},richDate:{test:e=>(0,r.default)((0,o.default)(e)),convert:e=>({_type:"richDate",local:c(new Date(e)).toJSON(),utc:new Date(e).toJSON(),timezone:f(),offset:(new Date).getTimezoneOffset()})}},date:{richDate:{test:(e=>t=>(t&&t._type)===e)("date"),convert:e=>Object.assign({},e,{_type:"richDate"})}},richDate:{datetime:{test:(e=>t=>t&&t[e])("utc"),convert:e=>e.utc}},number:{string:{test:l,convert:String},boolean:{test:l,convert:Number}},boolean:{string:{test:l,convert:e=>e?"Yes":"No"},number:{test:l,convert:Number}}};t.default=d},function(e,t){e.exports=function(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();return t.setSeconds(0,0),6e4*n+t.getTime()%6e4}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveJSType=function(e){switch(r.call(e)){case"[object Function]":return"function";case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object String]":return"string"}if("object"==typeof e&&e&&"number"==typeof e.length)try{if("function"==typeof e.callee)return"arguments"}catch(e){if(e instanceof TypeError)return"arguments"}if(null===e)return"null";if(void 0===e)return"undefined";if(e&&1===e.nodeType)return"element";if(e===Object(e))return"object";return typeof e};var r=Object.prototype.toString},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r,o=(r=n(470))&&r.__esModule?r:{default:r};function i(e){if(void 0===e)return!0;var t=typeof e;return"object"===t&&null!==t?function(e){for(var t in e)if("_type"!==t&&"_key"!==t&&(0,o.default)(e,t)&&!i(e[t]))return!1;return!0}(e):Array.isArray(e)?function(e){if(void 0===e)return!0;for(var t=0;t{this.props.onChange(a.default.from((0,a.unset)([e])))}),(t="handleUnsetClick")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}render(){var e=this.props,t=e.fieldNames,n=e.value,a=e.readOnly;return r.default.createElement("div",{className:s.default.root},r.default.createElement("h2",{className:s.default.heading},"Found ",t.length," unknown fields"),r.default.createElement("div",{className:s.default.content},r.default.createElement(o.default,null,"These are not defined in the current schema as valid fields for this value. This could mean that the field has been removed, or that someone else has added it to their own local schema that is not yet deployed.",t.map(e=>r.default.createElement("div",{key:e},r.default.createElement("h4",null,e),r.default.createElement(u.default,null,r.default.createElement("pre",{className:s.default.inspectValue},JSON.stringify(n[e],null,2))),a?r.default.createElement("div",null,"This value is ",r.default.createElement("em",null,"read only")," according to its enclosing schema type and cannot be unset. If you want to unset, make sure you remove the"," ",r.default.createElement("strong",null,"readOnly")," property from the enclosing type"):r.default.createElement(i.default,{onClick:()=>this.handleUnsetClick(e),color:"danger"},"Unset ",e))))))}}},function(e,t){e.exports={root:"UnknownFields_root_3wL8M",heading:"UnknownFields_heading_28mky",inspectValue:"UnknownFields_inspectValue_2SvVE",content:"UnknownFields_content_GvOr7"}},function(e,t){e.exports={root:"ActivateOnFocus_root_2MJJH",hasFocus:"ActivateOnFocus_hasFocus_2oTZO ActivateOnFocus_root_2MJJH",noFocus:"ActivateOnFocus_noFocus_3OCEk ActivateOnFocus_root_2MJJH",eventHandler:"ActivateOnFocus_eventHandler_37uyh",content:"ActivateOnFocus_content_22X9c",overlay:"ActivateOnFocus_overlay_1QSw7",message:"ActivateOnFocus_message_2uqBa",stringMessage:"ActivateOnFocus_stringMessage_2Ro96 ActivateOnFocus_message_2uqBa",html:"ActivateOnFocus_html_yjREn ActivateOnFocus_message_2uqBa"}},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,c=l&&l(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(c){var d=l(n);d&&d!==c&&e(t,d,f)}var p=a(n);s&&(p=p.concat(s(n)));for(var h=0;h{(0,this.props.onChange)(c.PatchEvent.from((0,c.setIfMissing)([]),(0,c.insert)([e],t,[n])))}),w(this,"handlePrepend",e=>{this.insert(e,"before",0),this.handleFocusItem(e)}),w(this,"handleAppend",e=>{this.insert(e,"after",-1),this.handleFocusItem(e)}),w(this,"handleRemoveItem",e=>{this.removeItem(e)}),w(this,"handleFocus",()=>{this.props.onFocus([u.FOCUS_TERMINATOR])}),w(this,"handleFocusItem",e=>{this.props.onFocus([{_key:e._key},u.FOCUS_TERMINATOR])}),w(this,"handleItemChange",(e,t)=>{var n=this.props,r=n.onChange,o=n.value,i=this.getMemberTypeOfItem(t);if(i){if(!i.readOnly){var a=t._key||(0,h.default)(12);r(e.prefixAll({_key:a}).prepend(t._key?[]:(0,c.set)(a,[o.indexOf(t),"_key"])))}}else console.log("Could not find member type of item ",t)}),w(this,"handleSortStart",()=>{this.setState({isMoving:!0})}),w(this,"handleSortEnd",e=>{this.setState({isMoving:!1});var t=this.props,n=t.value,r=t.onChange,o=n[e.oldIndex],i=n[e.newIndex];o._key&&i._key?e.oldIndex!==e.newIndex&&o._key!==i._key&&r(c.PatchEvent.from((0,c.unset)([{_key:o._key}]),(0,c.insert)([o],e.oldIndex>e.newIndex?"before":"after",[{_key:i._key}]))):console.error("Neither the item you are moving nor the item you are moving to have a key. Cannot continue.")}),w(this,"renderList",()=>{var e=this.props,t=e.type,n=e.markers,r=e.readOnly,i=e.value,a=e.focusPath,s=e.onBlur,l=e.onFocus,c=e.level,h=e.filterField,v=this.state.isMoving,m=t.options||{},y=i.some(e=>!e._key),g=!1!==m.sortable&&!y,b="grid"===m.layout,w=(0,d.default)(g,b),O=w.List,k=w.Item,E=g?{movingItemClass:f.default.movingItem,onSortEnd:this.handleSortEnd,onSortStart:this.handleSortStart,lockToContainerEdges:!0,useDragHandle:!b}:{},S=v?f.default.listItemMute:f.default.listItem;return o.default.createElement(O,_({className:r?f.default.listReadOnly:f.default.list},E),i.map((e,i)=>{var d=g?{index:i}:{};return o.default.createElement(k,_({key:e._key,className:b?f.default.gridItem:S},d),o.default.createElement(p.default,{type:t,value:e,level:c,markers:n.filter(t=>(0,u.startsWith)([i],t.path)||(0,u.startsWith)([{_key:e&&e._key}],t.path)),onRemove:this.handleRemoveItem,onChange:this.handleItemChange,focusPath:a,filterField:h,onFocus:l,onBlur:s,readOnly:r||y}))}))}),w(this,"setElement",e=>{this._element=e}),w(this,"getUploadOptions",e=>{var t=this.props,n=t.type,r=t.resolveUploader;return r?n.of.map(t=>{var n=r(t,e);return n&&{type:t,uploader:n}}).filter(Boolean):[]}),w(this,"handleFixMissingKeys",()=>{var e=this.props,t=e.onChange,n=e.value.map((e,t)=>(0,c.setIfMissing)((0,h.default)(),[t,"_key"]));t(c.PatchEvent.from(...n))}),w(this,"handleRemoveNonObjectValues",()=>{var e=this.props,t=e.onChange,n=e.value.reduce((e,t,n)=>(0,r.default)(t)?e:e.concat(n),[]).reverse().map(e=>(0,c.unset)([e]));t(c.PatchEvent.from(...n))}),w(this,"handleUpload",e=>{var t=e.file,n=e.type,r=e.uploader,o=this.props.onChange,i=O(n),s=i._key;this.insert(i,"after",-1);var u=r.upload(t,n).pipe((0,a.map)(e=>c.PatchEvent.from(e.patches).prefixAll({_key:s})));this.uploadSubscriptions=function(e){for(var t=1;te._key===r._key)}getMemberTypeOfItem(e){var t=this.props.type,n=(0,s.resolveTypeName)(e);return t.of.find(e=>e.name===n)}focus(){this._element&&this._element.focus()}render(){var e=this.props,t=e.type,n=e.level,a=e.markers,s=e.readOnly,u=e.onChange,c=e.value;return(c||[]).some(e=>!(0,r.default)(e))?o.default.createElement(m.default,{legend:t.title,description:t.description,level:n,tabIndex:0,onFocus:this.handleFocus,ref:this.setElement,markers:a},o.default.createElement("div",{className:f.default.nonObjectsWarning},"Some items in this list are not objects. We need to remove them before the list can be edited.",o.default.createElement("div",{className:f.default.removeNonObjectsButtonWrapper},o.default.createElement(v.default,{onClick:this.handleRemoveNonObjectValues},"Remove non-object values")),o.default.createElement(y.default,{title:o.default.createElement("b",null,"Why is this happening?")},"This usually happens when items are created through an API client from outside the Content Studio and sets invalid data, or a custom input component have inserted incorrect values into the list."))):(c||[]).some(e=>!e._key)?o.default.createElement(m.default,{legend:t.title,description:t.description,level:n,tabIndex:0,onFocus:this.handleFocus,ref:this.setElement,markers:a},o.default.createElement("div",{className:f.default.missingKeysWarning},"Some items in this list are missing their keys. We need to fix this before the list can be edited.",o.default.createElement("div",{className:f.default.fixMissingKeysButtonWrapper},o.default.createElement(v.default,{onClick:this.handleFixMissingKeys},"Fix missing keys")),o.default.createElement(y.default,{title:o.default.createElement("b",null,"Why is this happening?")},"This usually happens when items are created through the API client from outside the Content Studio and someone forgets to set the ",o.default.createElement("code",null,"_key"),"-property of list items.",o.default.createElement("p",null,"The value of the ",o.default.createElement("code",null,"_key")," can be any ",o.default.createElement("b",null,"string")," as long as it is"," ",o.default.createElement("b",null,"unique")," for each element within the array."))),this.renderList()):o.default.createElement(l.default,{markers:a,tabIndex:0,legend:t.title,description:t.description,level:n,className:f.default.root,onUpload:this.handleUpload,onFocus:this.handleFocus,type:t,getUploadOptions:this.getUploadOptions,ref:this.setElement},c&&c.length>0&&this.renderList(),o.default.createElement(i.default,{type:t,value:c,readOnly:s,onAppendItem:this.handleAppend,onPrependItem:this.handlePrepend,onFocusItem:this.handleFocusItem,onCreateValue:O,onChange:u}))}}t.default=k,w(k,"defaultProps",{focusPath:[]})},function(e,t){e.exports={outer:"DropDownButton_outer_p3ITE DefaultButton_spacing_2dHOV",button:"DropDownButton_button_3vwxp",inner:"DropDownButton_inner_1qPt-",arrow:"DropDownButton_arrow_1zIbz",list:"DropDownButton_list_t94Wr",listItem:"DropDownButton_listItem_1JW-V selectable_item_LB4ab",popper:"DropDownButton_popper_2OjzA shadows_shadow-6dp_3hP4o"}},function(e,t){e.exports={root:"DefaultList_root_8B-Db",divider:"DefaultList_divider_1CnzD"}},function(e,t){e.exports={root:"DefaultListItem_root_2MZTj",lineBetween:"DefaultListItem_lineBetween_3avII DefaultListItem_root_2MZTj"}},function(e,t,n){"use strict";n.d(t,"b",function(){return _}),t.a=function(e){var t=e.referenceElement,n=o()(e,["referenceElement"]);return p.createElement(v.a.Consumer,null,function(e){var r=e.referenceNode;return p.createElement(b,a()({referenceElement:void 0!==t?t:r},n))})};var r=n(1216),o=n.n(r),i=n(287),a=n.n(i),s=n(288),u=n.n(s),l=n(289),c=n.n(l),f=n(290),d=n.n(f),p=n(0),h=(n.n(p),n(1217)),v=n(291),m=n(477),y={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},g={},b=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";(function(e){for(var n="undefined"!=typeof window&&"undefined"!=typeof document,r=["Edge","Trident","Firefox"],o=0,i=0;i=0){o=1;break}var a=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},o))}};function s(e){return e&&"[object Function]"==={}.toString.call(e)}function u(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=u(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:c(l(e))}var f=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function p(e){return 11===e?f:10===e?d:f||d}function h(e){if(!e)return document.documentElement;for(var t=p(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===u(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function v(e){return null!==e.parentNode?v(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,u=i.commonAncestorContainer;if(e!==u&&t!==u||r.contains(o))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(u):u;var l=v(e);return l.host?m(l.host,t):m(e,v(t).host)}function y(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function g(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function b(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],p(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function _(e){var t=e.body,n=e.documentElement,r=p(10)&&getComputedStyle(n);return{height:b("Height",t,n,r),width:b("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=p(10),o="HTML"===t.nodeName,i=x(e),a=x(t),s=c(e),l=u(t),f=parseFloat(l.borderTopWidth,10),d=parseFloat(l.borderLeftWidth,10);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=S({top:i.top-a.top-f,left:i.left-a.left-d,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var v=parseFloat(l.marginTop,10),m=parseFloat(l.marginLeft,10);h.top-=f-v,h.bottom-=f-v,h.left-=d-m,h.right-=d-m,h.marginTop=v,h.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=y(t,"top"),o=y(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(h,t)),h}function P(e){if(!e||!e.parentElement||p())return document.documentElement;for(var t=e.parentElement;t&&"none"===u(t,"transform");)t=t.parentElement;return t||document.documentElement}function j(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?P(e):m(e,t);if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=C(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:y(n),s=t?0:y(n,"left");return S({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i})}(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=c(l(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var f=C(s,a,o);if("HTML"!==s.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===u(t,"position"))return!0;var r=l(t);return!!r&&e(r)}(a))i=f;else{var d=_(e.ownerDocument),p=d.height,h=d.width;i.top+=f.top-f.marginTop,i.bottom=p+f.top,i.left+=f.left-f.marginLeft,i.right=h+f.left}}var v="number"==typeof(n=n||0);return i.left+=v?n:n.left||0,i.top+=v?n:n.top||0,i.right-=v?n:n.right||0,i.bottom-=v?n:n.bottom||0,i}function M(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=j(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map(function(e){return E({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),l=u.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),c=l.length>0?l[0].key:u[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return C(n,r?P(t):m(t,n),r)}function A(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function D(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function I(e,t,n){n=n.split("-")[0];var r=A(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",u=i?"height":"width",l=i?"width":"height";return o[a]=t[a]+t[u]/2-r[u]/2,o[s]=n===s?t[s]-r[l]:t[D(s)],o}function N(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function R(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=N(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&s(n)&&(t.offsets.popper=S(t.offsets.popper),t.offsets.reference=S(t.offsets.reference),t=n(t,e))}),t}function F(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function L(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=G.indexOf(e),r=G.slice(n+1).concat(G.slice(0,n));return t?r.reverse():r}var J={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function $(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=a.indexOf(N(a,function(e){return-1!==e.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(l=l.map(function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return S(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){U(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var Z={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:k({},u,i[u]),end:k({},u,i[u]+i[l]-a[l])};e.offsets.popper=E({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],u=void 0;return u=U(+n)?[+n,0]:$(n,i,a,s),"left"===s?(i.top+=u[0],i.left-=u[1]):"right"===s?(i.top+=u[0],i.left+=u[1]):"top"===s?(i.left+=u[0],i.top-=u[1]):"bottom"===s&&(i.left+=u[0],i.top+=u[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=L("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var u=j(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=u;var l=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]u[e]&&!t.escapeWithReference&&(r=Math.min(c[n],u[e]-("right"===e?c.width:c.height))),k({},n,r)}};return l.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=E({},c,f[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]i(r[s])&&(e.offsets.popper[u]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!V(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",f=l?"Top":"Left",d=f.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",v=A(r)[c];s[h]-va[h]&&(e.offsets.popper[d]+=s[d]+v-a[h]),e.offsets.popper=S(e.offsets.popper);var m=s[d]+s[c]/2-v/2,y=u(e.instance.popper),g=parseFloat(y["margin"+f],10),b=parseFloat(y["border"+f+"Width"],10),_=m-e.offsets.popper[d]-g-b;return _=Math.max(Math.min(a[c]-v,_),0),e.arrowElement=r,e.offsets.arrow=(k(n={},d,Math.round(_)),k(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(F(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=j(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=D(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case J.FLIP:a=[r,o];break;case J.CLOCKWISE:a=K(r);break;case J.COUNTERCLOCKWISE:a=K(r,!0);break;default:a=t.behavior}return a.forEach(function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],o=D(r);var l=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)f(c.top)||"bottom"===r&&f(l.top)f(n.right),v=f(l.top)f(n.bottom),y="left"===r&&p||"right"===r&&h||"top"===r&&v||"bottom"===r&&m,g=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(g&&"start"===i&&p||g&&"end"===i&&h||!g&&"start"===i&&v||!g&&"end"===i&&m),_=!!t.flipVariationsByContent&&(g&&"start"===i&&h||g&&"end"===i&&p||!g&&"start"===i&&m||!g&&"end"===i&&v),w=b||_;(d||y||w)&&(e.flipped=!0,(d||y)&&(r=a[u+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=E({},e.offsets.popper,I(e.instance.popper,e.offsets.reference,e.placement)),e=R(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=D(t),e.offsets.popper=S(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!V(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=N(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=a(this.update.bind(this)),this.options=E({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(E({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=E({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return E({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&s(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return O(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=T(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=M(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=I(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=R(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[L("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return W.call(this)}}]),e}();X.Utils=("undefined"!=typeof window?window:e).PopperUtils,X.placements=Y,X.Defaults=Z,t.a=X}).call(t,n(24))},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(0)),o=i(n(1219));function i(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||o.default,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),o=(a(r),a(n(1))),i=a(n(1220));a(n(1221));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=1073741823;t.default=function(e,t){var n,a,f="__create-react-context-"+(0,i.default)()+"__",d=function(e){function n(){var t,r,o,i;s(this,n);for(var a=arguments.length,l=Array(a),c=0;c(e^16*Math.random()>>e/4).toString(16))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUploadTarget=function(e){var t,n;return n=t=class extends o.default.Component{constructor(){super(...arguments),v(this,"_element",void 0),v(this,"dragEnteredEls",[]),v(this,"state",{isDraggingOver:!1,showPasteInput:!1,rejected:[],ambiguous:[]}),v(this,"handleFocus",e=>{var t=this.props.onFocus;e.stopPropagation(),t&&t(["$"])}),v(this,"handleKeyPress",e=>{e.target===i.default.findDOMNode(this)&&(e.ctrlKey||e.metaKey)&&"v"===e.key&&this.setState({showPasteInput:!0})}),v(this,"handlePaste",e=>{(0,f.extractPastedFiles)(e.clipboardData).then(e=>e.length>0?e:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image/jpeg";if(!e.isContentEditable)throw new Error('Expected element to be contentEditable="true". Instead found a non contenteditable '.concat(e.tagName));return new Promise(e=>setTimeout(e,10)).then(()=>Array.from(e.querySelectorAll("img"))).then(t=>(e.innerHTML="",t)).then(e=>Promise.all(e.map(e=>(0,d.imageUrlToBlob)(e.src)))).then(e=>e.map(e=>new File([e],"pasted-image.jpg",{type:t})))}(this._pasteInput,"image/jpeg")).then(e=>{this.uploadFiles(e),this.setState({showPasteInput:!1})})}),v(this,"handleDrop",e=>{this.setState({isDraggingOver:!1}),e.preventDefault(),e.stopPropagation(),this.props.onUpload&&(0,f.extractDroppedFiles)(e.nativeEvent.dataTransfer).then(e=>{e&&this.uploadFiles(e)})}),v(this,"handleDragOver",e=>{this.props.onUpload&&(e.preventDefault(),e.stopPropagation())}),v(this,"handleDragEnter",e=>{e.stopPropagation(),this.dragEnteredEls.push(e.target),this.setState({isDraggingOver:!0})}),v(this,"handleDragLeave",e=>{e.stopPropagation();var t=this.dragEnteredEls.indexOf(e.target);t>-1&&this.dragEnteredEls.splice(t,1),0===this.dragEnteredEls.length&&this.setState({isDraggingOver:!1})}),v(this,"setPasteInput",e=>{this._pasteInput=e}),v(this,"setElement",e=>{this._element=e})}uploadFiles(e){var t=e.map(e=>({file:e,uploaderCandidates:this.props.getUploadOptions(e)})),n=t.filter(e=>e.uploaderCandidates.length>0),o=t.filter(e=>0===e.uploaderCandidates.length);this.setState({rejected:o}),n.forEach(e=>{this.uploadFile(e.file,(0,r.default)(e.uploaderCandidates,e=>e.uploader.priority)[0])})}uploadFile(e,t){var n=this.props.onUpload,r=t.type,o=t.uploader;n({file:e,type:r,uploader:o})}componentDidUpdate(e,t){!t.showPasteInput&&this.state.showPasteInput?(this._pasteInput.focus(),function(e){var t=document.createRange();t.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(t)}(this._pasteInput)):t.showPasteInput&&!this.state.showPasteInput&&this.focus()}focus(){this._element&&this._element.focus()}renderSnacks(){var e=this.state,t=e.rejected,n=e.ambiguous;return o.default.createElement("div",null,n.length>0&&o.default.createElement(u.default,{isOpen:!0,title:"Select how to represent",actions:[{title:"Cancel"}],onAction:()=>this.setState({ambiguous:[]})},n.map(e=>o.default.createElement("div",{key:e.file.name},"The file ",e.file.name," can be converted to several types of content. Please select how you want to represent it:",o.default.createElement("ul",null,e.uploaderCandidates.map(t=>o.default.createElement("li",{key:t.type.name},o.default.createElement(s.default,{onClick:()=>{this.uploadFile(e.file,t),this.setState({ambiguous:n.filter(t=>t!==e)})}},"Represent as ",t.type.name))))))),t.length>0&&o.default.createElement(a.default,{kind:"warning",action:{title:"OK"},onAction:()=>this.setState({rejected:[]})},"File(s) not accepted:",(0,c.default)(t.map(e=>e.file.name))))}render(){var t=this.props,n=t.children,r=(t.type,t.onUpload,t.getUploadOptions,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["children","type","onUpload","getUploadOptions"])),i=this.state,a=i.isDraggingOver,s=i.showPasteInput;return o.default.createElement(e,h({},r,{ref:this.setElement,onFocus:this.handleFocus,onKeyDown:this.handleKeyPress,onDragOver:this.handleDragOver,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop}),a&&o.default.createElement("div",{className:l.default.dragStatus},o.default.createElement("h2",{className:l.default.dragStatusInner},"Drop to upload")),s&&o.default.createElement("div",{className:l.default.dragStatus},o.default.createElement("div",{contentEditable:!0,onPaste:this.handlePaste,className:l.default.pasteInput,ref:this.setPasteInput}),o.default.createElement("h2",{className:l.default.dragStatusInner},"Paste (Ctrl+V or ⌘+V) to upload")),n,this.renderSnacks())}},v(t,"defaultProps",{tabIndex:0}),n};var r=p(n(191)),o=p(n(0)),i=p(n(25)),a=p(n(91)),s=p(n(8)),u=p(n(88)),l=p(n(1234)),c=p(n(275)),f=n(1235),d=n(1236);function p(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign||function(e){for(var t=1;t=u?l:l*("desc"==n[o]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(81);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),s=void 0!==t,u=null===t,l=t==t,c=r(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||o&&s&&l||!n&&l||!i)return 1;if(!o&&!a&&!c&&e0)return Promise.resolve(Array.from(e.files||[]));return i(Array.from(e.items||[])).then(o.default)},t.extractDroppedFiles=function(e){var t=Array.from(e.files||[]),n=Array.from(e.items||[]);if(t&&t.length>0)return Promise.resolve(t);return i(n).then(o.default)};var r,o=(r=n(23))&&r.__esModule?r:{default:r};function i(e){return Promise.all(e.map(e=>{if("file"===e.kind&&e.webkitGetAsEntry){var t;try{t=e.webkitGetAsEntry()}catch(t){return[e.getAsFile()]}return t?t.isDirectory?a(t):[e.getAsFile()]:[]}if("file"===e.kind){var n=e.getAsFile();return Promise.resolve(n?[n]:[])}return new Promise(t=>e.getAsString(t)).then(t=>t?[new File([t],"unknown.txt",{type:e.type})]:[])}))}function a(e){if(e.isFile)return new Promise(t=>e.file(t)).then(e=>[e]);if(e.isDirectory){var t=e.createReader();return new Promise(e=>t.readEntries(e)).then(e=>e.filter(e=>!e.name.startsWith("."))).then(e=>Promise.all(e.map(a)).then(o.default))}return Promise.resolve([])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageUrlToBlob=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image/jpeg",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(e.match(/^webkit-fake-url:\/\//))return Promise.reject(new Error("Cannot read image contents from webkit fake url"));return new Promise((r,o)=>{var i=new Image;i.crossOrigin="anonymous",i.onload=(()=>{var e=document.createElement("canvas");e.width=i.width,e.height=i.height;var a=e.getContext("2d");a.drawImage(i,0,0,e.width,e.height);try{e.toBlob(r,t,n)}catch(e){o(e)}}),i.src=e})},(0,n(1237).polyfillCanvasToBlob)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polyfillCanvasToBlob=function(){if(!r)return;var e=window.HTMLCanvasElement.prototype;!e.toBlob&&e.toDataURL&&(e.toBlob=function(e,t,n){e(function(e){for(var t=e.split(",")[0].split(":")[1].split(";")[0],n=atob(e.split(",")[1]),r=n.length,o=new window.ArrayBuffer(r),i=new window.Uint8Array(o),a=0;a1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.handleStart=function(e){var n=t.props,r=n.distance,o=n.shouldCancelStart;if(2===e.button||o(e))return!1;t._touched=!0,t._pos={x:e.pageX,y:e.pageY};var i=(0,d.closest)(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var a=t.props.useDragHandle,s=i.sortableInfo,u=s.index,l=s.collection;if(a&&!(0,d.closest)(e.target,function(e){return null!=e.sortableHandle}))return;t.manager.active={index:u,collection:l},"a"===e.target.tagName.toLowerCase()&&e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}},t.nodeIsChild=function(e){return e.sortableInfo.manager===t.manager},t.handleMove=function(e){var n=t.props,r=n.distance,o=n.pressThreshold;if(!t.state.sorting&&t._touched){t._delta={x:t._pos.x-e.pageX,y:t._pos.y-e.pageY};var i=Math.abs(t._delta.x)+Math.abs(t._delta.y);r||o&&!(o&&i>=o)?r&&i>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}},t.handleEnd=function(){var e=t.props.distance;t._touched=!1,e||t.cancel()},t.cancel=function(){t.state.sorting||(clearTimeout(t.pressTimer),t.manager.active=null)},t.handlePress=function(e){var n=t.manager.getActive();if(n){var r=t.props,o=r.axis,i=r.getHelperDimensions,a=r.helperClass,s=r.hideSortableGhost,u=r.onSortStart,l=r.useWindowAsScrollContainer,c=n.node,f=n.collection,p=c.sortableInfo.index,v=(0,d.getElementMargin)(c),m=t.container.getBoundingClientRect(),y=i({index:p,node:c,collection:f});t.node=c,t.margin=v,t.width=y.width,t.height=y.height,t.marginOffset={x:t.margin.left+t.margin.right,y:Math.max(t.margin.top,t.margin.bottom)},t.boundingClientRect=c.getBoundingClientRect(),t.containerBoundingRect=m,t.index=p,t.newIndex=p,t.axis={x:o.indexOf("x")>=0,y:o.indexOf("y")>=0},t.offsetEdge=t.getEdgeOffset(c),t.initialOffset=t.getOffset(e),t.initialScroll={top:t.scrollContainer.scrollTop,left:t.scrollContainer.scrollLeft},t.initialWindowScroll={top:window.pageYOffset,left:window.pageXOffset};var g,b=c.querySelectorAll("input, textarea, select"),_=c.cloneNode(!0),w=[].concat(h(_.querySelectorAll("input, textarea, select")));if(w.forEach(function(e,t){"file"!==e.type&&b[t]&&(e.value=b[t].value)}),t.helper=t.document.body.appendChild(_),t.helper.style.position="fixed",t.helper.style.top=t.boundingClientRect.top-v.top+"px",t.helper.style.left=t.boundingClientRect.left-v.left+"px",t.helper.style.width=t.width+"px",t.helper.style.height=t.height+"px",t.helper.style.boxSizing="border-box",t.helper.style.pointerEvents="none",s&&(t.sortableGhost=c,c.style.visibility="hidden",c.style.opacity=0),t.minTranslate={},t.maxTranslate={},t.axis.x&&(t.minTranslate.x=(l?0:m.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(l?t.contentWindow.innerWidth:m.left+m.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(l?0:m.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(l?t.contentWindow.innerHeight:m.top+m.height)-t.boundingClientRect.top-t.height/2),a)(g=t.helper.classList).add.apply(g,h(a.split(" ")));t.listenerNode=e.touches?c:t.contentWindow,d.events.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),d.events.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}),t.setState({sorting:!0,sortingIndex:p}),u&&u({node:c,index:p,collection:f},e)}},t.handleSortMove=function(e){var n=t.props.onSortMove;e.preventDefault(),t.updatePosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)},t.handleSortEnd=function(e){var n=t.props,r=n.hideSortableGhost,o=n.onSortEnd,i=t.manager.active.collection;t.listenerNode&&(d.events.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),d.events.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&(t.sortableGhost.style.visibility="",t.sortableGhost.style.opacity="");for(var a=t.manager.refs[i],s=0,u=a.length;s=t.maxTranslate.y-t.height/2?(n.y=1,r.y=o.y*Math.abs((t.maxTranslate.y-t.height/2-e.y)/t.height)):e.x>=t.maxTranslate.x-t.width/2?(n.x=1,r.x=o.x*Math.abs((t.maxTranslate.x-t.width/2-e.x)/t.width)):e.y<=t.minTranslate.y+t.height/2?(n.y=-1,r.y=o.y*Math.abs((e.y-t.height/2-t.minTranslate.y)/t.height)):e.x<=t.minTranslate.x+t.width/2&&(n.x=-1,r.x=o.x*Math.abs((e.x-t.width/2-t.minTranslate.x)/t.width)),t.autoscrollInterval&&(clearInterval(t.autoscrollInterval),t.autoscrollInterval=null,t.isAutoScrolling=!1),0===n.x&&0===n.y||(t.autoscrollInterval=setInterval(function(){t.isAutoScrolling=!0;var e={left:1*r.x*n.x,top:1*r.y*n.y};t.scrollContainer.scrollTop+=e.top,t.scrollContainer.scrollLeft+=e.left,t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()},5))},t.manager=new f.default,t.events={start:t.handleStart,move:t.handleMove,end:t.handleEnd},(0,c.default)(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time."),t.state={},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),i(n,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.getContainer,r=t.useWindowAsScrollContainer,o=this.props.contentWindow||window;this.container="function"==typeof n?n(this.getWrappedInstance()):(0,l.findDOMNode)(this),this.document=this.container.ownerDocument||document,this.scrollContainer=r?this.document.body:this.container,this.contentWindow="function"==typeof o?o():o;var i=function(t){e.events.hasOwnProperty(t)&&d.events[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})};for(var a in this.events)i(a)}},{key:"componentWillUnmount",value:function(){var e=this,t=function(t){e.events.hasOwnProperty(t)&&d.events[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})};for(var n in this.events)t(n)}},{key:"getEdgeOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{top:0,left:0};if(e){var n={top:t.top+e.offsetTop,left:t.left+e.offsetLeft};return e.parentNode!==this.container?this.getEdgeOffset(e.parentNode,n):n}}},{key:"getOffset",value:function(e){return{x:e.touches?e.touches[0].pageX:e.pageX,y:e.touches?e.touches[0].pageY:e.pageY}}},{key:"getLockPixelOffsets",value:function(){var e=this.props.lockOffset;Array.isArray(e)||(e=[e,e]),(0,c.default)(2===e.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",e);var t=e,n=o(t,2),r=n[0],i=n[1];return[this.getLockPixelOffset(r),this.getLockPixelOffset(i)]}},{key:"getLockPixelOffset",value:function(e){var t=e,n=e,r="px";if("string"==typeof e){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);(0,c.default)(null!==o,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),t=n=parseFloat(e),r=o[1]}return(0,c.default)(isFinite(t)&&isFinite(n),"lockOffset value should be a finite. Given %s",e),"%"===r&&(t=t*this.width/100,n=n*this.height/100),{x:t,y:n}}},{key:"updatePosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockToContainerEdges,i=this.getOffset(e),a={x:i.x-this.initialOffset.x,y:i.y-this.initialOffset.y};if(a.y-=window.pageYOffset-this.initialWindowScroll.top,a.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=a,r){var s=this.getLockPixelOffsets(),u=o(s,2),l=u[0],c=u[1],f={x:this.width/2-l.x,y:this.height/2-l.y},p={x:this.width/2-c.x,y:this.height/2-c.y};a.x=(0,d.limit)(this.minTranslate.x+f.x,this.maxTranslate.x-p.x,a.x),a.y=(0,d.limit)(this.minTranslate.y+f.y,this.maxTranslate.y-p.y,a.y)}"x"===n?a.y=0:"y"===n&&(a.x=0),this.helper.style[d.vendorPrefix+"Transform"]="translate3d("+a.x+"px,"+a.y+"px, 0)"}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=this.manager.getOrderedRefs(),o={left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top},i={left:this.offsetEdge.left+this.translate.x+o.left,top:this.offsetEdge.top+this.translate.y+o.top},a={top:window.pageYOffset-this.initialWindowScroll.top,left:window.pageXOffset-this.initialWindowScroll.left};this.newIndex=null;for(var s=0,u=r.length;sf?f/2:this.width/2,height:this.height>p?p/2:this.height/2},v={x:0,y:0},m=r[s].edgeOffset;m||(r[s].edgeOffset=m=this.getEdgeOffset(l));var y=s0&&r[s-1];y&&!y.edgeOffset&&(y.edgeOffset=this.getEdgeOffset(y.node)),c!==this.index?(t&&(l.style[d.vendorPrefix+"TransitionDuration"]=t+"ms"),this.axis.x?this.axis.y?cthis.containerBoundingRect.width-h.width&&(v.x=y.edgeOffset.left-m.left,v.y=y.edgeOffset.top-m.top),null===this.newIndex&&(this.newIndex=c)):c>this.index&&(i.left+a.left+h.width>=m.left&&i.top+a.top+h.height>=m.top||i.top+a.top+h.height>=m.top+p)&&(v.x=-(this.width+this.marginOffset.x),m.left+v.xthis.index&&i.left+a.left+h.width>=m.left?(v.x=-(this.width+this.marginOffset.x),this.newIndex=c):cthis.index&&i.top+a.top+h.height>=m.top?(v.y=-(this.height+this.marginOffset.y),this.newIndex=c):c0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return(0,i.default)(this.refs[e],function(e){return e.node.sortableInfo.index})}}]),e}();t.default=s},function(e,t,n){var r=n(54),o=n(79),i=n(65);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!o(t)){var u=r(n,3);t=i(t),n=function(e){return u(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[u?t[l]:l]:void 0}}},function(e,t,n){var r=n(467),o=1/0,i=1.7976931348623157e308;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index;n||this.setDraggable(t,r)}},{key:"componentWillReceiveProps",value:function(e){if(this.props.index!==e.index&&this.node&&(this.node.sortableInfo.index=e.index),this.props.disabled!==e.disabled){var t=e.collection,n=e.disabled,r=e.index;n?this.removeDraggable(t):this.setDraggable(t,r)}else this.props.collection!==e.collection&&(this.removeDraggable(this.props.collection),this.setDraggable(e.collection,e.index))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.collection,n=e.disabled;n||this.removeDraggable(t)}},{key:"setDraggable",value:function(e,t){var n=this.node=(0,u.findDOMNode)(this);n.sortableInfo={index:t,collection:e,manager:this.context.manager},this.ref={node:n},this.context.manager.add(e,this.ref)}},{key:"removeDraggable",value:function(e){this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return(0,l.default)(f.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=f.withRef?"wrappedInstance":null;return a.default.createElement(e,r({ref:t},(0,c.omit)(this.props,"collection","disabled","index")))}}]),n}(i.Component),t.displayName=(0,c.provideDisplayName)("sortableElement",e),t.contextTypes={manager:s.default.object.isRequired},t.propTypes={index:s.default.number.isRequired,collection:s.default.oneOfType([s.default.number,s.default.string]),disabled:s.default.bool},t.defaultProps={collection:0},n};var i=n(0),a=f(i),s=f(n(1)),u=n(25),l=f(n(293)),c=n(193);function f(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),o(n,[{key:"componentDidMount",value:function(){var e=(0,s.findDOMNode)(this);e.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return(0,u.default)(c.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=c.withRef?"wrappedInstance":null;return a.default.createElement(e,r({ref:t},this.props))}}]),n}(i.Component),t.displayName=(0,l.provideDisplayName)("sortableHandle",e),n};var i=n(0),a=c(i),s=n(25),u=c(n(293)),l=n(193);function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.default.createElement(s,a({},e,{lockToContainerEdges:!0,axis:"y",lockAxis:"y"}))};var r=i(n(0)),o=i(n(475));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;tr.default.createElement("span",{className:e.className},r.default.createElement(o.default,null)));t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["className"]);return r.default.createElement(c,l({},n,{className:(0,i.default)(s.default.root,t)}))};var r=u(n(0)),o=n(75),i=u(n(27)),a=u(n(485)),s=u(n(1255));function u(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;tr.default.createElement("span",{className:i.default.dragHandle},r.default.createElement(o.default,null)));t.default=s},function(e,t){e.exports={dragHandle:"DragHandle_dragHandle_1r8ft"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_(n(0)),o=_(n(112)),i=_(n(486)),a=_(n(194)),s=_(n(32)),u=_(n(88)),l=_(n(107)),c=_(n(135)),f=n(192),d=n(16),p=_(n(140)),h=n(61),v=(_(n(10)),_(n(114))),m=n(74),y=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(62)),g=_(n(1264)),b=_(n(1267));function _(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=(0,f.createDragHandle)(()=>r.default.createElement("span",{className:b.default.dragHandle},r.default.createElement(p.default,null))),k={name:"close",title:"Close"},E={name:"close",title:"Cancel"},S={name:"delete",title:"Delete",color:"danger",inverted:!0,secondary:!0};function x(e,t){return 1===e.length&&y.isSegmentEqual(e[0],function(e){return{_key:e._key}}(t))}var C=["_key","_type","_weak"];function P(e){return Object.keys(e).every(e=>C.includes(e))}class j extends r.default.Component{constructor(){super(...arguments),w(this,"_focusArea",void 0),w(this,"handleEditStart",e=>{this.setFocus([y.FOCUS_TERMINATOR])}),w(this,"handleFocus",()=>{this.setFocus()}),w(this,"handleEditStop",()=>{P(this.props.value)?this.handleRemove():this.setFocus()}),w(this,"handleKeyPress",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.setFocus([y.FOCUS_TERMINATOR]))}),w(this,"handleRemove",()=>{var e=this.props;(0,e.onRemove)(e.value)}),w(this,"handleChange",e=>{var t=this.props;(0,t.onChange)(e,t.value)}),w(this,"setFocusArea",e=>{this._focusArea=e}),w(this,"handleDialogAction",e=>{"close"===e.name&&this.handleEditStop(),"delete"===e.name&&window.confirm("Do you really want to delete?")&&this.handleRemove()})}componentDidMount(){var e=this.props,t=e.focusPath,n=e.value;n._key&&x(t,n)&&this.focus()}componentDidUpdate(e){var t=x(e.focusPath,e.value),n=x(this.props.focusPath,this.props.value);!t&&n&&this.focus()}getMemberType(){var e=this.props,t=e.value,n=e.type,r=(0,m.resolveTypeName)(t);return n.of.find(e=>e.name===r)}setFocus(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.props,n=t.value;(0,t.onFocus)([{_key:n._key},...e])}focus(){this._focusArea&&this._focusArea.focus()}renderEditItemForm(e){var t=this.props,n=t.type,o=t.markers,c=t.focusPath,f=t.onFocus,d=t.onBlur,p=t.readOnly,v=t.filterField,m=n.options||{},y=this.getMemberType()||{},g=o.filter(e=>e.path.length>1),_=r.default.createElement(h.FormBuilderInput,{type:y,level:0,value:P(e)?void 0:e,onChange:this.handleChange,onFocus:f,onBlur:d,focusPath:c,readOnly:p||y.readOnly,markers:g,path:[{_key:e._key}],filterField:v}),w=p||y.readOnly?y.title:"Edit ".concat(y.title);if("fullscreen"===m.editModal)return r.default.createElement(s.default,{title:w,onClose:this.handleEditStop,isOpen:!0},_);if("fold"===m.editModal)return r.default.createElement("div",{className:b.default.popupAnchorRelative},r.default.createElement(i.default,{title:w,onClose:this.handleEditStop},_));var O=P(e),x=[O?E:k,!O&&!p&&S].filter(Boolean);return"popover"===m.editModal?r.default.createElement("div",{className:b.default.popupAnchor},r.default.createElement(a.default,{title:w,onClose:this.handleEditStop,onEscape:this.handleEditStop,onClickOutside:this.handleEditStop,actions:x,onAction:this.handleDialogAction,placement:"auto"},r.default.createElement(l.default,{size:"small"},_))):r.default.createElement(u.default,{onClose:this.handleEditStop,key:e._key,title:"Edit ".concat(y.title),actions:x,onAction:this.handleDialogAction,showCloseButton:!1},r.default.createElement("div",{className:b.default.defaultDialogContent},r.default.createElement(l.default,{size:"medium"},_)))}renderItem(){var e=this.props,t=e.value,n=e.markers,i=e.type,a=e.readOnly,s=i.options||{},u="grid"===s.layout,l=!a&&!i.readOnly&&!1!==s.sortable,f=u?"media":"default",p=n.filter(e=>"validation"===e.type),h=p.filter(e=>"error"===e.level),m=p.map(e=>{if(e.path.length<=1)return e;var t="error"===e.level?"errors":"warnings";return Object.assign({},e,{item:e.item.cloneWithMessage("Contains ".concat(t))})}),y=[h.length>0?b.default.innerWithError:b.default.inner,!t._key&&b.default.warning].filter(Boolean).join(" ");return r.default.createElement("div",{className:y},!u&&l&&r.default.createElement(O,null),r.default.createElement("div",{tabIndex:0,onClick:t._key&&this.handleEditStart,onKeyPress:this.handleKeyPress,className:b.default.previewWrapper},r.default.createElement("div",{tabIndex:-1,ref:this.setFocusArea,className:b.default.previewWrapperHelper,onFocus:this.handleFocus},!t._key&&r.default.createElement("div",{className:b.default.missingKeyMessage},"Missing key"),r.default.createElement(v.default,{layout:f,value:t,type:this.getMemberType()}))),r.default.createElement("div",{className:u?b.default.functionsInGrid:b.default.functions},r.default.createElement("div",{className:b.default.validationStatus},r.default.createElement(c.default,{markers:m})),t._ref&&r.default.createElement(d.IntentLink,{className:b.default.linkToReference,intent:"edit",params:{id:t._ref}},r.default.createElement(o.default,null)),!a&&r.default.createElement(g.default,{title:"Remove this item",onConfirm:this.handleRemove})))}render(){var e=this.props,t=e.value,n=e.focusPath,o="grid"===(e.type.options||{}).layout,i=y.isExpanded(t,n);return r.default.createElement("div",{className:o?b.default.gridItem:b.default.listItem},this.renderItem(),i&&this.renderEditItemForm(t))}}t.default=j,w(j,"defaultProps",{level:0,markers:[]})},function(e,t){e.exports={padding:"1rem",root:"EditItemFoldOut_root_1M-gZ",wrapper:"EditItemFoldOut_wrapper_2JAnW shadows_shadow-12dp_1NhBJ",appear:"EditItemFoldOut_appear_12EYl",head:"EditItemFoldOut_head_Es946",close:"EditItemFoldOut_close_2Zjjs",closeDark:"EditItemFoldOut_closeDark_3ebGe EditItemFoldOut_close_2Zjjs",content:"EditItemFoldOut_content_14YU9"}},function(e,t){e.exports={overlay:"PopOver_overlay_14Fq3",fadeIn:"PopOver_fadeIn_2DQzW",target:"PopOver_target_1GB6Q",popper:"PopOver_popper_3HmB5",responsive:"PopOver_responsive_3SqHC",popperAnimation:"PopOver_popperAnimation_1Ic1P",reveal:"PopOver_reveal_3o5UQ",arrow:"PopOver_arrow_cHwWX",color_danger:"PopOver_color_danger_1IJ7D",arrowShadow:"PopOver_arrowShadow_2J68n PopOver_arrow_cHwWX",filledArrow:"PopOver_filledArrow_3UFpV PopOver_arrow_cHwWX",popover:"PopOver_popover_1tv5y shadows_shadow-12dp_1NhBJ",close:"PopOver_close_1ck-q",closeInHeader:"PopOver_closeInHeader_3Ku1L PopOver_close_1ck-q",closeOutsideHeader:"PopOver_closeOutsideHeader_3wDRA PopOver_close_1ck-q",content:"PopOver_content_2TO3i",contentWithActions:"PopOver_contentWithActions_1_6j8 PopOver_content_2TO3i",padding_none:"PopOver_padding_none_2Lglw",padding_small:"PopOver_padding_small_2MzcO",padding_medium:"PopOver_padding_medium_2tWrL",padding_large:"PopOver_padding_large_J6wDm",head:"PopOver_head_3vA6P",header:"PopOver_header_JY7qv",title:"PopOver_title_2xOed",footer:"PopOver_footer_kUvIP DefaultDialog_footer_2Gr-Z",actions:"PopOver_actions_oczlJ undefined",primaryFunctions:"PopOver_primaryFunctions_3gyY4",paddingDummy:"PopOver_paddingDummy_1IEz-"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewPrimitive=function(e){return o.default.createElement("span",null,e.value)};var r,o=(r=n(0))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewObject=function(e){var t=e.value,n=e.maxDepth,a=void 0===n?4:n,l=e._depth,c=void 0===l?0:l,f=u(e,["value","maxDepth","_depth"]),d=t._type,p=(t._key,u(t,["_type","_key"])),h=Object.keys(p);if(c>=a)return o.default.createElement("span",null,(0,r.default)(d||"object")," ","{".concat(h.join(", "),"}"));return o.default.createElement("div",null,d&&o.default.createElement("h3",null,o.default.createElement("em",null,(0,r.default)(d)),":"),o.default.createElement("ul",null,h.map(e=>o.default.createElement("li",{key:e},o.default.createElement("b",null,e),":"," ",o.default.createElement(i.PreviewAny,s({},f,{value:p[e],_depth:c+1,maxDepth:a}))))))};var r=a(n(271)),o=a(n(0)),i=n(296);function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewArray=function(e){var t=e.value,n=e.maxDepth,r=void 0===n?4:n,s=e._depth,u=void 0===s?0:s,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["value","maxDepth","_depth"]);if(u>=r)return o.default.createElement("span",null,"Array(",t.length,")");return o.default.createElement("ul",null,t.map((e,t)=>o.default.createElement("li",{key:t},o.default.createElement(i.PreviewAny,a({},l,{value:e,_depth:u+1,maxDepth:r})))))};var r,o=(r=n(0))&&r.__esModule?r:{default:r},i=n(296);function a(){return(a=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class p extends o.default.Component{constructor(){super(...arguments),d(this,"_confirmButton",void 0),d(this,"state",{showConfirmDialog:!1}),d(this,"handleClick",e=>{this.open()}),d(this,"handleClickOutside",e=>{this.close()}),d(this,"handleConfirmPopoverClose",e=>{this.close()}),d(this,"setButton",e=>{this._button=e}),d(this,"setConfirmButton",e=>{this._confirmButton=e})}close(){this.setState({showConfirmDialog:!1})}open(){this.setState({showConfirmDialog:!0})}componentDidUpdate(e,t){var n=t.showConfirmDialog,r=this.state.showConfirmDialog;!n&&r?this._confirmButton.focus():n&&!r&&this._button.focus()}render(){var e=this.state.showConfirmDialog,t=this.props,n=t.onConfirm,r=f(t,["onConfirm"]);return o.default.createElement("div",{className:a.default.root},o.default.createElement(i.default,c({},r,{kind:"simple",icon:s.default,onClick:this.handleClick,ref:this.setButton})),e&&o.default.createElement(u.default,{color:"danger",useOverlay:!1,onEscape:this.handleConfirmPopoverClose,onClickOutside:this.handleClickOutside,padding:"none"},o.default.createElement("div",{className:a.default.wrapper},o.default.createElement("div",{tabIndex:0,onFocus:this.handleConfirmPopoverClose}),o.default.createElement(i.default,{color:"white",inverted:!0,onClick:n,icon:s.default,ref:this.setConfirmButton},"Confirm remove"),o.default.createElement("div",{tabIndex:0,onFocus:this.handleConfirmPopoverClose}))))}}t.default=p,d(p,"propTypes",{children:r.default.func,onConfirm:r.default.func})},function(e,t){e.exports={root:"ConfirmButton_root_32Z1W",wrapper:"ConfirmButton_wrapper_2xJDY"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:16,t=new Uint8Array(e);return(0,o.default)(t),t}(e).reduce((e,t)=>e+i[t],"").slice(0,e)};var r,o=(r=n(487))&&r.__esModule?r:{default:r};for(var i=[],a=0;a<256;++a)i[a]=(a+256).toString(16).substring(1)},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(t,n(24))},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=a(n(1272));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends o.default.Component{constructor(){super(...arguments),l(this,"state",{hasFocus:!1}),l(this,"handleFocus",e=>{this.setState({hasFocus:!0}),this.props.onFocus(e)}),l(this,"handleBlur",e=>{this.setState({hasFocus:!1}),this.props.onBlur(e)}),l(this,"setInput",e=>{this._input=e})}componentDidMount(){"undefined"==typeof value&&this._input&&(this._input.indeterminate=!0)}focus(){this._input&&this._input.focus()}render(){var e=this.props,t=e.disabled,n=(e.markers,e.checked),r=e.label,a=e.description,l=e.readOnly,c=u(e,["disabled","markers","checked","label","description","readOnly"]),f=this.state.hasFocus,d=n?i.default.thumbChecked:i.default.thumb;return void 0===n&&(d=i.default.thumbIndeterminate),o.default.createElement("label",{className:"\n ".concat(t||l?i.default.isDisabled:i.default.isEnabled,"\n ").concat(void 0===n?i.default.indeterminate:i.default.root,"\n ").concat(n?i.default.isChecked:i.default.unChecked,"\n ").concat(f?i.default.hasFocus:"","\n "),onBlur:this.handleBlur},o.default.createElement("div",{className:i.default.inner},o.default.createElement("div",{className:i.default.switchWrapper},o.default.createElement("div",{className:i.default.track}),o.default.createElement("div",{className:d},o.default.createElement("div",{className:i.default.focusHelper})),o.default.createElement("input",s({},c,{className:i.default.input,type:"checkbox",disabled:t||l,checked:n,ref:this.setInput,onFocus:this.handleFocus}))),o.default.createElement("div",null,o.default.createElement("div",{className:i.default.label},r),a&&o.default.createElement("div",{className:i.default.description},a))))}}t.default=c,l(c,"propTypes",{label:r.default.string.isRequired,description:r.default.string,markers:r.default.array,checked:r.default.bool,disabled:r.default.bool,onFocus:r.default.func,onBlur:r.default.func,readOnly:r.default.bool}),l(c,"defaultProps",{onFocus:()=>{},onBlur:()=>{}})},function(e,t){e.exports={"animation-fast-out-slow-in":"Switch_animation-fast-out-slow-in_1HeXC","animation-linear-out-slow-in":"Switch_animation-linear-out-slow-in_2sck8","animation-fast-out-linear-in":"Switch_animation-fast-out-linear-in_3Orwm","animation-default":"Switch_animation-default_1hguP","animated-loading-background":"Switch_animated-loading-background_20B5w",placeHolderShimmer:"Switch_placeHolderShimmer_-H0l2",root:"Switch_root_20lIJ DefaultFormField_root_3QGtQ",inner:"Switch_inner_g_t-b",indeterminate:"Switch_indeterminate_234E3 Switch_root_20lIJ DefaultFormField_root_3QGtQ",switchWrapper:"Switch_switchWrapper_112tB",switch:"Switch_switch_-U6Fu",isChecked:"Switch_isChecked_2406B",isDisabled:"Switch_isDisabled_23LU9 Switch_root_20lIJ DefaultFormField_root_3QGtQ",enabled:"Switch_enabled_2bh9m Switch_root_20lIJ DefaultFormField_root_3QGtQ",unchecked:"Switch_unchecked_37xfy",hasFocus:"Switch_hasFocus_2q-fL",thumb:"Switch_thumb_3fDNK shadows_shadow-1dp_XM5Y5 animation_animation-default_3Mciu",thumbChecked:"Switch_thumbChecked_1m6oJ Switch_thumb_3fDNK shadows_shadow-1dp_XM5Y5 animation_animation-default_3Mciu",thumbIndeterminate:"Switch_thumbIndeterminate_3RNSw Switch_thumb_3fDNK shadows_shadow-1dp_XM5Y5 animation_animation-default_3Mciu",focusHelper:"Switch_focusHelper_2fzwk",input:"Switch_input_2-jJE",label:"Switch_label_2ArTG",description:"Switch_description_D1rqX text-blocks_description_2qcZa text-blocks_small_YOrZq text-blocks_base_3DYD1 text-blocks_root_2QRzu",track:"Switch_track_2Tii6"}},function(e,t){e.exports={root:"Checkbox_root_2guLc",isChecked:"Checkbox_isChecked_2gJpe Checkbox_root_2guLc",unChecked:"Checkbox_unChecked_24ACn Checkbox_root_2guLc",indeterminate:"Checkbox_indeterminate_27Jxh Checkbox_root_2guLc",isDisabled:"Checkbox_isDisabled_-pmm6",isEnabled:"Checkbox_isEnabled_2T8hP",input:"Checkbox_input_1U_6_",boxOutline:"Checkbox_boxOutline_lX5OT",focusHelper:"Checkbox_focusHelper_3op0J",hasFocus:"Checkbox_hasFocus_1507B",tickOutline:"Checkbox_tickOutline_h-fdm",label:"Checkbox_label_1KSgg",description:"Checkbox_description_2pot3 text-blocks_description_2qcZa text-blocks_small_YOrZq text-blocks_base_3DYD1 text-blocks_root_2QRzu"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),o=s(n(0)),i=s(n(493)),a=s(n(37));function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=()=>{};class d extends o.default.Component{constructor(){super(...arguments),c(this,"handleClear",e=>{this.props.onClear(e)}),c(this,"setInput",e=>{this._input=e})}select(){this._input&&this._input.select()}focus(){this._input&&this._input.focus()}componentDidMount(){this._input.setCustomValidity(this.props.customValidity)}componentWillReceiveProps(e){e.customValidity!==this.props.customValidity&&this._input.setCustomValidity(e.customValidity)}render(){var e=this.props,t=e.value,n=e.isClearable,r=e.rows,s=e.onKeyPress,c=e.onChange,f=e.onFocus,d=e.onBlur,p=e.onClear,h=(e.customValidity,l(e,["value","isClearable","rows","onKeyPress","onChange","onFocus","onBlur","onClear","customValidity"]));return o.default.createElement("div",{className:i.default.root},o.default.createElement("textarea",u({className:i.default.textarea,rows:r,value:t,onChange:c,onKeyPress:s,onFocus:f,onBlur:d,autoComplete:"off",ref:this.setInput},h)),n&&!this.props.disabled&&o.default.createElement("button",{type:"button",className:i.default.clearButton,onClick:p},o.default.createElement(a.default,{color:"inherit"})))}}t.default=d,c(d,"propTypes",{onChange:r.default.func,onFocus:r.default.func,onKeyPress:r.default.func,onBlur:r.default.func,onClear:r.default.func,value:r.default.string,customValidity:r.default.string,isClearable:r.default.bool,rows:r.default.number,hasFocus:r.default.bool,disabled:r.default.bool}),c(d,"defaultProps",{value:"",customValidity:"",rows:10,isClearable:!1,onKeyPress:f,onChange:f,onFocus:f,onClear:f,onBlur:f})},function(e,t,n){t.PreviewFields=n(1276).default,t.SanityPreview=n(1303).default,t.PreviewSubscriber=n(297).default,t.WithVisibility=n(494).default,t.SanityDefaultPreview=n(498).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var r=a(n(0)),o=a(n(1)),i=a(n(297));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return r.default.createElement(i.default,{value:e.document,type:e.type,fields:(t=e.fields,Array.isArray(t)?t:void 0===typeof t?[]:[t])},t=>{var n=t.snapshot;return r.default.createElement("span",null,n&&e.children(n))});var t}s.propTypes={document:o.default.object,fields:o.default.oneOfType([o.default.string,o.default.arrayOf(o.default.string)]),type:o.default.object.isRequired,children:o.default.func}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(6),o=n(4),i=u(n(1278)),a=u(n(1279)),s=u(n(1280));function u(e){return e&&e.__esModule?e:{default:e}}var l=150;var c="IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in IntersectionObserverEntry.prototype&&("isIntersecting"in IntersectionObserverEntry.prototype||Object.defineProperty(IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),1)?function(){var e=new r.Subject,t=new IntersectionObserver(function(t){t.forEach(t=>{e.next(t)})},{threshold:0,rootMargin:"".concat(l,"px")});return function(n){return new r.Observable(e=>(t.observe(n),e.next(),()=>t.unobserve(n))).pipe((0,o.mergeMap)(()=>e.asObservable()),(0,o.filter)(e=>e.target===n))}}():function(){function e(e){return()=>(function(e,t,n){return e.left<=t.right+n&&e.right>=t.left-n&&e.top<=t.bottom+n&&e.bottom>=t.top-n})(e.getBoundingClientRect(),{left:0,right:window.innerWidth,top:0,bottom:window.innerHeight},l)}return function(t){var n=e(t);return(0,r.merge)((0,r.of)(n()),i.default,a.default,s.default).pipe((0,o.map)(n),(0,o.map)(e=>({isIntersecting:e})))}}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(195))&&r.__esModule?r:{default:r},i=n(4);var a=(0,o.default)(window,"resize",{passive:!0}).pipe((0,i.debounceTime)(200),(0,i.share)());t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(195))&&r.__esModule?r:{default:r},i=n(4);var a=(0,o.default)(window,"scroll",{passive:!0,capture:!0}).pipe((0,i.debounceTime)(200),(0,i.share)());t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(195))&&r.__esModule?r:{default:r},i=n(4);var a=(0,o.default)(window,"orientationchange").pipe((0,i.share)());t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(195))&&r.__esModule?r:{default:r},i=n(4);var a=(0,o.default)(document,"visibilitychange").pipe((0,i.share)());t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(0)),o=f(n(60)),i=f(n(495)),a=n(141),s=f(n(110)),u=n(4),l=n(6),c=n(196);function f(e){return e&&e.__esModule?e:{default:e}}var d={title:r.default.createElement("span",{style:{fontStyle:"italic"}},"Invalid preview config"),subtitle:r.default.createElement("span",{style:{fontStyle:"italic"}},"Check the error log in the console"),media:o.default},p=(0,a.withPropsStream)(e=>{var t=e.pipe((0,u.publishReplay)(1),(0,u.refCount)()),n=t.pipe((0,u.map)(e=>!1!==e.isActive));return t.pipe((0,u.distinctUntilChanged)((e,t)=>(0,s.default)(e.value,t.value)),(0,u.switchMap)(e=>(0,l.concat)((0,l.of)({isLoading:!0,children:e.children}),(0,i.default)(e.value,e.type,e.fields,e.ordering?{ordering:e.ordering}:{}).pipe((0,u.map)(t=>({type:t.type,snapshot:t.snapshot,children:e.children}))))),(e=>t=>{var n;return e.pipe((0,u.distinctUntilChanged)(),(0,u.switchMap)(e=>e?t.pipe((0,u.tap)(e=>n=e)):(0,l.of)(n).pipe((0,u.filter)(Boolean))))})(n))},function(e){var t=e.snapshot,n=e.type,r=e.error,o=e.isLoading;return(0,e.children)({error:r,isLoading:o,result:{type:n,snapshot:t===c.INVALID_PREVIEW_CONFIG?d:t}})});t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(e){e._ref in s||(s[e._ref]=o.default.fetch("*[_id == $id][0]._type",{id:e._ref}));return(0,i.from)(s[e._ref])}(e).pipe((0,a.map)(e=>t.to.find(t=>t.name===e)))};var r,o=(r=n(13))&&r.__esModule?r:{default:r},i=n(6),a=n(4);var s={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invokePrepare=E,t.default=function(e,t,n){var r=t.preview.select,i=Object.keys(r).reduce((t,n)=>(t[n]=(0,a.default)(e,r[n]),t),{}),s=E(t,i,n);if(s.errors.length>0)return S(s,t,i);var u=(l=E(t,i,n),f({},l,{errors:[...l.errors,...k(l.returnValue)]}));var l;return u.errors.length>0?S(u,t,i):f({},(0,o.default)(e,h),s.returnValue)};var r=c(n(272)),o=c(n(17)),i=c(n(70)),a=c(n(19)),s=c(n(23)),u=c(n(45)),l=n(196);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){for(var t=1;t{p[e.name]||(p[e.name]=[]),p[e.name].push({error:n,type:e,value:t})},getAll:()=>p,clear(){p={}}}),y=(0,u.default)(()=>{var e=m.getAll(),t=(0,s.default)(Object.keys(e).map(t=>{var n=e[t];return(0,r.default)(n,e=>e.error.message)})).length;0!==t&&(console.groupCollapsed("%cHeads up! Got ".concat(1===t?"error":"".concat(t," errors")," while preparing data for preview. Click for details."),"color: #ff7e7c"),Object.keys(e).forEach(t=>{var n=e[t],o=n[0];console.group('Check the preview config for schema type "'.concat(t,'": %o'),o.type.preview),(0,r.default)(n,e=>e.error.message).forEach(e=>{if("returnValueError"===e.error.type){var t="function"==typeof e.type.preview.prepare,n=e.value,r=e.error;console.log("Encountered an invalid ".concat(t?"return value when calling prepare(%o)":"value targeted by preview.select",":"),n),console.error(r)}if("prepareError"===e.error.type){var o=e.value,i=e.error;console.log("Encountered an error when calling prepare(%o):",o),console.error(i)}}),console.groupEnd()}),console.groupEnd(),m.clear())},1e3),g=e=>t=>{var n=typeof t;return null===t||"undefined"===n||"string"===n||"number"===n||"boolean"===n?v:[O("returnValueError",new Error('The "'.concat(e,'" field should be a string, number, boolean, undefined or null, instead saw ').concat(_(t))))]},b={media:()=>v,title:g("title"),subtitle:g("subtitle"),description:g("description"),imageUrl:g("imageUrl"),date:g("date")};function _(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,i.default)(e)){var n=Object.keys(e),r=n.length>3?"...":"";return"".concat(t?"object with keys ":"","{").concat(n.slice(0,3).join(", ")).concat(r,"}")}if(Array.isArray(e)){var o=e.length>3?"...":"";return"".concat(t?"array with ":"","[").concat(e.map(e=>_(e,!1))).concat(o,"]")}return"the ".concat(typeof e," ").concat(e)}function w(e,t){if(void 0===t)return v;var n=b[e];return n&&n(t)||v}function O(e,t){return Object.assign(t,{type:e})}function k(e){return(0,i.default)(e)?Object.keys(e).reduce((t,n)=>[...t,...w(n,e[n])],v):[O("returnValueError",new Error("Invalid return value. Expected a plain object with at least a 'title' field, instead saw ".concat(_(e))))]}function E(e,t,n){var r=e.preview.prepare;try{return{returnValue:r?r(t,n):t,errors:v}}catch(e){return{returnValue:null,errors:[O("prepareError",e)]}}}function S(e,t,n){return e.errors.forEach(e=>m.add(t,n,e)),y(),l.INVALID_PREVIEW_CONFIG}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,o={},i=0;return function(){for(var e=arguments.length,s=new Array(e),u=0;u{clearTimeout(n),n=setTimeout(a,t);var r={args:s,observer:e,completed:!1},u=i++;return o[u]=r,()=>{r.completed=!0}})};function a(){var t=o;o={};var n=Object.keys(t).filter(e=>!t[e].completed);if(0!==n.length){var r=n.map(e=>t[e].args);e(r).subscribe({next(e){e.forEach((r,o)=>{var i=t[n[o]];i.completed||i.observer.next(e[o])})},complete(){n.forEach(e=>{var n=t[e];n.completed||n.observer.complete()})},error(e){n.forEach(n=>{var r=t[n];r.completed||r.observer.error(e)})}})}}};var r=n(6)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineSelections=function(e){return(0,r.default)(e.reduce((e,t,n)=>{var r=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(t,2),a=r[0],s=r[1],u=(0,o.default)(s.join(","),i.default);e[u]||(e[u]={fields:s,ids:[],map:[]});var l=e[u].ids.length;return e[u].ids[l]=a,e[u].map[l]=n,e},{}))},t.toGradientQuery=function(e){return"[".concat(e.map(f).join(","),"][0...").concat(e.length,"]")},t.reassemble=function(e,t){return e.reduce((e,n,r)=>{var o=t[r].map;return o.forEach((o,i)=>{var a=t[r].ids[i];e[o]=n.find(e=>e._id===a)}),e},[])};var r=u(n(1287)),o=u(n(191)),i=u(n(68)),a=n(196),s=n(1289);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){return JSON.stringify(e)}var c=e=>(0,s.fieldNeedsEscape)(e)?'"'.concat(e,'": @').concat((0,s.escapeField)(e)):e;function f(e){var t=e.ids,n=e.fields,r=[...a.INCLUDE_FIELDS_QUERY,...n];return"*[_id in [".concat(t.map(l).join(","),"]][0...").concat(t.length,"]{").concat(r.map(c).join(","),"}")}},function(e,t,n){var r=n(1288),o=n(65);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(50);e.exports=function(e,t){return r(t,function(t){return e[t]})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinPath=t.escapeField=t.fieldNeedsEscape=void 0;var r=["match","in","asc","desc","true","false","null"],o=/^[a-zA-Z_][a-zA-Z0-9_]*$/,i=e=>!o.test(e)||r.includes(e);t.fieldNeedsEscape=i;var a=e=>'["'.concat(e,'"]');t.escapeField=a;t.joinPath=(e=>e.reduce((e,t,n)=>{if((e=>Array.isArray(e)&&0===e.length)(t))return"".concat(e,"[]");var r=0===n;return i(t)?r?(e=>"@".concat(a(e)))(t):"".concat(e).concat(a(t)):r?t:"".concat(e,".").concat(t)},""))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(t,n)=>t===n||!(!t||!n)&&("object"==typeof t&&"object"==typeof n&&e.every(e=>t[e]===n[e]))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,i=0;ie},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(t,n)=>(function e(t,n,u){if(!(0,o.default)(t))return(0,i.of)(t);var c=function(e,t){return t.filter(t=>!(t[0]in e))}(t,n);if(c.length>0){var d=(0,r.default)(c.map(e=>e[0])),p=f(t);if(f(t)||function(e){return"_id"in e}(t)){var h=p?t._ref:t._id;return u(h,d).pipe((0,a.switchMap)(r=>null===r?(0,i.of)(null):e(l({},function(e){return e.reduce((e,t)=>(e[t]=void 0,e),{})}(d),p?{}:t,r),n,u)))}}var v={};n.forEach(e=>{var t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(e),n=t[0],r=t.slice(1);v[n]||(v[n]=[]),v[n].push(r)});var m=Object.keys(v).reduce((n,r)=>{var o=v[r];return o.every(e=>0===e.length)?n[r]=t[r]:n[r]=e(t[r],o,u),n},l({},t));return(0,i.of)(m).pipe((0,s.default)({wait:!0}))})(function(e){return"string"==typeof e?{_id:e}:e}(t),function(e){return e.map(e=>"string"==typeof e?e.split("."):e)}(n),e)};var r=u(n(57)),o=u(n(20)),i=n(6),a=n(4),s=u(n(1293));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return t=>new o.Observable(e=>t.subscribe(e)).pipe((0,a.switchMap)(t=>{var n=Object.keys(t).map(e=>{var n=t[e];return(0,i.default)(n)?(0,o.from)(n).pipe((0,a.map)(t=>[e,t])):(0,o.of)([e,n])});return e.wait?(0,o.from)(n).pipe((0,a.combineAll)(),(0,a.map)(e=>e.reduce((e,t)=>{var n=s(t,2),r=n[0],o=n[1];return l(e,r,o)},{}))):(0,o.from)(n).pipe((0,a.mergeAll)(),(0,a.scan)((e,t)=>{var n=s(t,2),r=n[0],o=n[1];return l(e,r,o)},{}))}))};var r,o=n(6),i=(r=n(1294))&&r.__esModule?r:{default:r},a=n(4);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t,n){return function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}class p extends s.default.PureComponent{render(){var e=this.props,t=e.type,n=d(e,["type"]);return s.default.createElement(u.default,f({type:t},n),l.default)}}t.default=p,r=p,o="propTypes",i={layout:a.default.string,value:a.default.any,ordering:a.default.object,type:a.default.object.isRequired},o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var r=u(n(19)),o=u(n(1)),i=u(n(0)),a=u(n(15)),s=u(n(498));function u(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f=!1;function d(e){var t=e.snapshot,n=e.type,o=e.isLive,u=e.layout,d=c(e,["snapshot","type","isLive","layout"]),p=function(e){var t=(0,r.default)(e,"preview.component");return t||a.default&&(0,a.default)(e)||s.default}(n),h="block"===u&&n&&"image"===n.name,v=i.default.createElement(p,l({media:()=>void 0},d,{value:t,icon:n&&n.icon,layout:u,isPlaceholder:!t,_renderAsBlockImage:h}));return f?i.default.createElement("div",null,i.default.createElement("span",{style:{position:"absolute",right:24,top:2}},o?"⚡️":"💤"),v):v}d.propTypes={snapshot:o.default.object,type:o.default.object,isLive:o.default.bool,layout:o.default.string}},function(e,t,n){e.exports=n(1306).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(e&&"object"===i(e.clientConfig))return new f(null,{baseUrl:e.clientConfig.apiHost.replace(/^https:\/\/api\./,"https://cdn."),projectId:e.clientConfig.projectId,dataset:e.clientConfig.dataset});return new f(null,e)};var r,o=(r=n(1307))&&r.__esModule?r:{default:r};function i(e){return(i="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)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;ni){var a=r.height,s=a*i,u=r.top,l=(o.right-o.left)/2+o.left,c=l-s/2;return cr.left+r.width&&(c=r.left+r.width-s),n.rect={left:Math.round(c),top:Math.round(u),width:Math.round(s),height:Math.round(a)},n}var f=r.width,d=f/i,p=r.left,h=(o.bottom-o.top)/2+o.top-d/2;hr.top+r.height&&(h=r.top+r.height-d);return n.rect={left:Math.max(0,Math.floor(p)),top:Math.max(0,Math.floor(h)),width:Math.round(f),height:Math.round(d)},n}({crop:l,hotspot:h},t)));return function(e){var t=e.baseUrl||"https://cdn.sanity.io",n="".concat(e.asset.id,"-").concat(e.asset.width,"x").concat(e.asset.height,".").concat(e.asset.format),r="".concat(t,"/images/").concat(e.projectId,"/").concat(e.dataset,"/").concat(n),o=[];if(e.rect){var i=0!=e.rect.left||0!=e.rect.top||e.rect.height!=e.asset.height||e.rect.width!=e.asset.width;i&&o.push("rect=".concat(e.rect.left,",").concat(e.rect.top,",").concat(e.rect.width,",").concat(e.rect.height))}e.bg&&o.push("bg=".concat(e.bg));e.focalPoint&&(o.push("fp-x=".concat(e.focalPoint.x)),o.push("fp-x=".concat(e.focalPoint.y)));(e.flipHorizontal||e.flipVertical)&&o.push("flip=".concat(e.flipHorizontal?"h":"").concat(e.flipVertical?"v":""));if(u.forEach(function(t){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),a=i[0],s=i[1];void 0!==e[a]?o.push("".concat(s,"=").concat(encodeURIComponent(e[a]))):void 0!==e[s]&&o.push("".concat(s,"=").concat(encodeURIComponent(e[s])))}),0===o.length)return r;return"".concat(r,"?").concat(o.join("&"))}(t)},Object.defineProperty(t,"parseSource",{enumerable:!0,get:function(){return r.default}});var r=i(n(1308)),o=i(n(1309));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){for(var t=1;t{this.dateElement=e,e&&this._elementResizeDetector.listenTo(this.dateElement,this.onResize)}),f(this,"onResize",(0,o.default)(()=>{var e=this.dateElement;if(e){var t=window.getComputedStyle(e,null).getPropertyValue("font-size").split("px")[0],n=e.offsetWidth/t;this.setState({emWidth:Math.round(n)})}},1e3/60))}componentWillReceiveProps(e){e.isPlaceholder&&this.dateElement&&this._elementResizeDetector.uninstall(this.dateElement),!e.isPlaceholder&&this.dateElement&&this._elementResizeDetector.listenTo(this.dateElement,this.onResize)}componentWillUnmount(){this._elementResizeDetector.uninstall(this.dateElement)}render(){var e=this.props,t=e.title,n=e.subtitle,o=e.description,i=e.date,l=e.media,c=e.mediaDimensions,f=e.children,d=e.isPlaceholder,h=e.status,v=this.state.emWidth,m=c.aspect;return d?a.default.createElement("div",{className:u.default.placeholder},a.default.createElement("div",{className:u.default.svg,style:p},l&&a.default.createElement("div",{className:u.default.media},m&&a.default.createElement("div",{className:u.default.mediaPadding,style:{paddingTop:"".concat(100/m,"%")}}),a.default.createElement("div",{className:u.default.mediaContent})),a.default.createElement("div",{className:u.default.meta},a.default.createElement("div",{className:u.default.heading},a.default.createElement("div",{className:u.default.title}," "),a.default.createElement("div",{className:u.default.date}," ")),a.default.createElement("div",{className:u.default.subtitle}," "),a.default.createElement("div",{className:u.default.description_1}," "),a.default.createElement("div",{className:u.default.description_2}," ")))):a.default.createElement("div",{className:u.default.root},a.default.createElement("div",{className:u.default.inner},l&&a.default.createElement("div",{className:u.default.media},a.default.createElement("div",{className:u.default.mediaPadding,style:{paddingTop:"".concat(100/m,"%")}}),a.default.createElement("div",{className:m?u.default.mediaContent:u.default.mediaContentRelative},"function"==typeof l&&l({dimensions:c,layout:"default"}),"string"==typeof l&&a.default.createElement("div",{className:u.default.mediaString},l),a.default.isValidElement(l)&&l)),a.default.createElement("div",{className:u.default.meta},i&&a.default.createElement("div",{ref:this.setDateElement,className:u.default.date,title:(0,s.default)(i,"ddd, MMM Do, YYYY hh:mm A")},v<=10&&(0,s.default)(i,"DD.MM.YY"),v>10&&v<=15&&(0,s.default)(i,"DD.MM.YY hh:mm A"),v>15&&(0,s.default)(i,"ddd, MMM Do, YYYY hh:mm A")),a.default.createElement("div",{className:u.default.heading},a.default.createElement("h2",{className:u.default.title},t),h&&a.default.createElement("div",{className:u.default.status},"function"==typeof h&&h({layout:"default"})||h)),n&&a.default.createElement("h3",{className:u.default.subtitle},"function"==typeof n&&n({layout:"card"}),"object"==typeof n&&n,"string"==typeof n&&(0,r.default)(n,{length:30,separator:/,? +/})),o&&a.default.createElement("p",{className:u.default.description},"function"==typeof o&&o({layout:"card"}),"object"==typeof o&&o,"string"==typeof o&&(0,r.default)(o,{length:100,separator:/,? +/})),f)))}}t.default=v,f(v,"propTypes",{title:h,subtitle:h,description:h,date:i.default.instanceOf(Date),status:h,media:h,mediaDimensions:i.default.shape({width:i.default.number,height:i.default.number,fit:i.default.oneOf(["clip","crop","fill","fillmax","max","scale","min"]),aspect:i.default.number}),children:i.default.node,isPlaceholder:i.default.bool}),f(v,"defaultProps",{title:"Untitled",subtitle:void 0,description:void 0,date:void 0,status:void 0,media:void 0,isPlaceholder:!1,children:void 0,mediaDimensions:{width:300,height:225,aspect:4/3,fit:"crop"}})},function(e,t,n){var r=n(402),o=n(444),i=n(182),a=n(20),s=n(1313),u=n(1315),l=n(445),c=n(294),f=n(55),d=30,p="...",h=/\w*$/;e.exports=function(e,t){var n=d,v=p;if(a(t)){var m="separator"in t?t.separator:m;n="length"in t?c(t.length):n,v="omission"in t?r(t.omission):v}var y=(e=f(e)).length;if(i(e)){var g=l(e);y=g.length}if(n>=y)return e;var b=n-u(v);if(b<1)return v;var _=g?o(g,0,b).join(""):e.slice(0,b);if(void 0===m)return _+v;if(g&&(b+=_.length-b),s(m)){if(e.slice(b).search(m)){var w,O=_;for(m.global||(m=RegExp(m.source,f(h.exec(m))+"g")),m.lastIndex=0;w=m.exec(O);)var k=w.index;_=_.slice(0,void 0===k?b:k)}}else if(e.indexOf(r(m),b)!=b){var E=_.lastIndexOf(m);E>-1&&(_=_.slice(0,E))}return _+v}},function(e,t,n){var r=n(1314),o=n(78),i=n(165),a=i&&i.isRegExp,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(66),o=n(36),i="[object RegExp]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(1316),o=n(182),i=n(1317);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var r=n(404)("length");e.exports=r},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),c="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+c+l,"g");e.exports=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}},function(e,t){e.exports=function(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return{localize:function(t,n,r){var o;return r=r||{},o="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"in "+o:o+" ago":o}}}},function(e,t,n){var r=n(1320);e.exports=function(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],o=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["AM","PM"],s=["am","pm"],u=["a.m.","p.m."],l={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return o[e.getDay()]},dddd:function(e){return i[e.getDay()]},A:function(e){return e.getHours()/12>=1?a[1]:a[0]},a:function(e){return e.getHours()/12>=1?s[1]:s[0]},aa:function(e){return e.getHours()/12>=1?u[1]:u[0]}};return["M","D","DDD","d","Q","W"].forEach(function(e){l[e+"o"]=function(t,n){return function(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}(n[e](t))}}),{formatters:l,formattingTokensRegExp:r(l)}}},function(e,t){var n=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];e.exports=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);var o=n.concat(t).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+o.join("|")+"|.)","g")}},function(e,t){e.exports={root:"CardPreview_root_28r45",heading:"CardPreview_heading_DczLq",ellipsis:"CardPreview_ellipsis_1BzYf",title:"CardPreview_title_3Q33L headings_heading5_1fjAm headings_root_1MVCX CardPreview_ellipsis_1BzYf",subtitle:"CardPreview_subtitle_29gco",date:"CardPreview_date_2on4H",mediaContainer:"CardPreview_mediaContainer_njEL1",media:"CardPreview_media_Y3Szb",mediaString:"CardPreview_mediaString_1yCLo positioning_absoluteCenter_1T-ll",mediaPadding:"CardPreview_mediaPadding_3EfJP",mediaContent:"CardPreview_mediaContent_qP2DJ",mediaContentRelative:"CardPreview_mediaContentRelative_3W8k_",description:"CardPreview_description_3Hqxd",meta:"CardPreview_meta_1rxhi",img:"CardPreview_img_3_lYB",imgLandscape:"CardPreview_imgLandscape_1KQc9 CardPreview_img_3_lYB",imgPortrait:"CardPreview_imgPortrait_jM0jn CardPreview_img_3_lYB",placeholder:"CardPreview_placeholder_2XQMt CardPreview_root_28r45",description_1:"CardPreview_description_1_3hyKp",description_2:"CardPreview_description_2_1qadG"}},function(e,t,n){"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},function(e,t,n){"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}return{get:n,add:function(n,r){var o=e.get(n);t[o]||(t[o]=[]),t[o].push(r)},removeListener:function(e,t){for(var r=n(e),o=0,i=r.length;on?n=o:o div::-webkit-scrollbar { display: none; }\n\n",o+="."+r+" { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+n+"; animation-name: "+n+"; }\n",o+="@-webkit-keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(t,n){n=n||function(e){document.head.appendChild(e)};var r=document.createElement("style");r.innerHTML=t,r.id=e,n(r)}(o+="@keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}("erd_scroll_detection_scrollbar_style",s),{makeDetectable:function(e,l,d){function p(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(l),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r-1&&o.default.createElement("div",{className:c.progress},o.default.createElement("div",{className:c.progressBar,style:{width:"".concat(u,"%")}})))}}u(c,"propTypes",{title:l,subtitle:l,mediaDimensions:r.default.shape({width:r.default.number,height:r.default.number,fit:r.default.oneOf(["clip","crop","fill","fillmax","max","scale","min"]),aspect:r.default.number}),status:l,media:l,isPlaceholder:r.default.bool,children:r.default.node,styles:r.default.object,progress:r.default.number}),u(c,"defaultProps",{title:"Untitled",subtitle:void 0,progress:void 0,media:void 0,mediaDimensions:{width:80,height:80,aspect:1,fit:"crop"}});var f=(0,a.default)(c,i.default);t.default=f},function(e,t){e.exports={root:"DefaultPreview_root_1MM-_",hasSubtitle:"DefaultPreview_hasSubtitle_1tjaC",heading:"DefaultPreview_heading_1fm-z",ellipsis:"DefaultPreview_ellipsis_3S--u",title:"DefaultPreview_title_3P-N4 DefaultPreview_ellipsis_3S--u",subtitle:"DefaultPreview_subtitle_3Bk9o DefaultPreview_ellipsis_3S--u",media:"DefaultPreview_media_2wwhl",placeholder:"DefaultPreview_placeholder_3JbeB DefaultPreview_root_1MM-_",mediaString:"DefaultPreview_mediaString_zaM9Z positioning_absoluteCenter_1T-ll",animation:"DefaultPreview_animation_BvIkL",status:"DefaultPreview_status_1wyLm",progress:"DefaultPreview_progress_1KSJq",progressBar:"DefaultPreview_progressBar_2-srP",progressGlow:"DefaultPreview_progressGlow_3QFOh"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=a(n(1335));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=0,l=r.default.oneOfType([r.default.string,r.default.node,r.default.func]);class c extends o.default.PureComponent{constructor(){super(...arguments),s(this,"index",u++)}render(){var e=this.props,t=e.title,n=e.subtitle,r=e.description,a=e.mediaDimensions,s=e.media,u=e.status,l=e.children;return e.isPlaceholder?o.default.createElement("div",{className:i.default.placeholder},!1!==s&&o.default.createElement("div",{className:i.default.media}),o.default.createElement("div",{className:i.default.content},o.default.createElement("h2",{className:i.default.title},"Loading"),o.default.createElement("h3",{className:i.default.subtitle},"Loading"),o.default.createElement("p",{className:i.default.description},"Loading"))):o.default.createElement("div",{className:i.default.root},!1!==s&&o.default.createElement("div",{className:i.default.media},"function"==typeof s&&s({dimensions:a,layout:"default"}),"string"==typeof s&&o.default.createElement("div",{className:i.default.mediaString},s),o.default.isValidElement(s)&&s),o.default.createElement("div",{className:i.default.content},o.default.createElement("div",{className:i.default.top},o.default.createElement("div",{className:i.default.heading},o.default.createElement("h2",{className:i.default.title},"function"==typeof t&&t({layout:"detail"})||t),n&&o.default.createElement("h3",{className:i.default.subtitle},"function"==typeof n&&n({layout:"detail"})||n)),u&&o.default.createElement("div",{className:i.default.status},"function"==typeof u&&u({layout:"detail"})||u)),r&&o.default.createElement("p",{className:i.default.description},"function"==typeof r&&r({layout:"detail"}),"string"==typeof r&&r,"object"==typeof r&&r)),l)}}t.default=c,s(c,"propTypes",{title:l,subtitle:l,description:l,status:l,media:l,mediaDimensions:r.default.shape({width:r.default.number,height:r.default.number,fit:r.default.oneOf(["clip","crop","fill","fillmax","max","scale","min"]),aspect:r.default.number}),children:r.default.node,isPlaceholder:r.default.bool}),s(c,"defaultProps",{title:"Untitled",subtitle:"No subtitle…",description:"No description…",media:void 0,status:void 0,children:void 0,isPlaceholder:!1,mediaDimensions:{width:120,height:120,fit:"crop",aspect:1}})},function(e,t){e.exports={root:"DetailPreview_root_3zDPn",top:"DetailPreview_top_1NFF0",heading:"DetailPreview_heading_2B5sa",content:"DetailPreview_content_N67Dv",ellipsis:"DetailPreview_ellipsis_yN-Sh",title:"DetailPreview_title_1N4Vu text-blocks_base_3DYD1 text-blocks_root_2QRzu DetailPreview_ellipsis_yN-Sh",subtitle:"DetailPreview_subtitle_2aHXs",description:"DetailPreview_description_uym-8",media:"DetailPreview_media_2Acua",status:"DetailPreview_status_2QLAZ",mediaString:"DetailPreview_mediaString_edjbP positioning_absoluteCenter_1T-ll",placeholder:"DetailPreview_placeholder_2EIU2 DetailPreview_root_3zDPn"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=a(n(1337));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=r.default.oneOfType([r.default.string,r.default.node,r.default.func]);class l extends o.default.PureComponent{render(){var e=this.props,t=e.title,n=e.media,r=e.mediaDimensions,a=e.children;return t||n?o.default.createElement("span",{className:i.default.root},n&&o.default.createElement("span",{className:i.default.media},"function"==typeof n&&n({dimensions:r,layout:"default"}),"function"!=typeof n&&n,o.default.isValidElement(n)&&n),o.default.createElement("span",{className:i.default.title},"function"==typeof t&&t({layout:"inline"})||t),a&&o.default.createElement("span",null,a)):o.default.createElement("span",null)}}t.default=l,s(l,"propTypes",{title:u,media:u,children:r.default.node,mediaDimensions:r.default.shape({width:r.default.number,height:r.default.number,fit:r.default.oneOf(["clip","crop","fill","fillmax","max","scale","min"]),aspect:r.default.number})}),s(l,"defaultProps",{title:void 0,children:void 0,media:void 0,mediaDimensions:{width:32,height:32,fit:"crop",aspect:1}})},function(e,t){e.exports={root:"InlinePreview_root_1xWI1",media:"InlinePreview_media_1pRUL",title:"InlinePreview_title_PP_sg"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),o=s(n(0)),i=s(n(1339)),a=s(n(506));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=r.default.oneOfType([r.default.string,r.default.node,r.default.func]);class c extends o.default.PureComponent{render(){var e=this.props,t=e.title,n=e.subtitle,r=e.description,s=e.media,u=e.mediaDimensions,l=e.children,c=e.isPlaceholder,f=e.progress;return c?o.default.createElement("div",{className:i.default.root},o.default.createElement("div",{className:i.default.padder,style:{paddingTop:"".concat(100/u.aspect||100,"%")}})):o.default.createElement("div",{className:i.default.root,title:t},o.default.createElement("div",{className:i.default.padder,style:{paddingTop:"".concat(100/u.aspect||100,"%")}}),o.default.createElement("div",{className:i.default.mediaContainer},void 0===s&&o.default.createElement("div",{className:i.default.mediaString},t),"function"==typeof s&&s({dimensions:u,layout:"media"}),"string"==typeof s&&o.default.createElement("div",{className:i.default.mediaString},s),o.default.isValidElement(s)&&s,"number"==typeof f&&f>-1&&o.default.createElement("div",{className:i.default.progress},o.default.createElement(a.default,{percent:f,showPercent:!0,text:"Uploaded"}))),o.default.createElement("div",{className:i.default.meta},o.default.createElement("div",{className:i.default.metaInner},t&&o.default.createElement("h2",{className:i.default.title},t),n&&o.default.createElement("h3",{className:i.default.subtitle},n),r&&o.default.createElement("p",{className:i.default.description},r))),l)}}t.default=c,u(c,"propTypes",{title:l,subtitle:l,description:l,media:l,progress:r.default.number,mediaDimensions:r.default.shape({width:r.default.number,height:r.default.number,fit:r.default.oneOf(["clip","crop","fill","fillmax","max","scale","min"]),aspect:r.default.number}),children:r.default.node,isPlaceholder:r.default.bool}),u(c,"defaultProps",{title:void 0,subtitle:void 0,description:void 0,media:void 0,isPlaceholder:!1,children:void 0,mediaDimensions:{width:160,height:160,aspect:1,fit:"crop"}})},function(e,t){e.exports={root:"MediaPreview_root_20Ghq",title:"MediaPreview_title_2BuhY",subtitle:"MediaPreview_subtitle_18kSI",description:"MediaPreview_description_g6AkU text-blocks_small_YOrZq text-blocks_base_3DYD1 text-blocks_root_2QRzu",mediaContainer:"MediaPreview_mediaContainer_1Ys-X",progress:"MediaPreview_progress_2Vfp9",mediaString:"MediaPreview_mediaString_2fLwB positioning_absoluteCenter_1T-ll",meta:"MediaPreview_meta_2EINs backgrounds_frosted_2rBwe",metaInner:"MediaPreview_metaInner_361v1",placeholder:"MediaPreview_placeholder_2s7Os",media:"MediaPreview_media_2loFh"}},function(e,t){e.exports={root:"ProgressCircle_root_XbDXd",completed:"ProgressCircle_completed_ilSTH ProgressCircle_root_XbDXd",unCompleted:"ProgressCircle_unCompleted_3mowH ProgressCircle_root_XbDXd",svg:"ProgressCircle_svg_Er1mt",background:"ProgressCircle_background_kjXzJ",foreground:"ProgressCircle_foreground_3CjNY",finish:"ProgressCircle_finish_3f8mB",hundredPercent:"ProgressCircle_hundredPercent_1wRSN",activeCircle:"ProgressCircle_activeCircle_2bzjS",strokeDash:"ProgressCircle_strokeDash_39xSC",strokeWidth:"ProgressCircle_strokeWidth_3x7fo",rotate:"ProgressCircle_rotate_2BkhD",text:"ProgressCircle_text_3OJmD",percent:"ProgressCircle_percent_yFsIa ProgressCircle_text_3OJmD",status:"ProgressCircle_status_3W2Y9 ProgressCircle_text_3OJmD"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=a(n(1342));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=r.default.oneOfType([r.default.string,r.default.node,r.default.func]);class l extends o.default.PureComponent{render(){var e=this.props,t=e.title,n=e.subtitle,r=e.description,a=e.mediaDimensions,s=e.media,u=e.status,l=e.children,c=e.extendedPreview;return o.default.createElement("div",{className:i.default.root},o.default.createElement("div",{className:i.default.header},s&&o.default.createElement("div",{className:"".concat(i.default.media)},"function"==typeof s&&s({dimensions:a,layout:"default"}),"string"==typeof s&&o.default.createElement("div",{className:i.default.mediaString},s),o.default.isValidElement(s)&&s),o.default.createElement("div",{className:i.default.heading},o.default.createElement("h2",{className:i.default.title},t),n&&o.default.createElement("h3",{className:i.default.subtitle},n),r&&o.default.createElement("p",{className:i.default.description},r)),u&&o.default.createElement("div",{className:i.default.status},"function"==typeof u&&u({layout:"default"})||u)),l&&o.default.createElement("div",{className:i.default.children},l),c&&o.default.createElement("div",{className:i.default.extendedPreview},c))}}t.default=l,s(l,"propTypes",{title:u,subtitle:u,description:u,mediaDimensions:r.default.shape({width:r.default.number,height:r.default.number,fit:r.default.oneOf(["clip","crop","fill","fillmax","max","scale","min"]),aspect:r.default.number}),media:u,status:u,children:r.default.func,extendedPreview:u,type:r.default.shape({title:r.default.string,name:r.default.string})}),s(l,"defaultProps",{mediaDimensions:{width:160,height:160,aspect:1,fit:"crop"},type:{title:void 0,name:void 0}})},function(e,t){e.exports={root:"BlockPreview_root_3E7di",header:"BlockPreview_header_1uKk-",heading:"BlockPreview_heading_3ElTc",ellipsis:"BlockPreview_ellipsis_1A9Ub",title:"BlockPreview_title_3j6uo DefaultPreview_title_3P-N4 DefaultPreview_ellipsis_3S--u",subtitle:"BlockPreview_subtitle_3qpxc DefaultPreview_subtitle_3Bk9o DefaultPreview_ellipsis_3S--u",description:"BlockPreview_description_2iJZm",status:"BlockPreview_status_1e9Qp",media:"BlockPreview_media_3bzTt"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=a(n(1344));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=r.default.oneOfType([r.default.string,r.default.node,r.default.func]);class l extends o.default.PureComponent{render(){var e=this.props,t=e.title,n=e.subtitle,r=e.description,a=e.mediaDimensions,s=e.media,u=e.children;return o.default.createElement("div",{className:i.default.root},o.default.createElement("h2",{className:i.default.title},t),o.default.createElement("div",{className:i.default.preview},s&&o.default.createElement("div",{className:"".concat(i.default.media)},"function"==typeof s&&s({dimensions:a,layout:"blockImage"}),"string"==typeof s&&o.default.createElement("div",{className:i.default.mediaString},s),o.default.isValidElement(s)&&s),o.default.createElement("div",{className:i.default.heading},n&&o.default.createElement("h3",{className:i.default.subtitle},n),r&&o.default.createElement("p",{className:i.default.description},r),status&&o.default.createElement("div",{className:i.default.status},"function"==typeof status&&status({layout:"default"})||status))),u&&o.default.createElement("div",{className:i.default.children},u))}}t.default=l,s(l,"propTypes",{title:r.default.string,subtitle:r.default.string,description:r.default.string,mediaDimensions:r.default.shape({width:r.default.number,height:r.default.number,fit:r.default.oneOf(["clip","crop","fill","fillmax","max","scale","min"]),aspect:r.default.number}),media:u,children:r.default.func,type:r.default.shape({title:r.default.string,name:r.default.string})}),s(l,"defaultProps",{mediaDimensions:{width:600,height:600,fit:"fillmax"},type:{title:void 0,name:void 0}})},function(e,t){e.exports={root:"BlockImagePreview_root_a6Z_t",preview:"BlockImagePreview_preview_Djeo8",heading:"BlockImagePreview_heading_3Bzep",media:"BlockImagePreview_media_3K9MK",title:"BlockImagePreview_title_3EHKS",subtitle:"BlockImagePreview_subtitle_SWHnN",description:"BlockImagePreview_description_x8V6G"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{var e=function(e){return e&&e.__esModule?e.default:e}(n(15));return c=(()=>e),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n(15)),o=h(n(15)),i=h(n(15)),a=h(n(15)),s=h(n(15)),u=h(n(15)),l=h(n(15)),c=h(n(15)),f=h(n(15)),d=h(n(15)),p=h(n(15));function h(e){return e&&e.__esModule?e:{default:e}}var v={object:u.default,boolean:r.default,number:s.default,string:f.default,text:d.default,reference:l.default,datetime:o.default,richDate:c.default,email:i.default,geopoint:a.default,url:p.default};t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n(488)),o=v(n(1350)),i=v(n(490)),a=v(n(468)),s=v(n(507)),u=n(1351),l=v(n(492)),c=v(n(1360)),f=v(n(1361)),d=v(n(520)),p=v(n(1375)),h=v(n(1607));function v(e){return e&&e.__esModule?e:{default:e}}var m={object:a.default,array:d.default,boolean:r.default,number:i.default,text:l.default,email:o.default,datetime:u.DateTimeInput,date:u.DateInput,url:c.default,image:p.default,file:h.default,string:s.default,slug:f.default};t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(72)),i=s(n(33)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(10));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class extends r.default.Component{constructor(){super(...arguments),u(this,"_input",void 0),u(this,"handleChange",e=>{var t=e.currentTarget.value;this.props.onChange(a.default.from(t?(0,a.set)(t):(0,a.unset)()))}),u(this,"setInput",e=>{this._input=e})}focus(){this._input&&this._input.focus()}render(){var e=this.props,t=e.value,n=e.readOnly,a=e.type,s=e.markers,u=e.level,l=e.onFocus,c=s.filter(e=>"validation"===e.type).filter(e=>"error"===e.level);return r.default.createElement(i.default,{markers:s,level:u,label:a.title,description:a.description},r.default.createElement(o.default,{type:"email",customValidity:c&&c.length>0?c[0].item.message:"",value:t,readOnly:n,placeholder:a.placeholder,onChange:this.handleChange,onFocus:l,ref:this.setInput}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DateTimeInput",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"DateInput",{enumerable:!0,get:function(){return o.default}});var r=i(n(1352)),o=i(n(1359));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(41));n(516);var o=s(n(0)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(10)),a=s(n(517));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l="YYYY-MM-DD",c="HH:mm";t.default=class extends o.default.Component{constructor(){super(...arguments),u(this,"baseDateTimeInputRef",null),u(this,"handleChange",e=>{var t=e?(0,i.set)(e.toDate().toJSON()):(0,i.unset)();this.props.onChange(i.default.from([t]))}),u(this,"setBaseInput",e=>{this.baseDateTimeInputRef=e})}focus(){this.baseDateTimeInputRef&&this.baseDateTimeInputRef.focus()}render(){var e=this.props,t=e.value,n=e.markers,i=e.type,s=e.readOnly,u=e.level,f=i.title,d=i.description,p=t?(0,r.default)(t):null,h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{dateFormat:e.dateFormat||l,timeFormat:e.timeFormat||c,timeStep:"timeStep"in e&&Number(e.timeStep)||15,calendarTodayLabel:e.calendarTodayLabel||"Now"}}(i.options);return o.default.createElement(a.default,{ref:this.setBaseInput,value:p,readOnly:s,level:u,title:f,description:d,placeholder:i.placeholder,markers:n,dateFormat:h.dateFormat,timeFormat:h.timeFormat,timeStep:h.timeStep,todayLabel:h.calendarTodayLabel,onChange:this.handleChange})}}},function(e,t,n){var r={"./en-SG":508,"./en-SG.js":508,"./en-au":509,"./en-au.js":509,"./en-ca":510,"./en-ca.js":510,"./en-gb":511,"./en-gb.js":511,"./en-ie":512,"./en-ie.js":512,"./en-il":513,"./en-il.js":513,"./en-nz":514,"./en-nz.js":514,"./nb":515,"./nb.js":515};function o(e){return n(i(e))}function i(e){var t=r[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=1353},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"CalendarContainer",function(){return Se});var r=n(0),o=n.n(r),i=n(1),a=n.n(i),s=n(27),u=n.n(s),l=n(1355),c=n(41),f=n.n(c),d=n(139),p="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},h=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},v=function(){function e(e,t){for(var n=0;n=a),s&&o.push(a)}return o}var _=function(e){function t(n){h(this,t);var r=g(this,e.call(this,n));r.renderOptions=function(){var e=r.props.year,t=r.state.yearsList.map(function(t){return o.a.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,ref:t,onClick:r.onChange.bind(r,t)},e===t?o.a.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)}),n=r.props.minDate?r.props.minDate.year():null,i=r.props.maxDate?r.props.maxDate.year():null;return i&&r.state.yearsList.find(function(e){return e===i})||t.unshift(o.a.createElement("div",{className:"react-datepicker__year-option",ref:"upcoming",key:"upcoming",onClick:r.incrementYears},o.a.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find(function(e){return e===n})||t.push(o.a.createElement("div",{className:"react-datepicker__year-option",ref:"previous",key:"previous",onClick:r.decrementYears},o.a.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},r.onChange=function(e){r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(e){var t=r.state.yearsList.map(function(t){return t+e});r.setState({yearsList:t})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=n.yearDropdownItemNumber,a=n.scrollableYearDropdown,s=i||(a?10:5);return r.state={yearsList:b(r.props.year,s,r.props.minDate,r.props.maxDate)},r}return y(t,e),t.prototype.render=function(){var e=u()({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return o.a.createElement("div",{className:e},this.renderOptions())},t}(o.a.Component);_.propTypes={minDate:a.a.object,maxDate:a.a.object,onCancel:a.a.func.isRequired,onChange:a.a.func.isRequired,scrollableYearDropdown:a.a.bool,year:a.a.number.isRequired,yearDropdownItemNumber:a.a.number};var w={1:"mon",2:"tue",3:"wed",4:"thu",5:"fri",6:"sat",7:"sun"};function O(e,t,n){return e.set(t,n)}function k(e,t,n){return e.add(t,n)}function E(e,t,n){return e.subtract(t,n)}function S(e,t){return e.get(t)}function x(e,t){return e.startOf(t)}function C(e){return f()(e)}function P(e){return null==e?C():(t=e,f()().utc().utcOffset(t));var t}function j(e){return e.clone()}function M(e){return f.a.isMoment(e)}function T(e,t){return e.format(t)}function A(e,t){var n=t.hour,r=t.minute,o=t.second;return e.set({hour:n,minute:r,second:o}),e}function D(e,t){return O(e,"month",t)}function I(e,t){return O(e,"year",t)}function N(e){return S(e,"second")}function R(e){return S(e,"minute")}function F(e){return S(e,"hour")}function L(e){return S(e,"month")}function B(e){return S(e,"year")}function z(e){return S(e,"date")}function W(e){return x(e,"week")}function U(e){return x(e,"month")}function H(e,t){return k(e,t,"minutes")}function q(e,t){return k(e,t,"days")}function V(e,t){return k(e,t,"weeks")}function Y(e,t){return k(e,t,"months")}function G(e,t){return E(e,t,"months")}function K(e,t){return e.isBefore(t)}function J(e,t){return e.isAfter(t)}function $(e,t){return e&&t?e.isSame(t,"year"):!e&&!t}function Z(e,t){return e&&t?e.isSame(t,"month"):!e&&!t}function X(e,t){return e&&t?e.isSame(t,"day"):!e&&!t}function Q(e,t,n){var r=t.clone().startOf("day").subtract(1,"seconds"),o=n.clone().startOf("day").add(1,"seconds");return e.clone().startOf("day").isBetween(r,o)}function ee(e,t){return e.clone().locale(t||f.a.locale())}function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return n&&e.isBefore(n,"day")||r&&e.isAfter(r,"day")||o&&o.some(function(t){return X(e,t)})||i&&!i.some(function(t){return X(e,t)})||a&&!a(e.clone())||!1}function ne(e,t){for(var n=t.length,r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=n.minDate,o=n.includeDates,i=e.clone().subtract(1,t);return r&&i.isBefore(r,t)||o&&o.every(function(e){return i.isBefore(e,t)})||!1}function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.maxDate,o=n.includeDates,i=e.clone().add(1,t);return r&&i.isAfter(r,t)||o&&o.every(function(e){return i.isAfter(e,t)})||!1}function ae(e){var t=e.minDate,n=e.includeDates;return n&&t?f.a.min(n.filter(function(e){return t.isSameOrBefore(e,"day")})):n?f.a.min(n):t}function se(e){var t=e.maxDate,n=e.includeDates;return n&&t?f.a.max(n.filter(function(e){return t.isSameOrAfter(e,"day")})):n?f.a.max(n):t}function ue(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,o=e.length;r=Oe,u=!t&&!r.isWeekInMonth(n);if(s||u){if(!r.props.peekNextMonth)break;a=!0}}return e},r.getClassNames=function(){var e=r.props,t=e.selectingDate,n=e.selectsStart,o=e.selectsEnd;return u()("react-datepicker__month",{"react-datepicker__month--selecting-range":t&&(n||o)})},g(r,n)}return y(t,e),t.prototype.render=function(){return o.a.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,role:"listbox","aria-label":"month-"+this.props.day.format("YYYY-MM")},this.renderWeeks())},t}(o.a.Component);ke.propTypes={disabledKeyboardNavigation:a.a.bool,day:a.a.object.isRequired,dayClassName:a.a.func,endDate:a.a.object,excludeDates:a.a.array,filterDate:a.a.func,fixedHeight:a.a.bool,formatWeekNumber:a.a.func,highlightDates:a.a.instanceOf(Map),includeDates:a.a.array,inline:a.a.bool,maxDate:a.a.object,minDate:a.a.object,onDayClick:a.a.func,onDayMouseEnter:a.a.func,onMouseLeave:a.a.func,onWeekSelect:a.a.func,peekNextMonth:a.a.bool,preSelection:a.a.object,selected:a.a.object,selectingDate:a.a.object,selectsEnd:a.a.bool,selectsStart:a.a.bool,showWeekNumbers:a.a.bool,startDate:a.a.object,utcOffset:a.a.oneOfType([a.a.number,a.a.string]),renderDayContents:a.a.func};var Ee=function(e){function t(){var n,r;h(this,t);for(var i=arguments.length,a=Array(i),s=0;s0&&void 0!==arguments[0]?arguments[0]:{}).className||"").split(/\s+/);return xe.some(function(t){return e.indexOf(t)>=0})},Pe=function(e){function t(n){h(this,t);var r=g(this,e.call(this,n));return r.handleClickOutside=function(e){r.props.onClickOutside(e)},r.handleDropdownFocus=function(e){Ce(e.target)&&r.props.onDropdownFocus()},r.getDateInView=function(){var e=r.props,t=e.preSelection,n=e.selected,o=e.openToDate,i=e.utcOffset,a=ae(r.props),s=se(r.props),u=P(i),l=o||n||t;return l||(a&&K(u,a)?a:s&&J(u,s)?s:u)},r.localizeDate=function(e){return ee(e,r.props.locale)},r.increaseMonth=function(){r.setState({date:Y(j(r.state.date),1)},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState({date:G(j(r.state.date),1)},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(e,t){return r.props.onSelect(e,t)},r.handleDayMouseEnter=function(e){return r.setState({selectingDate:e})},r.handleMonthMouseLeave=function(){return r.setState({selectingDate:null})},r.handleYearChange=function(e){r.props.onYearChange&&r.props.onYearChange(e)},r.handleMonthChange=function(e){r.props.onMonthChange&&r.props.onMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0))},r.handleMonthYearChange=function(e){r.handleYearChange(e),r.handleMonthChange(e)},r.changeYear=function(e){r.setState({date:I(j(r.state.date),e)},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(e){r.setState({date:D(j(r.state.date),e)},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(e){r.setState({date:I(D(j(r.state.date),L(e)),B(e))},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(){var e=W(j(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date)),t=[];return r.props.showWeekNumbers&&t.push(o.a.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),t.concat([0,1,2,3,4,5,6].map(function(t){var n=q(j(e),t),i=n.localeData(),a=r.formatWeekday(i,n);return o.a.createElement("div",{key:t,className:"react-datepicker__day-name"},a)}))},r.formatWeekday=function(e,t){return r.props.formatWeekDay?(n=e,o=t,(0,r.props.formatWeekDay)(n.weekdays(o))):r.props.useWeekdaysShort?function(e,t){return e.weekdaysShort(t)}(e,t):function(e,t){return e.weekdaysMin(t)}(e,t);var n,o},r.renderPreviousMonthButton=function(){if(!r.props.renderCustomHeader){var e=oe(r.state.date,"month",r.props);if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;return e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null),o.a.createElement("button",{type:"button",className:t.join(" "),onClick:n},r.props.previousMonthButtonLabel)}}},r.renderNextMonthButton=function(){if(!r.props.renderCustomHeader){var e=ie(r.state.date,"month",r.props);if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;return e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null),o.a.createElement("button",{type:"button",className:t.join(" "),onClick:n},r.props.nextMonthButtonLabel)}}},r.renderCurrentMonth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),o.a.createElement("div",{className:t.join(" ")},T(e,r.props.dateFormat))},r.renderYearDropdown=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return o.a.createElement(fe,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:B(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})},r.renderMonthDropdown=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return o.a.createElement(he,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonth,month:L(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})},r.renderMonthYearDropdown=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return o.a.createElement(ge,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})},r.renderTodayButton=function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return o.a.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.props.onSelect(x(P(r.props.utcOffset),"date"),e)}},r.props.todayButton)},r.renderDefaultHeader=function(e){var t=e.monthDate,n=e.i;return o.a.createElement("div",{className:"react-datepicker__header"},r.renderCurrentMonth(t),o.a.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--"+r.props.dropdownMode,onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),o.a.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))},r.renderCustomHeader=function(e){var t=e.monthDate;if(0!==e.i)return null;var n=oe(r.state.date,"month",r.props),i=ie(r.state.date,"month",r.props);return o.a.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(m({},r.state,{changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,prevMonthButtonDisabled:n,nextMonthButtonDisabled:i})),o.a.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))},r.renderMonths=function(){if(!r.props.showTimeSelectOnly){for(var e=[],t=0;t1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:Re},function(){e||r.setState(function(e){return{focused:!!t&&e.focused}},function(){!t&&r.setBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return M(r.state.preSelection)||(e=r.state.preSelection,f.a.isDate(e));var e},r.isCalendarOpen=function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(e){r.state.open&&!r.props.withPortal?r.deferFocusInput():r.props.onBlur(e),r.setState({focused:!1})},r.handleCalendarClickOutside=function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()},r.handleChange=function(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&e.isBefore(n,"day")||r&&e.isAfter(r,"day")})(o,r.props)&&(r.props.onChange(e,t),r.props.onSelect(o,t));else{if(!X(r.props.selected,o)||r.props.allowSameDay){if(null!==o){if(r.props.selected){var i=r.props.selected;n&&(i=C(o)),o=A(C(o),{hour:F(i),minute:R(i),second:N(i)})}r.props.inline||r.setState({preSelection:o})}r.props.onChange(o,t)}r.props.onSelect(o,t),n||r.setState({inputValue:null})}},r.setPreSelection=function(e){(!(void 0!==r.props.minDate&&void 0!==r.props.maxDate)||!e||Q(e,r.props.minDate,r.props.maxDate))&&r.setState({preSelection:e})},r.handleTimeChange=function(e){var t=A(j(r.props.selected?r.props.selected:r.getPreSelection()),{hour:F(e),minute:R(e)});r.setState({preSelection:t}),r.props.onChange(t),r.props.shouldCloseOnSelect&&r.setOpen(!1),r.setState({inputValue:null})},r.onInputClick=function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()},r.onInputKeyDown=function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){var n=C(r.state.preSelection);if("Enter"===t)e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===Re?(r.handleSelect(n,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(n)):r.setOpen(!1);else if("Escape"===t)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:De});else if("Tab"===t)r.setOpen(!1,!0);else if(!r.props.disabledKeyboardNavigation){var o=void 0;switch(t){case"ArrowLeft":o=E(n,1,"days");break;case"ArrowRight":o=q(n,1);break;case"ArrowUp":o=function(e,t){return E(e,t,"weeks")}(n,1);break;case"ArrowDown":o=V(n,1);break;case"PageUp":o=G(n,1);break;case"PageDown":o=Y(n,1);break;case"Home":o=function(e,t){return E(e,t,"years")}(n,1);break;case"End":o=function(e,t){return k(e,t,"years")}(n,1)}if(!o)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:De}));e.preventDefault(),r.setState({lastPreSelectChange:Re}),r.props.adjustDateOnChange&&r.setSelected(o),r.setPreSelection(o)}}else"ArrowDown"!==t&&"ArrowUp"!==t||r.onInputClick()},r.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),r.props.onChange(null,e),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.renderCalendar=function(){return r.props.inline||r.isCalendarOpen()?o.a.createElement(Ae,{ref:function(e){r.calendar=e},locale:r.props.locale,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,utcOffset:r.props.utcOffset,outsideClickIgnoreClass:Te,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents},r.props.children):null},r.renderDateInput=function(){var e,t,n,i,a,s,l=u()(r.props.className,((e={})[Te]=r.state.open,e)),c=r.props.customInput||o.a.createElement("input",{type:"text"}),d=r.props.customInputRef||"ref",p="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:(n=r.props.selected,i=r.props,a=i.dateFormat,s=i.locale,n&&n.clone().locale(s||f.a.locale()).format(Array.isArray(a)?a[0]:a)||"");return o.a.cloneElement(c,((t={})[d]=function(e){r.input=e},t.value=p,t.onBlur=r.handleBlur,t.onChange=r.handleChange,t.onClick=r.onInputClick,t.onFocus=r.handleFocus,t.onKeyDown=r.onInputKeyDown,t.id=r.props.id,t.name=r.props.name,t.autoFocus=r.props.autoFocus,t.placeholder=r.props.placeholderText,t.disabled=r.props.disabled,t.autoComplete=r.props.autoComplete,t.className=l,t.title=r.props.title,t.readOnly=r.props.readOnly,t.required=r.props.required,t.tabIndex=r.props.tabIndex,t))},r.renderClearButton=function(){return r.props.isClearable&&null!=r.props.selected?o.a.createElement("button",{type:"button",className:"react-datepicker__close-icon",onClick:r.onClearClick,title:r.props.clearButtonTitle,tabIndex:-1}):null},r.state=r.calcInitialState(),r}return y(t,e),v(t,null,[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"L",dateFormatCalendar:"MMMM YYYY",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,timeIntervals:30,timeCaption:"Time",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next month",renderDayContents:function(e){return e}}}}]),t.prototype.componentDidUpdate=function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?L(n)!==L(r)||B(n)!==B(r):n!==r)&&this.setPreSelection(this.props.selected),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:ue(this.props.highlightDates)}),!t.focused&&function(e,t){return!(!e||!t||function(e,t){return e.isSame(t)}(e,t))}(e.selected,this.props.selected)&&this.setState({inputValue:null})},t.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout()},t.prototype.render=function(){var e=this.renderCalendar();return this.props.inline&&!this.props.withPortal?e:this.props.withPortal?o.a.createElement("div",null,this.props.inline?null:o.a.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),this.state.open||this.props.inline?o.a.createElement("div",{className:"react-datepicker__portal"},e):null):o.a.createElement(Me,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),popperModifiers:this.props.popperModifiers,targetComponent:o.a.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps})},t}(o.a.Component);Ie.propTypes={adjustDateOnChange:a.a.bool,allowSameDay:a.a.bool,autoComplete:a.a.string,autoFocus:a.a.bool,calendarClassName:a.a.string,calendarContainer:a.a.func,children:a.a.node,className:a.a.string,customInput:a.a.element,customInputRef:a.a.string,dateFormat:a.a.oneOfType([a.a.string,a.a.array]),dateFormatCalendar:a.a.string,dayClassName:a.a.func,disabled:a.a.bool,disabledKeyboardNavigation:a.a.bool,dropdownMode:a.a.oneOf(["scroll","select"]).isRequired,endDate:a.a.object,excludeDates:a.a.array,filterDate:a.a.func,fixedHeight:a.a.bool,formatWeekNumber:a.a.func,highlightDates:a.a.array,id:a.a.string,includeDates:a.a.array,includeTimes:a.a.array,injectTimes:a.a.array,inline:a.a.bool,isClearable:a.a.bool,locale:a.a.string,maxDate:a.a.object,minDate:a.a.object,monthsShown:a.a.number,name:a.a.string,onBlur:a.a.func,onChange:a.a.func.isRequired,onSelect:a.a.func,onWeekSelect:a.a.func,onClickOutside:a.a.func,onChangeRaw:a.a.func,onFocus:a.a.func,onInputClick:a.a.func,onKeyDown:a.a.func,onMonthChange:a.a.func,onYearChange:a.a.func,onInputError:a.a.func,open:a.a.bool,openToDate:a.a.object,peekNextMonth:a.a.bool,placeholderText:a.a.string,popperContainer:a.a.func,popperClassName:a.a.string,popperModifiers:a.a.object,popperPlacement:a.a.oneOf(je),popperProps:a.a.object,preventOpenOnFocus:a.a.bool,readOnly:a.a.bool,required:a.a.bool,scrollableYearDropdown:a.a.bool,scrollableMonthYearDropdown:a.a.bool,selected:a.a.object,selectsEnd:a.a.bool,selectsStart:a.a.bool,showMonthDropdown:a.a.bool,showMonthYearDropdown:a.a.bool,showWeekNumbers:a.a.bool,showYearDropdown:a.a.bool,forceShowMonthNavigation:a.a.bool,showDisabledMonthNavigation:a.a.bool,startDate:a.a.object,startOpen:a.a.bool,tabIndex:a.a.number,timeCaption:a.a.string,title:a.a.string,todayButton:a.a.node,useWeekdaysShort:a.a.bool,formatWeekDay:a.a.func,utcOffset:a.a.oneOfType([a.a.number,a.a.string]),value:a.a.string,weekLabel:a.a.string,withPortal:a.a.bool,yearDropdownItemNumber:a.a.number,shouldCloseOnSelect:a.a.bool,showTimeSelect:a.a.bool,showTimeSelectOnly:a.a.bool,timeFormat:a.a.string,timeIntervals:a.a.number,minTime:a.a.object,maxTime:a.a.object,excludeTimes:a.a.array,useShortMonthInDropdown:a.a.bool,clearButtonTitle:a.a.string,previousMonthButtonLabel:a.a.string,nextMonthButtonLabel:a.a.string,renderCustomHeader:a.a.func,renderDayContents:a.a.func};var Ne="input",Re="navigate";t.default=Ie},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(25));n.n(o);function i(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var a=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}};var s,u,l=(void 0===s&&(s=0),function(){return++s}),c={},f={},d=["touchstart","touchmove"],p="ignore-react-onclickoutside";function h(e,t){var n=null;return-1!==d.indexOf(t)&&u&&(n={passive:!e.props.preventDefault}),n}t.a=function(e,t){var n,s,d=e.displayName||e.name||"Component";return s=n=function(n){var s,p;function v(e){var t;return(t=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof t.__clickOutsideHandlerProp){var n=t.getInstance();if("function"!=typeof n.props.handleClickOutside){if("function"!=typeof n.handleClickOutside)throw new Error("WrappedComponent: "+d+" lacks a handleClickOutside(event) function for processing outside click events.");n.handleClickOutside(e)}else n.props.handleClickOutside(e)}else t.__clickOutsideHandlerProp(e)},t.enableOnClickOutside=function(){if("undefined"!=typeof document&&!f[t._uid]){void 0===u&&(u=a()),f[t._uid]=!0;var e=t.props.eventTypes;e.forEach||(e=[e]),c[t._uid]=function(e){var n;null!==t.componentNode&&(t.props.preventDefault&&e.preventDefault(),t.props.stopPropagation&&e.stopPropagation(),t.props.excludeScrollbar&&(n=e,document.documentElement.clientWidth<=n.clientX||document.documentElement.clientHeight<=n.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(i(e,t,n))return!0;e=e.parentNode}return e}(e.target,t.componentNode,t.props.outsideClickIgnoreClass)===document&&t.__outsideClickHandler(e))},e.forEach(function(e){document.addEventListener(e,c[t._uid],h(t,e))})}},t.disableOnClickOutside=function(){delete f[t._uid];var e=c[t._uid];if(e&&"undefined"!=typeof document){var n=t.props.eventTypes;n.forEach||(n=[n]),n.forEach(function(n){return document.removeEventListener(n,e,h(t,n))}),delete c[t._uid]}},t.getRef=function(e){return t.instanceRef=e},t._uid=l(),t}p=n,(s=v).prototype=Object.create(p.prototype),s.prototype.constructor=s,s.__proto__=p;var m=v.prototype;return m.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},m.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+d+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=Object(o.findDOMNode)(this.getInstance()),this.props.disableOnClickOutside||this.enableOnClickOutside()}},m.componentDidUpdate=function(){this.componentNode=Object(o.findDOMNode)(this.getInstance())},m.componentWillUnmount=function(){this.disableOnClickOutside()},m.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(e,n)},v}(r.Component),n.displayName="OnClickOutside("+d+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:p,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},s}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1357))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{var t=e?(0,i.set)(e.format(l)):(0,i.unset)();this.props.onChange(i.default.from([t]))}),u(this,"setBaseInput",e=>{this.baseDateTimeInputRef=e})}focus(){this.baseDateTimeInputRef&&this.baseDateTimeInputRef.focus()}render(){var e=this.props,t=e.value,n=e.markers,i=e.type,s=e.readOnly,u=e.level,l=i.title,f=i.description,d=t?(0,r.default)(t):null,p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{dateFormat:e.dateFormat||c,calendarTodayLabel:e.calendarTodayLabel||"Today"}}(i.options);return o.default.createElement(a.default,{dateOnly:!0,ref:this.setBaseInput,value:d,readOnly:s,level:u,title:l,description:f,placeholder:i.placeholder,markers:n,dateFormat:p.dateFormat,todayLabel:p.calendarTodayLabel,onChange:this.handleChange})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(19)),o=l(n(0)),i=l(n(72)),a=l(n(33)),s=n(491),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(10));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class extends o.default.Component{constructor(){super(...arguments),c(this,"_input",void 0),c(this,"handleChange",e=>{var t=e.currentTarget.value;this.props.onChange(u.default.from(t?(0,u.set)(t):(0,u.unset)()))}),c(this,"setInput",e=>{this._input=e})}focus(){this._input&&this._input.focus()}render(){var e=this.props,t=e.value,n=e.markers,u=e.type,l=e.readOnly,c=e.level,f=e.onFocus,d=n.filter(e=>"validation"===e.type).filter(e=>"error"===e.level),p=(0,s.getValidationRule)(u,"uri"),h=p&&(0,r.default)(p,"constraint.options.allowRelative")?"text":"url";return o.default.createElement(a.default,{markers:n,level:c,label:u.title,description:u.description},o.default.createElement(i.default,{customValidity:d&&d.length>0?d[0].item.message:"",type:h,value:t,readOnly:l,placeholder:u.placeholder,onChange:this.handleChange,onFocus:f,ref:this.setInput}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=y(n(19)),a=y(n(1)),s=y(n(0)),u=y(n(1362)),l=y(n(8)),c=y(n(33)),f=y(n(72)),d=y(n(283)),p=n(10),h=y(n(518)),v=y(n(519)),m=y(n(1364));function y(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){var n={truncate:t.options&&t.options.maxLength||200,symbols:!0};return e?(0,u.default)(e,n):""}var _={inputText:void 0,loading:!1},w=(0,v.default)((0,h.default)((o=r=class extends s.default.Component{constructor(){super(...arguments),g(this,"state",_),g(this,"setTextInput",e=>{this._textInput=e}),g(this,"handleChange",e=>{this.updateCurrent(e.target.value)}),g(this,"handleFocusCurrent",e=>{this.props.onFocus(["current"])}),g(this,"handleGenerateSlug",()=>{var e=this.props.type;if((0,i.default)(e,"options.source")){var t=this.getNewFromSource();this.setState({loading:!0}),this.slugify(t||"").then(e=>this.updateCurrent(e)).catch(e=>{console.error('An error occured while slugifying "'.concat(t,'":\n').concat(e.message,"\n").concat(e.stack))}).then(()=>this._isMounted&&this.setState({loading:!1}))}else console.error('Source is missing. Check source on type "'.concat(e.name,'" in schema'))}),g(this,"getNewFromSource",()=>{var e=this.props,t=e.getValuePath,n=e.type,r=e.document,o=t().slice(0,-1),a=(0,i.default)(n,"options.source");return"function"==typeof a?a(r,{parentPath:o}):(0,i.default)(r,a)})}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}updateCurrent(e){var t=this.props,n=t.onChange,r=t.type;n(e?p.PatchEvent.from((0,p.setIfMissing)({_type:r.name}),(0,p.set)(e,["current"])):p.PatchEvent.from((0,p.unset)(["current"])))}slugify(e){if(!e)return Promise.resolve(e);var t=this.props.type,n=(0,i.default)(t,"options.slugify",b);return Promise.resolve(n(e,t))}componentWillReceiveProps(e){var t=e.document;this.props.document._id!==t._id&&this.setState(_)}focus(){this._textInput&&this._textInput.focus()}render(){var e=this.props,t=e.value,n=e.type,r=e.level,o=e.markers,i=e.readOnly,a=this.state,u=a.loading,d=a.inputText,p=n.options&&n.options.source,h={label:n.title,description:n.description,level:r,markers:o},v=o.filter(e=>"validation"===e.type).filter(e=>"error"===e.level),y=Boolean(this.getNewFromSource());return s.default.createElement(c.default,h,s.default.createElement("div",{className:m.default.wrapper},s.default.createElement("div",{className:m.default.input},s.default.createElement(f.default,{ref:this.setTextInput,customValidity:v.length>0?v[0].item.message:"",disabled:u,placeholder:n.placeholder,onChange:this.handleChange,onFocus:this.handleFocusCurrent,value:"string"==typeof d?d:t.current,readOnly:i})),p&&s.default.createElement(l.default,{className:m.default.button,inverted:!0,disabled:i||u||!y,loading:u,onClick:this.handleGenerateSlug},"Generate")))}},g(r,"propTypes",{type:d.default.type.isRequired,level:a.default.number.isRequired,value:a.default.shape({current:a.default.string}),readOnly:a.default.bool,document:a.default.shape({_id:a.default.string}).isRequired,onChange:a.default.func,onFocus:a.default.func.isRequired,getValuePath:a.default.func.isRequired,markers:a.default.arrayOf(a.default.shape({type:a.default.string.isRequired}))}),g(r,"defaultProps",{value:{current:void 0},readOnly:!1,onChange(){},markers:[]}),o)));t.default=w},function(e,t,n){e.exports=n(1363)},function(e,t,n){var r;!function(n){"use strict";var o={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"Ae","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"Oe","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"Ue","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"ue","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","ا":"a","أ":"a","إ":"i","آ":"aa","ؤ":"u","ئ":"e","ء":"a","ب":"b","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ي":"y","ى":"a","ة":"h","ﻻ":"la","ﻷ":"laa","ﻹ":"lai","ﻵ":"laa","گ":"g","چ":"ch","پ":"p","ژ":"zh","ک":"k","ی":"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","က":"k","ခ":"kh","ဂ":"g","ဃ":"ga","င":"ng","စ":"s","ဆ":"sa","ဇ":"z","စျ":"za","ည":"ny","ဋ":"t","ဌ":"ta","ဍ":"d","ဎ":"da","ဏ":"na","တ":"t","ထ":"ta","ဒ":"d","ဓ":"da","န":"n","ပ":"p","ဖ":"pa","ဗ":"b","ဘ":"ba","မ":"m","ယ":"y","ရ":"ya","လ":"l","ဝ":"w","သ":"th","ဟ":"h","ဠ":"la","အ":"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h","ဧ":"e","၏":"-e","ဣ":"i","ဤ":"-i","ဉ":"u","ဦ":"-u","ဩ":"aw","သြော":"aw","ဪ":"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ހ":"h","ށ":"sh","ނ":"n","ރ":"r","ބ":"b","ޅ":"lh","ކ":"k","އ":"a","ވ":"v","މ":"m","ފ":"f","ދ":"dh","ތ":"th","ލ":"l","ގ":"g","ޏ":"gn","ސ":"s","ޑ":"d","ޒ":"z","ޓ":"t","ޔ":"y","ޕ":"p","ޖ":"j","ޗ":"ch","ޘ":"tt","ޙ":"hh","ޚ":"kh","ޛ":"th","ޜ":"z","ޝ":"sh","ޞ":"s","ޟ":"d","ޠ":"t","ޡ":"z","ޢ":"a","ޣ":"gh","ޤ":"q","ޥ":"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"p","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","α":"a","β":"v","γ":"g","δ":"d","ε":"e","ζ":"z","η":"i","θ":"th","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"ks","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"o","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"i","ώ":"o","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"I","Θ":"TH","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"KS","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"O","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"I","Ώ":"O","Ϊ":"I","Ϋ":"Y","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","Ā":"A","Ē":"E","Ģ":"G","Ī":"I","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"U","Ќ":"Kj","ќ":"kj","Љ":"Lj","љ":"lj","Њ":"Nj","њ":"nj","Тс":"Ts","тс":"ts","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","ă":"a","Ă":"A","ș":"s","Ș":"S","ț":"t","Ț":"T","ţ":"t","Ţ":"T","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"kh","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"I","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"Kh","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","ђ":"dj","ј":"j","ћ":"c","џ":"dz","Ђ":"Dj","Ј":"j","Ћ":"C","Џ":"Dz","ľ":"l","ĺ":"l","ŕ":"r","Ľ":"L","Ĺ":"L","Ŕ":"R","ş":"s","Ş":"S","ı":"i","İ":"I","ğ":"g","Ğ":"G","ả":"a","Ả":"A","ẳ":"a","Ẳ":"A","ẩ":"a","Ẩ":"A","đ":"d","Đ":"D","ẹ":"e","Ẹ":"E","ẽ":"e","Ẽ":"E","ẻ":"e","Ẻ":"E","ế":"e","Ế":"E","ề":"e","Ề":"E","ệ":"e","Ệ":"E","ễ":"e","Ễ":"E","ể":"e","Ể":"E","ỏ":"o","ọ":"o","Ọ":"o","ố":"o","Ố":"O","ồ":"o","Ồ":"O","ổ":"o","Ổ":"O","ộ":"o","Ộ":"O","ỗ":"o","Ỗ":"O","ơ":"o","Ơ":"O","ớ":"o","Ớ":"O","ờ":"o","Ờ":"O","ợ":"o","Ợ":"O","ỡ":"o","Ỡ":"O","Ở":"o","ở":"o","ị":"i","Ị":"I","ĩ":"i","Ĩ":"I","ỉ":"i","Ỉ":"i","ủ":"u","Ủ":"U","ụ":"u","Ụ":"U","ũ":"u","Ũ":"U","ư":"u","Ư":"U","ứ":"u","Ứ":"U","ừ":"u","Ừ":"U","ự":"u","Ự":"U","ữ":"u","Ữ":"U","ử":"u","Ử":"ư","ỷ":"y","Ỷ":"y","ỳ":"y","Ỳ":"Y","ỵ":"y","Ỵ":"Y","ỹ":"y","Ỹ":"Y","ạ":"a","Ạ":"A","ấ":"a","Ấ":"A","ầ":"a","Ầ":"A","ậ":"a","Ậ":"A","ẫ":"a","Ẫ":"A","ắ":"a","Ắ":"A","ằ":"a","Ằ":"A","ặ":"a","Ặ":"A","ẵ":"a","Ẵ":"A","“":'"',"”":'"',"‘":"'","’":"'","∂":"d","ƒ":"f","™":"(TM)","©":"(C)","œ":"oe","Œ":"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o","º":"o","ª":"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY","元":"CNY","円":"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN","лв":"BGN","៛":"KHR","₡":"CRC","₸":"KZT","ден":"MKD","zł":"PLN","₽":"RUB","₾":"GEL"},i=["်","ް"],a={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},s={en:{},az:{"ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U"},cs:{"č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z"},fi:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},hu:{"ä":"a","Ä":"A","ö":"o","Ö":"O","ü":"u","Ü":"U","ű":"u","Ű":"U"},lt:{"ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U"},lv:{"ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z"},pl:{"ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z"},sk:{"ä":"a","Ä":"A"},sr:{"љ":"lj","њ":"nj","Љ":"Lj","Њ":"Nj","đ":"dj","Đ":"Dj"},tr:{"Ü":"U","Ö":"O","ü":"u","ö":"o"}},u={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),c=[";","?",":","@","&","=","+","$",","].join(""),f=[".","!","~","*","'","(",")"].join(""),d=function(e,t){var n,r,d,p,m,y,g,b,_,w,O,k,E,S,x="-",C="",P="",j=!0,M={},T="";if("string"!=typeof e)return"";if("string"==typeof t&&(x=t),g=u.en,b=s.en,"object"==typeof t)for(O in n=t.maintainCase||!1,M=t.custom&&"object"==typeof t.custom?t.custom:M,d=+t.truncate>1&&t.truncate||!1,p=t.uric||!1,m=t.uricNoSlash||!1,y=t.mark||!1,j=!1!==t.symbols&&!1!==t.lang,x=t.separator||x,p&&(T+=l),m&&(T+=c),y&&(T+=f),g=t.lang&&u[t.lang]&&j?u[t.lang]:j?u.en:{},b=t.lang&&s[t.lang]?s[t.lang]:!1===t.lang||!0===t.lang?{}:s.en,t.titleCase&&"number"==typeof t.titleCase.length&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){M[e+""]=e+""}),r=!0):r=!!t.titleCase,t.custom&&"number"==typeof t.custom.length&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){M[e+""]=e+""}),Object.keys(M).forEach(function(t){var n;n=t.length>1?new RegExp("\\b"+h(t)+"\\b","gi"):new RegExp(h(t),"gi"),e=e.replace(n,M[t])}),M)T+=O;for(T=h(T+=x),E=!1,S=!1,w=0,k=(e=e.replace(/(^\s+|\s+$)/g,"")).length;w=0?(P+=O,O=""):!0===S?(O=a[P]+o[O],P=""):O=E&&o[O].match(/[A-Za-z0-9]/)?" "+o[O]:o[O],E=!1,S=!1):O in a?(P+=O,O="",w===k-1&&(O=a[P]),S=!0):!g[O]||p&&-1!==l.indexOf(O)||m&&-1!==c.indexOf(O)?(!0===S?(O=a[P]+O,P="",S=!1):E&&(/[A-Za-z0-9]/.test(O)||C.substr(-1).match(/A-Za-z0-9]/))&&(O=" "+O),E=!1):(O=E||C.substr(-1).match(/[A-Za-z0-9]/)?x+g[O]:g[O],O+=void 0!==e[w+1]&&e[w+1].match(/[A-Za-z0-9]/)?x:"",E=!0),C+=O.replace(new RegExp("[^\\w\\s"+T+"_-]","g"),x);return r&&(C=C.replace(/(\w)(\S*)/g,function(e,t,n){var r=t.toUpperCase()+(null!==n?n:"");return Object.keys(M).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),C=C.replace(/\s+/g,x).replace(new RegExp("\\"+x+"+","g"),x).replace(new RegExp("(^\\"+x+"+|\\"+x+"+$)","g"),""),d&&C.length>d&&(_=C.charAt(d)===x,C=C.slice(0,d),_||(C=C.slice(0,C.lastIndexOf(x)))),n||r||(C=C.toLowerCase()),C},p=function(e){return function(t){return d(t,e)}},h=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},v=function(e,t){for(var n in t)if(t[n]===e)return!0};void 0!==e&&e.exports?(e.exports=d,e.exports.createSlug=p):void 0===(r=function(){return d}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports={wrapper:"SlugInput_wrapper__RCkE",input:"SlugInput_input_2YC_h",button:"SlugInput_button_1Nojo"}},function(e,t){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=13)}([function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports={version:"2.5.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(32)("wks"),o=n(9),i=n(0).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(0),o=n(2),i=n(8),a=n(22),s=n(10),u=function(e,t,n){var l,c,f,d,p=e&u.F,h=e&u.G,v=e&u.S,m=e&u.P,y=e&u.B,g=h?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?o:o[t]||(o[t]={}),_=b.prototype||(b.prototype={});for(l in h&&(n=t),n)f=((c=!p&&g&&void 0!==g[l])?g:n)[l],d=y&&c?s(f,r):m&&"function"==typeof f?s(Function.call,f):f,g&&a(g,l,f,e&u.U),b[l]!=f&&i(b,l,d),m&&_[l]!=f&&(_[l]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(16),o=n(21);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(24);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(28),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim();return"."===t.charAt(0)?r.toLowerCase().endsWith(t.toLowerCase()):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t})}return!0},n(14),n(34)},function(e,t,n){n(15),e.exports=n(2).Array.some},function(e,t,n){"use strict";var r=n(7),o=n(25)(3);r(r.P+r.F*!n(33)([].some,!0),"Array",{some:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(17),o=n(18),i=n(20),a=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(1);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(19)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(1),o=n(0).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(1);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(0),o=n(8),i=n(23),a=n(9)("src"),s=Function.toString,u=(""+s).split("toString");n(2).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(10),o=n(26),i=n(27),a=n(12),s=n(29);e.exports=function(e,t){var n=1==e,u=2==e,l=3==e,c=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var v,m,y=i(t),g=o(y),b=r(s,h,3),_=a(g.length),w=0,O=n?p(t,_):u?p(t,0):void 0;_>w;w++)if((d||w in g)&&(m=b(v=g[w],w,y),e))if(n)O[w]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:O.push(v)}else if(c)return!1;return f?-1:l||c?c:O}}},function(e,t,n){var r=n(5);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(30);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(1),o=n(31),i=n(6)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(5);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){n(35),e.exports=n(2).String.endsWith},function(e,t,n){"use strict";var r=n(7),o=n(12),i=n(36),a="".endsWith;r(r.P+r.F*n(38)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),s=void 0===n?r:Math.min(o(n),r),u=String(e);return a?a.call(t,u,s):t.slice(s-u.length,s)===u}})},function(e,t,n){var r=n(37),o=n(11);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var r=n(1),o=n(5),i=n(6)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(6)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}}])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1367)),o=a(n(1374)),i=n(89);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=[{type:"image",accepts:"image/*",upload:(e,t,n)=>(0,r.default)(e,n)},{type:"string",accepts:"text/*",upload:(e,t,n)=>(0,o.default)(e,n).map(e=>({patches:[(0,i.set)(e)]}))},{type:"file",accepts:"",upload:(e,t,n)=>(0,o.default)(e,n)}].map((e,t)=>(function(e){for(var t=1;t"download"!==e.stage),(0,o.map)(e=>(function(e){for(var t=1;t"complete"===e.type?(0,c.createUploadEvent)([(0,u.set)({_type:"reference",_ref:e.asset._id},["asset"]),(0,u.set)(100,[l.UPLOAD_STATUS_KEY,"progress"])]):(0,c.createUploadEvent)([(0,u.set)(e.percent,[l.UPLOAD_STATUS_KEY,"progress"])]))),d=(0,i.default)(e).pipe((0,o.mergeMap)(t=>(0,a.default)(e,t.orientation||s.DEFAULT_ORIENTATION)),(0,o.catchError)(t=>(console.warn('Image preprocessing failed for "%s" with the error: %s',e.name,t.message),(0,r.of)(null))),(0,o.filter)(Boolean),(0,o.map)(e=>(0,c.createUploadEvent)([(0,u.set)(e,[l.UPLOAD_STATUS_KEY,"previewImage"])])));return(0,r.of)((0,c.createInitialUploadEvent)(e)).pipe((0,o.concat)((0,r.from)(n).pipe((0,o.merge)(d))),(0,o.concat)((0,r.of)(c.CLEANUP_EVENT)))};var r=n(6),o=n(4),i=d(n(1368)),a=d(n(1371)),s=n(521),u=n(89),l=n(302),c=n(522),f=n(200);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.from)(function(e,t){return new o.Observable(n=>{var r=new window.FileReader;return r.onerror=(e=>n.error(e)),r.onload=(()=>{n.next(r.result),n.complete()}),r.readAsArrayBuffer(void 0===t?e:e.slice(0,t)),()=>r.abort()})}(e,u)).pipe((0,i.map)(e=>(0,a.default)(e)),(0,i.catchError)(e=>(s.test(e.message)||console.warn("Exif read failed, continuing anyway: ".concat(e.message)),(0,o.of)({}))))};var r,o=n(6),i=n(4),a=(r=n(1369))&&r.__esModule?r:{default:r};var s=/(invalid image format)|(No exif data)/i,u=128e3},function(e,t,n){var r=n(1370).ExifReader;e.exports=function(e){var t=new r;t.load(e);var n,o=t.getAllTags(),i={};for(var a in o)i[(n=a,n.replace(/([A-Z][a-z])|([a-z][A-Z])|([A-Z])/g,function(e){return 1==e.length?e.toLowerCase():e[0]==e[0].toUpperCase()?" "+e.toLowerCase():e[0]+" "+e[1].toLowerCase()}).replace(/^\s+|\s+$/g,""))]=o[a].description;return i}},function(e,t){(function(){(null!=t?t:this).ExifReader=function(){function e(){var e=this;this._getTagValueAt={1:function(t){return e._getByteAt(t)},2:function(t){return e._getAsciiAt(t)},3:function(t){return e._getShortAt(t)},4:function(t){return e._getLongAt(t)},5:function(t){return e._getRationalAt(t)},7:function(t){return e._getUndefinedAt(t)},9:function(t){return e._getSlongAt(t)},10:function(t){return e._getSrationalAt(t)}},this._tiffHeaderOffset=0}return e.prototype._MIN_DATA_BUFFER_LENGTH=2,e.prototype._JPEG_ID_SIZE=2,e.prototype._JPEG_ID=65496,e.prototype._APP_MARKER_SIZE=2,e.prototype._APP0_MARKER=65504,e.prototype._APP1_MARKER=65505,e.prototype._APP15_MARKER=65519,e.prototype._APP_ID_OFFSET=4,e.prototype._BYTES_Exif=1165519206,e.prototype._TIFF_HEADER_OFFSET=10,e.prototype._BYTE_ORDER_BIG_ENDIAN=18761,e.prototype._BYTE_ORDER_LITTLE_ENDIAN=19789,e.prototype.load=function(e){return this.loadView(new DataView(e))},e.prototype.loadView=function(e){return this._dataView=e,this._tags={},this._checkImageHeader(),this._readTags()},e.prototype._checkImageHeader=function(){var e;if((e=this._dataView).byteLength=this._APP0_MARKER&&n<=this._APP15_MARKER},e.prototype._hasExifData=function(){return 0!==this._tiffHeaderOffset},e.prototype._readTags=function(){return this._setByteOrder(),this._read0thIfd(),this._readExifIfd(),this._readGpsIfd(),this._readInteroperabilityIfd()},e.prototype._setByteOrder=function(){if(this._dataView.getUint16(this._tiffHeaderOffset)===this._BYTE_ORDER_BIG_ENDIAN)return this._littleEndian=!0;if(this._dataView.getUint16(this._tiffHeaderOffset)===this._BYTE_ORDER_LITTLE_ENDIAN)return this._littleEndian=!1;throw new Error("Illegal byte order value. Faulty image.")},e.prototype._read0thIfd=function(){var e;return e=this._getIfdOffset(),this._readIfd("0th",e)},e.prototype._getIfdOffset=function(){return this._tiffHeaderOffset+this._getLongAt(this._tiffHeaderOffset+4)},e.prototype._readExifIfd=function(){var e;if(null!=this._tags["Exif IFD Pointer"])return e=this._tiffHeaderOffset+this._tags["Exif IFD Pointer"].value,this._readIfd("exif",e)},e.prototype._readGpsIfd=function(){var e;if(null!=this._tags["GPS Info IFD Pointer"])return e=this._tiffHeaderOffset+this._tags["GPS Info IFD Pointer"].value,this._readIfd("gps",e)},e.prototype._readInteroperabilityIfd=function(){var e;if(null!=this._tags["Interoperability IFD Pointer"])return e=this._tiffHeaderOffset+this._tags["Interoperability IFD Pointer"].value,this._readIfd("interoperability",e)},e.prototype._readIfd=function(e,t){var n,r,o,i;for(n=this._getShortAt(t),t+=2,i=[],o=0;0<=n?on;0<=n?++o:--o)r=this._readTag(e,t),this._tags[r.name]={value:r.value,description:r.description},i.push(t+=12);return i},e.prototype._readTag=function(e,t){var n,r,o,i,a,s,u;return n=this._getShortAt(t),a=this._getShortAt(t+2),r=this._getLongAt(t+4),this._typeSizes[a]*r<=4?s=this._getTagValue(t+8,a,r):(u=this._getLongAt(t+8),s=this._getTagValue(this._tiffHeaderOffset+u,a,r)),a===this._tagTypes.ASCII&&(s=this._splitNullSeparatedAsciiString(s)),null!=this._tagNames[e][n]?(null!=this._tagNames[e][n].name&&null!=this._tagNames[e][n].description?(i=this._tagNames[e][n].name,o=this._tagNames[e][n].description(s)):(i=this._tagNames[e][n],o=s instanceof Array?s.join(", "):s),{name:i,value:s,description:o}):{name:"undefined-"+n,value:s,description:s}},e.prototype._getTagValue=function(e,t,n){var r,o;return 1===(o=function(){var o,i;for(i=[],o=0;0<=n?on;0<=n?++o:--o)r=this._getTagValueAt[t](e),e+=this._typeSizes[t],i.push(r);return i}.call(this)).length?o=o[0]:t===this._tagTypes.ASCII&&(o=this._getAsciiValue(o)),o},e.prototype._getAsciiValue=function(e){var t;return function(){var n,r,o;for(o=[],n=0,r=e.length;nn;0<=n?++t:--t)r.push("0");return r}()+e},e.map(t).join(":")}},8:"GPSSatellites",9:{name:"GPSStatus",description:function(e){switch(e.join("")){case"A":return"Measurement in progress";case"V":return"Measurement Interoperability";default:return"Unknown"}}},10:{name:"GPSMeasureMode",description:function(e){switch(e.join("")){case"2":return"2-dimensional measurement";case"3":return"3-dimensional measurement";default:return"Unknown"}}},11:"GPSDOP",12:{name:"GPSSpeedRef",description:function(e){switch(e.join("")){case"K":return"Kilometers per hour";case"M":return"Miles per hour";case"N":return"Knots";default:return"Unknown"}}},13:"GPSSpeed",14:{name:"GPSTrackRef",description:function(e){switch(e.join("")){case"T":return"True direction";case"M":return"Magnetic direction";default:return"Unknown"}}},15:"GPSTrack",16:{name:"GPSImgDirectionRef",description:function(e){switch(e.join("")){case"T":return"True direction";case"M":return"Magnetic direction";default:return"Unknown"}}},17:"GPSImgDirection",18:"GPSMapDatum",19:{name:"GPSDestLatitudeRef",description:function(e){switch(e.join("")){case"N":return"North latitude";case"S":return"South latitude";default:return"Unknown"}}},20:{name:"GPSDestLatitude",description:function(e){return e[0]+e[1]/60+e[2]/3600}},21:{name:"GPSDestLongitudeRef",description:function(e){switch(e.join("")){case"E":return"East longitude";case"W":return"West longitude";default:return"Unknown"}}},22:{name:"GPSDestLongitude",description:function(e){return e[0]+e[1]/60+e[2]/3600}},23:{name:"GPSDestBearingRef",description:function(e){switch(e.join("")){case"T":return"True direction";case"M":return"Magnetic direction";default:return"Unknown"}}},24:"GPSDestBearing",25:{name:"GPSDestDistanceRef",description:function(e){switch(e.join("")){case"K":return"Kilometers";case"M":return"Miles";case"N":return"Knots";default:return"Unknown"}}},26:"GPSDestDistance",27:{name:"GPSProcessingMethod",description:function(e){switch(e.slice(0,8).map(function(e){return String.fromCharCode(e)}).join("")){case"ASCII\0\0\0":return e.slice(8,e.length).map(function(e){return String.fromCharCode(e)}).join("");case"JIS\0\0\0\0\0":return"[JIS encoded text]";case"UNICODE\0":return"[Unicode encoded text]";case"\0\0\0\0\0\0\0\0":return"[Undefined encoding]"}}},28:{name:"GPSAreaInformation",description:function(e){switch(e.slice(0,8).map(function(e){return String.fromCharCode(e)}).join("")){case"ASCII\0\0\0":return e.slice(8,e.length).map(function(e){return String.fromCharCode(e)}).join("");case"JIS\0\0\0\0\0":return"[JIS encoded text]";case"UNICODE\0":return"[Unicode encoded text]";case"\0\0\0\0\0\0\0\0":return"[Undefined encoding]"}}},29:"GPSDateStamp",30:{name:"GPSDifferential",description:function(e){switch(e){case 0:return"Measurement without differential correction";case 1:return"Differential correction applied";default:return"Unknown"}}}},interoperability:{1:"InteroperabilityIndex",2:"UnknownInteroperabilityTag0x0002",4097:"UnknownInteroperabilityTag0x1001",4098:"UnknownInteroperabilityTag0x1002"}},e.prototype.getTagValue=function(e){return null!=this._tags[e]?this._tags[e].value:void 0},e.prototype.getTagDescription=function(e){return null!=this._tags[e]?this._tags[e].description:void 0},e.prototype.getAllTags=function(){return this._tags},e}()}).call(this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(n=window.URL.createObjectURL(e),new o.Observable(e=>{var t=new window.Image;return t.onerror=(()=>{e.error(new Error('Could not load image from url "'.concat(n,'". Image may be of an unsupported format')))}),t.onload=(()=>{e.next(t),e.complete()}),t.src=n,()=>{}})).pipe((0,i.mergeMap)(e=>(0,a.default)(e,t)));var n};var r,o=n(6),i=n(4),a=(r=n(521))&&r.__esModule?r:{default:r}},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withMaxConcurrency=function(e){var t=s(arguments.length>1&&void 0!==arguments[1]?arguments[1]:i);return function(){return(0,o.from)(t(e(...arguments)))}},t.createThrottler=s;var r=n(4),o=n(6),i=4;function a(e,t){var n=e.indexOf(t);return n>-1&&e.splice(n,1),e}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=[],n=[],s=new o.Subject;return function i(u){return new o.Observable(o=>{if(t.length>=e)return function(e){return n.push(e),s.asObservable().pipe((0,r.first)(t=>t===e))}(u).pipe((0,r.mergeMap)(i)).subscribe(o);var l=u.subscribe(o);return t.push(l),()=>{a(t,l),a(n,u),l.unsubscribe(),function(){for(;n.length>0&&t.length"complete"===e.type?(0,u.createUploadEvent)([(0,a.set)({_type:"reference",_ref:e.asset._id},["asset"]),(0,a.set)(100,[s.UPLOAD_STATUS_KEY,"progress"])]):(0,u.createUploadEvent)([(0,a.set)(e.percent,[s.UPLOAD_STATUS_KEY,"progress"])])));return(0,r.of)((0,u.createInitialUploadEvent)(e)).pipe((0,o.concat)(n),(0,o.concat)((0,r.of)(u.CLEANUP_EVENT)))};var r=n(6),o=n(4),i=n(200),a=n(89),s=n(302),u=n(522)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=n(523),i=n(200),a=s(n(301));function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t{this._input=e}),(t="setInput")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}focus(){this._input&&this._input.focus()}render(){return r.default.createElement(o.ImageInput,u({},this.props,{resolveUploader:a.default,materialize:i.materializeReference,ref:this.setInput}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),o=s(n(0)),i=n(61),a=s(n(282));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends o.default.Component{render(){var e=this.props,t=e.schema,n=e.value,r=e.type,s=e.onChange,u=e.resolveInputComponent,l=e.resolvePreviewComponent,c=e.patchChannel;if(!t)throw new TypeError("You must provide a schema to =31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(1379)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(t,n(56))},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*a;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*o;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===l&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return u(e,t,i,"day");if(t>=o)return u(e,t,o,"hour");if(t>=r)return u(e,t,r,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){(function(e,r){var o;!function(i){var a="object"==typeof t&&t,s=("object"==typeof e&&e&&e.exports,"object"==typeof r&&r);s.global!==s&&s.window;var u=/([\0-\u02FF\u0370-\u1AAF\u1B00-\u1DBF\u1E00-\u20CF\u2100-\uD7FF\uE000-\uFE1F\uFE30-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])([\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]+)/g,l=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g,c=function(e){for(var t="",n=(e=e.replace(u,function(e,t,n){return c(n)+t}).replace(l,"$2$1")).length;n--;)t+=e.charAt(n);return t},f={version:"0.2.0",reverse:c};void 0===(o=function(){return f}.call(t,n,t,e))||(e.exports=o)}()}).call(t,n(67)(e),n(24))},function(e,t,n){"use strict";var r,o;r=new RegExp("^[^֑-߿יִ-﷽ﹰ-ﻼ]*[A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿]"),o=new RegExp("^[^A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿]*[֑-߿יִ-﷽ﹰ-ﻼ]"),e.exports=function(e){return e=e.toString(),o.test(e)?"rtl":r.test(e)?"ltr":"neutral"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.default)(t);return{object:"value",data:{},document:{key:(0,o.default)(12),object:"document",data:{},nodes:e&&e.length>0?m(e,t,r,n):[]}}};var r=u(n(57)),o=u(n(143)),i=u(n(305)),a=u(n(201)),s=u(n(306));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var d={object:"text",leaves:[{object:"leaf",text:"",marks:[]}]};function p(e){return{object:"mark",type:e}}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.children,a=e._type,u=(e.markDefs,f(e,["children","_type","markDefs"]));e._key||(e._key=(0,o.default)(12));var c={};if(function(e){for(var t in e)if(e.hasOwnProperty(t))return!0;return!1}(u)){var h=(c={data:l({_type:a,_key:e._key},u)}).data.listItem;h&&!t.lists.find(e=>e.value===h)&&delete c.data.listItem;var v=c.data.style;v&&!t.styles.find(e=>e.value===v)&&(c.data.style="normal")}var m=0,y=()=>m++,g=l({object:"block",key:e._key,isVoid:!1,type:"contentBlock"},c,{nodes:i.length>0?i.map(n=>(function(e,t,n,o){if("span"!==e._type){var i="".concat(t._key).concat(o());return e._key=i,{object:"inline",isVoid:!0,key:i,type:e._type,data:{value:e,_key:i},nodes:[d]}}var a,s=e.text,u=e.marks,l=void 0===u?[]:u,c=n.decorators.map(e=>e.value),f=l.filter(e=>c.includes(e)),h=l.filter(e=>-1===f.indexOf(e)&&t.markDefs.map(e=>e._key).includes(e));h.length&&(a={},h.forEach(e=>{var n=t.markDefs.find(t=>t._key===e);a&&n&&(a[n._type]=n)}));var v={object:"leaf",text:s,marks:(0,r.default)(f.concat(h).filter(Boolean)).map(p)};if(!a)return{object:"text",leaves:[v],key:"".concat(t._key).concat(o())};var m="".concat(t._key).concat(o());return{object:"inline",isVoid:!1,type:"span",key:m,data:{_key:m,annotations:a},nodes:[{object:"text",leaves:[v]}]}})(n,e,t,y)):[d]});return n.normalize?(0,s.default)(g):g}function v(e,t,n,r){var a,s;return"block"===(a=e,"object"===(s=(0,i.default)(a))&&"_type"in a&&a._type||s)?h(e,n,r):function(e,t){e._key||(e._key=(0,o.default)(12));var n=t.types.blockObjects.map(e=>e.name).concat("block").includes(e._type)?e._type:"__unknown";return{object:"block",key:e._key,type:n,isVoid:!0,data:{value:e,_key:e._key},nodes:[d]}}(e,n)}function m(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e.map(e=>v(e,0,n,r))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=(0,c.default)(t),p=(0,a.default)(e,"document.nodes");if(!p||0===p.length)return[];return p.map(e=>(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("contentBlock"===e.type){var a=d({},e.data,{_type:"block",markDefs:[]}),u=0,c=()=>u++;return a._key=e.key||(0,s.default)(12),a.style||(a.style=l.BLOCK_DEFAULT_STYLE),a.children=(0,i.default)(e.nodes.map(e=>(function(e,t,n,r){arguments.length>4&&void 0!==arguments[4]&&arguments[4];var a=r.decorators.map(e=>e.value);if("text"===e.object)return e.leaves.map(e=>({_type:"span",_key:"".concat(t._key).concat(n()),text:e.text,marks:(0,o.default)(e.marks.map(e=>e.type).filter(e=>a.includes(e)))}));if("inline"===e.object){var s=e.nodes,u=e.data,l=u.annotations,c=[];return l&&Object.keys(l).forEach(e=>{var n=l[e],r=n._key;n&&r&&(t.markDefs.push(n),c.push(r))}),(0,i.default)(s.map(r=>{if("text"!==r.object)throw new Error("Unexpected non-text child node for inline text: ".concat(r.object));return"span"!==e.type?e.data.value:r.leaves.map(e=>({_type:"span",_key:"".concat(t._key).concat(n()),text:e.text,marks:(0,o.default)(e.marks.map(e=>e.type).filter(e=>a.includes(e)).concat(c))}))}))}throw new Error("Unsupported object ".concat(e.object))})(e,a,c,t,n))),a.markDefs=(0,r.default)(a.markDefs,e=>e._key),a}if(t.types.blockObjects.map(e=>e.name).includes(e.type))return h(e);if("__unknown"===e.type)return e.type=e.data.value._type,h(d({},e,{type:e.data.value._type}));throw new Error("Unknown block type: '".concat(e.type,"'"))})(e,f,n)).filter(Boolean).map(u.default)};var r=f(n(272)),o=f(n(57)),i=f(n(23)),a=f(n(19)),s=f(n(143)),u=f(n(306)),l=n(117),c=f(n(201));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};u(this,"deserialize",e=>{l=[];var t=(0,this.parseHtml)(e),n=Array.from(t.childNodes),i=(0,o.trimWhitespace)((0,o.flattenNestedBlocks)((0,o.ensureRootIsBlocks)(this.deserializeElements(n))));return l.length>0&&i.filter(e=>"block"===e._type).forEach(e=>{e.markDefs=e.markDefs||[],e.markDefs=e.markDefs.concat(l.filter(t=>(0,r.default)(e.children.map(e=>e.marks||[])).includes(t._key)))}),i}),u(this,"deserializeElements",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return e.forEach((e,r)=>{var o=t.deserializeElement(e);switch((0,a.default)(o)){case"array":n=n.concat(o);break;case"object":n.push(o);break;default:throw new Error("Don't know what to do with: ".concat(JSON.stringify(o)))}}),n}),u(this,"deserializeElement",e=>{var n;e.tagName||(e.tagName="");var r=e=>{var t=e;switch("[object NodeList]"==Object.prototype.toString.call(t)&&(t=Array.from(t)),(0,a.default)(t)){case"array":return this.deserializeElements(t);case"object":return this.deserializeElement(t);case"null":case"undefined":return;default:throw new Error('The `next` argument was called with invalid children: "'.concat(t,'".'))}},i=e=>({_type:"__block",block:e}),s=function(s){var u=t.rules[s];if(!u.deserialize)return"continue";var l=u.deserialize(e,r,i),c=(0,a.default)(l);if("array"!=c&&"object"!=c&&"null"!=c&&"undefined"!=c)throw new Error('A rule returned an invalid deserialized representation: "'.concat(n,'".'));if(void 0===l)return"continue";if(null===l)return{v:null};if(n="__decorator"===l._type?t.deserializeDecorator(l):"__annotation"===l._type?t.deserializeAnnotation(l):l,l&&"block"===l._type&&l.listItem)for(var f=e.parentNode.parentNode;"li"===(0,o.tagName)(f);)f=f.parentNode.parentNode,l.level++;return l&&"block"===l._type&&"blockquote"===l.style&&l.children.forEach((e,t)=>{"span"===e._type&&"\r"===e.text&&(e.text="\n\n",0!==t&&t!==l.children.length-1||l.children.splice(t,1))}),"break"};e:for(var u=0;u{var t=e.name,n=e=>"__decorator"===e._type?this.deserializeDecorator(e):("span"===e._type?(e.marks=e.marks||[],e.text.trim()&&e.marks.unshift(t)):e.children&&(e.children=e.children.map(n)),e);return e.children.reduce((e,t)=>{var r=n(t);return Array.isArray(r)?e.concat(r):(e.push(r),e)},[])}),u(this,"deserializeAnnotation",e=>{var t=e.markDef;l.push(t);var n=e=>"__annotation"===e._type?this.deserializeAnnotation(e):("span"===e._type?(e.marks=e.marks||[],e.text.trim()&&e.marks.unshift(t._key)):e.children&&(e.children=e.children.map(n)),e);return e.children.reduce((e,t)=>{var r=n(t);return Array.isArray(r)?e.concat(r):(e.push(r),e)},[])});var s=n.rules,c=void 0===s?[]:s;if(!e)throw new Error("Parameter 'blockContentType' is required");var f=(0,i.default)(e,(0,o.createRuleOptions)(e));this.rules=[...c,...f];var d=n.parseHtml||(0,o.defaultParseHtml)();this.parseHtml=(e=>(0,o.preprocess)(e,d).body)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(203);t.default=((e,t)=>{for(var n=t.evaluate(["/html/text()","/html/head/text()","/html/body/text()","//comment()","//style","//xml","//script","//meta","//link"].join("|"),t,null,r._XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),o=n.snapshotLength-1;o>=0;o--){var i=n.snapshotItem(o);i.parentNode.removeChild(i)}return t})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(203);t.default=((e,t)=>{if(!function(e){return/(class="?Mso|style=(?:"|')[^"]*?\bmso-|w:WordDocument||<\/font>)/.test(e)}(e))return t;for(var n={MsoTocHeading:["h3"],MsoTitle:["h1"],MsoToaHeading:["h2"],MsoSubtitle:["h5"],MsoSubtleEmphasis:["span","em"],MsoIntenseEmphasis:["span","em","strong"]},o=t.evaluate(["//o:p","//span[@style='mso-list:Ignore']","//span[@style='mso-list: Ignore']"].join("|"),t,e=>"o"===e?"urn:schemas-microsoft-com:office:office":null,r._XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),i=o.snapshotLength-1;i>=0;i--){var a=o.snapshotItem(i);a.parentNode.removeChild(a)}for(var s=t.evaluate(["//p[@class='MsoTocHeading']","//p[@class='MsoTitle']","//p[@class='MsoToaHeading']","//p[@class='MsoSubtitle']","//span[@class='MsoSubtleEmphasis']","//span[@class='MsoIntenseEmphasis']"].join("|"),t,null,r._XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),u=function(e){var t=s.snapshotItem(e),r=n[t.className],o=new Text(t.textContent),i=document.createElement(r[0]),a=i,u=i;r.slice(1).forEach(e=>{u=document.createElement(e),a.appendChild(u),a=u}),u.appendChild(o),t.parentNode.replaceChild(i,t)},l=s.snapshotLength-1;l>=0;l--)u(l);return t})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(203);t.default=((e,t)=>{if(function(e){if(1!==e.nodeType)return!1;var t=e.getAttribute("id");return t&&t.match(/^docs-internal-guid-/)&&"B"===e.tagName}(t.body.firstElementChild)){for(var n=t.evaluate("//*",t,null,r._XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null),o=n.snapshotLength-1;o>=0;o--)n.snapshotItem(o).setAttribute("data-is-google-docs","true");return t.body.firstElementChild.replaceWith(...t.body.firstElementChild.childNodes),t}return t})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[...(0,i.default)(e,t),...(0,o.default)(e,t),...(0,r.default)(e,t)]};var r=a(n(1390)),o=a(n(1391)),i=a(n(1392));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveListItem=l,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[{deserialize(e){var t=" "!==e.textContent&&"body"!==(0,a.tagName)(e.parentNode);if("#text"===e.nodeName&&t)return s({},i.DEFAULT_SPAN,{marks:[],text:e.value||e.nodeValue})}},{deserialize(e,t){if("blockquote"===(0,a.tagName)(e)){var n=s({},i.HTML_BLOCK_TAGS,i.HTML_HEADER_TAGS);delete n.blockquote;var r=[];return e.childNodes.forEach((t,o)=>{if(1===t.nodeType&&Object.keys(n).includes(t.localName.toLowerCase())){var i=e.ownerDocument.createElement("span");i.appendChild(e.ownerDocument.createTextNode("\r")),t.childNodes.forEach(e=>{i.appendChild(e.cloneNode(!0))}),o!==e.childNodes.length&&i.appendChild(e.ownerDocument.createTextNode("\r")),r.push(i)}else r.push(t)}),{_type:"block",style:"blockquote",markDefs:[],children:t(r)}}}},{deserialize(e,n){var r=s({},i.HTML_BLOCK_TAGS,i.HTML_HEADER_TAGS),o=r[(0,a.tagName)(e)];if(o)return e.parentNode&&"li"===(0,a.tagName)(e)?n(e.childNodes):(t.enabledBlockStyles.includes(o.style)||(o=i.DEFAULT_BLOCK),s({},o,{children:n(e.childNodes)}))}},{deserialize(e,t){var n=i.HTML_SPAN_TAGS[(0,a.tagName)(e)];if(n)return t(e.childNodes)}},{deserialize(e,t){var n="div"===(0,a.tagName)(e);if(n)return t(e.childNodes)}},{deserialize(e,t){var n=i.HTML_LIST_CONTAINER_TAGS[(0,a.tagName)(e)];if(n)return t(e.childNodes)}},{deserialize(e,t){if("br"===(0,a.tagName)(e))return s({},i.DEFAULT_SPAN,{text:"\n"})}},{deserialize(e,t){var n=i.HTML_LIST_ITEM_TAGS[(0,a.tagName)(e)];if(n&&e.parentNode&&i.HTML_LIST_CONTAINER_TAGS[(0,a.tagName)(e.parentNode)])return n.listItem=l((0,a.tagName)(e.parentNode)),s({},n,{children:t(e.childNodes)})}},{deserialize(e,n){var r=i.HTML_DECORATOR_TAGS[(0,a.tagName)(e)];if(r&&t.enabledSpanDecorators.includes(r))return{_type:"__decorator",name:r,children:n(e.childNodes)}}},{deserialize(e,n){if("a"==(0,a.tagName)(e)){var r=t.enabledBlockAnnotations.includes("link"),i=e.getAttribute("href");return i?r?{_type:"__annotation",markDef:{_key:(0,o.default)(12),_type:"link",href:i},children:n(e.childNodes)}:e.appendChild(e.ownerDocument.createTextNode(" (".concat(i,")")))&&n(e.childNodes):n(e.childNodes)}}}]};var r,o=(r=n(143))&&r.__esModule?r:{default:r},i=n(117),a=n(202);function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return[{deserialize(e,t){if("span"===(0,o.tagName)(e)&&u(e)){var n=i({},r.DEFAULT_SPAN,{marks:[],text:e.innerText});return function(e){return!!e.getAttribute("style").match(/font-weight:700/)}(e)&&n.marks.push("strong"),function(e){return!!e.getAttribute("style").match(/font-style:italic/)}(e)&&n.marks.push("em"),n}}},{deserialize(e,n){if("li"===(0,o.tagName)(e)&&u(e))return i({},r.DEFAULT_BLOCK,{listItem:l(e),level:c(e),style:d(e,t.enabledBlockStyles),children:n(e.firstChild.childNodes)})}}]};var r=n(117),o=n(202);function i(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return[{deserialize(e,t){if("p"===(0,o.tagName)(e)&&function(e){if(e.className)return"MsoListParagraphCxSpFirst"===e.className||"MsoListParagraphCxSpMiddle"===e.className||"MsoListParagraphCxSpLast"===e.className;return}(e))return function(e){for(var t=1;t{var n=e.operations,r=e.value.selection;this.localChanges$.next({operations:n,isRemote:!1,selection:r,callback:t}),(0,E.default)(n)&&(this.setState({userIsWritingText:!0}),this.unsetUserIsWritingTextDebounced())}),P(this,"handleChangeSet",e=>{var t=e.operations,n=e.isRemote,r=e.selection,o=e.callback;n||t.some(e=>e.__isUndoRedo)||t.every(e=>"set_selection"===e.type)||t.every(e=>"set_value"===e.type)||(this._undoRedoStack.undo.push({operations:t,beforeSelection:this.state.editorValue.selection,afterSelection:r,remoteOperations:(0,d.List)([])}),this._undoRedoStack.redo=[]),"remote"===n&&(this._undoRedoStack.undo.forEach(e=>{e.remoteOperations=e.remoteOperations.concat(t)}),this._undoRedoStack.redo.forEach(e=>{e.remoteOperations=e.remoteOperations.concat(t)}));var i=[];if("internal"===n){var s=t.filter(e=>"set_selection"!==e.type),u=t.filter(e=>"set_selection"===e.type);this._controller.withoutNormalizing(()=>{s.forEach(e=>{this._controller.applyOperation(e)})}),u.forEach(e=>{this._controller.applyOperation(e)})}else t.forEach(e=>{if(n)this._controller.applyOperation(e);else{var t=this._controller.value;try{this._controller.applyOperation(e),i.push({patches:this.operationToPatches(e,t,this._controller.value,this.props.value),operation:e})}catch(n){console.log("Got error trying to apply local operation. The error was '".concat(n.message,"' The operation was ").concat(JSON.stringify(e.toJSON()))),this.restoreCurrentValue(t.selection)}}});this.setState({editorValue:this._controller.value},()=>(i.length&&(this._pendingLocalChanges.push((0,a.default)(i)),this.sendLocalPatches()),!o||o()))}),P(this,"sendLocalPatches",()=>{var e=this.props.onChange,t=this._pendingLocalChanges.length,n=(0,a.default)(this._pendingLocalChanges.map(e=>(0,a.default)(e.map(e=>e.patches))));(n=n.filter((e,t)=>{if(!e)return!1;var r=n[t+1];return!r||"set"!==r.type||"set"!==e.type||!(0,i.default)(e.path,r.path)})).length&&(this._pendingLocalChanges.splice(0,t),e(v.PatchEvent.from(n)))}),P(this,"unsetUserIsWritingTextDebounced",(0,s.default)(()=>{this.setState({userIsWritingText:!1})},1e3)),P(this,"handleFormBuilderPatch",e=>{var t=this.props.onChange;return e.patches.forEach(e=>{var t=this.patchToOperations(e,this._controller.value);this.localChanges$.next({operations:t,editorValue:this._controller.value,isRemote:!0})}),t(e)}),P(this,"handleDocumentPatches",e=>{var t=e.patches;e.shouldReset,e.snapshot;if(0!==t.length){var n=t.filter(e=>["remote","internal"].includes(e.origin));n.length>0&&n.forEach(e=>{var t=this.patchToOperations(e,this._controller.value);this.remoteChanges$.next({operations:t,isRemote:e.origin,patches:n})})}}),P(this,"handleOnLoading",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=function(e){for(var t=1;tn[e]);t.setState({isLoading:r,loading:n})}),P(this,"handleInvalidValue",()=>{}),P(this,"refInput",e=>{this._input=e});var n,r=e.value,o=e.type,u=function(e){var t=function(e){return e.of&&e.of.find(e=>"block"===e.name)}(e);if(t){if(void 0!==t.span)return"deprecatedSpan";if(e.of&&e.of.find(e=>e.options&&e.options.inline))return"deprecatedInline"}return!1}(o),f=function(e){if(!e||!Array.isArray(e))return!1;var t=e.find(e=>"block"===e._type);return!(!t||!Object.keys(t).includes("spans"))}(r),p=(n=r,!Array.isArray(n)&&void 0!==n);this.state={deprecatedSchema:u,deprecatedBlockValue:f,invalidBlockValue:p,editorValue:null,isLoading:!1,loading:{},userIsWritingText:!1};var h=null;try{h=u||f||p?(0,k.default)([],o):(0,k.default)(r,o)}catch(e){this.state.invalidBlockValue=!0,h=(0,k.default)([],o)}this._blockContentFeatures=(0,c.getBlockContentFeatures)(o);var m={value:h,plugins:[{schema:(0,_.default)(this._blockContentFeatures)}]};this._controller=(0,g.default)(m),this.operationToPatches=(0,w.default)(this._blockContentFeatures,o),this.patchToOperations=(0,O.default)(this._blockContentFeatures,o),this.state.editorValue=this._controller.value,this._unsubscribePatches=e.subscribe(this.handleDocumentPatches),this._changeSubscription=this.changes$.subscribe(this.handleChangeSet)}componentWillUnmount(){this._unsubscribePatches(),this._changeSubscription.unsubscribe()}componentDidUpdate(e){var t=this.props.readOnly,n=e.value!==this.props.value;t&&n&&this.restoreCurrentValue()}restoreCurrentValue(e){this._controller.setValue((0,k.default)(this.props.value,this.props.type)),e&&this._controller.select(e),this.setState({editorValue:this._controller.value})}focus(){this._input&&this._input.focus()}render(){var e=this.state,t=e.editorValue,n=e.deprecatedSchema,r=e.deprecatedBlockValue,o=e.invalidBlockValue,i=e.isLoading,a=e.userIsWritingText,s=this.props,l=s.focusPath,c=s.level,d=s.markers,h=s.onBlur,v=s.onFocus,g=s.onPaste,_=s.readOnly,w=s.renderCustomMarkers,O=s.renderBlockActions,k=s.type,E=s.value,x=n||r;return u.default.createElement("div",{className:S.default.root},!x&&!o&&u.default.createElement(b.default,{blockContentFeatures:this._blockContentFeatures,controller:this._controller,editorValue:t,focusPath:l,isLoading:i,level:c,markers:d,onBlur:h,onChange:this.handleEditorChange,onFocus:v,onLoading:this.handleOnLoading,onPaste:g,onPatch:this.handleFormBuilderPatch,readOnly:_,ref:this.refInput,renderBlockActions:O,renderCustomMarkers:w,type:k,undoRedoStack:this._undoRedoStack,userIsWritingText:a,value:E}),o&&u.default.createElement(m.default,{validTypes:k.of?k.of.map(e=>e.name):[],actualType:(0,y.resolveTypeName)(E),value:E,onChange:this.handleInvalidValue}),x&&u.default.createElement(p.default,{label:k.title},u.default.createElement("div",{className:S.default.disabledEditor},u.default.createElement("strong",null,"Heads up!"),u.default.createElement("p",null,"You're using a new version of the Studio with",n&&" a block schema that hasn't been updated.",n&&r&&" Also block text needs to be updated.",r&&!n&&" block text that hasn't been updated."),"deprecatedInline"===n&&u.default.createElement("p",null,u.default.createElement("a",{href:(0,f.default)("migrate-to-block-inline-types"),rel:"noopener noreferrer",target:"_blank"},"Migrate schema to block.children inline types")),"deprecatedSpan"===n&&u.default.createElement("p",null,u.default.createElement("a",{href:(0,f.default)("migrate-to-block-children"),rel:"noopener noreferrer",target:"_blank"},"Migrate schema to block.children")))))}},P(r,"defaultProps",{markers:[]}),o));t.default=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n;return n=t=class extends i.default.Component{constructor(){super(...arguments),c(this,"subscribe",e=>this.context.formBuilder.onPatch(t=>{var n=t.snapshot,r=t.patches,o=this.context.getValuePath(),i=r.filter(e=>f(e.path,o)).map(e=>(function(e){for(var t=1;t{this._input=e})}focus(){this._input&&this._input.focus&&this._input.focus()}render(){return i.default.createElement(e,l({ref:this.setInput},this.props,{subscribe:this.subscribe}))}},c(t,"displayName","withPatches(".concat(e.displayName||e.name,")")),c(t,"contextTypes",{getValuePath:a.default.func,formBuilder:a.default.any}),n};var r=u(n(482)),o=u(n(19)),i=u(n(0)),a=u(n(1)),s=u(n(110));function u(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t(function(e,t){return 0===e.length||f(t,e)&&!f(e,t)})(t.path,e)&&("set"===t.type||"unset"===t.type))}function p(e,t){return t.reduce((e,t)=>"object"==typeof t?(0,r.default)(e,t):(0,o.default)(e,t),e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(204)),o=u(n(0)),i=u(n(33)),a=(n(10),u(n(1396))),s=u(n(1517));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends o.default.Component{constructor(){super(...arguments),l(this,"inputId",(0,r.default)("BlockEditor")),l(this,"blockEditor",o.default.createRef()),l(this,"state",{fullscreen:!1}),l(this,"handleToggleFullScreen",e=>{this.setState(e=>({fullscreen:!e.fullscreen})),window.requestAnimationFrame(()=>{this.focus()})}),l(this,"focus",()=>{var e=this.props,t=e.onFocus,n=e.readOnly,r=this.blockEditor&&this.blockEditor.current,o=r&&r.getEditor();o&&!n&&(o.command("ensurePlaceHolderBlock"),o.focus(),t([{_key:o.value.focusBlock?o.value.focusBlock.key:o.value.document.nodes.get(0).key}]))}),l(this,"handleFocusSkipper",()=>{this.focus()})}render(){var e=this.props,t=e.blockContentFeatures,n=e.controller,r=e.editorValue,u=e.focusPath,l=e.isLoading,c=e.level,f=e.markers,d=e.onChange,p=e.onBlur,h=e.onFocus,v=e.onLoading,m=e.onPaste,y=e.onPatch,g=e.readOnly,b=e.renderBlockActions,_=e.renderCustomMarkers,w=e.type,O=e.undoRedoStack,k=e.userIsWritingText,E=e.value,S=this.state.fullscreen,x=Array.isArray(u)&&u.length>=1;return o.default.createElement("div",null,o.default.createElement(i.default,{label:w.title,labelFor:this.inputId,markers:f,description:w.description,level:c},!g&&o.default.createElement("button",{type:"button",tabIndex:0,className:s.default.focusSkipper,onClick:this.handleFocusSkipper},"Jump to editor")),o.default.createElement(a.default,{blockContentFeatures:t,controller:n,editorValue:r,focusPath:u,fullscreen:S,isActive:x,markers:f,onBlur:p,onChange:d,onLoading:v,isLoading:l,onFocus:h,onPatch:y,onPaste:m,onToggleFullScreen:this.handleToggleFullScreen,ref:this.blockEditor,readOnly:g,renderCustomMarkers:_,renderBlockActions:b,setFocus:this.focus,type:w,value:E,undoRedoStack:O,userIsWritingText:k}))}}t.default=c,l(c,"defaultProps",{renderBlockActions:null,renderCustomMarkers:null,readOnly:!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(0)),o=(n(1397),m(n(471))),i=n(1398),a=m(n(1399)),s=m(n(8)),u=m(n(37)),l=m(n(524)),c=m(n(26)),f=m(n(1401)),d=m(n(1420)),p=m(n(1473)),h=m(n(1516)),v=m(n(534));function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends r.default.PureComponent{constructor(){super(...arguments),y(this,"state",{preventScroll:!1}),y(this,"scrollContainer",r.default.createRef()),y(this,"editor",r.default.createRef()),y(this,"editorWrapper",r.default.createRef()),y(this,"checkScrollHeight",()=>{if(this.scrollContainer&&this.scrollContainer.current&&this.editorWrapper.current){var e=this.scrollContainer.current.offsetHeight{(0,this.props.onToggleFullScreen)(e)})}componentDidUpdate(){this.checkScrollHeight()}renderNodeEditor(){var e,t,n=this.props,r=n.blockContentFeatures,o=n.editorValue,i=n.focusPath,a=function(e,t){var n,r=e[0]._key,o=e[1]&&"children"===e[1]&&e[2]&&e[2]._key,i=e[2]&&"markDefs"===e[1]&&e[2]._key;if(i){var a=t.document.getDescendant(r);return a?a.filterDescendants(e=>"span"===e.type).find(e=>{var t=e.data.get("annotations")||{};return Object.keys(t).find(e=>t[e]&&t[e]._key===i)}):null}return n=o||r,t.document.getDescendant(n)}(i,o);if(!a||"contentBlock"===a.type)return null;if("span"===a.type){var s=a.data.get("annotations"),u=Object.keys(s).find(e=>s[e]._key===i[2]._key);if(!u)return null;if(e=s[u],t=r.annotations.find(e=>e.value===u))return this.renderEditNode(e,t.type,[i[0],"markDefs",{_key:e._key}],a)}e=a.data.get("value");var l=t=>t.name===e._type;return"inline"===a.object&&(t=r.types.inlineObjects.find(l))?this.renderEditNode(e,t,[i[0],"children",{_key:e._key}],a):(t=r.types.blockObjects.find(l))?this.renderEditNode(e,t,[{_key:e._key}],a):null}renderEditNode(e,t,n,o){var i=this.props,a=i.focusPath,s=i.fullscreen,u=i.markers,l=i.onBlur,c=i.onFocus,d=i.onPatch,p=i.readOnly,h=i.setFocus,v=i.value;return r.default.createElement(f.default,{editor:this.getEditor(),focusPath:a,fullscreen:s,markers:u,nodeValue:e,node:o,onBlur:l,onFocus:c,onPatch:d,path:n,setFocus:h,readOnly:p,type:t,value:v})}getEditor(){return this.editor&&this.editor.current?this.editor.current.getEditor():null}renderEditor(){var e=this.props,t=e.blockContentFeatures,n=e.editorValue,o=e.focusPath,i=e.fullscreen,a=e.markers,s=e.onBlur,u=e.onFocus,l=e.onChange,c=e.onLoading,f=e.onPatch,p=e.onPaste,h=e.isLoading,v=e.readOnly,m=e.renderBlockActions,y=e.renderCustomMarkers,g=e.setFocus,b=e.type,_=e.undoRedoStack,w=e.userIsWritingText,O=e.value;return r.default.createElement(d.default,{blockContentFeatures:t,editorValue:n,focusPath:o,fullscreen:i,isLoading:h,markers:a,onBlur:s,onChange:l,onFocus:u,onLoading:c,onPaste:p,onPatch:f,onToggleFullScreen:this.handleToggleFullscreen,readOnly:v,ref:this.editor,renderBlockActions:m,renderCustomMarkers:y,scrollContainer:this.scrollContainer,setFocus:g,type:b,undoRedoStack:_,userIsWritingText:w,value:O})}renderReadOnlyFullscreenButton(){var e=this.props,t=e.readOnly,n=e.fullscreen;return t?r.default.createElement("div",{className:h.default.readOnlyFullscreenButtonContainer},r.default.createElement(s.default,{kind:"simple",onClick:this.handleToggleFullscreen,title:"Open in fullscreen",icon:n?u.default:l.default})):null}renderBlockEditor(){var e=this.props,t=e.blockContentFeatures,n=e.editorValue,i=e.fullscreen,a=e.focusPath,u=e.isActive,l=e.isLoading,f=e.markers,d=e.onFocus,m=e.setFocus,y=e.readOnly,g=e.renderBlockActions,b=e.type,_=e.userIsWritingText,w=(a||[]).length>1,O=f.filter(e=>e.path.length>0).length>0,k=[h.default.scrollContainer,g||O?h.default.hasBlockExtras:null].filter(Boolean).join(" ");return r.default.createElement("div",null,!y&&r.default.createElement(p.default,{blockContentFeatures:t,editor:this.getEditor(),editorValue:n,fullscreen:i,markers:f,onFocus:d,onToggleFullScreen:this.handleToggleFullscreen,type:b,userIsWritingText:_}),l&&r.default.createElement("div",{className:h.default.loading},r.default.createElement(c.default,{center:!0})),r.default.createElement(o.default,{isActive:!this.state.preventScroll||i||u,html:r.default.createElement("div",{className:h.default.activeOnFocus},r.default.createElement("h3",null,"Click to edit"),r.default.createElement("div",null,"or"),r.default.createElement("div",null,r.default.createElement(s.default,{onClick:this.handleToggleFullscreen,color:"primary"},"Open in fullscreen")),r.default.createElement("p",{className:h.default.keyboardShortcut},"Tip: ",r.default.createElement("br",null),r.default.createElement("strong",null,v.default?"⌘":"ctrl"," + enter")," ","while editing to go in fullscreen")),onActivate:m},r.default.createElement("div",{className:k,ref:this.scrollContainer},r.default.createElement("div",{className:h.default.editorWrapper,ref:this.editorWrapper},this.renderEditor(),w&&i&&this.renderNodeEditor()))),w&&!i&&this.renderNodeEditor())}render(){var e=this.props,t=e.focusPath,n=e.fullscreen,o=e.readOnly,s=(t||[]).length;return r.default.createElement("div",{className:h.default.root},n&&r.default.createElement(i.Portal,null,r.default.createElement(a.default,{onEscape:this.handleToggleFullscreen},r.default.createElement("div",{className:h.default.fullscreen},this.renderReadOnlyFullscreenButton(),this.renderBlockEditor()))),!n&&r.default.createElement("div",{className:s&&!o?h.default.focus:""},this.renderReadOnlyFullscreenButton(),this.renderBlockEditor()))}}t.default=g,y(g,"defaultProps",{readOnly:!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"set",{enumerable:!0,get:function(){return i.set}}),Object.defineProperty(t,"unset",{enumerable:!0,get:function(){return i.unset}}),Object.defineProperty(t,"setIfMissing",{enumerable:!0,get:function(){return i.setIfMissing}}),Object.defineProperty(t,"insert",{enumerable:!0,get:function(){return i.insert}}),Object.defineProperty(t,"inc",{enumerable:!0,get:function(){return i.inc}}),Object.defineProperty(t,"dec",{enumerable:!0,get:function(){return i.dec}}),t.PatchEvent=t.default=void 0;var r,o=(r=n(23))&&r.__esModule?r:{default:r},i=n(89);class a{static from(){for(var e=arguments.length,t=new Array(e),n=0;n(0,i.prefixPath)(t,e)))}}t.PatchEvent=t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return r.Portal}});var r=n(406)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i,a=c(n(0)),s=c(n(1)),u=c(n(83)),l=c(n(84));function c(e){return e&&e.__esModule?e:{default:e}}class f extends a.default.Component{render(){var e=this.props.onEscape;return a.default.createElement(l.default,null,t=>a.default.createElement(u.default,{onEscape:n=>(t||n.shiftKey)&&e(n)},this.props.children))}}t.default=f,r=f,o="propTypes",i={onEscape:s.default.func.isRequired,children:s.default.node.isRequired},o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{var t=this.props,n=t.onPatch,o=t.path,i=t.value,a=t.onFocus,s=t.focusPath,u=e;o.slice(0).reverse().forEach(e=>{u=u.prefixAll(e)}),u.patches.forEach((e,t)=>{if(3===e.path.length&&"markDefs"===e.path[1]&&"unset"===e.type){var n=function(e){for(var t=1;tt._key===e.path[0]._key)),o=e.path[2]._key;n.children.forEach(e=>{e.marks&&(e.marks=e.marks.filter(e=>e!==o))});var l=[{_key:n._key}];n.markDefs=n.markDefs.filter(e=>e._key!==o),u.patches.splice(t+1,0,(0,v.set)(n,l)),s&&(0,r.default)(e.path,s.slice(0,e.path.length))&&a(l)}}),n(u)}),g(this,"handleClose",()=>{var e=this.props,t=e.focusPath,n=e.onFocus,r=e.editor;n(t.slice(0,1)),r.command("focusNoScroll")}),g(this,"handleDialogAction",()=>{})}renderInput(){var e=this.props,t=e.nodeValue,n=e.type,r=e.onFocus,o=e.readOnly,a=e.focusPath,s=e.path,u=e.markers;return i.default.createElement("div",{className:m.default.formBuilderInputWrapper},i.default.createElement(h.FormBuilderInput,{type:n,level:0,readOnly:o||n.readOnly,value:t,onChange:this.handleChange,onFocus:r,focusPath:a,path:s,markers:u}))}renderWrapper(){var e=this.props,t=e.type,n=e.node,r=(0,p.findDOMNode)(n),f=(0,o.default)(t.options,"editModal"),d=t.title;return"fullscreen"===f?i.default.createElement(u.default,{isOpen:!0,title:d,onClose:this.handleClose},this.renderInput()):"fold"===f?i.default.createElement("div",{className:m.default.editBlockContainerFold},i.default.createElement(l.default,{isOpen:!0,title:d,onClose:this.handleClose},this.renderInput())):"popover"===f?i.default.createElement(c.default,{placement:"bottom",referenceElement:r,onClickOutside:this.handleClose,onEscape:this.handleClose,onClose:this.handleClose,title:d,padding:"none"},i.default.createElement(s.default,{size:"medium",padding:"small"},this.renderInput())):i.default.createElement(a.default,{isOpen:!0,title:d,onClose:this.handleClose,showCloseButton:!0,onAction:this.handleDialogAction},i.default.createElement(s.default,{size:"medium"},this.renderInput()))}render(){var e=this.props,t=e.nodeValue,n=e.fullscreen;return t?i.default.createElement("div",{className:[m.default.root,n?m.default.fullscreen:null].join(" ")},i.default.createElement(f.default,null,e=>i.default.createElement("div",null,i.default.createElement(d.default,{onEscape:t=>e&&this.handleClose()}),this.renderWrapper()))):i.default.createElement("div",{classNames:m.default.root},"No value???")}}t.default=b,g(b,"defaultProps",{readOnly:!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createStack=u,t.default=void 0;var r=a(n(0)),o=a(n(1)),i=a(n(77));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){var e=[],t=(0,i.default)();function n(){return e[e.length-1]}function r(){t.publish(n())}return{remove:function(t){e=e.filter(e=>e!==t),r()},peek:n,push:function(t){e.push(t),r()},subscribe:t.subscribe}}var l=u();class c extends r.default.Component{constructor(e){super(),s(this,"state",{top:null}),this._unsubscribe=e.stack.subscribe(e=>{this.setState(()=>({top:e}))})}componentWillMount(){this.props.stack.push(this)}componentWillUnmount(){var e=this.props.stack;this._unsubscribe(),e.remove(this)}render(){return this.props.children(this.state.top===this)}}t.default=c,s(c,"propTypes",{children:o.default.func.isRequired,stack:o.default.shape({remove:o.default.func,peek:o.default.func,push:o.default.func,subscribe:o.default.func})}),s(c,"defaultProps",{stack:l})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(0)),o=i(n(1));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){var t=[];return function(r){return 0===t.length&&document.addEventListener(e,n),t.push(r),()=>(function(r){0===(t=t.filter(e=>e!==r)).length&&document.removeEventListener(e,n)})(r)};function n(e){t.forEach(t=>t(e))}}("keydown");class u extends r.default.Component{constructor(){super(...arguments),a(this,"handleKeyPress",e=>{this.props.onEscape&&"Escape"===e.key&&this.props.onEscape(e)})}componentWillMount(){this.removeListener=s(this.handleKeyPress)}componentWillUnmount(){this.removeListener()}render(){return this.props.children||null}}t.default=u,a(u,"propTypes",{onEscape:o.default.func,children:o.default.node}),a(u,"defaultProps",{onEscape:()=>{},children:void 0})},function(e,t,n){var r=n(1405);e.exports=function(e){if(t=e,t&&t.window===t)return e;var t;var n=r(e);if(o){n.parentWindow.execScript("document._parentWindow = window;","Javascript");var i=n._parentWindow;return n._parentWindow=null,i}return n.defaultView||n.parentWindow};var o=n(1406)},function(e,t){e.exports=function e(t){if(r(t))return t;if(r(t.ownerDocument))return t.ownerDocument;if(r(t.document))return t.document;if(t.parentNode)return e(t.parentNode);if(t.commonAncestorContainer)return e(t.commonAncestorContainer);if(t.startContainer)return e(t.startContainer);if(t.anchorNode)return e(t.anchorNode)};var n=9;function r(e){return e&&e.nodeType===n}},function(e,t){e.exports=!!document.attachEvent&&window!==document.parentWindow},function(e,t,n){"use strict";(function(r){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})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":o(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(1408)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(t,n(56))},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*a;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*o;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===l&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return u(e,t,i,"day");if(t>=o)return u(e,t,o,"hour");if(t>=r)return u(e,t,r,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";var r="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="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType;t.a=o},function(e,t,n){"use strict";var r=n(18),o=n(526);n.n(o);function i(e){var t=JSON.stringify(e);return Object(o.btoa)(encodeURIComponent(t))}function a(e){var t=decodeURIComponent(Object(o.atob)(e));return JSON.parse(t)}var s={deserialize:function(e,t){var n=a(e);return r.Value.fromJSON(n,t)},deserializeNode:function(e,t){var n=a(e);return r.Node.fromJSON(n,t)},serialize:function(e,t){return i(e.toJSON(t))},serializeNode:function(e,t){return i(e.toJSON(t))}};t.a=s},function(e,t,n){"use strict";var r=n(18),o=n(116),i=(n.n(o),Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{}).delimiter,n=void 0===t?"\n":t;return"document"===e.object||"block"===e.object&&r.Block.isBlockList(e.nodes)?e.nodes.map(a).join(n):e.text}var s={deserialize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.defaultBlock,a=void 0===n?"line":n,s=t.defaultMarks,u=void 0===s?[]:s,l=t.delimiter,c=void 0===l?"\n":l,f=t.toJSON,d=void 0!==f&&f;o.Set.isSet(u)&&(u=u.toArray()),a=r.Node.createProperties(a),u=u.map(r.Mark.createProperties);var p={object:"value",document:{object:"document",data:{},nodes:e.split(c).map(function(e){return i({},a,{object:"block",data:{},nodes:[{object:"text",text:e,marks:u}]})})}};return d?p:r.Value.fromJSON(p)},serialize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(e.document,t)}};t.a=s},function(e,t,n){"use strict";var r=n(18);function o(e,t){function n(n,r,o,i,a){var s=r[o];return null!=s||n?null==s&&n?new Error("The "+a+" `"+o+"` is marked as required in `"+i+"`, but it was not supplied."):t(s)?null:new Error("Invalid "+a+" `"+o+"` supplied to `"+i+"`, expected a Slate `"+e+"` but received: "+s):null}function r(){for(var e=arguments.length,t=Array(e),r=0;r",function(e){return r.Block.isBlockList(e)}),change:o("Change",function(e){return r.Change.isChange(e)}),data:o("Data",function(e){return r.Data.isData(e)}),document:o("Document",function(e){return r.Document.isDocument(e)}),inline:o("Inline",function(e){return r.Inline.isInline(e)}),inlines:o("Inline",function(e){return r.Inline.isInlineList(e)}),leaf:o("Leaf",function(e){return r.Leaf.isLeaf(e)}),leaves:o("List",function(e){return r.Leaf.isLeafList(e)}),mark:o("Mark",function(e){return r.Mark.isMark(e)}),marks:o("Set",function(e){return r.Mark.isMarkSet(e)}),node:o("Node",function(e){return r.Node.isNode(e)}),nodes:o("List",function(e){return r.Node.isNodeList(e)}),range:o("Range",function(e){return r.Range.isRange(e)}),ranges:o("List",function(e){return r.Range.isRangeList(e)}),selection:o("Selection",function(e){return r.Selection.isSelection(e)}),value:o("Value",function(e){return r.Value.isValue(e)}),text:o("Text",function(e){return r.Text.isText(e)}),texts:o("List",function(e){return r.Text.isTextList(e)})};t.a=i},function(e,t,n){"use strict";var r=n(116),o="<>",i={listOf:function(e){return l(e,"List",r.List.isList)},mapOf:function(e,t){return c(e,t,"Map",r.Map.isMap)},orderedMapOf:function(e,t){return c(e,t,"OrderedMap",r.OrderedMap.isOrderedMap)},setOf:function(e){return l(e,"Set",r.Set.isSet)},orderedSetOf:function(e){return l(e,"OrderedSet",r.OrderedSet.isOrderedSet)},stackOf:function(e){return l(e,"Stack",r.Stack.isStack)},iterableOf:function(e){return l(e,"Iterable",r.Iterable.isIterable)},recordOf:function(e){return s(function(t,n,o,i,s){for(var u=arguments.length,l=Array(u>5?u-5:0),c=5;c6?u-6:0),c=6;c5?l-5:0),f=5;f5?i-5:0),s=5;s key("+c[f]+")"].concat(a));if(p instanceof Error)return p}})).apply(void 0,i);var u})}function f(e){var t=void 0===arguments[1]?"Iterable":arguments[1],n=void 0===arguments[2]?r.Iterable.isIterable:arguments[2];return s(function(r,o,i,s,u){for(var l=arguments.length,c=Array(l>5?l-5:0),f=5;f0&&void 0!==arguments[0]?arguments[0]:{},t=u++,n={type:"placeholder",data:{key:t}},r=e.placeholder,l=e.when,c=e.style,f=void 0===c?{}:c;return i(r,"You must pass `SlateReactPlaceholder` an `options.placeholder` string."),i(l,"You must pass `SlateReactPlaceholder` an `options.when` query."),{decorateNode:function(e,t,r){if(!t.query(l,e))return r();var o=r(),i=t.value.document,a=e.getFirstText(),u=e.getLastText(),c={anchor:{key:a.key,offset:0,path:i.getPath(a.key)},focus:{key:u.key,offset:u.text.length,path:i.getPath(u.key)},mark:n};return[].concat(s(o),[c])},renderMark:function(e,n,i){var s=e.children,u=e.mark;if("placeholder"===u.type&&u.data.get("key")===t){var l=a({pointerEvents:"none",display:"inline-block",width:"0",maxWidth:"100%",whiteSpace:"nowrap",opacity:"0.333"},f);return o.a.createElement("span",null,o.a.createElement("span",{contentEditable:!1,style:l},r),s)}return i()}}}},function(e,t,n){"use strict";var r=function(e,t){return e===t};t.a=function(e,t){var n;void 0===t&&(t=r);var o,i=[],a=!1,s=function(e,n){return t(e,i[n])};return function(){for(var t=arguments.length,r=new Array(t),u=0;u1&&void 0!==arguments[1]?arguments[1]:{};(0,s.findDOMNode)(e).scrollIntoView({behavior:t.behavior||"instant",block:t.block||"center",inline:t.inline||"nearest"})}class J extends o.default.Component{constructor(e){super(e),G(this,"blockDragMarker",void 0),G(this,"editorSchema",void 0),G(this,"editor",o.default.createRef()),G(this,"plugins",[]),G(this,"handleChange",e=>{var t=this.props,n=t.onChange,r=t.onFocus,o=t.focusPath,i=e.value.focusBlock,a=[];return i&&a.push({_key:i.key}),a.length&&o&&1===o.length?n(e,()=>r(a)):n(e)}),G(this,"handleEditorFocus",(e,t,n)=>{this.props.setFocus(),n()}),G(this,"getValue",()=>this.props.value),G(this,"getEditor",()=>this.editor&&this.editor.current?this.editor.current:null),G(this,"handlePasteProgress",e=>{var t=e.status;(0,this.props.onLoading)({paste:t})}),G(this,"handleShowBlockDragMarker",(e,t)=>{if(i.default.findDOMNode(this.getEditor())instanceof HTMLElement){var n=t.getBoundingClientRect(),r=t.scrollTop+t.offsetTop,o=t.scrollTop+t.offsetTop+n.height,a="".concat("after"===e?o:r,"px");this.blockDragMarker&&(this.blockDragMarker.style.display="block",this.blockDragMarker.style.top=a)}}),G(this,"handleHideBlockDragMarker",()=>{this.blockDragMarker&&(this.blockDragMarker.style.display="none")}),G(this,"handlePaste",(e,t,n)=>{e.persist();var r=this.props.onPaste||f.default;if(!r)return n();var o=this.props,i=o.focusPath,a=o.onPatch,s=o.onLoading,u=o.value,l=o.type;s({paste:"start"});return Promise.resolve((()=>{try{return r({event:e,value:u,path:i,type:l})}catch(e){return e}})()).then(e=>{if(s({paste:null}),void 0===e)return n();if(e instanceof Error)throw e;if(e&&e.insert){var t=[(0,p.setIfMissing)(e.insert),this.props.value&&0!==this.props.value.length?(0,p.insert)(e.insert,"after",e.path||i):(0,p.set)(e.insert,[])];return a(p.default.from(t)),s({paste:null}),e.insert}return console.warn("Your onPaste function returned something unexpected:",e),e}).catch(e=>(s({paste:null}),console.error(e),e))}),G(this,"handleCopy",(e,t,n)=>d.default?(0,d.default)({event:e}):n()),G(this,"handleDrag",(e,t,n)=>{var r=(0,s.getEventTransfer)(e).node;return!r||"block"!==r.object&&"inline"!==r.object?n():(e.dataTransfer.dropEffect="move",e.preventDefault(),!0)}),G(this,"handleToggleFullscreen",(e,t,n)=>{var r=(0,u.isKeyHotkey)("mod+enter"),o=(0,u.isKeyHotkey)("esc"),i=this.props,a=i.onToggleFullScreen,s=i.fullscreen;return r(e)||o(e)&&s?(e.preventDefault(),e.stopPropagation(),a(e),!0):n()}),G(this,"handleCancelEvent",e=>{e.preventDefault(),e.stopPropagation()}),G(this,"refBlockDragMarker",e=>{this.blockDragMarker=e}),G(this,"renderNode",e=>{var t=this.props,n=t.blockContentFeatures,r=t.editorValue,i=t.onFocus,a=t.onPatch,s=t.readOnly,u=t.renderCustomMarkers,c=t.type,f=t.value,d=e.node,p=z.default,v=n.types.blockObjects.find(e=>e.name===d.type);"inline"===d.object&&(p=H.default,v=n.types.inlineObjects.find(e=>e.name===d.type));var m,y=[];if(("inline"===d.object&&(y=this.props.markers.filter(e=>e.path[2]&&e.path[2]._key===d.data.get("_key"))),"span"===d.type)&&(y=this.props.markers.filter(e=>e.path[2]&&e.path[2]._key===d.data.get("_key")),m=d.data.get("annotations"))){var g=e.editor.value.document.getParent(d.key);Object.keys(m).forEach(e=>{y=y.concat(this.props.markers.filter(t=>t.path[0]&&t.path[0]._key===g.key&&t.path[1]&&"markDefs"===t.path[1]&&t.path[2]&&t.path[2]._key===m[e]._key))})}switch(d.type){case"contentBlock":return o.default.createElement(W.default,{attributes:e.attributes,block:f?f.find(e=>e._key===d.key):(0,l.editorValueToBlocks)({document:{nodes:[d.toJSON(h.VALUE_TO_JSON_OPTS)]}},c)[0],blockContentFeatures:n,editor:e.editor,editorValue:r,markers:y,node:d,onFocus:i,readOnly:s,renderCustomMarkers:u},e.children);case"span":return o.default.createElement(q.default,{attributes:e.attributes,blockContentFeatures:n,editor:e.editor,editorValue:r,markers:y,node:e.node,onFocus:i,onPatch:a,readOnly:s,type:n.types.span},e.children);default:return o.default.createElement(p,{attributes:e.attributes,blockContentFeatures:n,editor:e.editor,editorValue:r,isSelected:e.isFocused,markers:y,node:e.node,onFocus:i,onHideBlockDragMarker:this.handleHideBlockDragMarker,onPatch:a,onShowBlockDragMarker:this.handleShowBlockDragMarker,readOnly:s,renderCustomMarkers:u,type:v})}}),G(this,"renderMark",e=>{var t=this.props.blockContentFeatures,n=e.mark.type,r=t.decorators.find(e=>e.value===n),i=r&&r.blockEditor&&r.blockEditor.render?r.blockEditor.render:null;return i?o.default.createElement(i,e):r?o.default.createElement(U.default,e):null}),this.editorSchema=(0,v.default)(e.blockContentFeatures),this.plugins=[(0,C.default)(),(0,w.default)({defaultBlock:l.EDITOR_DEFAULT_BLOCK_TYPE}),(0,O.default)(),(0,A.default)(),(0,M.default)({defaultBlock:l.EDITOR_DEFAULT_BLOCK_TYPE}),(0,j.default)({decorators:e.blockContentFeatures.decorators.map(e=>e.value)}),(0,a.default)({onlyIn:[l.EDITOR_DEFAULT_BLOCK_TYPE.type],shift:!0}),(0,x.default)({controller:this.editor,blockContentType:e.type,blockContentFeatures:e.blockContentFeatures,onChange:e.onChange,onProgress:this.handlePasteProgress}),(0,c.default)(l.EDITOR_DEFAULT_BLOCK_TYPE),(0,k.default)(),(0,E.default)(),(0,S.default)(),(0,P.default)(),(0,T.default)(),(0,y.default)(),(0,I.default)(),(0,_.default)(e.type),(0,b.default)(),(0,g.default)(e.blockContentFeatures),(0,D.default)({stack:e.undoRedoStack}),(0,N.default)(),(0,R.default)(e.scrollContainer),(0,F.default)(e.scrollContainer),(0,L.default)(e.scrollContainer,K)]}componentDidMount(){this.trackFocusPath()}componentDidUpdate(e){if(this.getEditor()){var t=this.props.focusPath;if(t&&0!==t.length)!(0,r.default)(e.focusPath,t)&&this.trackFocusPath()}}trackFocusPath(){var e=this.props,t=e.focusPath,n=e.editorValue;if(this.getEditor()&&t){var o,i=n.focusBlock&&(0,r.default)(t,[{_key:n.focusBlock.key}]),a=n.document.getDescendant(t[0]._key);if(!i)if(t[1]&&"children"===t[1]&&t[2]){if(!(o=n.document.getDescendant(t[2]._key)))throw new Error("Could not find a inline with key ".concat(t[2]._key,", something is amiss."));K(o)}else t[1]&&"markDefs"===t[1]&&t[2]&&(o=(0,m.default)(t[2]._key,a))?K(o):a&&K(a)}}render(){var e=this.props,t=e.editorValue,n=e.fullscreen,r=e.markers,i=e.onFocus,a=e.onPatch,u=e.readOnly,l=e.renderBlockActions,c=e.renderCustomMarkers,f=e.userIsWritingText,d=e.value,p=r.filter(e=>e.path.length>0).length>0,h=[V.default.root,(l||p)&&V.default.hasBlockExtras,n?V.default.fullscreen:null].filter(Boolean);return o.default.createElement("div",{className:h.join(" ")},o.default.createElement(s.Editor,{spellCheck:!1,className:V.default.editor,ref:this.editor,value:t,onChange:this.handleChange,onFocus:this.handleEditorFocus,onCopy:this.handleCopy,onPaste:this.handlePaste,onKeyDown:this.handleToggleFullscreen,onDragOver:this.handleDrag,onDrop:this.handleDrag,plugins:this.plugins,readOnly:u,renderNode:this.renderNode,renderMark:this.renderMark,schema:this.editorSchema}),o.default.createElement("div",{className:V.default.blockDragMarker,ref:this.refBlockDragMarker,style:{display:"none"},onDragOver:this.handleCancelEvent}),o.default.createElement("div",{className:V.default.blockExtras},o.default.createElement(B.default,{className:V.default.blockExtrasOverlay,fullscreen:n,editor:this.editor,editorValue:t,markers:r,onFocus:i,onPatch:a,renderBlockActions:u?void 0:l,renderCustomMarkers:c,userIsWritingText:f,value:d})))}}t.default=J,G(J,"defaultProps",{readOnly:!1,onPaste:null,renderCustomMarkers:null,renderBlockActions:null})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{onKeyDown:function(t,n,r){return"Enter"!==t.key?r():e.shift&&!1===t.shiftKey?r():n.insertText("\n")}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18);t.default=function(){for(var e=arguments.length,t=Array(e),n=0;ne.match(/\s/g),f=u.split("").reverse().findIndex(e=>c(e)),d=f>-1?u.length-f:-1,p=l.split("").findIndex(e=>c(e)),h=u.length+(p>-1?p:l.length+1);return d===h||isNaN(d)||isNaN(h)?n():t.moveAnchorTo(d).moveFocusTo(h).focus()}return n()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{onCommand(t,n,r){if("ensurePlaceHolderBlock"!==t.type)return r();if(0!==n.value.document.nodes.size)return r();var a=(0,o.default)(e),s=a.toJSON({preserveKeys:!0,preserveData:!0});return s.data=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).defaultBlock;if(!e)throw new Error("Missing required option 'defaultBlock'");return{onKeyDown(t,n,o){if("Enter"!==t.key)return o();var i=n.value,a=i.document,s=i.startBlock,u=i.selection,l=s&&s.data&&s.data.get("listItem");if(!l)return o();if(""!==s.text)return o();var c=a.getPreviousBlock(u.start.key);if(c&&!c.data.get("listItem"))return o();if(!c){if(""===s.text){var f=s.data.toObject();return delete f.listItem,n.setNodeByKey(s.key,{data:f}),n}return n.insertBlock(e).focus(),n}c&&c.data.get("listItem")&&n.deleteBackward(1);var d=e,p=s.data.get("level")||1;p>1&&((d=function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];return{onKeyDown(e,t,n){var r=e.key,o=e.shiftKey,i=e.altKey;if("Tab"!==r)return n();if(i)return n();var a=t.value,s=a.blocks.filter(e=>e.data.get("listItem"));return 0===s.size?n():(e.preventDefault(),s.forEach(e=>{var n=e.data.toObject();n.level=n.level||1,o?(n.level--,n.level=n.level||1):(n.level++,n.level=n.level<11?n.level:10),t.setNodeByKey(e.key,{data:n})}),t)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onDrop(e,t,n){var o=e.target,i=(0,r.findNode)(o,t);return t.query("isVoid",i)?t:n()}}};var r=n(95)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onFocus:(e,t,n)=>(t.command("ensurePlaceHolderBlock"),n())}}},function(e,t,n){"use strict";function r(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t.value.document.nodes.first();if(r){if("insertInlineObject"!==e.type)return n();var i=o.data.toObject();return delete i.placeholder,t.setNodeByKey(o.key,{data:i}),n()}if(1===t.value.document.nodes.size)if("contentBlock"===o.type&&o.nodes.every(e=>"text"===e.object)&&""===o.text){var a=o.data.toObject();a.placeholder=!0,t.setNodeByKey(o.key,{data:a})}else if("contentBlock"===o.type&&o.data.get("placeholder")){var s=o.data.toObject();delete s.placeholder,t.setNodeByKey(o.key,{data:s})}return n()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onKeyUp:r,onCommand:(e,t,n)=>r(e,t,n,!0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.blockContentType,n=e.onProgress||c;if(!t)throw new Error("Missing required option 'blockContentType'");var l={plugins:[{schema:(0,s.default)(e.blockContentFeatures)}]},d=(0,u.default)(l);return{onPaste:function(e,s,u){e.preventDefault(),n({status:"start"});var l=(0,i.getEventTransfer)(e),c=l.fragment,p=l.html,h=l.text;if("fragment"===l.type){n({status:"fragment"});var v=t.of.map(e=>e.name).concat("contentBlock"),m=c.nodes.map(e=>e.type).every(e=>v.includes(e));if(m){var y=s.value.focusBlock,g=o.Block.createList(c.nodes.map(e=>(function e(t,n){if(!t.get("nodes"))return t;var i=r.default.randomKey(12);var a=t.constructor;var s=t.get("data")?t.get("data").toObject():{};s._key=i;s.value&&s.value._key&&(s.value._key=i);s.annotations&&Object.keys(s.annotations).forEach(e=>{s.annotations[e]._key=r.default.randomKey(12)});return new a({data:o.Data.create(s),isVoid:n.query("isVoid",t),key:i,nodes:t.get("nodes").map(t=>e(t,n)),type:t.get("type")})})(e,s))),b=new o.Document({key:c.key,nodes:g});return b.nodes.forEach((e,t)=>{0===t&&y&&!s.query("isVoid",y)&&1===y.nodes.size&&""===y.text?s.insertBlock(e).moveToEndOfBlock().removeNodeByKey(y.key):s.insertBlock(e).moveToEndOfBlock()}),n({status:null}),s}}if(n({status:"parsing"}),!h&&!p)return n({status:null}),!0;return function(e,t,n,o,i){return f(100).then(()=>{o({status:"html"});var s=r.default.htmlToBlocks(e,n);o({status:"blocks"});var u=(0,a.default)(s,n);i.setValue(u);var l=t.value.document.nodes.find(e=>!0===e.get("data").toObject().placeholder);return l?(i.value.document.nodes.forEach(e=>{t.insertBlock(e)}),t.removeNodeByKey(l.key)):t.insertFragment(i.value.document),i.setValue((0,a.default)(null,n)),o({status:null}),t})}(p||"".concat(h.split("\n").map(e=>"

".concat(e,"

")),""),s,t,n,d).catch(e=>{throw n({status:null,error:e}),e}),!0}}};var r=l(n(29)),o=n(18),i=n(95),a=l(n(309)),s=l(n(206)),u=l(n(307));function l(e){return e&&e.__esModule?e:{default:e}}var c=()=>{},f=e=>new Promise(t=>setTimeout(t,e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onQuery(e,t,n){var r,o,i,a,s=t.value;switch(e.type){case"activeMarks":return s.marks.map(e=>e.type).sort();case"activeStyles":return s.blocks.map(e=>e.data.get("style")).sort();case"hasAnnotation":return s.inlines.filter(e=>"span"===e.type).some(t=>{var n=t.data.get("annotations")||{};return Object.keys(n).find(t=>n[t]&&n[t]._type===e.args[0])});case"hasListItem":return s.blocks.some(t=>t.data.get("listItem")===e.args[0]);case"hasMark":return s.marks.some(t=>t.type===e.args[0]);case"hasStyle":return s.blocks.some(t=>t.data.get("style")===e.args[0]);case"hasSelectionWithText":return r=e.args[0]||s,o=r.focusText,i=r.selection,a=i.isCollapsed,!(!o||o&&a&&""===o.text.substring(i.focus.offset-1,i.focus.offset).trim()&&""===o.text.substring(i.focus.offset,i.focus.offset+1).trim());default:return n()}}}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{onCommand(e,t,n){if("setBlockStyle"!==e.type)return n();var o=t.value,i=o.selection,a=o.startBlock,s=o.endBlock,u=e.args[0];if(a===s&&i.isExpanded&&(!i.start.isAtStartOfNode(a)||!i.end.isAtEndOfNode(a))){var l=!i.start.isAtStartOfNode(a),c=!i.end.isAtEndOfNode(a),f=i.isForward?i.focus.offset-i.anchor.offset:i.anchor.offset-i.focus.offset;c&&!l?t.moveToStart().moveForward(f).moveToEnd().splitBlock().moveToStartOfPreviousText():l&&!c?t.moveToEnd().moveBackward(f).moveToEnd().splitBlock().moveToEnd():t[i.isForward?"moveToAnchor":"moveToFocus"]().splitBlock().moveForward(f).splitBlock().moveToStartOfPreviousBlock()}return t.value.blocks.forEach(e=>{var n=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).defaultBlock;if(!e)throw new Error("Missing required option 'defaultBlock'");return{onKeyDown(t,n,i){var a=t.key,s=t.shiftKey;if("Enter"!==a||s)return i();var u=n.value,l=u.blocks.some(e=>e.data.get("style")),c=u.blocks.some(e=>e.data.get("listItem")),f=u.startBlock;if(c||!l||u.selection.isExpanded||!u.selection.end.isAtEndOfNode(f))return i();var d=(0,r.randomKey)(12);return t.preventDefault(),n.insertBlock(o({},e,{key:d,data:o({},e.data,{_key:d})})),n}}};var r=n(29);n(18);function o(e){for(var t=1;t"span"===e.type),a=e.args[0]||{},s=a.annotationName,u=a.key||(0,r.randomKey)(12);return 0===i.size?t.command("wrapSpan",{key:u,annotationName:s}):(i.forEach(e=>{var n=e.data.get("annotations");if(n&&n[s])if(1===Object.keys(n).length&&n[s])t.unwrapInlineByKey(e.key);else{Object.keys(n).forEach(e=>{n[e]._type===s&&delete n[e]});var r=function(e){for(var t=1;te.data.get("listItem")===r);return o.forEach(e=>{var n=e.data?e.data.toObject():{};i?delete n.listItem:(n.listItem=r,n.level=n.level||1),t.setNodeByKey(e.key,{data:n})}),t.focus(),t}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.stack;function n(e,r,o){if(!r)return e.focus();var a=(0,i.List)(o||[]),s=0===r.remoteOperations.size?r.operations:p(r);if((a=a.concat(s.reverse().map(e=>e.invert()))).size>0){var u=t.undo.slice(-1)[0];return u&&d(a.concat(u.operations))?(t.redo.push(r),n(e,t.undo.pop(),a)):(a.forEach(t=>{t.__isUndoRedo="undo",e.applyOperation(t)}),function(e,t){if(t.beforeSelection)return e.select(t.beforeSelection).focus(),e;var n=e.operations.findLastEntry(e=>void 0!==e.path);if(n){var r=n[1].path;1===r.size?e.moveToEndOfBlock():e.moveTo(n[1].path).moveToEndOfText()}}(e,r),t.redo.push(r),e)}return n(e,t.undo.pop())}function r(e,n,o){if(!n)return e.focus();var a=(0,i.List)(o||[]),s=0===n.remoteOperations.size?n.operations:p(n);if((a=a.concat(s)).size>0){var u=t.redo.slice(-1)[0];return u&&d(a.concat(u.operations))?(t.undo.push(n),r(e,t.redo.pop(),a)):(a.forEach(t=>{t.__isUndoRedo="redo",e.applyOperation(t)}),function(e,t){if(t.afterSelection)return e.select(t.afterSelection).focus(),e;var n=e.operations.findLastEntry(e=>void 0!==e.path);if(n){var r=n[1].path;1===r.size?e.moveToEndOfBlock():e.moveTo(n[1].path).moveToEndOfText()}}(e,n),t.undo.push(n),e)}return r(e,t.redo.pop())}return{onKeyDown:(e,i,a)=>o.default.isUndo(e)||o.default.isRedo(e)?o.default.isUndo(e)?n(i,t.undo.pop()):o.default.isRedo(e)?r(i,t.redo.pop()):i:a()}};var r=u(n(57)),o=u(n(527)),i=n(116),a=u(n(531)),s=n(18);function u(e){return e&&e.__esModule?e:{default:e}}function l(e){for(var t=1;te.path?JSON.stringify(e.path.toJSON()):null).toArray().filter(Boolean)).length&&((0,a.default)(e)&&(t=e.last(),!((n=t.text)&&f.includes(n))))}function p(e){var t=[];return e.operations.forEach(n=>{var r=n;e.remoteOperations.forEach(e=>{if(r&&r.path){var t=e.path.get(0)e.key===i).first(),f={annotations:c&&c.data.get("annotations")||{},focusedAnnotationName:a};return a&&(f.annotations[a]={_type:a,_key:i},t.setInlines({data:f})),t}}};var r=n(29)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(-1===navigator.userAgent.toLowerCase().indexOf("firefox"))return{};return{onKeyDown:(e,t,n)=>"ArrowDown"!==e.key?n():t.query("isVoid",t.value.focusBlock)?(e.preventDefault(),t.moveForward(),t):n()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=0,n=e=>{e.preventDefault(),e.target instanceof HTMLElement&&(e.target.scrollTop=t)};return{onCommand:(r,o,i)=>"focusNoScroll"!==r.type?i():e&&e.current?(t=e.current.scrollTop,e.current.addEventListener("scroll",n),o.focus(),setTimeout(()=>{e.current.scrollTop=t,e.current.removeEventListener("scroll",n)},300),o):i()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{onChange(t,n){var r=t.value,o=r.focusBlock,i=r.anchorBlock,a=r.document,s=r.selection;if(!e||!e.current)return n();if(!o)return n();if(o.key===i.key){var u=o.key===a.nodes.first().key,l=0===s.focus.offset;u&&l&&e.current.scrollTo({left:0,top:0,behavior:"smooth"})}return n()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=!0;return setTimeout(()=>{n=!1},1e3),{onSelect:(e,r,o)=>(n&&r.value.focusBlock&&t(r.value.focusBlock,{behavior:"instant"}),o())}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),o=n(95),i=s(n(1445)),a=(s(n(145)),s(n(1452)));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class extends r.default.Component{constructor(){super(...arguments),u(this,"state",{windowWidth:void 0,visible:!1}),u(this,"handleResize",()=>{this.setState({windowWidth:window.innerWidth})}),u(this,"renderBlockExtras",e=>{var t,n=this.props,s=n.onFocus,u=n.renderCustomMarkers,l=n.renderBlockActions,c=n.onPatch,f=n.fullscreen,d=n.editor,p=this.props.markers.filter(t=>t.path[0]&&t.path[0]._key&&t.path[0]._key===e.key);if(0===p.length&&!l)return null;try{t=(0,o.findDOMNode)(e)}catch(e){return null}var h=t.getBoundingClientRect(),v=null,m=this.props.value||[];if(l){var y=m.find(t=>t._key==e.key),g=l;y&&(v=r.default.createElement(g,{element:t,block:y,value:m,path:[{_key:y._key}],set:(0,a.default)("set",y,c),unset:(0,a.default)("unset",y,c),insert:(0,a.default)("insert",y,c)}))}return 0!==p.length||v?r.default.createElement("div",{key:e.key,style:{position:"absolute",top:t.scrollTop+t.offsetTop,width:"100%",height:h.height,left:0}},r.default.createElement(i.default,{block:e,fullscreen:f,blockActions:v,editor:d&&d.current,markers:p,onFocus:s,renderCustomMarkers:u})):null})}componentDidMount(){window.addEventListener("resize",this.handleResize),this._setVisibleTimer=setTimeout(()=>{this._setVisibleRequest=window.requestAnimationFrame(()=>{this.setState({visible:!0}),this._setVisibleTimer=setTimeout(()=>{this.setState({visible:!0})},200)})},0)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize),clearTimeout(this._setVisibleTimer),window.cancelAnimationFrame(this._setVisibleRequest)}shouldComponentUpdate(e){return!e.userIsWritingText}render(){var e=this.state.visible,t=this.props.editorValue;return e&&t?r.default.createElement(r.Fragment,null,t.document.nodes.map(this.renderBlockExtras)):null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i,a=c(n(0)),s=c(n(27)),u=c(n(1446)),l=c(n(1451));function c(e){return e&&e.__esModule?e:{default:e}}class f extends a.default.PureComponent{getValidationMarkers(){return this.props.markers.filter(e=>"validation"===e.type).map(e=>{if(e.path.length<=1)return e;var t="error"===e.level?"errors":"warnings";return Object.assign({},e,{item:e.item.cloneWithMessage("Contains ".concat(t))})})}render(){var e=this.props,t=e.blockActions,n=e.editor,r=e.markers,o=e.onFocus,i=e.renderCustomMarkers,c=e.fullscreen,f=this.getValidationMarkers(),d=f.filter(e=>"error"===e.level),p=f.filter(e=>"warning"===e.level);return a.default.createElement("div",{className:(0,s.default)([l.default.root,c&&l.default.hasFullScreen,(t||r.length>0)&&l.default.withSomething,d.length>0&&l.default.withError,p.length>0&&!d.length&&l.default.withWarning])},a.default.createElement("div",{className:l.default.content},r.length>0&&a.default.createElement("div",{className:l.default.markers},a.default.createElement(u.default,{className:l.default.markers,editor:n,markers:r,scopedValidation:f,onFocus:o,renderCustomMarkers:i})),t&&a.default.createElement("div",{className:l.default.blockActions},t)))}}t.default=f,i={markers:[],blockActions:null,renderCustomMarkers:null},(o="defaultProps")in(r=f)?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(135)),i=s(n(1447)),a=s(n(1450));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends r.default.Component{constructor(){super(...arguments),u(this,"handleValidationMarkerClick",e=>{e.preventDefault(),e.stopPropagation();var t=this.props,n=t.editor,r=t.onFocus,o=t.markers.filter(e=>"validation"===e.type);n.blur(),setTimeout(()=>{r(o[0].path)},200)}),u(this,"handleCancelEvent",e=>{e.preventDefault(),e.stopPropagation()})}render(){var e=this.props,t=e.markers,n=e.renderCustomMarkers;if(0===t.length)return null;var s=t.filter(e=>"validation"!==e.type),u=t.filter(e=>"validation"===e.type);return r.default.createElement("div",{onClick:this.handleCancelEvent,className:a.default.root},u.length>0&&r.default.createElement("div",{className:a.default.markerGroup,onClick:this.handleValidationMarkerClick},r.default.createElement(o.default,{markers:u})),s.length>0&&r.default.createElement("div",{className:a.default.markerGroup,onClick:this.handleCancelEvent},n&&n(s),!n&&r.default.createElement(i.default,{markers:t})))}}t.default=l,u(l,"defaultProps",{markers:[],renderCustomMarkers:null})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(0)),o=n(34),i=a(n(1448));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends r.default.Component{constructor(){super(...arguments),s(this,"handleCustomMarkerClick",e=>{e.preventDefault(),e.stopPropagation();var t=this.props.markers;console.log(t)})}render(){var e=this.props.markers,t="".concat(1===e.length?"One":e.length," custom ").concat(e.length>1?"markers":"marker",", click to log to console.");return r.default.createElement(o.Tooltip,{title:t,trigger:"mouseenter focus",animation:"scale",arrow:!0,theme:"light",distance:"2",duration:50},r.default.createElement(i.default,{onClick:this.handleCustomMarkerClick}))}}t.default=u,s(u,"defaultProps",{markers:[]})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1449))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{switch(e){case"set":return n(r.default.from((0,r.set)((0,o.normalizeBlock)(a),[{_key:t._key}])));case"unset":return n(r.default.from((0,r.unset)([{_key:t._key}])));case"insert":return i=(i=Array.isArray(a)?a:[a]).map(e=>(0,o.normalizeBlock)(e)),n(r.default.from((0,r.insert)(i,"after",[{_key:t._key}])));default:throw new Error("Patch type ".concat(e," not supported"))}}};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(145)),o=n(29)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(25)),o=b(n(532)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),a=b(n(27)),s=n(95),u=(n(18),n(16)),l=b(n(112)),c=b(n(207)),f=b(n(310)),d=b(n(115)),p=b(n(189)),h=(n(10),n(62)),v=n(74),m=b(n(113)),y=b(n(114)),g=b(n(1455));function b(e){return e&&e.__esModule?e:{default:e}}function _(){return(_=Object.assign||function(e){for(var t=1;t{var t=this.props,n=t.node;if(t.readOnly)e.preventDefault();else{this.setState({isDragging:!0}),this.addDragHandlers();var r=o.default.serializeNode(n,{preserveKeys:!0,preserveData:!0});(0,s.setEventTransfer)(e,"node",r),e.dataTransfer.effectAllowed="move";var i=e.currentTarget;if(i&&(this._dragGhost=i.cloneNode(!0),this._dragGhost.style.width="".concat(i.clientWidth,"px"),this._dragGhost.style.height="".concat(i.clientHeight,"px"),this._dragGhost.style.position="absolute",this._dragGhost.style.top="-99999px",this._dragGhost.style.left="-99999px",document.body&&(document.body.appendChild(this._dragGhost),this._dragGhost))){var a=i.getBoundingClientRect(),u=e.clientX-a.left,l=e.clientY-a.top;e.dataTransfer.setDragImage(this._dragGhost,u,l)}}}),w(this,"handleDragLeave",e=>{e.preventDefault(),this.resetDropTarget()}),w(this,"handleDragOverOtherNode",e=>{if(this.state.isDragging){e.preventDefault(),e.stopPropagation();var t,n=this.props.node;if(e.target instanceof HTMLElement)t=e.target.querySelectorAll("[data-key]").item(0);if(t&&t!==this._editorNode){e.dataTransfer&&(e.dataTransfer.dropEffect="move");var r=this.props.editor,o=(0,s.findNode)(t,r);if(o){var i="block"===o.object?o:r.value.document.getClosestBlock(o.key);if(i&&i.key!==n.key){var a=(0,s.findDOMNode)(i),u=a.getBoundingClientRect(),l=e.clientY{e.preventDefault(),e.dataTransfer.dropEffect="move",this.setState({isDragging:!1});var t=this._dropTarget;this.removeDragHandlers(),this.resetDropTarget(),this._dragGhost&&this._dragGhost.parentNode&&this._dragGhost.parentNode.removeChild(this._dragGhost);var n=this.props,r=n.node,o=n.editor;t&&t.node.key!==r.key&&o.removeNodeByKey(r.key)["before"===t.position?"moveToStartOfNode":"moveToEndOfNode"](t.node).insertBlock(r).moveToEndOfNode(r).focus()}),w(this,"handleCancelEvent",e=>{e.preventDefault(),e.stopPropagation()}),w(this,"handleFocus",e=>{e.stopPropagation();var t=this.props,n=t.node;(0,t.onFocus)([{_key:n.key},h.FOCUS_TERMINATOR])}),w(this,"handleDoubleClick",e=>{this.props.readOnly?this.handleView():this.handleEditStart()}),w(this,"handleEditStart",()=>{var e=this.props,t=e.node,n=e.onFocus;e.editor.moveToEndOfNode(t).focus().blur(),setTimeout(()=>{n([{_key:t.key},h.FOCUS_TERMINATOR])},100)}),w(this,"handleClose",()=>{var e=this.props,t=e.node;(0,e.onFocus)([{_key:t.key}])}),w(this,"refPreview",e=>{this.previewContainer=e}),w(this,"handleInvalidValue",e=>{var t=this.props.onPatch,n=this.getValue();t(e.prefixAll({_key:n._key}),n)}),w(this,"handleHeaderMenuAction",e=>{var t=this.props,n=t.node,r=t.editor;"delete"===e.name&&r.removeNodeByKey(n.key).focus(),"edit"===e.name&&this.handleEditStart(),"view"===e.name&&this.handleView()}),w(this,"handleView",()=>{var e=this.props,t=e.node;(0,e.onFocus)([{_key:t.key},h.FOCUS_TERMINATOR])}),w(this,"renderMenuItem",e=>{var t=e.icon;return i.default.createElement("div",{className:"danger"===e.color?g.default.menuItemDanger:g.default.menuItem},e.intent?i.default.createElement(u.IntentLink,{intent:e.intent,params:e.params},t&&i.default.createElement(t,null),e.title):i.default.createElement(i.Fragment,null,t&&i.default.createElement(t,null)," ",e.title))}),w(this,"handleMouseDown",e=>{this.props.editor.moveToEndOfNode(this.props.node)}),w(this,"renderPreview",e=>{var t=this.props,n=t.type,r=t.readOnly,o=[];return e._ref&&o.push({title:"Go to reference",icon:l.default,intent:"edit",params:{id:e._ref}}),r?o.push({title:"View",icon:f.default,name:"view"}):(o.push({title:"Edit",icon:c.default,name:"edit"}),o.push({title:"Delete",name:"delete",icon:d.default,color:"danger"})),i.default.createElement("div",{className:g.default.preview},i.default.createElement(y.default,{type:n,value:e,layout:"block"}),i.default.createElement("div",{className:g.default.header},i.default.createElement(p.default,{placement:"bottom-end",items:o,onAction:this.handleHeaderMenuAction,renderItem:this.renderMenuItem},n?n.title||n.name:"Unknown")))}),w(this,"handleInvalidTypeContainerClick",e=>{e.preventDefault(),e.stopPropagation()})}componentDidMount(){var e=this.props.editor,t=r.default.findDOMNode(e);t instanceof HTMLElement&&(this._editorNode=t)}componentWillUnmount(){this.removeDragHandlers()}addDragHandlers(){this.props.readOnly||(this._editorNode&&this._editorNode.addEventListener("dragover",this.handleDragOverOtherNode),this._editorNode&&this._editorNode.addEventListener("dragleave",this.handleDragLeave))}removeDragHandlers(){this._editorNode&&this._editorNode.removeEventListener("dragover",this.handleDragOverOtherNode),this._editorNode&&this._editorNode.removeEventListener("dragleave",this.handleDragLeave)}resetDropTarget(){this._dropTarget=null,this.props.onHideBlockDragMarker()}getValue(){return this.props.node.data.get("value")}render(){var e=this.props,t=e.attributes,n=e.blockContentFeatures,r=e.editor,o=e.isSelected,s=e.markers,u=e.node,l=e.readOnly,c=this.state.isDragging,f=this.getValue(),d=(0,v.resolveTypeName)(f),p=n.types.blockObjects.map(e=>e.name).concat("block");if(!p.includes(d))return i.default.createElement("div",_({},t,{onClick:this.handleInvalidTypeContainerClick,contentEditable:!1}),i.default.createElement(m.default,{validTypes:p,actualType:d,value:f,onChange:this.handleInvalidValue}));var h=s.filter(e=>"validation"===e.type).filter(e=>"error"===e.level),y=(0,a.default)([g.default.root,r.value.selection.focus.isInNode(u)&&g.default.focused,o&&g.default.selected,h.length>0&&g.default.hasErrors,c&&g.default.isDragging]);return i.default.createElement("div",t,i.default.createElement("div",{onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd,onDragEnter:this.handleCancelEvent,onDragLeave:this.handleCancelEvent,onDrop:this.handleCancelEvent,onDoubleClick:this.handleDoubleClick,onMouseDown:this.handleMouseDown,draggable:!l,className:y},i.default.createElement("div",{ref:this.refPreview,className:g.default.previewContainer,style:l?{cursor:"default"}:{}},this.renderPreview(f))))}}t.default=O,w(O,"defaultProps",{blockActions:null,renderCustomMarkers:null,isSelected:!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{var t=this._clickMouseXY.x&&Math.abs(e.clientX-this._clickMouseXY.x)<20,n=this._clickMouseXY.y&&Math.abs(e.clientY-this._clickMouseXY.y)<20;this._clickTimeout&&clearTimeout(this._clickTimeout),this._clickTimeout=setTimeout(()=>{this._clickCounter>2&&t&&n&&this.props.editor.moveToRangeOfNode(this.props.editor.value.anchorBlock),this._clickCounter=0},500),this._clickCounter++,this._clickMouseXY={x:e.clientX,y:e.clientY}})}render(){var e,t=this.props,n=t.attributes,s=t.blockContentFeatures,l=t.children,c=t.node.data,f=c?c.get("listItem"):null,d=c?c.get("level"):1,p=c?c.get("style"):"normal",h=s&&p?s.styles.find(e=>e.value===p):null;return h&&(e=h.blockEditor&&h.blockEditor.render),f?r.default.createElement(o.default,{attributes:n,level:d,listStyle:f},r.default.createElement(i.default,{style:p,styleComponent:e},r.default.createElement("div",{onMouseDown:this.handleMouseDown},l))):r.default.createElement("div",u({className:a.default.textBlock},n,{onMouseDown:this.handleMouseDown}),r.default.createElement(i.default,{style:p,styleComponent:e},l))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.attributes||{},n=e.listStyle,i=e.level;if(!s.includes(n))throw new Error("Don't know how to handle listItem '".concat(n,"'. ")+"Expected one of '".concat(s.join("', '"),"'"));var u="".concat(o.default[n]," ").concat(o.default["level-".concat(i)]);return r.default.createElement("div",a({className:u},t),r.default.createElement("div",{className:o.default.item},e.children))};var r=i(n(0)),o=i(n(1458));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t{var t=this.props.node;this.setState({isDragging:!0}),this.addDragHandlers();var n=i.default.findDOMNode(this._previewContainer);if(n&&n instanceof HTMLElement){var r=a.default.serializeNode(t,{preserveKeys:!0});(0,v.setEventTransfer)(e,"node",r),e.dataTransfer.effectAllowed="move",e.dataTransfer.setDragImage(n,n.clientWidth/2,-10)}this.props.editor.moveToEndOfNode(this.props.node).focus()}),g(this,"handleDragLeave",e=>{e.target===this._editorNode&&this.resetDropTarget()}),g(this,"handleDragOverOtherNode",e=>{if(this.state.isDragging)if(e.target!==this._editorNode){var t=this.props.editor,n=(0,v.getEventRange)(e,t);if(null===n||n.focus&&void 0===n.focus.offset)this.restoreSelection();else{var r=t.value.document.getDescendant(n.focus.key);if(t.value.document.getClosestInline(r.key))this.restoreSelection();else{var o=t.value.document.getClosestBlock(n.focus.key);o&&"contentBlock"!==o.type||this.moveCursor(n,r)}}}else this.restoreSelection()}),g(this,"moveCursor",(0,r.default)((e,t)=>{var n=this.props.editor,r=e.focus.offset;return n.value.document.getTextsAtRange(h.Range.create({anchor:{key:t.key,offset:r-1},focus:{key:t.key,offset:r}})).size||(r=0),n.withoutSaving(()=>{n.moveToStartOfNode(t).moveForward(r).focus();var o=n.value.selection;return this._dropTarget&&e.focus.offset===this._dropTarget.selection.focus.offset||(this._dropTarget={node:t,selection:o}),n})},30)),g(this,"handleDragEnd",e=>{this.setState({isDragging:!1});var t=this.props,n=t.node,r=t.editor,o=this._dropTarget;if(o&&o.node!==n){r.select(o.selection).removeNodeByKey(n.key);var i=r.value,a=i.focusBlock,s=i.focusText,u=n.toJSON({preserveKeys:!0,perserveData:!0}),l="".concat(a.key).concat(a.nodes.indexOf(s)+1);u.data.value._key=l,u.data._key=l,u.key=l,u=h.Inline.create(u),r.insertInline(u),this.resetDropTarget()}else this.resetDropTarget()}),g(this,"handleInvalidValue",e=>{var t=e,n=this.props,r=n.editor,o=n.onPatch,i=this.getValue();[{_key:r.value.document.getClosestBlock(i._key).key},"children",{_key:i._key}].reverse().forEach(e=>{t=t.prefixAll(e)}),o(t,i)}),g(this,"handleCancelEvent",e=>{e.stopPropagation(),e.preventDefault()}),g(this,"handleEditStart",e=>{e.stopPropagation();var t=this.props,n=t.editor,r=t.node,o=t.onFocus;n.blur(),n.moveToEndOfNode(r).focus().blur();var i=n.value.focusBlock;setTimeout(()=>{o([{_key:i.key},"children",{_key:r.key},c.FOCUS_TERMINATOR])},100)}),g(this,"handleView",()=>{var e=this.props,t=e.editor,n=e.node;(0,e.onFocus)([{_key:t.value.document.getParent(n.key).key},"children",{_key:n.key},c.FOCUS_TERMINATOR])}),g(this,"refPreviewContainer",e=>{this._previewContainer=e}),g(this,"handleInvalidTypeContainerClick",e=>{e.preventDefault(),e.stopPropagation()})}componentDidMount(){var e=this.props.editor,t=i.default.findDOMNode(e);t instanceof HTMLElement&&(this._editorNode=t)}componentWillUnmount(){this.removeDragHandlers()}addDragHandlers(){this._editorNode&&this._editorNode.addEventListener("dragover",this.handleDragOverOtherNode),this._editorNode&&this._editorNode.addEventListener("dragleave",this.handleDragLeave)}removeDragHandlers(){this._editorNode&&this._editorNode.removeEventListener("dragover",this.handleDragOverOtherNode),this._editorNode&&this._editorNode.removeEventListener("dragleave",this.handleDragLeave)}resetDropTarget(){this._dropTarget=null}restoreSelection(){var e=this.props.editor;e.withoutSaving(()=>{e.moveToEndOfNode(this.props.node).focus()}),this.resetDropTarget()}getValue(){return this.props.node.data.get("value")}render(){var e=this.props,t=e.attributes,n=e.blockContentFeatures,r=e.editor,i=e.isSelected,a=e.markers,c=e.node,h=e.readOnly,v=e.type,m=this.getValue(),g=(0,l.resolveTypeName)(m),b=n.types.inlineObjects.map(e=>e.name);if(!b.includes(g))return s.default.createElement("div",y({},t,{onClick:this.handleInvalidTypeContainerClick,contentEditable:!1}),s.default.createElement(f.default,{validTypes:b,actualType:g,value:m,onChange:this.handleInvalidValue}));var _=a.filter(e=>"validation"===e.type).filter(e=>"error"===e.level),w=(0,u.default)([p.default.root,r.value.selection.focus.isInNode(c)&&p.default.focused,i&&p.default.selected,_.length>0&&p.default.hasErrors]),O=m?Object.keys(m):[],k=!m||(0,o.default)(O.sort(),["_key","_type"].sort());return s.default.createElement("span",y({},t,{onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd,onDragEnter:this.handleCancelEvent,onDragLeave:this.handleCancelEvent,onDrop:this.handleCancelEvent,draggable:!h,className:w,contentEditable:!1}),s.default.createElement("span",{onClick:h?this.handleView:this.handleEditStart,ref:this.refPreviewContainer,className:p.default.previewContainer,style:h?{cursor:"default"}:{}},!k&&s.default.createElement(d.default,{type:v,value:m,layout:"inline"}),k&&!h&&s.default.createElement("span",null,"Click to edit")))}}t.default=b,g(b,"defaultProps",{isSelected:!1,readOnly:!1})},function(e,t){e.exports={root:"InlineObject_root_3Zj8Q",previewContainer:"InlineObject_previewContainer_1LBJE",hasErrors:"InlineObject_hasErrors_1amzU",focused:"InlineObject_focused_1p5S3",selected:"InlineObject_selected_3XieI",functions:"InlineObject_functions_2n2vH",linkToReference:"InlineObject_linkToReference_2eD50"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=n(62),i=(n(18),s(n(113))),a=s(n(1471));function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t{var e=this.props.readOnly;this._isMarkingText=!0,setTimeout(()=>{1!==this._clickCounter||this._isMarkingText||(e?this.handleView():this.startEditing()),this._clickCounter=0},200),this._clickCounter++}),l(this,"handleInvalidValue",e=>{var t=e,n=this.props,r=n.editor,o=n.onPatch,i=this.getFirstAnnotation()._key;[{_key:r.value.document.getClosestBlock(this.props.node.key).key},"markDefs",{_key:i}].reverse().forEach(e=>{t=t.prefixAll(e)}),o(t,this.getFirstAnnotation())}),l(this,"handleView",()=>{var e=this.props,t=e.editor,n=e.node;(0,e.onFocus)([{_key:t.value.document.getParent(n.key).key},"markDefs",{_key:n.data.get("annotations")[this.state.focusedAnnotationName]._key},o.FOCUS_TERMINATOR])}),l(this,"handleMouseUp",()=>{this._isMarkingText=!1}),l(this,"handleInvalidTypeContainerClick",e=>{e.preventDefault(),e.stopPropagation()}),l(this,"handleClick",()=>{var e=this.props.type;if(e&&e.annotations&&0!==e.annotations.length){var t,n=this.getAnnotations();e.annotations&&1===e.annotations.length?t=e.annotations[0].name:n&&1===Object.keys(n).length&&(t=n[Object.keys(n)[0]]._type),t&&this.focusAnnotation(t)}});var t=this.props.node.data.get("focusedAnnotationName");this.state={focusedAnnotationName:t}}getAnnotations(){return this.props.node.data.get("annotations")}focusAnnotation(e){var t=this.props,n=t.node,r=t.editor;if(this.setState({focusedAnnotationName:e}),n.data.get("focusedAnnotationName")!==e){var o=function(e){for(var t=1;t{r(i)},100)}getFirstAnnotation(){var e=this.getAnnotations();return e[Object.keys(e)[0]]}render(){var e=this.props,t=e.attributes,n=e.blockContentFeatures,o=e.markers,s=this.props.children,l=this.getAnnotations(),c=n.annotations.filter(e=>Object.keys(l).includes(e.value));if(c.forEach(e=>{var t=e&&e.blockEditor&&e.blockEditor.render?e.blockEditor.render:null;t&&(s=r.default.createElement(t,l[e.value],s))}),0===c.length){var f=this.getFirstAnnotation();return r.default.createElement("span",u({},t,{className:a.default.error,onClick:this.handleInvalidTypeContainerClick,contentEditable:!1}),s,r.default.createElement(i.default,{validTypes:n.annotations.map(e=>e.type.name),actualType:f._type,value:f,onChange:this.handleInvalidValue}))}var d=o.filter(e=>"validation"===e.type).filter(e=>"error"===e.level);return r.default.createElement("span",u({},t,{onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,className:d.length?a.default.error:a.default.valid}),s)}}t.default=c,l(c,"defaultProps",{readOnly:!1})},function(e,t){e.exports={root:"Span_root_2a8Bi",valid:"Span_valid_NWMMz Span_root_2a8Bi",error:"Span_error_2J5gt Span_root_2a8Bi"}},function(e,t){e.exports={root:"Editor_root_3ldkz",blockExtras:"Editor_blockExtras_3WOAA",fullscreen:"Editor_fullscreen_1SKZJ",editor:"Editor_editor_2yaEe",hasBlockExtras:"Editor_hasBlockExtras_3Ysmy",blockDragMarker:"Editor_blockDragMarker_2p2Ir"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=b(n(1474)),o=b(n(45)),i=b(n(0)),a=n(34),s=b(n(1476)),u=b(n(138)),l=b(n(8)),c=b(n(311)),f=b(n(37)),d=b(n(524)),p=b(n(187)),h=b(n(60)),v=b(n(190)),m=b(n(534)),y=b(n(1481)),g=b(n(1515));function b(e){return e&&e.__esModule?e:{default:e}}function _(){return(_=Object.assign||function(e){for(var t=1;t{this.setState({collapsePrimaryIsOpen:!0})}),w(this,"handleClosePrimary",()=>{this.setState({collapsePrimaryIsOpen:!1})}),w(this,"handleClickOutsidePrimary",()=>{this.setState({collapsePrimaryIsOpen:!1})}),w(this,"handleFocus",e=>{(0,this.props.onFocus)(e)}),w(this,"handleCloseValidationResults",()=>{this.setState({showValidationTooltip:!1})}),w(this,"handleToggleValidationResults",()=>{this.setState(e=>({showValidationTooltip:!e.showValidationTooltip}))}),w(this,"handleResize",(0,o.default)(()=>{if(!this.state.isMobile){var e=this._primaryToolbar,t=this.state,n=t.collapsedGroups,o=t.lastContentWidth,i=t.collapsePrimary;if(e&&e.current){var a=e.current.offsetWidth,s=e.current.scrollWidth;if(s>a&&!i){var u=(0,r.default)(O,n)[0];this.setState({collapsedGroups:[...n,u],lastContentWidth:s},()=>{s>a&&n.length!=O.length?this.handleResize():n.length===O.length&&s>a&&this.setState({collapsePrimary:!0})})}i&&o=o&&0!=n.length&&this.setState({collapsedGroups:[]})}}},50))}componentDidMount(){window&&this.setState({isMobile:window.innerWidth"validation"===e.type),P=C.filter(e=>"error"===e.level),j=C.filter(e=>"warning"===e.level),M=this.state,T=M.collapsedGroups,A=M.collapsePrimary,D=M.collapsePrimaryIsOpen;return i.default.createElement(s.default,{offset:!0,scroll:!0,onResize:e=>this.handleResize(e)},e=>{var t=e.measureRef;return i.default.createElement("div",{ref:t,style:w,className:"\n ".concat(g.default.root,"\n ").concat(r?" ".concat(g.default.fullscreen):"","\n ")},i.default.createElement("div",{className:g.default.primary,ref:this._primaryToolbar},A&&i.default.createElement(l.default,{className:g.default.showMoreButton,onClick:this.handleOpenPrimary,kind:"simple"},"Show menu ",i.default.createElement("span",{className:g.default.arrow},i.default.createElement(u.default,{color:"inherit"})),i.default.createElement(v.default,{onClickOutside:this.handleClosePrimary,onEscape:this.handleClosePrimary},D&&i.default.createElement(y.default,_({},this.props,{isPopped:!0,collapsedGroups:T,insertItems:x})))),i.default.createElement("div",{className:g.default.primaryInner},!A&&i.default.createElement(y.default,_({},this.props,{collapsedGroups:T,insertItems:x,isMobile:S})))),i.default.createElement("div",{className:g.default.secondary},r&&(P.length>0||j.length>0)&&i.default.createElement(a.Tooltip,{arrow:!0,duration:100,html:i.default.createElement(p.default,{markers:C,showLink:!0,isOpen:E,documentType:O,onClose:this.handleCloseValidationResults,onFocus:this.handleFocus}),interactive:!0,onRequestClose:this.handleCloseValidationResults,open:E,position:"bottom",style:{padding:0},theme:"light noPadding",trigger:"click"},i.default.createElement(l.default,{color:"danger",icon:h.default,kind:"simple",onClick:this.handleToggleValidationResults,padding:"small"},P.length,i.default.createElement("span",{style:{paddingLeft:"0.5em"}},i.default.createElement(c.default,null)))),i.default.createElement("div",{className:g.default.fullscreenButtonContainer},i.default.createElement(l.default,{kind:"simple",onClick:b,title:"Open in fullscreen (".concat(m.default?"cmd":"ctrl","+enter)"),icon:r?f.default:d.default,bleed:!0}))))})}};t.default=E},function(e,t,n){var r=n(394),o=n(108),i=n(1475),a=n(131),s=o(function(e){return i(r(e,a))});e.exports=s},function(e,t,n){var r=n(417),o=n(129),i=n(183);e.exports=function(e,t,n){var a=e.length;if(a<2)return a?i(e[0]):[];for(var s=-1,u=Array(a);++s-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var o=getComputedStyle(e);n.margin={top:o?parseInt(o.marginTop):0,right:o?parseInt(o.marginRight):0,bottom:o?parseInt(o.marginBottom):0,left:o?parseInt(o.marginLeft):0}}return n}function p(e){return function(t){var n,s;return s=n=function(n){function s(){for(var t,r=arguments.length,o=new Array(r),i=0;i=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";t.a=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new n,E=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new O(t,n,this);k.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){E.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}});var S=void 0!==o.ResizeObserver?o.ResizeObserver:E;t.a=S}).call(t,n(24))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(474))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(0)),o=c(n(1482)),i=c(n(1486)),a=c(n(1492)),s=c(n(1504)),u=c(n(1508)),l=c(n(1514));function c(e){return e&&e.__esModule?e:{default:e}}t.default=class extends r.default.PureComponent{render(){var e=this.props,t=e.blockContentFeatures,n=e.editor,c=e.editorValue,f=e.onFocus,d=e.type,p=e.userIsWritingText,h=e.collapsedGroups,v=e.insertItems,m=e.isMobile,y=e.isPopped;return n?r.default.createElement("div",{className:y?l.default.isPopped:l.default.root},r.default.createElement("div",{className:l.default.blockStyleGroup},r.default.createElement(i.default,{className:l.default.blockStyleSelect,blockContentFeatures:t,editor:n,editorValue:c})),t.decorators.length>0&&r.default.createElement("div",{className:l.default.group},r.default.createElement(a.default,{collapsed:h.indexOf("decoratorButtons")>=0,blockContentFeatures:t,editor:n,editorValue:c})),t.lists.length>0&&r.default.createElement("div",{className:l.default.group},r.default.createElement(u.default,{collapsed:h.indexOf("listItemButtons")>=0,blockContentFeatures:t,editor:n,editorValue:c})),t.annotations.length>0&&r.default.createElement("div",{className:l.default.group},r.default.createElement(o.default,{collapsed:h.indexOf("annotationButtons")>=0,blockContentFeatures:t,editor:n,editorValue:c,onFocus:f,userIsWritingText:p})),v.length>0&&r.default.createElement("div",{className:l.default.group},r.default.createElement(s.default,{collapsed:m||h.indexOf("insertMenu")>=0,showLabels:t.types.blockObjects.concat(t.types.inlineObjects).length<4,blockTypes:t.types.blockObjects,editor:n,editorValue:c,inlineTypes:t.types.inlineObjects,onFocus:f,type:d}))):null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(0)),o=(n(18),n(29)),i=p(n(112)),a=p(n(312)),s=p(n(209)),u=n(62),l=p(n(535)),c=p(n(313)),f=p(n(1484)),d=p(n(314));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){switch(e){case"link":return i.default;default:return a.default}}var m=()=>{};t.default=class extends r.default.Component{constructor(){super(...arguments),h(this,"handleClick",(e,t)=>{var n=this.props,r=n.editor,i=n.onFocus;if(!e.disabled){var a=(0,o.randomKey)(12);if(r.command("toggleAnnotation",{annotationName:e.value,key:a}),r.value.startInline){r.blur();var s=[{_key:r.value.focusBlock.key},"markDefs",{_key:a},u.FOCUS_TERMINATOR];setTimeout(()=>{i(s)},200)}else r.command("focusNoScroll")}}),h(this,"renderAnnotationButton",e=>{var t,n=this.props.editor,o=e.blockEditor?e.blockEditor.icon:null;return o&&("string"==typeof o?t=(()=>r.default.createElement(l.default,{icon:o,active:!!e.active})):"function"==typeof o&&(t=o)),t=t||v(e.value),r.default.createElement(c.default,{onAction:t=>{this.handleClick(e,t)},editor:n,key:"annotationButton".concat(e.value)},r.default.createElement(s.default,{selected:!!e.active,disabled:e.disabled,onClick:m,title:e.title,className:f.default.button,icon:t}))})}shouldComponentUpdate(e){var t=this.props.editor;return!e.userIsWritingText&&(e.userIsWritingText!==this.props.userIsWritingText||e.editorValue.inlines.size!==this.props.editorValue.inlines.size||!1===t.query("hasSelectionWithText",this.props.editorValue)||!1===t.query("hasSelectionWithText",e.editorValue))}getItems(){var e=this.props,t=e.editor,n=e.blockContentFeatures,r=e.editorValue,o=e.userIsWritingText,i=r.inlines,a=o||!1===t.query("hasSelectionWithText")||i.some(e=>"span"!==e.type);return n.annotations.map(e=>(function(e){for(var t=1;tr.default.createElement(l.default,{icon:o,active:!!n[0].active})):"function"==typeof o&&(e=o)),n.length>1&&t?r.default.createElement(d.default,{icon:e||v(n[0].value)},r.default.createElement("div",{className:f.default.root},n.map(this.renderAnnotationButton))):r.default.createElement("div",{className:f.default.root},n.map(this.renderAnnotationButton))}}},function(e,t){e.exports={selected:"ToggleButton_selected_1rkLy selectable_selected_21Ajz selectable_item_LB4ab",unSelected:"ToggleButton_unSelected_1xT8u selectable_item_LB4ab"}},function(e,t){e.exports={root:"AnnotationButtons_root_1YBQu"}},function(e,t){e.exports={root:"CollapsibleButtonGroup_root_2UcXP",popup:"CollapsibleButtonGroup_popup_f4f18 shadows_shadow-1dp_XM5Y5"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(0)),o=a(n(1487)),i=a(n(533));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class extends r.default.Component{constructor(){super(...arguments),s(this,"handleChange",e=>{var t=this.props.editor;t.command("setBlockStyle",e.style),t.command("focusNoScroll"),this.forceUpdate()}),s(this,"renderItem",e=>e.preview)}shouldComponentUpdate(e){var t=e.editorValue.focusBlock,n=this.props.editorValue.focusBlock;return e.editorValue.blocks.size>1||(t&&t.key)!==(n&&n.key)||(t&&t.data.get("style"))!==(n&&n.data.get("style"))}getItemsAndValue(){var e=this.props,t=e.blockContentFeatures,n=e.editor,o=t.styles.map(e=>{var t=e&&e.blockEditor&&e.blockEditor.render,o=r.default.createElement(i.default,{attributes:{},style:e.value,styleComponent:t},e.title);return{key:"style-".concat(e.value),style:e.value,preview:o,title:" ".concat(e.title),active:n.query("hasStyle",e.value)}}),a=o.filter(e=>e.active);return 0===a.length&&(o.push({key:"style-none",style:null,preview:r.default.createElement("div",null,"No style"),title:" No style",active:!0}),a=o.slice(-1)),{items:o,value:a}}render(){var e=this.getItemsAndValue(),t=e.items,n=e.value;if(!t||t.length<2)return null;var i=this.props,a=i.editorValue,s=i.className,u=a.focusBlock,l=!!u&&u.isVoid;return r.default.createElement("label",{className:s},r.default.createElement("span",{style:{display:"none"}},"Text"),r.default.createElement(o.default,{items:t,value:n,disabled:l,onChange:this.handleChange,renderItem:this.renderItem,transparent:!0}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(1)),o=d(n(0)),i=d(n(478)),a=d(n(1488)),s=d(n(138)),u=d(n(1489)),l=d(n(536)),c=n(90),f=d(n(190));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h={preventOverflow:{padding:0,boundariesElement:"viewport"},offset:{offset:"0, 0"},flip:{enabled:!1},customStyle:{enabled:!0,fn:e=>(e.styles=function(e){for(var t=1;t{e.preventDefault(),e.stopPropagation();var t=e.currentTarget.dataset.index;if(t){var n=this.props.items[t];n&&(this.props.onChange(n),this.handleCloseList(),this.keyboardNavigation=!1)}}),p(this,"handleOpenList",()=>{this.setState({showList:!0},()=>{this.menuHasKeyboardFocus=!0,this.keyboardNavigation=!0,this.firstItemElement.current.focus(),this.props.onOpen()})}),p(this,"handleCloseList",()=>{this.buttonElement.current.focus(),this.setState({showList:!1},()=>{this.props.onClose()})}),p(this,"handleButtonClick",e=>{this.state.showList?this.handleCloseList():this.handleOpenList(),this.keyboardNavigation=0==e.detail}),p(this,"handleButtonKeyDown",e=>{"Enter"==e.key&&this.handleOpenList()}),p(this,"handleButtonBlur",e=>{this.state.showList&&!this.menuHasKeyboardFocus&&this.keyboardNavigation&&this.handleCloseList()}),p(this,"handleMenuBlur",e=>{this.menuHasKeyboardFocus=!1,this.buttonElement.current.focus(),this.handleCloseList()}),p(this,"handleItemKeyPress",e=>{"Enter"===e.key&&this.handleSelect(e)})}render(){var e=this.props,t=e.value,n=e.items,r=e.className,d=e.placeholder,p=e.renderItem,v=e.transparent,m=this.state.showList;return o.default.createElement("div",{tabIndex:0,onClick:this.handleButtonClick,onBlur:this.handleButtonBlur,onKeyPress:this.handleButtonKeyDown,className:"".concat(a.default.root," ").concat(r||""," ").concat(v?a.default.transparent:"")},o.default.createElement("div",{className:a.default.inner,ref:this.buttonElement},o.default.createElement("div",{className:a.default.selectContainer},o.default.createElement("span",{className:a.default.title},t&&t.length>1&&"Multiple",t&&1==t.length&&t[0].title,!t&&d),o.default.createElement("span",{className:a.default.arrow},o.default.createElement(s.default,{color:"inherit"})))),o.default.createElement(f.default,{onEscape:this.handleCloseList,modifiers:h,onClickOutside:this.handleCloseList,popperClassName:a.default.popper},m&&o.default.createElement(o.default.Fragment,null,o.default.createElement(c.List,{className:a.default.list},o.default.createElement(i.default,null,n.map((e,n)=>{var r=t&&t.length>1&&t.includes(e),i=t&&1===t.length&&t[0].key==e.key,s="\n ".concat(i?a.default.itemSelected:a.default.item,"\n ").concat(r?a.default.itemSemiSelected:"","\n ");return o.default.createElement("div",{key:"".concat(e.key).concat(n),title:e.title,"data-index":n,onClick:this.handleSelect,className:s,onKeyPress:this.handleItemKeyPress,ref:0===n&&this.firstItemElement},o.default.createElement("div",{className:a.default.itemIcon},i&&o.default.createElement(l.default,null),r&&o.default.createElement(u.default,null)),o.default.createElement("div",{className:a.default.itemContent},p(e)))}))),o.default.createElement("div",{tabIndex:0,onFocus:this.handleMenuBlur}))))}}p(v,"propTypes",{placeholder:r.default.string,onChange:r.default.func,onOpen:r.default.func,onClose:r.default.func,value:r.default.array,renderItem:r.default.func,className:r.default.string,items:r.default.arrayOf(r.default.shape({title:r.default.string,active:r.default.bool})),transparent:r.default.bool}),p(v,"defaultProps",{className:"",onChange(){},onOpen(){},onClose(){},items:[],transparent:!1});var m=v;t.default=m},function(e,t){e.exports={root:"StyleSelect_root_1X5gC",inner:"StyleSelect_inner_2tLqz text-input_root_3I0je",transparent:"StyleSelect_transparent_1sNeF",title:"StyleSelect_title_tvaC-",selectContainer:"StyleSelect_selectContainer_28cbn DefaultSelect_selectContainer_AGEPt",arrow:"StyleSelect_arrow_3Fr13",popper:"StyleSelect_popper_36odm shadows_shadow-6dp_3hP4o",list:"StyleSelect_list_2EMmA",item:"StyleSelect_item_1Ed8X selectable_item_LB4ab",itemContent:"StyleSelect_itemContent_1na0r",itemSelected:"StyleSelect_itemSelected_2Ww-i StyleSelect_item_1Ed8X selectable_item_LB4ab",itemIcon:"StyleSelect_itemIcon_35Nyf"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1490))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{};t.default=class extends o.default.Component{constructor(){super(...arguments),y(this,"handleClick",e=>{this.props.editor.toggleMark(e.value).focus()}),y(this,"renderDecoratorButton",e=>{var t=this.props.editor,n=(e.blockEditor?e.blockEditor.icon:null)||g(e.value),r=d.keyMaps[e.value]?"(".concat(d.keyMaps[e.value],")"):"",i="".concat(e.title," ").concat(r);return o.default.createElement("span",{className:h.default.buttonWrapper,key:e.value},o.default.createElement(p.default,{onAction:()=>{this.handleClick(e)},editor:t,key:"decoratorButton".concat(e.value)},o.default.createElement(f.default,{selected:!!e.active,disabled:e.disabled,onClick:b,title:i,className:h.default.button,icon:n})))})}shouldComponentUpdate(e){var t=e.editorValue.marks.map(e=>e.type),n=this.props.editorValue.marks.map(e=>e.type);return e.collapsed!=this.props.collapsed||!(0,r.default)(t,n)}getItems(){var e=this.props,t=e.editor,n=e.blockContentFeatures,r=t.value.focusBlock,o=!!r&&t.query("isVoid",r);return n.decorators.map(e=>(function(e){for(var t=1;t0&&e?o.default.createElement(v.default,{icon:n||g(t[0].value)},t.map(this.renderDecoratorButton)):o.default.createElement("div",{className:h.default.root},t.map(this.renderDecoratorButton))}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1494))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{var t=e.icon;return o.default.createElement("div",{className:f.default.item},t&&o.default.createElement("div",{className:f.default.icon},o.default.createElement(t,null)),e.title)}),p(this,"renderButton",e=>{var t=this.props.showLabels;return o.default.createElement(l.Tooltip,{title:"Insert ".concat(e.title),disabled:this.props.collapsed,key:"insertMenuItem_".concat(e.key),style:t?{display:"block",flexGrow:1,minWidth:"fit-content"}:{}},o.default.createElement(a.default,{onClick:()=>this.handleOnAction(e),title:"Insert ".concat(e.title),"aria-label":"Insert ".concat(e.title),icon:e.icon,kind:"simple",bleed:!0},t&&e.title))}),p(this,"getIcon",(e,t)=>{var n=(0,r.default)(e,"to[0].icon");return e.icon||e.type&&e.type.icon||n||t}),p(this,"handleOnAction",e=>{var t,n=this.props,r=n.onFocus,o=n.editor;e.isInline?(o.command("insertInlineObject",{objectType:e.value}),t=[{_key:o.value.focusBlock.key},"children",{_key:o.value.focusInline.key},c.FOCUS_TERMINATOR]):(o.command("insertBlockObject",{objectType:e.value}),t=[{_key:o.value.focusBlock.key},c.FOCUS_TERMINATOR]),setTimeout(()=>r(t),200)})}shouldComponentUpdate(e){return this.props.collapsed!==e.collapsed||this.props.blockTypes!==e.blockTypes||this.props.inlineTypes!==e.inlineTypes||this.props.editorValue.focusBlock!==e.editorValue.focusBlock}getItems(){var e=this.props.editor,t=e.value.focusBlock,n=this.props.blockTypes.map(e=>({title:e.title,value:e,icon:this.getIcon(e,s.default),isInline:!1,isDisabled:!1})),r=this.props.inlineTypes.map(n=>({title:n.title,icon:this.getIcon(n,u.default),value:n,isInline:!0,isDisabled:!t||e.query("isVoid",t)}));return n.concat(r)}render(){var e=this.props.collapsed,t=this.getItems();return e?o.default.createElement(i.default,{items:t,renderItem:this.renderItem,onAction:this.handleOnAction,kind:"simple"},"Insert"):t.map((e,t)=>(function(e){for(var t=1;to.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.default.createElement("g",{clipPath:"url(#clip0)"},o.default.createElement("rect",{x:"2.5",y:"7.5",width:"19",height:"11",stroke:"currentColor"}),o.default.createElement("line",{x1:"2",y1:"5.5",x2:"22",y2:"5.5",stroke:"currentColor"}),o.default.createElement("line",{x1:"2",y1:"20.5",x2:"22",y2:"20.5",stroke:"currentColor"})));t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};var i=()=>o.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o.default.createElement("g",null,o.default.createElement("path",{d:"M4.34668 15.1206C4.05371 15.3696 3.771 15.5454 3.49854 15.6479C3.229 15.7505 2.93896 15.8018 2.62842 15.8018C2.11572 15.8018 1.72168 15.6772 1.44629 15.4282C1.1709 15.1763 1.0332 14.8555 1.0332 14.4658C1.0332 14.2373 1.08447 14.0293 1.18701 13.8418C1.29248 13.6514 1.42871 13.499 1.5957 13.3848C1.76562 13.2705 1.95605 13.1841 2.16699 13.1255C2.32227 13.0845 2.55664 13.0449 2.87012 13.0068C3.50879 12.9307 3.979 12.8398 4.28076 12.7344C4.28369 12.626 4.28516 12.5571 4.28516 12.5278C4.28516 12.2056 4.21045 11.9785 4.06104 11.8467C3.85889 11.668 3.55859 11.5786 3.16016 11.5786C2.78809 11.5786 2.5127 11.6445 2.33398 11.7764C2.1582 11.9053 2.02783 12.1353 1.94287 12.4663L1.16943 12.3608C1.23975 12.0298 1.35547 11.7632 1.5166 11.561C1.67773 11.356 1.91064 11.1992 2.21533 11.0908C2.52002 10.9795 2.87305 10.9238 3.27441 10.9238C3.67285 10.9238 3.99658 10.9707 4.24561 11.0645C4.49463 11.1582 4.67773 11.2769 4.79492 11.4204C4.91211 11.561 4.99414 11.7397 5.04102 11.9565C5.06738 12.0913 5.08057 12.3345 5.08057 12.686V13.7407C5.08057 14.4761 5.09668 14.9419 5.12891 15.1382C5.16406 15.3315 5.23145 15.5176 5.33105 15.6963H4.50488C4.42285 15.5322 4.37012 15.3403 4.34668 15.1206ZM4.28076 13.354C3.99365 13.4712 3.56299 13.5708 2.98877 13.6528C2.66357 13.6997 2.43359 13.7524 2.29883 13.811C2.16406 13.8696 2.06006 13.9561 1.98682 14.0703C1.91357 14.1816 1.87695 14.3062 1.87695 14.4438C1.87695 14.6548 1.95605 14.8306 2.11426 14.9712C2.27539 15.1118 2.50977 15.1821 2.81738 15.1821C3.12207 15.1821 3.39307 15.1162 3.63037 14.9844C3.86768 14.8496 4.04199 14.6665 4.15332 14.4351C4.23828 14.2563 4.28076 13.9927 4.28076 13.644V13.354Z",fill:"currentColor"}),o.default.createElement("path",{d:"M19.7388 15.6963H19.0049V9.25391H19.7959V11.5522C20.1299 11.1333 20.5562 10.9238 21.0747 10.9238C21.3618 10.9238 21.6328 10.9824 21.8877 11.0996C22.1455 11.2139 22.3564 11.3765 22.5205 11.5874C22.6875 11.7954 22.8179 12.0474 22.9116 12.3433C23.0054 12.6392 23.0522 12.9556 23.0522 13.2925C23.0522 14.0923 22.8545 14.7104 22.459 15.147C22.0635 15.5835 21.5889 15.8018 21.0352 15.8018C20.4844 15.8018 20.0522 15.5718 19.7388 15.1118V15.6963ZM19.73 13.3276C19.73 13.8872 19.8062 14.2915 19.9585 14.5405C20.2075 14.9478 20.5444 15.1514 20.9692 15.1514C21.3149 15.1514 21.6138 15.002 21.8657 14.7031C22.1177 14.4014 22.2437 13.9531 22.2437 13.3584C22.2437 12.749 22.1221 12.2993 21.8789 12.0093C21.6387 11.7192 21.3472 11.5742 21.0044 11.5742C20.6587 11.5742 20.3599 11.7251 20.1079 12.0269C19.856 12.3257 19.73 12.7593 19.73 13.3276Z",fill:"currentColor"}),o.default.createElement("rect",{x:"6.5",y:"7.5",width:"11.014",height:"9.961",stroke:"currentColor"})));t.default=i},function(e,t){e.exports={item:"InsertMenu_item_1pnDH",icon:"InsertMenu_icon_6qtw0"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(0)),o=d(n(1509)),i=d(n(1511)),a=d(n(312)),s=d(n(209)),u=d(n(535)),l=d(n(313)),c=d(n(314)),f=d(n(1513));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){switch(e){case"number":return i.default;case"bullet":return o.default;default:return a.default}}var v=()=>{};t.default=class extends r.default.Component{constructor(){super(...arguments),p(this,"handleClick",e=>{this.props.editor.command("toggleListItem",e.value),this.forceUpdate()}),p(this,"renderListItemButton",e=>{var t,n=this.props.editor,o=e.blockEditor?e.blockEditor.icon:null;return o&&("string"==typeof o?t=(()=>r.default.createElement(u.default,{icon:o,active:!!e.active})):"function"==typeof o&&(t=o)),t=t||h(e.value),r.default.createElement(l.default,{onAction:()=>this.handleClick(e),editor:n,key:"listItemButton".concat(e.value)},r.default.createElement(s.default,{selected:e.active,disabled:e.disabled,onClick:v,title:e.title,className:f.default.button,icon:t}))})}shouldComponentUpdate(e){var t=e.editorValue.focusBlock,n=this.props.editorValue.focusBlock;return e.editorValue.blocks.size>1||e.collapsed!=this.props.collapsed||(t&&t.key)!==(n&&n.key)||(t&&t.data.get("listItem"))!==(n&&n.data.get("listItem"))}hasListItem(e){return this.props.editor.value.blocks.some(t=>t.data.get("listItem")===e)}getItems(){var e=this.props,t=e.editor,n=e.blockContentFeatures,r=t.value.focusBlock,o=!!r&&t.query("isVoid",r);return n.lists.map(e=>(function(e){for(var t=1;t0&&e?r.default.createElement(c.default,{icon:n||h(t[0].value)},t.map(this.renderListItemButton)):r.default.createElement("div",{className:f.default.root},t.map(this.renderListItemButton))}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1510))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{n.applyOperation({type:"remove_node",path:[0],node:e})});var r=(0,d.default)(e),o=r.toJSON({preserveKeys:!0,preserveData:!0});return o.data=h({},o.data,{placeholder:!0}),n.applyOperation({type:"insert_node",path:[0],node:o}),n.focus(),n.operations}var i=m(t.path);return i&&n.value.document.getDescendant(i)&&n.removeNodeByKey(i),n.operations}function y(e,n){if(e){var r=(0,i.blocksToEditorValue)(e,t),o=(0,l.default)(n);return n.value.document.nodes.forEach(e=>{n.applyOperation({type:"remove_node",path:[0],node:e})}),r.document.nodes.reverse().forEach(e=>{n.applyOperation({type:"insert_node",path:[0],node:e})}),n.applyOperation(o),n.operations}throw new Error("No snapshot given!")}return function(e,n){if(p.flush(),p.setValue(n),"internal"===e.origin&&"set"===e.type&&(0,o.default)(e.path,[]))return function(e,t){if(!t.value.selection.isFocused||!Array.isArray(e.value)||0===e.value.length)return y(e.value,t);var n=t.value.focusBlock.key,r=t.value.anchorBlock.key,o=t.value.document.assertPath(n),i=t.value.document.assertPath(r),s=o.get(0),u=i.get(0),l=e.value.findIndex(e=>e._key===n),c=e.value.findIndex(e=>e._key===r);if(l!==s||c!==u){var f=t.value.selection.toJSON();return f.anchor.path=[c,...f.anchor.path.slice(1)],f.focus.path=[l,...f.focus.path.slice(1)],y(e.value,t),t.select(a.Selection.fromJSON(f)),t.operations}return y(e.value,t)}(e,p);if(e.path.length>1){if("markDefs"===e.path[1])return function(e,t){var n=t.value.document,r=e.path[2]._key,o=(0,u.default)(r,n),i=o.data.toObject();i.annotations=i.annotations||{};var a=Object.keys(i.annotations).find(e=>i.annotations[e]._key===r);if(!a)throw new Error("Annotation not found in data");if("unset"===e.type&&3===e.path.length)return delete i.annotations[a],0===Object.keys(i.annotations).length?(t.unwrapInlineByKey(o.key),t.operations):(t.setNodeByKey(o.key,{data:i}),t.operations);var l=h({},e);l.path=e.path.slice(2);var c=i.annotations[a];return i.annotations[a]=(0,s.applyAll)([c],[l])[0],t.setNodeByKey(o.key,{data:i}),t.operations}(e,p);if("children"===e.path[1]&&e.path.length>=3){var l=p.value.document.getNode(e.path[0]._key),c=function(e,t){var n=null,r=t.length-1;for(;null===n&&r>=0;){var o=t[r]._key;o&&(n=e.getDescendant(o)||null),r--}return n}(l,e.path),f=p.query("isVoid",c);if("unset"===e.type)return v(e,p);if(f)return function(e,t,n){var r=n.data.toObject(),o=h({},e);o.path=o.path.slice(3);var i=(0,s.applyAll)(r.value,[o]);return r.value=i,t.setNodeByKey(n.key,{data:r}),t.operations}(e,p,c);if("insert"===e.type||"set"===e.type||"diffMatchPatch"===e.type)return function(e,t,n,o){var i=t.value.document.assertPath(n.key),u=e.path[0]._key,l=m(e.path),c=n.toJSON({preserveKeys:!0}),f=function(e,t){var n=-1;return e.nodes.some(e=>e.key===t.key?(n++,!0):("text"===e.object?n+=e.leaves.size:n++,!1)),n}(o,n),d=c.leaves.findIndex((e,t)=>"".concat(u).concat(f+t)===l);if("insert"===e.type){var p=d;"before"===e.position&&p--;var v=[];return c.leaves.forEach((t,n)=>{p===n?(v.push(t),e.items.forEach(e=>{var t={text:e.text,marks:a.Mark.createSet(e.marks.map(e=>({type:e})))};v.push(t)})):v.push(t)}),c.leaves=v,t.replaceNodeByPath(i,a.Text.fromJSON(c)),t.operations}if("set"===e.type){var y,g=(0,r.default)(e.value),b=g?e.value:e.value.text;return 1===n.leaves.size?(y=g?n.leaves.map(e=>e.marks).get(0):a.Mark.createSet(e.value.marks.map(e=>({type:e}))),t.replaceNodeByPath(i,a.Text.create({text:b,marks:y})),t.operations):(c.leaves[d]={object:"leaf",text:b,marks:g?n.leaves.get(d).marks:a.Mark.createSet(e.value.marks.map(e=>({type:e})))},t.replaceNodeByPath(i,a.Text.fromJSON(c)),t.operations)}if("diffMatchPatch"===e.type){var _=c.leaves[d].marks;return c.leaves[d]={object:"leaf",text:(0,s.default)(c.leaves[d].text,h({},e,{path:[]})),marks:_},t.replaceNodeByPath(i,a.Text.fromJSON(c)),t.operations}throw new Error("Don't know how to handle ".concat(e.type," here"))}(e,p,function(e,t){if(!e)throw new Error("No blockNode given!");var n=-1,r=e.nodes.findIndex(r=>{if("text"===r.object)for(var o=0;oe.key===r);if(t.query("isVoid",o)){var i=o.data.toObject(),a=h({},e);a.path=a.path.slice(1);var u=(0,s.applyAll)(i.value,[a]);i.value=u,t.setNodeByKey(o.key,{data:i})}return t.operations}(e,p)}switch(e.type){case"set":return function(e,n){if(Array.isArray(e.value)){if(0===e.path.length)return y(e.value,n);throw new Error("Invalid patch, looks like it should be an insert: ".concat(JSON.stringify(e)))}var r=(0,i.blocksToEditorValue)([e.value],t).document.nodes[0],o=m(e.path);return n.replaceNodeByKey(o,r),n.operations}(e,p);case"setIfMissing":return function(e,t){if(0===e.path.length)return 0===t.value.document.nodes.size?y(e.value,t):t.operations;var n=t.value.document,r=e.path[0]._key,o=n.nodes.find(e=>e.key===r);if(t.query("isVoid",o)){var i=o.data.toObject();if(!i.value){var a=h({},i,{value:e.value});t.setNodeByKey(r,{data:a})}}return t.operations}(e,p);case"insert":return function(e,n){var r=e.items,o=e.position,a=(0,i.blocksToEditorValue)(r,t),s=m(e.path),u=n.value.document.nodes.findIndex((t,n)=>s?t.key===s:n===e.path[0]);"before"===o&&(u=u>0?u--:u);"after"===o&&u++;return a.document.nodes.forEach(e=>{n.applyOperation({type:"insert_node",path:[u++],node:e})}),n.operations}(e,p);case"unset":return v(e,p);default:throw new Error("Don't know how to handle the patch ".concat(e.type))}}};var r=p(n(315)),o=p(n(46)),i=n(29),a=n(18),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1519)),u=p(n(528)),l=p(n(1526)),c=p(n(307)),f=p(n(206)),d=p(n(529));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){for(var t=1;t{e._key&&(t=e._key)}),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"applyAll",{enumerable:!0,get:function(){return r.applyAll}});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(316))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.slice();if(0===t.path.length){if("setIfMissing"===t.type){if(!Array.isArray(t.value))throw new Error("Cannot set value of an array to a non-array");return void 0===e?t.value:e}if("set"===t.type){if(!Array.isArray(t.value))throw new Error("Cannot set value of an array to a non-array");return t.value}if("unset"===t.type)return;if("move"===t.type){if(!t.value||!(0,o.default)(t.value,"from")||!(0,o.default)(t.value,"to"))throw new Error('Invalid value of \'move\' patch. Expected a value with "from" and "to" indexes, instead got: '.concat(JSON.stringify(t.value)));return function(e,t,n){var r=e.slice(),o=r[t];return r.splice(t,1),r.splice(n,0,o),r}(n,t.value.from,t.value.to)}throw new Error("Invalid array operation: ".concat(t.type))}var s=(d=t.path,function(e){if(Array.isArray(e))return e}(d)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),l=s[0],c=s.slice(1),f=function(e,t){if("number"==typeof t)return t;var n=(0,r.default)(e,t);return-1!==n&&n}(e,l);var d;if(!1===f)return n;if(0===c.length){if("insert"===t.type){var p=t.position,h=t.items;return(0,a.default)(e,p,f,h)}if("unset"===t.type){if("number"!=typeof f)throw new Error('Expected array index to be a number, instead got "'.concat(f,'"'));return n.splice(f,1),n}}return n[f]=(0,i.default)(n[f],function(e){for(var t=1;t3?a-3:0),u=3;ue.concat(t),[])}t.AFTER=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(0===t.path.length){if("set"===t.type){if(!(0,r.default)(t.value))throw new Error("Cannot set value of an object to a non-object");return t.value}if("unset"===t.type)return;if("setIfMissing"===t.type)return void 0===e?t.value:e;throw new Error("Invalid object operation: ".concat(t.type))}var s=(f=t.path,function(e){if(Array.isArray(e))return e}(f)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),l=s[0],c=s.slice(1);var f;if("string"!=typeof l)throw new Error("Expected field name to be a string, instad got: ".concat(l));if(0===c.length&&"unset"===t.type)return(0,i.default)(n,l);return n[l]=(0,a.default)(n[l],function(e){for(var t=1;t0)throw new Error('Cannot apply deep operations on primitive values. Received patch with type "'.concat(t.type,'" and path "').concat(t.path.join("."),' that targeted the value "').concat(JSON.stringify(e),'"'));return r[t.type](e,t.value)};var r={replace:(e,t)=>t,set:(e,t)=>t,setIfMissing:(e,t)=>void 0===e?t:e,unset(e,t){},inc:(e,t)=>e+t,dec:(e,t)=>e-t},o=Object.keys(r)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!a.includes(t.type))throw new Error('Received patch of unsupported type: "'.concat(JSON.stringify(t.type),'" for string. This is most likely a bug.'));if(t.path.length>0)throw new Error('Cannot apply deep operations on string values. Received patch with type "'.concat(t.type,'" and path "').concat(t.path.join("."),' that targeted the value "').concat(JSON.stringify(e),'"'));return i[t.type](e,t.value)};var o=new(((r=n(186))&&r.__esModule?r:{default:r}).default),i={replace:(e,t)=>t,set:(e,t)=>t,setIfMissing:(e,t)=>void 0===e?t:e,unset(e,t){},diffMatchPatch:(e,t)=>o.patch_apply(o.patch_fromText(t),e)[0]},a=Object.keys(i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.value.selection.focus&&e.value.selection.focus.key?e.value.document.getPath(e.value.selection.focus.key):void 0,n=e.value.selection.anchor&&e.value.selection.anchor.key?e.value.document.getPath(e.value.selection.anchor.key):void 0,o={type:"set_selection",value:e.value,selection:e.value.selection,properties:{anchor:{path:n?n.toArray():null,offset:e.value.selection.anchor.offset},focus:{path:t?t.toArray():null,offset:e.value.selection.focus.offset}}};return r.Operation.create(o)};var r=n(18)},function(e,t){e.exports={root:"SyncWrapper_root_MHwuu",warning:"SyncWrapper_warning_1V2Vl",isOutOfSyncWarning:"SyncWrapper_isOutOfSyncWarning_7-jA4 SyncWrapper_warning_1V2Vl",disabledEditor:"SyncWrapper_disabledEditor_17EY1 SyncWrapper_warning_1V2Vl"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(0)),o=p(n(1529)),i=p(n(33)),a=p(n(114)),s=p(n(538)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(145)),l=p(n(112)),c=n(16),f=p(n(1537)),d=p(n(8));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v={},m=()=>({isFetching:!1,hits:[],previewSnapshot:null,refCache:{}});t.default=class extends r.default.Component{constructor(){super(...arguments),h(this,"_lastQuery",void 0),h(this,"_input",void 0),h(this,"state",m()),h(this,"subscriptions",(0,s.default)("search","previewSnapshot")),h(this,"_lastQuery",""),h(this,"handleFocus",()=>{this._lastQuery&&this.search(this._lastQuery)}),h(this,"handleChange",e=>{var t=this.props.type;this.props.onChange(u.default.from((0,u.setIfMissing)({_type:t.name,_ref:e._id}),!0===t.weak?(0,u.set)(!0,["_weak"]):(0,u.unset)(["_weak"]),(0,u.set)(e._id,["_ref"])))}),h(this,"handleFixWeak",()=>{var e=this.props.type;this.props.onChange(u.default.from(!0===e.weak?(0,u.set)(!0,["_weak"]):(0,u.unset)(["_weak"])))}),h(this,"handleClear",()=>{this.props.onChange(u.default.from((0,u.unset)()))}),h(this,"handleSearch",e=>{this.search(e)}),h(this,"handleOpen",()=>{this.search("")}),h(this,"search",e=>{var t=this.props,n=t.type,r=t.onSearch;this.setState({isFetching:!0}),this.subscriptions.replace("search",r(e,n).subscribe(e=>{var t=e.reduce((e,t)=>(e[t._id]=t,e),Object.assign({},this.state.refCache));this.setState({hits:e,isFetching:!1,refCache:t})}))}),h(this,"renderHit",e=>{var t=this.getMemberTypeFor(e._type);return r.default.createElement(a.default,{type:t,value:e,layout:"default"})}),h(this,"renderOpenItemElement",()=>{var e=this.props.value,t=this.state.previewSnapshot;return e&&e._ref&&t!==v?r.default.createElement(c.IntentLink,{title:t&&"Open ".concat(t.title),intent:"edit",params:{id:e._ref}},r.default.createElement(l.default,null)):null}),h(this,"setInput",e=>{this._input=e})}componentWillUnmount(){this.subscriptions.unsubscribeAll()}componentDidMount(){this.getPreviewSnapshot(this.props.value)}componentWillReceiveProps(e){e.value!==this.props.value&&(this.setState(m()),this.getPreviewSnapshot(e.value))}getPreviewSnapshot(e){if(e&&e._ref){var t=this.props,n=t.getPreviewSnapshot,r=t.type;this.subscriptions.replace("previewSnapshot",n(e,r).subscribe(e=>{this.setState({previewSnapshot:e||v})}))}}getMemberTypeFor(e){return this.props.type.to.find(t=>t.type.name===e)}focus(){this._input&&this._input.focus()}render(){var e=this.props,t=e.type,n=e.value,a=e.level,s=e.markers,u=e.readOnly,l=this.state,c=l.previewSnapshot,p=l.isFetching,h=l.hits,m=n&&h.find(e=>e._id===n._ref),y=n&&n._weak?"weak":"strong",g=!0===t.weak?"weak":"strong",b=c===v,_=n&&n._ref,w=_&&!b&&y!==g,O=s.filter(e=>"validation"===e.type).filter(e=>"error"===e.level),k=n?c&&c.title:void 0;c&&!c.title&&(k="Untitled document");var E=n&&n._ref&&!c,S=E?"Loading…":"Type to search…";return r.default.createElement(i.default,{markers:s,label:t.title,level:a,description:t.description},r.default.createElement("div",{className:w||b?f.default.hasWarnings:""},w&&r.default.createElement("div",{className:f.default.weakRefMismatchWarning},"Warning: This reference is ",r.default.createElement("em",null,y),", but should be ",r.default.createElement("em",null,g)," ","according to schema.",r.default.createElement("div",null,r.default.createElement(d.default,{onClick:this.handleFixWeak},"Convert to ",g))),r.default.createElement(o.default,{placeholder:u?"":S,title:b&&_?"Document id: ".concat(n._ref||"unknown"):c&&c.description,customValidity:O.length>0?O[0].item.message:"",onOpen:this.handleOpen,onFocus:this.handleFocus,onSearch:this.handleSearch,onChange:this.handleChange,onClear:this.handleClear,openItemElement:this.renderOpenItemElement,value:m||n,inputValue:b?"":k,renderItem:this.renderHit,isLoading:p||E,items:h,ref:this.setInput,readOnly:u||E})))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=a(n(1530));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends o.default.PureComponent{constructor(e){super(),l(this,"handleChange",e=>{var t=this.props.onChange;this.setState({isInputSelected:!0}),t(e),this.handleClose()}),l(this,"handleOpen",()=>{this.setState({isOpen:!0}),this.props.onOpen()}),l(this,"handleClose",()=>{this.setState({isOpen:!1}),this.props.onClose()}),l(this,"handleInputChange",e=>{this.setState({inputValue:e,isInputSelected:!1,isOpen:!0}),this.props.onSearch(e)}),l(this,"handleHighlightIndexChange",e=>{this.setState({highlightIndex:e})}),l(this,"setRootElement",e=>{this._rootElement=e}),l(this,"setInput",e=>{this._input=e}),l(this,"handleFocus",e=>{this.setState({hasFocus:!0})}),l(this,"handleBlur",e=>{this.setState({hasFocus:!1,inputValue:this.props.inputValue}),this.state.isOpen&&this._rootElement.contains(e.relatedTarget)&&this.setState({isOpen:!1})});var t=e.inputValue;this.state={inputValue:t||"",isOpen:!1,highlightIndex:-1,isInputSelected:!1,hasFocus:!1}}componentWillReceiveProps(e){e.items!=this.props.items&&this.setState({searchResult:this.props.items}),e.inputValue!==this.props.inputValue&&this.setState({inputValue:e.inputValue})}focus(){this._input.focus()}render(){var e=this.state,t=e.isOpen,n=e.highlightIndex,r=e.isInputSelected,a=e.inputValue,l=e.hasFocus,c=this.props,f=(c.onSearch,c.className),d=c.readOnly,p=c.placeholder,h=u(c,["onSearch","className","readOnly","placeholder"]),v=d?{}:{onInputChange:this.handleInputChange,onChange:this.handleChange};return o.default.createElement("div",{ref:this.setRootElement,className:f},o.default.createElement(i.default,s({},h,v,{placeholder:p,onFocus:this.handleFocus,onBlur:this.handleBlur,onHighlightIndexChange:this.handleHighlightIndexChange,onOpen:this.handleOpen,onClose:this.handleClose,isOpen:t,highlightIndex:n,isInputSelected:r,inputValue:a,isSelected:l,ref:this.setInput,readOnly:d})))}}t.default=c,l(c,"propTypes",{label:r.default.string,description:r.default.string,className:r.default.string,onChange:r.default.func,onSearch:r.default.func,onOpen:r.default.func,onClose:r.default.func,onClear:r.default.func,value:r.default.object,inputValue:r.default.string,error:r.default.bool,placeholder:r.default.string,isLoading:r.default.bool,renderItem:r.default.func.isRequired,items:r.default.array,dropdownPosition:r.default.string,readOnly:r.default.bool}),l(c,"defaultProps",{placeholder:"Type to search…",isLoading:!1,onChange(){},onSearch(){},onOpen(){},onClose(){}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n(19)),o=g(n(1)),i=g(n(0)),a=g(n(1531)),s=g(n(138)),u=g(n(72)),l=g(n(26)),c=g(n(37)),f=n(139),d=g(n(84)),p=g(n(136)),h=g(n(83)),v=n(69),m=g(n(105)),y=g(n(1532));function g(e){return e&&e.__esModule?e:{default:e}}function b(){return(b=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=()=>{};class k extends i.default.PureComponent{constructor(){super(...arguments),w(this,"handleSelect",e=>{this.props.onChange(e)}),w(this,"handleArrowClick",()=>{var e=this.props,t=e.isOpen,n=e.onOpen;t?this.handleClose():n()}),w(this,"handleArrowKeyPress",e=>{"Enter"===e.key&&this.handleArrowClick()}),w(this,"handleInputChange",e=>{this.props.onInputChange(e.target.value)}),w(this,"handleKeyDown",e=>{var t=this.props,n=t.items,r=t.highlightIndex,o=t.onHighlightIndexChange,i=t.isOpen,a=t.onOpen;if("ArrowDown"!==e.key||i||a(),n&&0!==n.length){var s=n.length-1;if("ArrowUp"===e.key){e.preventDefault();var u=r-1;o(u<0?s:u)}if("ArrowDown"===e.key){e.preventDefault(),i||a();var l=r+1;o(l>s?0:l)}}}),w(this,"handleKeyUp",e=>{var t=this.props,n=t.items,r=t.onChange,o=t.highlightIndex;"Enter"===e.key&&o>-1&&n[o]&&r(n[o])}),w(this,"handleClose",e=>{this.props.onClose()}),w(this,"setInput",e=>{this._input=e}),w(this,"renderItem",e=>i.default.createElement("div",{className:a.default.item},this.props.renderItem(e)))}focus(){this._input.focus()}render(){var e=this.props,t=e.onClear,n=e.placeholder,o=e.isLoading,g=e.value,O=e.items,k=(e.renderItem,e.isOpen),E=e.highlightIndex,S=e.isInputSelected,x=e.inputValue,C=(e.onChange,e.onInputChange,e.onOpen,e.onClose,e.dropdownPosition,e.disabled),P=(e.onHighlightIndexChange,e.openItemElement),j=e.readOnly,M=_(e,["onClear","placeholder","isLoading","value","items","renderItem","isOpen","highlightIndex","isInputSelected","inputValue","onChange","onInputChange","onOpen","onClose","dropdownPosition","disabled","onHighlightIndexChange","openItemElement","readOnly"]);return i.default.createElement(f.Manager,null,i.default.createElement(f.Reference,null,e=>{var r=e.ref;return i.default.createElement("div",{ref:r,className:C?a.default.selectContainerDisabled:a.default.selectContainer},i.default.createElement(u.default,b({},M,{className:a.default.select,placeholder:n,onChange:this.handleInputChange,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,value:x||"",selected:S,disabled:C,ref:this.setInput,spellCheck:"false",readOnly:j})),i.default.createElement("div",{className:a.default.functions},P&&g&&i.default.createElement("span",{className:a.default.openItem},P(g)),!j&&t&&g&&i.default.createElement("button",{type:"button",className:a.default.clearButton,onClick:t},i.default.createElement(c.default,{color:"inherit"})),!j&&i.default.createElement("div",{className:a.default.arrowAndSpinnerContainer},!o&&i.default.createElement("div",{className:a.default.arrow,onClick:C?null:this.handleArrowClick,tabIndex:0,onKeyPress:C?null:this.handleArrowKeyPress},i.default.createElement(s.default,{color:"inherit"}),i.default.createElement(m.default,{duration:200,opacity:.1,radius:200})),o&&i.default.createElement("div",{className:a.default.spinner},i.default.createElement(l.default,null)))))}),k&&i.default.createElement(d.default,null,e=>i.default.createElement(v.Portal,null,i.default.createElement(f.Popper,{placement:"bottom",modifiers:{preventOverflow:{boundariesElement:"viewport"},customStyle:{enabled:!0,fn:e=>{var t=(0,r.default)(e,"instance.reference.clientWidth")||500;return e.styles=function(e){for(var t=1;t{var n=t.ref,r=t.style,s=t.placement;t.arrowProps;return i.default.createElement("div",{ref:n,"data-placement":s,style:r,className:a.default.popper},i.default.createElement(p.default,{onClickOutside:e&&k?this.handleClose:void 0},i.default.createElement("div",{className:0===O.length?a.default.listContainerNoResult:a.default.listContainer},i.default.createElement(h.default,{onEscape:t=>(e||t.shiftKey)&&this.handleClose()}),i.default.createElement("div",{className:0!==O.length||o?a.default.noResultTextHidden:a.default.noResultText},"No results"),O.length>0&&i.default.createElement(y.default,{items:O,value:g,onSelect:this.handleSelect,renderItem:this.renderItem,highlightIndex:E}))))}))))}}t.default=k,w(k,"propTypes",{onChange:o.default.func,value:o.default.any,inputValue:o.default.string,onInputChange:o.default.func,onClear:o.default.func,renderItem:o.default.func,placeholder:o.default.string,isLoading:o.default.bool,isOpen:o.default.bool,onOpen:o.default.func,onClose:o.default.func,openItemElement:o.default.func,items:o.default.array,highlightIndex:o.default.number,onHighlightIndexChange:o.default.func,isInputSelected:o.default.bool,disabled:o.default.bool,dropdownPosition:o.default.string,readOnly:o.default.bool}),w(k,"defaultProps",{onChange:O,onOpen:O,onClose:O,onInputChange:O,isLoading:!1,readOnly:!1,renderItem:e=>e,items:[],dropdownPosition:"bottom"})},function(e,t){e.exports={root:"SearchableSelect_root_11nKC DefaultSelect_root_2FQGX",selectContainer:"SearchableSelect_selectContainer_3_V1E DefaultSelect_selectContainer_AGEPt",selectContainerDisabled:"SearchableSelect_selectContainerDisabled_L-tOJ DefaultSelect_selectContainerDisabled_3IDqZ DefaultSelect_selectContainer_AGEPt",arrowAndSpinnerContainer:"SearchableSelect_arrowAndSpinnerContainer_2ia3a",arrow:"SearchableSelect_arrow_11ODg",functions:"SearchableSelect_functions_2AAqz DefaultSelect_functions_38pkB",popper:"SearchableSelect_popper_C4tEi",listContainer:"SearchableSelect_listContainer_3zV-- shadows_shadow-24dp_2lGyX",listContainerNoResult:"SearchableSelect_listContainerNoResult_3Pcc6 SearchableSelect_listContainer_3zV-- shadows_shadow-24dp_2lGyX",listContainerHidden:"SearchableSelect_listContainerHidden_27api SearchableSelect_listContainer_3zV-- shadows_shadow-24dp_2lGyX",noResultText:"SearchableSelect_noResultText_jmnbg",noResultTextHidden:"SearchableSelect_noResultTextHidden_2WKNw SearchableSelect_noResultText_jmnbg",spinner:"SearchableSelect_spinner_38ytg",item:"SearchableSelect_item_3eUnv",openItem:"SearchableSelect_openItem_FXykN",clearButton:"SearchableSelect_clearButton_1_6Sj clear-button_textInput_WSfrR clear-button_root_KE6l2"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(0)),o=u(n(27)),i=n(90),a=u(n(1533)),s=u(n(1534));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class extends r.default.Component{constructor(){super(...arguments),l(this,"props",void 0),l(this,"handleItemClick",e=>{var t=Number(e.currentTarget.getAttribute("data-item-index")),n=this.props;(0,n.onSelect)(n.items[t])}),l(this,"setScrollContainer",e=>{this.scrollContainer=e})}componentDidUpdate(e){if(e.highlightIndex!==this.props.highlightIndex){var t=this.scrollContainer.querySelector('[data-item-index="'.concat(this.props.highlightIndex,'"]'));(0,s.default)(t,this.scrollContainer,{onlyScrollIfNeeded:!0})}}render(){var e=this.props,t=e.items,n=e.renderItem,s=e.highlightIndex,u=e.value;return r.default.createElement("div",{className:a.default.scrollContainer,ref:this.setScrollContainer},r.default.createElement(i.List,{className:a.default.list},t.map((e,t)=>{var l=(0,o.default)(a.default.item,{[a.default.highlighted]:t===s,[a.default.selected]:e===u});return r.default.createElement(i.Item,{key:t,"data-item-index":t,onClick:this.handleItemClick,className:l,tabIndex:0},n(e,t))})))}}},function(e,t){e.exports={root:"SelectMenu_root_MGuCT",scrollContainer:"SelectMenu_scrollContainer_2x2FO",list:"SelectMenu_list_G5aJi",item:"SelectMenu_item_3uk-S selectable_item_LB4ab backgrounds_listItemStates_32_ku",selected:"SelectMenu_selected_2s4r- SelectMenu_item_3uk-S selectable_item_LB4ab backgrounds_listItemStates_32_ku selectable_selected_21Ajz selectable_item_LB4ab",highlighted:"SelectMenu_highlighted_FH9Uv selectable_highlighted_1kR7E"}},function(e,t,n){"use strict";e.exports=n(1535)},function(e,t,n){"use strict";var r=n(1536);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,s=n.alignWithLeft,u=n.offsetTop||0,l=n.offsetLeft||0,c=n.offsetBottom||0,f=n.offsetRight||0;o=void 0===o||o;var d=r.isWindow(t),p=r.offset(e),h=r.outerHeight(e),v=r.outerWidth(e),m=void 0,y=void 0,g=void 0,b=void 0,_=void 0,w=void 0,O=void 0,k=void 0,E=void 0,S=void 0;d?(O=t,S=r.height(O),E=r.width(O),k={left:r.scrollLeft(O),top:r.scrollTop(O)},_={left:p.left-k.left-l,top:p.top-k.top-u},w={left:p.left+v-(k.left+E)+f,top:p.top+h-(k.top+S)+c},b=k):(m=r.offset(t),y=t.clientHeight,g=t.clientWidth,b={left:t.scrollLeft,top:t.scrollTop},_={left:p.left-(m.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-l,top:p.top-(m.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-u},w={left:p.left+v-(m.left+g+(parseFloat(r.css(t,"borderRightWidth"))||0))+f,top:p.top+h-(m.top+y+(parseFloat(r.css(t,"borderBottomWidth"))||0))+c}),_.top<0||w.top>0?!0===a?r.scrollTop(t,b.top+_.top):!1===a?r.scrollTop(t,b.top+w.top):_.top<0?r.scrollTop(t,b.top+_.top):r.scrollTop(t,b.top+w.top):i||((a=void 0===a||!!a)?r.scrollTop(t,b.top+_.top):r.scrollTop(t,b.top+w.top)),o&&(_.left<0||w.left>0?!0===s?r.scrollLeft(t,b.left+_.left):!1===s?r.scrollLeft(t,b.left+w.left):_.left<0?r.scrollLeft(t,b.left+_.left):r.scrollLeft(t,b.left+w.left):i||((s=void 0===s||!!s)?r.scrollLeft(t,b.left+_.left):r.scrollLeft(t,b.left+w.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t{this.props.onChange(p.default.from((0,p.unset)(["asset"])))}),k(this,"handleCancelUpload",()=>{this.cancelUpload()}),k(this,"handleSelectFile",e=>{this.uploadFirstAccepted(e)}),k(this,"renderMaterializedAsset",e=>i.default.createElement("div",{className:h.default.previewAsset},i.default.createElement("div",{className:h.default.fileIcon},i.default.createElement(f.default,null)),i.default.createElement("div",null,e.originalFilename," ",i.default.createElement("a",{href:"".concat(e.url,"?dl"),download:!0},"Download")))),k(this,"handleFieldChange",(e,t)=>{var n=this.props,r=n.onChange,o=n.type;r(e.prefixAll(t.name).prepend((0,p.setIfMissing)({_type:o.name})))}),k(this,"handleStartAdvancedEdit",()=>{this.setState({isAdvancedEditOpen:!0})}),k(this,"handleStopAdvancedEdit",()=>{this.setState({isAdvancedEditOpen:!1})}),k(this,"handleFocus",e=>{this.setState({hasFocus:!0}),this.props.onFocus(e)}),k(this,"handleBlur",e=>{this.setState({hasFocus:!1}),this.props.onBlur(e)}),k(this,"setFocusArea",e=>{this._focusArea=e}),k(this,"getUploadOptions",e=>{var t=this.props,n=t.type,r=t.resolveUploader,o=r&&r(n,e);return o?[{type:n,uploader:o}]:[]}),k(this,"handleUpload",e=>{var t=e.file,n=e.uploader;this.uploadWith(n,t)})}clearUploadStatus(){this.props.onChange(p.default.from([(0,p.unset)(["_upload"])]))}cancelUpload(){this.uploadSubscription&&(this.uploadSubscription.unsubscribe(),this.clearUploadStatus())}uploadFirstAccepted(e){var t,n=this.props,r=n.resolveUploader,o=n.type;Array.from(e).some(e=>{var n=r(o,e);return!!n&&(t={file:e,uploader:n},!0)}),t&&this.uploadWith(t.uploader,t.file)}uploadWith(e,t){var n=this.props,r=n.type,i=n.onChange,a={metadata:(0,o.default)(r,"options.metadata"),storeOriginalFilename:(0,o.default)(r,"options.storeOriginalFilename")};this.cancelUpload(),this.setState({isUploading:!0}),i(p.default.from([(0,p.setIfMissing)({_type:r.name})])),this.uploadSubscription=e.upload(t,r,a).subscribe({next:e=>{e.patches&&i(p.default.from(e.patches))},error:e=>{this.setState({uploadError:e}),this.clearUploadStatus()},complete:()=>{i(p.default.from([(0,p.unset)(["hotspot"]),(0,p.unset)(["crop"])])),this.setState({isUploading:!1})}})}renderUploadState(e){var t=this.state.isUploading,n=100===e.progress,r=(0,o.default)(e,"file.name");return i.default.createElement("div",{className:h.default.uploadState},i.default.createElement("div",null,i.default.createElement("div",{className:n?h.default.progressBarCompleted:h.default.progressBar},i.default.createElement(u.default,{percent:"complete"===status?100:e.progress,text:n?"Complete":"Uploading".concat(r?' "'.concat(r,'"'):"..."),completed:n,showPercent:!0,animation:!0})),i.default.createElement("div",{className:h.default.cancelButton},t&&i.default.createElement(a.default,{kind:"simple",color:"danger",onClick:this.handleCancelUpload},"Cancel"))))}renderAdvancedEdit(e){return i.default.createElement(v.default,{title:"Edit details",onClose:this.handleStopAdvancedEdit,isOpen:!0},i.default.createElement("div",null,this.renderFields(e)),i.default.createElement(a.default,{onClick:this.handleStopAdvancedEdit},"Close"))}renderFields(e){return e.map(e=>this.renderField(e))}renderField(e){var t=this.props,n=t.value,r=t.level,o=t.focusPath,a=t.onFocus,s=t.readOnly,u=t.onBlur,l=n&&n[e.name];return i.default.createElement(y.FormBuilderInput,{key:e.name,value:l,type:e.type,onChange:t=>this.handleFieldChange(t,e),path:[e.name],onFocus:a,onBlur:u,readOnly:s||e.type.readOnly,focusPath:o,level:r})}renderAsset(){var e=this.props,t=e.value,n=e.materialize,r=e.readOnly;return t&&t.asset?i.default.createElement(m.default,{reference:t.asset,materialize:n},this.renderMaterializedAsset):r?i.default.createElement("span",null,"Field is read only"):i.default.createElement(g.default,{hasFocus:this.state.hasFocus})}focus(){this._focusArea&&this._focusArea.focus()}render(){var e=this.props,t=e.type,n=e.value,o=e.level,u=e.markers,f=e.readOnly,p=this.state,v=p.isAdvancedEditOpen,m=p.uploadError,y=O((0,r.default)(t.fields.filter(e=>!E.includes(e.name)),"type.options.isHighlighted"),2),g=y[0],w=y[1],k=n&&n.asset;return i.default.createElement(b.default,{markers:u,legend:t.title,description:t.description,level:o,onFocus:this.handleFocus,onBlur:this.handleBlur,onUpload:this.handleUpload,getUploadOptions:this.getUploadOptions,ref:this.setFocusArea},m&&i.default.createElement(_.default,{kind:"error",action:{title:"OK"},onAction:()=>this.setState({uploadError:null})},"We're"," really sorry, but the upload could not be completed."),i.default.createElement("div",{className:h.default.content},i.default.createElement("div",{className:h.default.assetWrapper},n&&n._upload&&i.default.createElement("div",{className:h.default.uploadState},this.renderUploadState(n._upload)),this.renderAsset()),g.length>0&&i.default.createElement("div",{className:h.default.fieldsWrapper},this.renderFields(g))),i.default.createElement("div",{className:h.default.functions},!f&&i.default.createElement(s.default,{icon:d.default,onSelect:this.handleSelectFile,accept:""},"Upload"),n&&w.length>0&&i.default.createElement(a.default,{icon:f?c.default:l.default,kind:"simple",title:f?"View details":"Edit details",onClick:this.handleStartAdvancedEdit},f?"View details":"Edit"),!f&&k&&i.default.createElement(a.default,{color:"danger",kind:"simple",onClick:this.handleRemoveButtonClick},"Remove")),v&&this.renderAdvancedEdit(w))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(204)),o=a(n(1)),i=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends i.default.PureComponent{constructor(){super(...arguments),l(this,"_inputId",(0,r.default)("FileSelect")),l(this,"handleSelect",e=>{this.props.onSelect(e.target.files)})}componentDidMount(){"value"in this.props&&console.error(new Error("Warning: A `value` prop was passed to FileSelect. This is most likely not intended as this component is only for letting users select file(s) from their hard drive"))}render(){var e=this.props,t=e.children,n=e.style,r=void 0===n?{}:n,o=e.className,a=(e.onSelect,u(e,["children","style","className","onSelect"]));return i.default.createElement("label",{style:r,className:o,htmlFor:this._inputId},i.default.createElement("input",s({},a,{type:"file",value:"",id:this._inputId,onChange:this.handleSelect,style:{overflow:"hidden",width:"0.1px",height:"0.1px",opacity:0,position:"absolute",zIndex:-1}})),t)}}t.default=c,l(c,"propTypes",{onSelect:o.default.func.isRequired,children:o.default.node,className:o.default.string,style:o.default.object})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i,a=l(n(1)),s=l(n(0)),u=l(n(1542));function l(e){return e&&e.__esModule?e:{default:e}}class c extends s.default.Component{render(){var e=this.props,t=e.percent,n=e.isComplete,r=e.text,o=e.showPercent,i=e.isInProgress,a="\n ".concat(n?u.default.completed:u.default.uncompleted,"\n ").concat(t>=100&&u.default.hundredPercent,"\n ").concat(i?u.default.isInProgress:u.default.isNotInProgress,"\n "),l={width:"".concat(t,"%")};return s.default.createElement("div",{className:a},s.default.createElement("div",{className:u.default.inner},s.default.createElement("div",{className:u.default.barContainer},s.default.createElement("div",{className:u.default.bar,style:l})),o&&s.default.createElement("div",{className:u.default.percent},Math.round(t,1),"%"),r&&s.default.createElement("div",{className:u.default.text},r)))}}t.default=c,r=c,o="propTypes",i={className:a.default.string,percent:a.default.number,animation:a.default.bool,isComplete:a.default.bool,text:a.default.string,showPercent:a.default.bool},o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i},function(e,t){e.exports={root:"ProgressBar_root_2zp9h",inner:"ProgressBar_inner_3LF2f",completed:"ProgressBar_completed_2ZbeH ProgressBar_root_2zp9h",uncompleted:"ProgressBar_uncompleted_3QINA ProgressBar_root_2zp9h",barContainer:"ProgressBar_barContainer_wGpCM",isInProgress:"ProgressBar_isInProgress_2d1wE",bar:"ProgressBar_bar_3Vjlx",progressBarStripes:"ProgressBar_progressBarStripes_LSAcZ",percent:"ProgressBar_percent_Fj-F-",text:"ProgressBar_text_2cbDK"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tthis.setState({materialized:e})):this.setState({materialized:null})}render(){var e=this.state.materialized,t=this.props.children;return e?t(e):null}}},function(e,t){e.exports={root:"UploadPlaceholder_root_2HjMn",inner:"UploadPlaceholder_inner_1ZtUj",hasFocus:"UploadPlaceholder_hasFocus_nUCSD UploadPlaceholder_root_2HjMn",noFocus:"UploadPlaceholder_noFocus_98gS5 UploadPlaceholder_root_2HjMn",iconContainer:"UploadPlaceholder_iconContainer_RMhd0",strong:"UploadPlaceholder_strong_2kZZN",dropFile:"UploadPlaceholder_dropFile_YFFOZ",pasteFile:"UploadPlaceholder_pasteFile_Ijl4r"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1548))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t"undefined"!=typeof window&&window.devicePixelRatio?Math.round(Math.max(1,window.devicePixelRatio)):1;t.default=class extends i.default.PureComponent{constructor(){super(...arguments),C(this,"uploadSubscription",void 0),C(this,"state",{isUploading:!1,uploadError:null,isAdvancedEditOpen:!1,isSelectAssetOpen:!1,hasFocus:!1}),C(this,"handleRemoveButtonClick",e=>{this.props.onChange(d.default.from((0,d.unset)(["asset"])))}),C(this,"handleCancelUpload",()=>{this.cancelUpload()}),C(this,"handleSelectFile",e=>{this.uploadFirstAccepted(e)}),C(this,"getConstrainedImageSrc",e=>{var t=(E.default.maxWidth||1e3)*j();return"".concat(e.url,"?w=").concat(t,"&h=").concat(t,"&fit=max")}),C(this,"renderMaterializedAsset",e=>{var t=this.props.value,n=void 0===t?{}:t,r=this.getConstrainedImageSrc(e),a=(0,o.default)(e,"metadata.dimensions.aspectRatio");return void 0===a?null:i.default.createElement(g.default,{aspectRatio:"auto",src:r,srcAspectRatio:a,hotspot:n.hotspot,crop:n.crop})}),C(this,"handleFieldChange",(e,t)=>{var n=this.props,r=n.onChange,o=n.type;r(e.prefixAll(t.name).prepend((0,d.setIfMissing)({_type:o.name})))}),C(this,"handleStartAdvancedEdit",()=>{this.setState({isAdvancedEditOpen:!0})}),C(this,"handleStopAdvancedEdit",()=>{this.setState({isAdvancedEditOpen:!1})}),C(this,"handleOpenSelectAsset",()=>{this.setState({isSelectAssetOpen:!0})}),C(this,"handleCloseSelectAsset",()=>{this.setState({isSelectAssetOpen:!1})}),C(this,"handleSelectAsset",e=>{var t=this.props,n=t.onChange,r=t.type;n(d.default.from([(0,d.setIfMissing)({_type:r.name}),(0,d.unset)(["hotspot"]),(0,d.unset)(["crop"]),(0,d.set)({_type:"reference",_ref:e._id},["asset"])])),this.setState({isSelectAssetOpen:!1})}),C(this,"handleFocus",e=>{this.setState({hasFocus:!0}),this.props.onFocus(e)}),C(this,"handleBlur",e=>{this.props.onBlur(e),this.setState({hasFocus:!1})}),C(this,"setFocusArea",e=>{this._focusArea=e}),C(this,"getUploadOptions",e=>{var t=this.props,n=t.type,r=t.resolveUploader,o=r&&r(n,e);return o?[{type:n,uploader:o}]:[]}),C(this,"handleUpload",e=>{var t=e.file,n=e.uploader;this.uploadWith(n,t)})}clearUploadStatus(){this.props.onChange(d.default.from([(0,d.unset)(["_upload"])]))}cancelUpload(){this.uploadSubscription&&(this.uploadSubscription.unsubscribe(),this.clearUploadStatus())}uploadFirstAccepted(e){var t,n=this.props,r=n.resolveUploader,o=n.type;Array.from(e).some(e=>{var n=r(o,e);return!!n&&(t={file:e,uploader:n},!0)}),t&&this.uploadWith(t.uploader,t.file)}uploadWith(e,t){var n=this.props,r=n.type,i=n.onChange,a={metadata:(0,o.default)(r,"options.metadata"),storeOriginalFilename:(0,o.default)(r,"options.storeOriginalFilename")};this.cancelUpload(),this.setState({isUploading:!0}),i(d.default.from([(0,d.setIfMissing)({_type:r.name})])),this.uploadSubscription=e.upload(t,r,a).subscribe({next:e=>{e.patches&&i(d.default.from(e.patches))},error:e=>{console.error(e),this.setState({uploadError:e}),this.clearUploadStatus()},complete:()=>{i(d.default.from([(0,d.unset)(["hotspot"]),(0,d.unset)(["crop"])])),this.setState({isUploading:!1})}})}renderUploadState(e){var t=this.state.isUploading,n=100===e.progress&&!(!this.props.value||!this.props.value.asset);return i.default.createElement("div",{className:p.default.progress},i.default.createElement("div",null,i.default.createElement("div",{className:n?p.default.progressBarCompleted:p.default.progressBar},i.default.createElement(u.default,{percent:"complete"===status?100:e.progress,text:n?"Please wait…":"Uploading…",completed:n,showPercent:!0,animation:!0})),t&&i.default.createElement(a.default,{kind:"simple",color:"danger",onClick:this.handleCancelUpload},"Cancel")))}isImageToolEnabled(){return!0===(0,o.default)(this.props.type,"options.hotspot")}renderAdvancedEdit(e){var t=this.props,n=t.value,r=t.level,o=t.type,s=t.onChange,u=t.readOnly,l=t.materialize;return i.default.createElement(h.default,{title:"Edit details",onClose:this.handleStopAdvancedEdit,isOpen:!0},this.isImageToolEnabled()&&n&&n.asset&&i.default.createElement(m.default,{materialize:l,reference:n.asset},e=>i.default.createElement(y.default,{type:o,level:r,readOnly:u,imageUrl:this.getConstrainedImageSrc(e),value:n,onChange:s})),i.default.createElement("div",{className:p.default.advancedEditFields},this.renderFields(e)),i.default.createElement(a.default,{onClick:this.handleStopAdvancedEdit},"Close"))}renderFields(e){return e.map(e=>this.renderField(e))}renderField(e){var t=this.props,n=t.value,r=t.level,o=t.focusPath,a=t.onFocus,s=t.readOnly,u=t.onBlur,l=n&&n[e.name];return i.default.createElement("div",{className:p.default.field,key:e.name},i.default.createElement(_.FormBuilderInput,{value:l,type:e.type,onChange:t=>this.handleFieldChange(t,e),path:[e.name],onFocus:a,onBlur:u,readOnly:s||e.type.readOnly,focusPath:o,level:r}))}focus(){this._focusArea&&this._focusArea.focus()}render(){var e=this.props,t=e.type,n=e.value,o=e.level,u=e.materialize,d=e.markers,y=e.readOnly,g=this.state,_=g.isAdvancedEditOpen,E=g.isSelectAssetOpen,S=g.uploadError,C=g.hasFocus,j=x((0,r.default)(t.fields.filter(e=>!P.includes(e.name)),"type.options.isHighlighted"),2),M=j[0],T=j[1],A=n&&n.asset,D=n&&(T.length>0||A&&this.isImageToolEnabled());return i.default.createElement(O.default,{markers:d,legend:t.title,description:t.description,level:o,onFocus:this.handleFocus,onBlur:this.handleBlur,className:p.default.root,onUpload:this.handleUpload,getUploadOptions:this.getUploadOptions,ref:this.setFocusArea},S&&i.default.createElement(k.default,{kind:"error",action:{title:"OK"},onAction:()=>this.setState({uploadError:null})},"We're"," really sorry, but the upload could not be completed."),i.default.createElement("div",{className:p.default.content},i.default.createElement("div",{className:p.default.assetWrapper},n&&n._upload&&i.default.createElement("div",{className:p.default.uploadState},this.renderUploadState(n._upload)),A?i.default.createElement(m.default,{reference:n.asset,materialize:u},this.renderMaterializedAsset):y?i.default.createElement("span",null,"Field is read only"):i.default.createElement(w.default,{hasFocus:C}))),i.default.createElement("div",{className:p.default.functions},i.default.createElement(v.default,null,!y&&i.default.createElement(s.default,{icon:c.default,inverted:!0,onSelect:this.handleSelectFile,accept:""},"Upload"),!y&&i.default.createElement(a.default,{onClick:this.handleOpenSelectAsset,inverted:!0},"Browse"),D&&i.default.createElement(a.default,{icon:y?f.default:l.default,inverted:!0,title:y?"View details":"Edit details",onClick:this.handleStartAdvancedEdit},y?"View details":"Edit"),A&&!y&&i.default.createElement(a.default,{color:"danger",inverted:!0,onClick:this.handleRemoveButtonClick},"Remove"))),M.length>0&&i.default.createElement("div",{className:p.default.fieldsWrapper},this.renderFields(M)),_&&this.renderAdvancedEdit(T),E&&i.default.createElement(h.default,{title:"Select image",onClose:this.handleCloseSelectAsset,isOpen:!0},i.default.createElement(b.default,{onSelect:this.handleSelectAsset})))}}},function(e,t){e.exports={content:"ImageInput_content_2kjmm",field:"ImageInput_field_1IcQC Field_root_1XEv8",assetWrapper:"ImageInput_assetWrapper_28yiN",noContent:"ImageInput_noContent_2cvNm",progress:"ImageInput_progress_CoXVw positioning_flexCenter_117L1",uploadState:"ImageInput_uploadState_1WNWT",fieldsWrapper:"ImageInput_fieldsWrapper_2EWP7",functions:"ImageInput_functions_3XNjc undefined",advancedEditFields:"ImageInput_advancedEditFields_2b0Yw"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(1553))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(0)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(10)),i=f(n(73)),a=f(n(542)),s=f(n(544)),u=f(n(1569)),l=n(1571),c=f(n(1572));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(e){for(var t=1;t{var e=this.props,t=e.onChange,n=e.readOnly,r=e.type,i=this.state.value,a=r.fields.find(e=>"crop"===e.name&&"object"!==e.type.name),s=r.fields.find(e=>"hotspot"===e.name&&"object"!==e.type.name);if(!n){var u=a?p({_type:a.type.name},i.crop):i.crop,l=s?p({_type:s.type.name},i.hotspot):i.hotspot;t(o.default.from([(0,o.set)(u,["crop"]),(0,o.set)(l,["hotspot"])]))}this.setState({value:this.props.value})}),h(this,"handleChange",e=>{this.setState({value:e})}),this.state={value:e.value}}componentWillReceiveProps(e){this.setState({value:e.value})}render(){var e=this.props,t=e.imageUrl,n=e.level,o=e.readOnly,f=this.state.value;return r.default.createElement("div",{className:c.default.root},r.default.createElement(i.default,{legend:"Hotspot and crop",level:n},r.default.createElement("div",{className:c.default.wrapper},r.default.createElement("div",{className:c.default.imageToolContainer},r.default.createElement(a.default,{value:f,src:t,readOnly:o,onChangeEnd:this.handleChangeEnd,onChange:this.handleChange})),r.default.createElement("div",{className:c.default.previewsContainer},r.default.createElement("h2",null,"Preview"),r.default.createElement("div",{className:c.default.previews},v.map(e=>{var n=d(e,2),o=n[0],i=n[1];return r.default.createElement("div",{key:i,className:c.default.preview},r.default.createElement("h4",null,o),r.default.createElement("div",{className:c.default.previewImage},r.default.createElement(u.default,{src:t},e=>{var t=e.image,n=e.error;return n?r.default.createElement("span",null,"Unable to load image: ",n.message):r.default.createElement(s.default,{aspectRatio:i,src:t.src,srcAspectRatio:t.width/t.height,hotspot:f.hotspot||l.DEFAULT_HOTSPOT,crop:f.crop||l.DEFAULT_CROP})})))}))))))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=u(n(0)),o=u(n(1)),i=u(n(1555)),a=u(n(1556)),s=u(n(1565));function u(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t0?r:0,right:o+(t.right||0)>0?o:0,bottom:i+(t.bottom||0)>0?i:0,left:a+(t.left||0)>0?a:0},{value:s,delta:{top:r+(t.top||0)>0&&t.top||0,right:o+(t.right||0)>0&&t.right||0,bottom:i+(t.bottom||0)>0&&t.bottom||0,left:a+(t.left||0)>0&&t.left||0}}}var E=(0,r.default)(function(){var e=window.devicePixelRatio||1,t=document.createElement("canvas").getContext("2d");return e/((0,a.default)(t)||1)}),S=function(e){function t(){var e,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=new Array(i),s=0;s=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*a;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*o;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===l&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return u(e,t,i,"day");if(t>=o)return u(e,t,o,"hour");if(t>=r)return u(e,t,r,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPointInEllipse=function(e,t){var n={x:t.center.x,y:t.center.y},r=t.width/2,o=t.height/2;if(r<=0||o<=0)return!1;var i={x:e.x-n.x,y:e.y-n.y};return Math.pow(i.x,2)/Math.pow(r,2)+Math.pow(i.y,2)/Math.pow(o,2)<=1},t.isPointInCircle=function(e,t){var n=e.x,r=e.y;return Math.pow(n-t.x,2)+Math.pow(r-t.y,2)=t.left&&e.x<=t.left+t.width&&e.y>=t.top&&e.y<=t.top+t.height},t.getPointAtCircumference=function(e,t){return{x:t.center.x-t.width/2*Math.cos(e),y:t.center.y-t.height/2*Math.sin(e)}}},function(e,t,n){"use strict";function r(e,t){for(var n=0;nt.left+t.width&&(n=t.right-o),r+i>t.top+t.height&&(r=t.bottom-i),new e(Math.max(n,t.left),Math.max(r,t.top),o,i)}},{key:"center",get:function(){return new a(this.left+this.width/2,this.top+this.height/2)}},{key:"corners",get:function(){return new u(this)}},{key:"right",get:function(){return this.left+this.width}},{key:"bottom",get:function(){return this.top+this.height}}]),e}();t.Rect=l},function(e,t){e.exports={root:"ImageTool_root_13lTU",canvas:"ImageTool_canvas_32Ipl"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CLOSE_HAND=t.OPEN_HAND=void 0;t.OPEN_HAND="data:image/png;base64,AAACAAEAICACAAcABQAwAQAAFgAAACgAAAAgAAAAQAAAAAEAAQAAAAAAAAEAAAAAAAAAAAAAAgAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8AAAA/AAAAfwAAAP+AAAH/gAAB/8AAA//AAAd/wAAGf+AAAH9gAADbYAAA2yAAAZsAAAGbAAAAGAAAAAAAAA//////////////////////////////////////////////////////////////////////////////////////gH///4B///8Af//+AD///AA///wAH//4AB//8AAf//AAD//5AA///gAP//4AD//8AF///AB///5A////5///8=";t.CLOSE_HAND="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AAABdSURBVEjH7ZA7DsAwCEMN6v2vTCdESpLKQRl5gxfzMQDNRQyWlEK83QAIRh3cH/QbIhQwMDl8gORl7A16WD/xxAdq6N6SgycKUblf41+wbFBT44RiCi11NU3TLHgBxRUUD4ITqnIAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTUtMDEtMjFUMDA6MTM6NDMrMDE6MDC74T7AAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDEyLTA0LTAyVDA0OjEzOjM3KzAyOjAwQJ35wQAAAABJRU5ErkJggg=="},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="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)}function s(e,t){for(var n=0;ne.height,u=s?i:a*o,l=s?i/o:a;return r.width=u,r.height=l,r.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,u,l),r}},{key:"render",value:function(){var e=this.props,t=e.image,n=e.maxHeight,r=e.maxWidth;return(0,e.children)(this.resize(t,n,r))}}])&&s(n.prototype,r),i&&s(n,i),t}();t.default=h,f=h,d="propTypes",p={image:r.default.instanceOf(HTMLImageElement).isRequired,maxWidth:r.default.number.isRequired,maxHeight:r.default.number.isRequired,children:r.default.func.isRequired},d in f?Object.defineProperty(f,d,{value:p,enumerable:!0,configurable:!0,writable:!0}):f[d]=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(45)),o=c(n(1)),i=c(n(0)),a=c(n(1567)),s=c(n(543)),u=n(210),l=c(n(1568));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="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)}function d(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=o(e.image),n=e.hotspot||r.DEFAULT_HOTSPOT,u=e.crop||r.DEFAULT_CROP,l=o(e.container)||t*function(e){var t=1-e.top-e.bottom;return(1-e.left-e.right)/t}(u),c=e.align||{x:"center",y:"center"},f=function(e,t,n){var r,o,i,a=t.crop,s=n.aspect,u=n.align,l=1-a.left-a.right,c=1-a.top-a.bottom,f={top:-a.top/c,left:-a.left/l,width:1/l,height:1/c},d=l/c*e,p={x:(t.hotspot.x-a.left)/l,y:(t.hotspot.y-a.top)/c,height:t.hotspot.height/c,width:t.hotspot.width/l},h=1/p.width,v=1/p.height*d/s,m=Math.min(h,v),y=d<=s;r=y?1:d/s;if(r>m){var g;o="letterbox";var b=r-m,_=p.x*(i={width:g=y?1-b:m,height:g/d*s}).width-p.width*i.width/2;switch(u.x){case"left":i.left=y?0:-_;break;case"right":i.left=y?1-i.width:_;break;case"center":i.left=y?(1-i.width)/2:-_;break;default:throw new Error("Invalid x alignment: '".concat(u.x,"'. Must be either 'left', 'right' or 'center'"))}var w=p.y*i.height-p.height*i.height/2;switch(u.y){case"top":i.top=y?-w:0;break;case"bottom":i.top=w;break;case"center":i.top=y?-w:(1-i.height)/2;break;default:throw new Error("Invalid y alignment: '".concat(u.y,"'. Must be either 'top', 'bottom' or 'center'"))}}else if(y){o="full_width";var O=-p.y/d*s+.5,k=r/d*s;O>0?O=0:-O>k-1&&(O=-(k-1)),i={width:r,height:k,left:0,top:O}}else{o="full_height";var E=r,S=.5-p.x*r;S>0?S=0:-S>E-1&&(S=-(E-1)),i={width:E,height:r/d*s,top:0,left:S}}return{method:o,crop:i,image:f}}(t,{hotspot:n,crop:u},{aspect:l,align:c}),d=a(i(100/l));return{debug:{result:f},container:{overflow:"hidden",position:"relative",width:"100%",height:d},padding:{marginTop:d},crop:{position:"absolute",overflow:"hidden",height:s(f.crop.height),width:s(f.crop.width),top:s(f.crop.top),left:s(f.crop.left)},image:{position:"absolute",height:s(f.image.height),width:s(f.image.width),top:s(f.image.top),left:s(f.image.left)}}};var r=n(210);function o(e){if(!e)return null;if(e.hasOwnProperty("aspectRatio"))return e.aspectRatio;if(e.hasOwnProperty("height")||e.hasOwnProperty("width")){if("number"!=typeof e.height&&"number"!=typeof e.width)throw new Error("Height and width must be numbers, got ".concat(JSON.stringify(e)));return e.width/e.height}return null}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=Math.pow(10,t);return Math.round(e*n)/n}function a(e){return 0===e?0:"".concat(e,"%")}function s(e){return a(i(100*e))}},function(e,t){e.exports={root:"HotspotImage_root_jike8"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=n(1570);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends o.default.PureComponent{constructor(){super(...arguments),s(this,"state",{loadedImage:null,error:null})}componentWillMount(){this.loadImage(this.props.src)}componentWillUnmount(){this.unsubscribe()}unsubscribe(){this.subscription&&this.subscription.unsubscribe()}loadImage(e){this.unsubscribe(),this.subscription=(0,i.loadImage)(e).subscribe({next:e=>this.setState({loadedImage:e,error:null}),error:e=>this.setState({loadImage:null,error:e})})}componentWillReceiveProps(e){e.src!==this.props.src&&this.loadImage(e.src)}render(){var e=this.props.children,t=this.state,n=t.error,r=t.loadedImage;return n||r?e({image:r,error:n}):null}}t.default=u,s(u,"propTypes",{src:r.default.string.isRequired,children:r.default.func})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadImage=function(e){return new r.Observable(t=>{var n=document.createElement("img"),r=!1;return n.onload=(()=>{r=!0,t.next(n),t.complete()}),n.onerror=(()=>{t.error(new Error("Could not load image from ".concat(function(e){return e.startsWith("blob:")}(e)?"local file":e)))}),n.src=e,()=>{n.onload=n.onerror=i,r||(n.src=o)}})};var r=n(6),o="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",i=()=>{}},function(e,t,n){e.exports=n(210)},function(e,t){e.exports={root:"ImageToolInput_root_172-6",wrapper:"ImageToolInput_wrapper_kwLmp",previewsContainer:"ImageToolInput_previewsContainer_5ajAA",imageToolContainer:"ImageToolInput_imageToolContainer_2bgjA",previews:"ImageToolInput_previews_2ggjI",previewImage:"ImageToolInput_previewImage_jnI-C shadows_shadow-6dp_3hP4o",preview:"ImageToolInput_preview_CFOlU"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(0)),o=u(n(13)),i=u(n(8)),a=u(n(1574)),s=u(n(1575));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=200;t.default=class extends r.default.Component{constructor(){super(...arguments),l(this,"state",{assets:[],isLastPage:!1,isLoading:!1}),l(this,"pageNo",void 0),l(this,"pageNo",0),l(this,"handleDeleteFinished",e=>{this.setState(t=>({assets:t.assets.filter(t=>t._id!==e)}))}),l(this,"handleItemClick",e=>{e.preventDefault(),this.select(e.currentTarget.getAttribute("data-id"))}),l(this,"handleItemKeyPress",e=>{"Enter"===e.key&&(e.preventDefault(),this.select(e.currentTarget.getAttribute("data-id")))}),l(this,"handleFetchNextPage",()=>{this.fetchPage(++this.pageNo)})}fetchPage(e){var t=e*c,n=t+c;return this.setState({isLoading:!0}),o.default.fetch(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return'\n *[_type == "sanity.imageAsset"] | order(_updatedAt desc) ['.concat(e,"...").concat(t,"] {\n _id,\n url,\n metadata {dimensions}\n }\n ")}(t,n)).then(e=>{this.setState(t=>({isLastPage:e.lengtht._id===e);t&&this.props.onSelect(t)}render(){var e=this.state,t=e.assets,n=e.isLastPage,o=e.isLoading;return r.default.createElement("div",{className:a.default.root},r.default.createElement("div",{className:a.default.imageList},t.map(e=>r.default.createElement(s.default,{key:e._id,asset:e,onClick:this.handleItemClick,onKeyPress:this.handleItemKeyPress,onDeleteFinished:this.handleDeleteFinished}))),!o&&0===t.length&&r.default.createElement("div",{className:a.default.noAssets},"No images found"),r.default.createElement("div",{className:a.default.loadMore},!n&&r.default.createElement(i.default,{onClick:this.handleFetchNextPage,loading:o},"Load more")))}}},function(e,t){e.exports={root:"SelectAsset_root_3wDrs",imageList:"SelectAsset_imageList_3lr2E",loadMore:"SelectAsset_loadMore_3_33T",noAssets:"SelectAsset_noAssets_1qZEN positioning_absoluteCenter_1T-ll"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=_(n(19)),o=_(n(0)),i=_(n(1)),a=_(n(26)),s=_(n(189)),u=_(n(88)),l=_(n(107)),c=n(90),f=n(545),d=_(n(114)),p=_(n(39)),h=n(16),v=_(n(13)),m=_(n(1606)),y=_(n(115)),g=_(n(112)),b=_(n(555));function _(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O={name:"delete",title:"Delete",icon:y.default,color:"danger"},k={name:"close",title:"Close"};class E extends o.default.PureComponent{constructor(){super(...arguments),w(this,"state",{isDeleting:!1,dialogType:void 0}),w(this,"handleDeleteAsset",e=>{var t=this.props.onDeleteFinished;return this.setState({isDeleting:!0}),v.default.delete(e._id).then(()=>{this.setState({isDeleting:!1}),t(e._id)}).catch(e=>{this.setState({isDeleting:!1,dialogType:"error"}),console.error("Could not delete asset",e)})}),w(this,"handleDialogClose",()=>{this.setState({dialogType:null})}),w(this,"handleMenuAction",e=>{"delete"===e.name?this.handleDeleteAsset(this.props.asset):"showRefs"===e.name&&this.setState({dialogType:"showRefs"})}),w(this,"handleDialogAction",e=>{"close"===e.name?this.handleDialogClose():"delete"===e.name&&this.handleDeleteAsset(this.props.asset)}),w(this,"renderMenuItem",e=>{var t=e.color,n=e.title,r=e.icon,i=r;return o.default.createElement("div",{className:"danger"===t?m.default.menuItemDanger:m.default.menuItem},r&&o.default.createElement(i,null),"  ",n)}),w(this,"getDialogActions",e=>"error"!=e?[O,k]:[k])}render(){var e=this.props,t=e.asset,n=e.onClick,i=e.onKeyPress,v=this.state,_=v.isDeleting,w=v.dialogType,O="undefined"!=typeof window&&window.devicePixelRatio?Math.round(window.devicePixelRatio):1,k=100*Math.max(1,O),E=(0,r.default)(t,"metadata.dimensions.width")||100,S=(0,r.default)(t,"metadata.dimensions.height")||100,x=[{name:"showRefs",title:"Show documents using this",icon:g.default},{name:"delete",title:"Delete",color:"danger",icon:y.default}];return o.default.createElement("a",{className:m.default.item,tabIndex:0,"data-id":t._id,onKeyPress:i,style:{width:"".concat(75*E/S,"px"),flexGrow:"".concat(75*E/S)}},o.default.createElement("i",{className:m.default.padder,style:{paddingBottom:"".concat(S/E*100,"%")}}),o.default.createElement("img",{src:"".concat(t.url,"?h=").concat(k,"&fit=max"),className:m.default.image,onClick:n,"data-id":t._id}),_&&o.default.createElement("div",{className:m.default.spinnerContainer},o.default.createElement(a.default,{center:!0})),o.default.createElement("div",{className:m.default.menuContainer},o.default.createElement(s.default,{placement:"bottom-end",showArrow:!1,items:x,renderItem:this.renderMenuItem,onAction:this.handleMenuAction},o.default.createElement(b.default,null)),w&&o.default.createElement(u.default,{title:"error"===w?"Could not delete asset":"Documents using this",color:"error"===w?"danger":void 0,onClose:this.handleDialogClose,onAction:this.handleDialogAction,actions:this.getDialogActions(w)},o.default.createElement(l.default,{size:"medium",key:w},o.default.createElement("div",{className:m.default.dialogContent},o.default.createElement("img",{src:"".concat(t.url,"?w=200"),style:{maxWidth:"200px"}}),o.default.createElement(f.WithReferringDocuments,{id:t._id},e=>{var t=e.isLoading,n=e.referringDocuments,r=n.reduce((e,t)=>t._id.startsWith("drafts.")?e.concat(t._id.slice(7)):e,[]),i=n.filter(e=>!r.includes(e._id));return t?o.default.createElement(a.default,null,"Loading…"):o.default.createElement("div",null,0===i.length?o.default.createElement("div",null,"No documents are referencing this asset"):o.default.createElement(o.default.Fragment,null,"error"===w&&o.default.createElement("div",null,o.default.createElement("h4",{className:m.default.dialogSubtitle},i.length>1?"".concat(i.length," documents are using this asset"):"A document is using this asset"),o.default.createElement("p",{className:m.default.referringDocumentsDescription},"Open the document".concat(n.length>1?"s":""," and remove the asset before deleting it."))),o.default.createElement(c.List,null,i.map(e=>o.default.createElement(c.Item,{key:e._id},o.default.createElement(h.IntentLink,{intent:"edit",params:{id:e._id},key:e._id,className:m.default.intentLink},o.default.createElement(d.default,{value:e,type:p.default.get(e._type)}),o.default.createElement("span",{className:m.default.openDocLink},o.default.createElement(g.default,null)," Open")))))))}))))))}}t.default=E,w(E,"propTypes",{asset:i.default.shape({_id:i.default.string,referenceCount:i.default.number,url:i.default.string}),onClick:i.default.func,onKeyPress:i.default.func,onDeleteFinished:i.default.func.isRequired})},function(e,t,n){"use strict";e.exports=n(1577)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.serverConnection;return{byId:n,byIds:function(e){return new r.Observable(t=>{var r=e.map(e=>n(e).subscribe(t));return()=>{r.map(e=>e.unsubscribe())}})},query:function(e,n){return t.query(e,n)},create:function(e){return t.create(e)},checkout:i,checkoutPair:function(e){var n=e.publishedId,r=e.draftId,i=t.byIdPair({publishedId:n,draftId:r}).pipe((0,o.share)()),s=u(r,i.pipe((0,o.filter)(l(r))),a),c=u(n,i.pipe((0,o.filter)(l(n))),a);return{draft:s,published:c}},patch:function(e,t){var n=i(e);return n.patch(t),n.commit()},delete:function(e){return i(e).delete().commit()},createOrReplace:function(e){return t.createOrReplace(e)},createIfNotExists:function(e){return t.createIfNotExists(e)}};function n(e){return i(e).events}function i(e){var n=t.byId(e).pipe((0,o.share)());return u(e,n,a)}function a(e){return t.mutate(e)}};var r=n(6),o=n(4),i=n(1578);function a(e){for(var t=1;t"reconnect"===e.type));return{events:(0,r.merge)(u,s.updates$),patch(t){s.addMutations(t.map(t=>({patch:a({},t,{id:e})})))},create(t){s.addMutation({create:Object.assign({id:e},t)})},createIfNotExists(e){s.addMutation({createIfNotExists:e})},createOrReplace(e){s.addMutation({createOrReplace:e})},delete(){s.addMutation({delete:{id:e}})},commit:()=>s.commit()}}var l=e=>t=>"reconnect"===t.type||t.documentId===e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObservableBufferedDocument=t.snapshotEventFrom=void 0;var r=n(320),o=n(6),i=n(4);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=e=>({type:"snapshot",document:e});t.snapshotEventFrom=u;t.createObservableBufferedDocument=((e,t)=>{var n=new o.Subject,l=new o.Subject,c=new o.Subject,f=e.pipe((0,i.scan)((e,t)=>"snapshot"===t.type?(e&&e.commit(),(e=>{var t=new r.BufferedDocument(e);return t.onMutation=(e=>{var n=e.mutation,r=e.remote;l.next({type:"mutation",document:t.LOCAL,mutations:n.mutations,origin:r?"remote":"local"})}),t.onRebase=(e=>{l.next({type:"rebase",document:e})}),t.commitHandler=(e=>{var t=e.mutation.params,n=(t.resultRev,s(t,["resultRev"]));c.next({onSuccess:e.success,onError:e.failure,payload:n})}),t})(t.document||null)):e?("mutation"===t.type?e.arrive(new r.Mutation(t)):"reconnect"!==t.type&&console.warn('Received unexpected server event of type "%s"',t.type),e):(console.warn('Ignoring event of type "%s" since buffered document has not yet been set up with snapshot',t.type),e),null),(0,i.publishReplay)(1),(0,i.refCount)()),d=n.pipe((0,i.withLatestFrom)(f),(0,i.map)(e=>{var t=a(e,2),n=t[0],o=t[1];return"mutation"===n.type&&o.add(new r.Mutation({mutations:n.mutations})),"commit"===n.type&&o.commit(),null}),(0,i.filter)(Boolean),(0,i.share)()),p=e=>n.next(e),h=e=>p({type:"mutation",mutations:e}),v=f.pipe((0,i.distinctUntilChanged)((e,t)=>e.LOCAL===t.LOCAL),(0,i.map)(e=>u(e.LOCAL))),m=c.pipe((0,i.concatMap)(e=>t(e.payload).pipe((0,i.tap)({next:e.onSuccess,error:e.onError}))),(0,i.mapTo)({type:"committed"}));return{updates$:(0,o.merge)(v,d,l,m),addMutation:e=>h([e]),addMutations:h,commit:()=>(0,o.defer)(()=>(p({type:"commit"}),(0,o.of)(null)))}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(546)),o=a(n(1581)),i=a(n(322));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u{constructor(e,t){s(this,"active",void 0),s(this,"recursives",void 0),s(this,"payload",void 0),this.active=e||[],t?(this.recursives=t.recursives,this.payload=t.payload):this.recursives=[],this.extractRecursives()}setPayload(e){return this.payload=e,this}extractRecursives(){this.active=this.active.filter(e=>!e.isRecursive()||(this.recursives.push(...e.extractRecursives()),!1))}activeRecursives(e){return this.recursives.filter(t=>{var n=t.head;return!!n.isConstraint()||(!("array"!=e.containerType()||!n.isIndexReference())||!("object"!=e.containerType()||!n.isAttributeReference()||!e.hasAttribute(n.name())))})}match(e){return this.iterate(e).extractMatches(e)}iterate(e){var t=[];return this.active.concat(this.activeRecursives(e)).forEach(n=>{t.push(...n.iterate(e))}),new u(t,this)}isDestination(){return!!this.active.find(e=>!!e.hasArrived())}hasRecursives(){return this.recursives.length>0}extractMatches(e){var t=[],n=[];if(this.active.forEach(r=>{if(r.hasArrived())n.push(new i.default({type:"alias",target:"self"}));else if(("array"!=e.containerType()||r.head.isIndexReference())&&("object"!=e.containerType()||r.head.isAttributeReference()))if(r.tail){var o=new u(r.descend(),this);r.head.toFieldReferences().forEach(e=>{t.push({target:r.head,matcher:o})})}else n.push(r.head)}),this.hasRecursives()){var r=new u([],this);if("array"==e.containerType())for(var o=e.length(),a=0;a{t.push({target:i.default.attributeReference(e),matcher:r})})}var s={leads:t};return n.length>0&&(s.delivery={targets:n,payload:this.payload}),s}static fromPath(e){var t=new o.default(null,new i.default((0,r.default)(e)));return new u(t.descend())}}t.default=u},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return new u(e).tokenize()};var o=/[0-9]/,i=/^[a-zA-Z0-9_]$/,a=/^[a-zA-Z_]$/,s={operator:["..",".",",",":","?"],comparator:[">",">=","<","<=","==","!="],keyword:["$","@"],boolean:["true","false"],paren:["[","]"]};class u{constructor(e){r(this,"source",void 0),r(this,"i",void 0),r(this,"length",void 0),this.source=e,this.length=e.length,this.i=0,this.tokenizers=[this.tokenizeSymbol,this.tokenizeIdentifier,this.tokenizeNumber,this.tokenizeQuoted].map(e=>e.bind(this))}tokenize(){for(var e=this,t=[],n=function(){var n=void 0;if(e.chompWhitespace(),!e.tokenizers.find(e=>!!(n=e())))throw new Error("Invalid tokens in jsonpath '".concat(e.source,"' @ ").concat(e.i));t.push(n)};!this.EOF();)n();return t}takeWhile(e){for(var t=this.i,n="";!this.EOF();){var r=e(this.source[this.i]);if(null===r)break;n+=r,this.i++}return this.i===t?null:n}EOF(){return this.i>=this.length}peek(){return this.EOF()?null:this.source[this.i]}consume(e){if(this.i+e.length>this.length)throw new Error("Expected ".concat(e," at end of jsonpath"));if(e!=this.source.slice(this.i,this.i+e.length))throw new Error('Expected "'.concat(e,'", but source contained "').concat(this.source.slice(this.start)));this.i+=e.length}tryConsume(e){return this.i+e.length>this.length?null:e==this.source.slice(this.i,this.i+e.length)?(this.i+=e.length,e):null}chompWhitespace(){this.takeWhile(e=>" "==e?"":null)}tokenizeQuoted(){var e=this.peek();if("'"==e||'"'==e){this.consume(e);var t=!1,n=this.takeWhile(n=>t?(t=!1,n):"\\"==n?(t=!0,""):n!=e?n:null);return this.consume(e),{type:"quoted",value:n,quote:'"'==e?"double":"single"}}return null}tokenizeIdentifier(){var e=!0,t=this.takeWhile(t=>e?(e=!1,t.match(a)?t:null):t.match(i)?t:null);return null!==t?{type:"identifier",name:t}:null}tokenizeNumber(){var e=this.i,t=!1,n=!1,r=!1;"-"==this.peek()&&(r=!0,this.consume("-"));var i=this.takeWhile(e=>"."==e&&!t&&n?(t=!0,e):(n=!0,e.match(o)?e:null));return null!==i?{type:"number",value:r?-i:+i,raw:r?"-".concat(i):i}:(this.i=e,null)}tokenizeSymbol(){var e=null;return Object.keys(s).find(t=>{var n=s[t].find(e=>this.tryConsume(e));if(n)return e={type:t,symbol:n},!0}),e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(23)),o=i(n(322));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s{constructor(e,t){a(this,"head",void 0),a(this,"tail",void 0),this.head=e,this.tail=t}iterate(e){var t=[this];if(this.head&&this.head.isConstraint())for(var n=!0;n;)n=(t=(0,r.default)(t.map(t=>t.iterateConstraints(e)))).find(e=>e.head&&e.head.isConstraint());return t}isRecursive(){return this.head&&this.head.isRecursive()}hasArrived(){return null===this.head&&null===this.tail}extractRecursives(){if(this.head.isRecursive()){var e=this.head.unwrapRecursive();return new s(null,e.concat(this.tail)).descend()}return[]}iterateConstraints(e){var t=this.head;if(null===t||!t.isConstraint())return[this];var n=[];if("primitive"===e.containerType()&&t.constraintTargetIsSelf())return t.testConstraint(e)&&n.push(...this.descend()),n;if("array"===e.containerType()){for(var r=e.length(),i=0;inew s(e.head,e.tail)):[new s(null,null)]}toString(){var e=["<"];return this.head&&e.push(this.head.toString()),e.push("|"),this.tail&&e.push(this.tail.toString()),e.push(">"),e.join("")}}t.default=s},function(e,t,n){"use strict";function r(e){if("path"!==e.type)return[e,null];var t=e.nodes;return 0===t.length?[null,null]:1===t.length?[t[0],null]:[t[0],{type:"path",nodes:t.slice(1)}]}function o(e,t){if(!e&&!t)return null;var n=e?e.nodes:[],r=t?t.nodes:[];return{type:"path",nodes:n.concat(r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(e,t){if("union"!==e.type)return[[e,t]];return e.nodes.map(e=>{if("path"===e.type){var n=r(e),i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(n,2),a=i[0],s=i[1];return[a,o(s,t)]}return[e,t]})}(...r(e))}},function(e,t,n){"use strict";function r(e){return function e(t,n){switch(t.type){case"attribute":return t.name;case"alias":return"self"===t.target?"@":"$";case"number":return"".concat(t.value);case"range":var o=[];return n||o.push("["),t.start&&o.push("".concat(t.start)),o.push(":"),t.end&&o.push("".concat(t.end)),t.step&&o.push(":".concat(t.step)),n||o.push("]"),o.join("");case"index":return n?"".concat(t.value):"[".concat(t.value,"]");case"constraint":var i="".concat(e(t.lhs,!1)," ").concat(t.operator," ").concat(e(t.rhs,!1));return n?i:"[".concat(i,"]");case"string":return JSON.stringify(t.value);case"path":for(var a=[],s=t.nodes.slice();s.length>0;){var u=s.shift();a.push(r(u));var l=s[0];l&&"["!==e(l,!1)[0]&&a.push(".")}return a.join("");case"union":var c=t.nodes.map(t=>e(t,!0));return"[".concat(c.join(","),"]");default:throw new Error("Unknown node type ".concat(t.type));case"recursive":return"..".concat(e(t.term,!1))}}(e,!1)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e,t).map(e=>e.get())};var r,o=(r=n(547))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class o{constructor(e,t){r(this,"_value",void 0),r(this,"path",void 0),this._value=e,this.path=t||[]}containerType(){return Array.isArray(this._value)?"array":null!==this._value&&"object"==typeof this._value?"object":"primitive"}length(){if("array"!==this.containerType())throw new Error("Won't return length of non-indexable _value");return this._value.length}getIndex(e){return"array"===this.containerType()&&(e>=this.length()?null:new o(this._value[e],this.path.concat(e)))}hasAttribute(e){return"object"===this.containerType()&&this._value.hasOwnProperty(e)}attributeKeys(){return"object"!==this.containerType()?[]:Object.keys(this._value)}getAttribute(e){if("object"!==this.containerType())throw new Error("getAttribute only applies to plain objects");return this.hasAttribute(e)?new o(this._value[e],this.path.concat(e)):null}get(){return this._value}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1587)),o=a(n(553)),i=n(321);function a(e){return e&&e.__esModule?e:{default:e}}t.default=class{constructor(e){var t,n,o;o=void 0,(n="patches")in(t=this)?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,this.patches=(0,r.default)(e)}apply(e){var t=new o.default(e);return this.applyViaAccessor(t).get()}applyViaAccessor(e){var t,n=e,r=e.getAttribute("_id");if(!r)throw new Error("Cannot apply patch to document with no _id");return t=r.get(),this.patches.forEach(e=>{if(e.id===t){var r=i.Matcher.fromPath(e.path).setPayload(e);n=function e(t,n){var r=n,o=t.match(n),i=o.leads,a=o.delivery;if(i.forEach(t=>{if(t.target.isIndexReference())t.target.toIndicies().forEach(n=>{r=r.setIndexAccessor(n,e(t.matcher,r.getIndex(n)))});else{if(!t.target.isAttributeReference())throw new Error("Unable to handle target ".concat(t.target.toString()));if(!r.hasAttribute(t.target.name()))return;var n=r.getAttribute(t.target.name()),o=e(t.matcher,r.getAttribute(t.target.name()));n!==o&&(r=r.setAttributeAccessor(t.target.name(),o))}}),a){var s=a.payload;r=s.apply(a.targets,r)}return r}(r,n)}}),n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[];if(Array.isArray(t))return t.reduce((t,n)=>t.concat(e(n)),n);t.set&&Object.keys(t.set).forEach(e=>{n.push(new r.default(t.id,e,t.set[e]))});t.setIfMissing&&Object.keys(t.setIfMissing).forEach(e=>{n.push(new a.default(t.id,e,t.setIfMissing[e]))});t.unset&&t.unset.forEach(e=>{n.push(new s.default(t.id,e))});t.diffMatchPatch&&Object.keys(t.diffMatchPatch).forEach(e=>{n.push(new u.default(t.id,e,t.diffMatchPatch[e]))});t.inc&&Object.keys(t.inc).forEach(e=>{n.push(new o.default(t.id,e,t.inc[e]))});t.dec&&Object.keys(t.dec).forEach(e=>{n.push(new o.default(t.id,e,-t.dec[e]))});if(t.insert){var l,c,f=t.insert;f.before?(l="before",c=f.before):f.after?(l="after",c=f.after):f.replace&&(l="replace",c=f.replace),n.push(new i.default(t.id,l,c,f.items))}return n};var r=l(n(1588)),o=l(n(1589)),i=l(n(1590)),a=l(n(1595)),s=l(n(1596)),u=l(n(1597));function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{constructor(e,t,n){r(this,"path",void 0),r(this,"value",void 0),this.id=e,this.path=t,this.value=n}apply(e,t){var n=t;return e.forEach(e=>{if(e.isSelfReference())n=n.set(this.value);else if(e.isIndexReference())e.toIndicies(t).forEach(e=>{n=n.setIndex(e,this.value)});else{if(!e.isAttributeReference())throw new Error("Unable to apply to target ".concat(e.toString()));n=n.setAttribute(e.name(),this.value)}}),n}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=class{constructor(e,t,n){r(this,"path",void 0),r(this,"value",void 0),r(this,"id",void 0),this.path=t,this.value=n,this.id=e}apply(e,t){var n=t;return e.forEach(e=>{if(e.isIndexReference())e.toIndicies(t).forEach(e=>{var t=n.getIndex(e).get();n=n.setIndex(e,t+this.value)});else{if(!e.isAttributeReference())throw new Error("Unable to apply to target ".concat(e.toString()));var r=n.getAttribute(e.name()).get();n=n.setAttribute(e.name(),r+this.value)}}),n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1591)),o=a(n(1593)),i=n(552);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class{constructor(e,t,n,r){s(this,"location",void 0),s(this,"path",void 0),s(this,"items",void 0),s(this,"id",void 0),this.id=e,this.location=t,this.path=n,this.items=r}apply(e,t){var n=t;if("array"!==t.containerType())throw new Error("Attempt to apply insert patch to non-array value");switch(this.location){case"before":var a=function(e,t){var n=(0,o.default)((0,i.targetsToIndicies)(e,t));return e.forEach(e=>{if(e.isRange()){var t=e.expandRange().start;t{if(e.isRange()){var t=e.expandRange().end;t>n&&(n=t)}}),n}(e,t);n=n.insertItemsAt(s+1,this.items);break;case"replace":var u=(0,i.targetsToIndicies)(e,t);n=(n=n.unsetIndices(u)).insertItemsAt(u[0],this.items);break;default:throw new Error("Unsupported location atm: ".concat(this.location))}return n}}},function(e,t,n){var r=n(551),o=n(1592),i=n(68);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t,n){var r=n(551),o=n(1594),i=n(68);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t){e.exports=function(e,t){return e{if(e.isIndexReference());else{if(!e.isAttributeReference())throw new Error("Unable to apply to target ".concat(e.toString()));n.hasAttribute(e.name())||(n=t.setAttribute(e.name(),this.value))}}),n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(552);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class{constructor(e,t){o(this,"path",void 0),o(this,"value",void 0),this.id=e,this.path=t}apply(e,t){var n=t;switch(t.containerType()){case"array":n=n.unsetIndices((0,r.targetsToIndicies)(e,t));break;case"object":e.forEach(e=>{n=n.unsetAttribute(e.name())});break;default:throw new Error("Target value is neither indexable or an object. This error should potentially just be silently ignored?")}return n}}},function(e,t,n){"use strict";var r;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=new(((r=n(186))&&r.__esModule?r:{default:r}).default);t.default=class{constructor(e,t,n){o(this,"path",void 0),o(this,"dmpPatch",void 0),o(this,"id",void 0),this.id=e,this.path=t,this.dmpPatch=i.patch_fromText(n)}apply(e,t){var n=t;return e.forEach(e=>{if(e.isIndexReference())e.toIndicies(t).forEach(e=>{var t=n.getIndex(e).get(),r=i.patch_apply(this.dmpPatch,t)[0];n=n.setIndex(e,r)});else{if(!e.isAttributeReference())throw new Error("Unable to apply diffMatchPatch to target ".concat(e.toString()));var r=n.getAttribute(e.name()).get(),o=i.patch_apply(this.dmpPatch,r)[0];n=n.setAttribute(e.name(),o)}}),n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Mutation",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"BufferedDocument",{enumerable:!0,get:function(){return i.default}});var r=a(n(554)),o=a(n(211)),i=a(n(1603));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(36).substring(1)}return"".concat(e()+e(),"-").concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e()).concat(e()).concat(e())}},function(e,t,n){"use strict";(function(r){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})(e)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":o(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(1601)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(t,n(56))},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var u=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*a;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*o;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(e);if("number"===l&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return u(e,t,i,"day");if(t>=o)return u(e,t,o,"hour");if(t>=r)return u(e,t,r,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(46)),o=u(n(554)),i=u(n(211)),a=u(n(1604)),s=u(n(212));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=6e4;class f{constructor(e){l(this,"mutations",void 0),l(this,"tries",void 0),this.mutations=e,this.tries=0}apply(e){return i.default.applyAll(e,this.mutations)}squash(e){var t=i.default.squash(e,this.mutations);return t.assignRandomTransactionId(),t}}t.default=class{constructor(e){l(this,"document",void 0),l(this,"LOCAL",void 0),l(this,"commits",void 0),l(this,"buffer",void 0),l(this,"onMutation",void 0),l(this,"onRebase",void 0),l(this,"onDelete",void 0),l(this,"commitHandler",void 0),this.buffer=new a.default(e),this.document=new o.default(e),this.document.onMutation=(e=>this.handleDocMutation(e)),this.document.onRebase=(e=>this.handleDocRebase(e)),this.LOCAL=e,this.mutations=[],this.commits=[]}reset(e){e?(0,s.default)("Document state reset to revision %s",e._rev):(0,s.default)("Document state reset to being deleted"),this.document.reset(e),this.rebase()}set onConsistencyChanged(e){this.document.onConsistencyChanged=e}get onConsistencyChanged(){return this.document.onConsistencyChanged}get inconsitentAt(){return this.document.inconsitentAt}add(e){(0,s.default)("Staged local mutation"),this.buffer.add(e);var t=this.LOCAL;this.LOCAL=e.apply(this.LOCAL),this.onMutation&&t!==this.LOCAL&&((0,s.default)("onMutation fired"),this.onMutation({mutation:e,document:this.LOCAL,remote:!1}),null===this.LOCAL&&this.onDelete&&this.onDelete(this.LOCAL))}arrive(e){if((0,s.default)("Remote mutation arrived %s -> %s",e.previousRev,e.resultRev),e.previousRev==e.resultRev)throw new Error("Mutation ".concat(e.transactionId," has previousRev == resultRev (").concat(e.previousRev,")"));return this.document.arrive(e)}commit(){this.buffer.hasChanges()&&((0,s.default)("Committing local changes"),this.commits.push(new f([this.buffer.purge()])),this.buffer=new a.default(this.LOCAL),this.performCommits())}performCommits(){if(!this.commitHandler)throw new Error("No commitHandler configured for this BufferedDocument");this.committerRunning||this._cycleCommitter()}_cycleCommitter(){if(0!=this.commits.length){this.committerRunning=!0;var e=this.commits.shift(),t=e.squash(this.LOCAL),n=this.document.stage(t,!0),r={success:()=>{(0,s.default)("Commit succeeded"),n.success(),this._cycleCommitter()},failure:()=>{(0,s.default)("Commit failed"),e.tries+=1,null!==this.LOCAL&&this.commits.unshift(e),n.failure(),e.tries<200&&setTimeout(()=>this._cycleCommitter(),Math.min(1e3*e.tries,c))}};(0,s.default)("Posting commit"),this.commitHandler({mutation:t,success:r.success,failure:r.failure})}else this.committerRunning=!1}handleDocRebase(e){this.rebase()}handleDocumentDeleted(){(0,s.default)("Document deleted"),null!==this.LOCAL&&this.onDelete&&this.onDelete(this.LOCAL),this.commits=[],this.mutations=[]}handleDocMutation(e){if(0==this.commits.length&&!this.buffer.hasChanges())return(0,s.default)("Document mutated from remote with no local changes"),this.LOCAL=this.document.EDGE,this.buffer=new a.default(this.LOCAL),void(this.onMutation&&this.onMutation(e));(0,s.default)("Document mutated from remote with local changes"),null===this.document.EDGE&&this.handleDocumentDeleted(),this.rebase()}rebase(){(0,s.default)("Rebasing document"),null===this.document.EDGE&&this.handleDocumentDeleted();var e=this.LOCAL;this.LOCAL=this.commits.reduce((e,t)=>t.apply(e),this.document.EDGE),this.LOCAL=this.buffer.rebase(this.LOCAL),null!==e&&null!==this.LOCAL&&(e._rev=this.LOCAL._rev),!(0,r.default)(this.LOCAL,e)&&this.onRebase&&this.onRebase(this.LOCAL)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(211)),o=u(n(548)),i=u(n(549)),a=u(n(186)),s=u(n(212));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class{constructor(e){l(this,"BASIS",void 0),l(this,"out",[]),l(this,"PRESTAGE",void 0),l(this,"setOperations",void 0),l(this,"staged",void 0),e?(0,s.default)("Reset mutation buffer to rev %s",e._rev):(0,s.default)("Reset mutation buffer state to document being deleted"),this.staged=[],this.setOperations={},this.BASIS=e,this.PRESTAGE=e,this.dmp=new a.default}add(e){e.mutations.forEach(e=>this.addOperation(e))}hasChanges(){return this.out.length>0||Object.keys(this.setOperations).length>0}purge(e){this.stashStagedOperations();var t=null;return this.out.length>0&&((0,s.default)("Purged mutation buffer"),t=new r.default({mutations:this.out,resultRev:e,transactionId:e})),this.out=[],t}addOperation(e){if(e.patch&&e.patch.set&&e.patch.id===this.PRESTAGE._id&&2==Object.keys(e.patch).length){for(var t=e.patch.set,n={},r=0,o=Object.keys(t);r0&&((0,s.default)("Unoptimizable set-operation detected, purging optimization buffer"),this.staged.push({patch:{id:this.PRESTAGE._id,set:n}}),this.stashStagedOperations())}else(0,s.default)("Unoptimizable mutation detected, purging optimization buffer"),this.staged.push(e),this.stashStagedOperations()}optimiseSetOperation(e,t){if("object"==typeof t)return!1;var n=(0,o.default)(e,this.PRESTAGE);if(1!==n.length)return!1;var r,a=n[0];if("object"==typeof a.value)return!1;if(a.value===t)r=null;else if("string"==typeof a.value&&"string"==typeof t){var s=this.dmp.patch_make(a.value,t).map(e=>e.toString()).join("");r={patch:{id:this.PRESTAGE._id,diffMatchPatch:{[e]:s}}}}else r={patch:{id:this.PRESTAGE._id,set:{[e]:t}}};var u=(0,i.default)(a.path);return r?this.setOperations[u]=r:delete this.setOperations[u],!0}stashStagedOperations(){var e=[];Object.keys(this.setOperations).forEach(t=>{e.push(this.setOperations[t])}),e.push(...this.staged),e.length>0&&(this.PRESTAGE=new r.default({mutations:e}).apply(this.PRESTAGE),this.staged=[],this.setOperations={}),this.out.push(...e)}rebase(e){return this.stashStagedOperations(),null===e?(this.out=[],this.PRESTAGE=this.BASIS=e):(this.BASIS=e,this.out?this.PRESTAGE=new r.default({mutations:this.out}).apply(this.BASIS):this.PRESTAGE=this.BASIS),this.PRESTAGE}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPairListener=function(e){var t=e.publishedId,n=e.draftId;return(0,i.defer)(()=>o.default.observable.listen("*[_id == $publishedId || _id == $draftId]",{publishedId:t,draftId:n},{includeResult:!1,events:["welcome","mutation","reconnect"]})).pipe((0,a.concatMap)(e=>"welcome"===e.type?function(e){var t=e.publishedId,n=e.draftId;return o.default.observable.fetch(s,{publishedId:t,draftId:n})}({publishedId:t,draftId:n}).pipe((0,a.concatMap)(e=>[u(n,e.draft),u(t,e.published)])):(0,i.of)(e)))};var r,o=(r=n(13))&&r.__esModule?r:{default:r},i=n(6),a=n(4);var s='{\n "published": *[_id == $publishedId][0],\n "draft": *[_id == $draftId][0]\n}';function u(e,t){return{type:"snapshot",documentId:e,document:t}}},function(e,t){e.exports={image:"Asset_image_1JPdV",item:"Asset_item_2jJaG backgrounds_listItemStates_32_ku",padder:"Asset_padder_3ns3d",menuContainer:"Asset_menuContainer_184jy",spinnerContainer:"Asset_spinnerContainer_1Y_0R",menuItem:"Asset_menuItem_l3iyk",menuItemDanger:"Asset_menuItemDanger_1rEcf Asset_menuItem_l3iyk",intentLink:"Asset_intentLink_f81HJ",dialogContent:"Asset_dialogContent_2UgQx",dialogSubtitle:"Asset_dialogSubtitle_uvYZ_",referringDocumentsDescription:"Asset_referringDocumentsDescription_3kjVV text-blocks_description_2qcZa text-blocks_small_YOrZq text-blocks_base_3DYD1 text-blocks_root_2QRzu",openDocLink:"Asset_openDocLink_2nR2B"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=n(523),i=s(n(301)),a=n(200);function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t{this._input=e}),(t="setInput")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}focus(){this._input&&this._input.focus()}render(){return r.default.createElement(o.FileInput,u({},this.props,{resolveUploader:i.default,materialize:a.materializeReference,ref:this.setInput}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.options||{};t.inputType&&a();"searchable"in t&&s();return o.default};var r=i(n(1609)),o=i(n(1611));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,r.default)(()=>console.warn('The option "inputType" on references is removed.')),s=(0,r.default)(()=>console.warn('The option "searchable" on references has been removed.'))},function(e,t,n){var r=n(1610);e.exports=function(e){return r(2,e)}},function(e,t,n){var r=n(294),o="Expected a function";e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError(o);return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(0)),o=n(1612),i=a(n(537));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t{this._input=e}),(t="setInput")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}focus(){this._input.focus()}render(){return r.default.createElement(i.default,s({},this.props,{onSearch:o.search,getPreviewSnapshot:o.getPreviewSnapshot,ref:this.setInput}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPreviewSnapshot=function(e,t){return(0,s.observeForPreview)(e,t).pipe((0,o.map)(e=>e.snapshot))},t.search=function(e,t){return(0,a.createWeightedSearch)(t.to,i.default)(e,{includeDrafts:!1}).pipe((0,o.map)(e=>e.map(e=>e.hit)))};var r,o=n(4),i=(r=n(13))&&r.__esModule?r:{default:r},a=n(1613),s=n(52)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createWeightedSearch",{enumerable:!0,get:function(){return r.createWeightedSearch}});var r=n(556)},function(e,t,n){var r=n(1615)();e.exports=r},function(e,t,n){var r=n(324),o=n(253),i=n(558),a=n(559),s=n(22),u=n(1618),l="Expected a function",c=8,f=32,d=128,p=256;e.exports=function(e){return o(function(t){var n=t.length,o=n,h=r.prototype.thru;for(e&&t.reverse();o--;){var v=t[o];if("function"!=typeof v)throw new TypeError(l);if(h&&!m&&"wrapper"==a(v))var m=new r([],!0)}for(o=m?o:n;++o!o.test(e)||r.includes(e);t.fieldNeedsEscape=i;var a=e=>'["'.concat(e,'"]');t.escapeField=a;t.joinPath=(e=>e.reduce((e,t,n)=>{if((e=>Array.isArray(e)&&0===e.length)(t))return"".concat(e,"[]");var r=0===n;return i(t)?r?(e=>"@".concat(a(e)))(t):"".concat(e).concat(a(t)):r?t:"".concat(e,".").concat(t)},""))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyWeights=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=(0,o.default)(e,e=>e.typeName);return t.map((e,o)=>{var i=r[e._type],a=i.paths.map((t,r)=>{var o=d(e["w".concat(r)]);if(!o)return{path:t.path,score:0,why:"No match"};var i=f(n,o),a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(i,2),s=a[0],u=a[1];return{path:t.path,score:s*t.weight,why:"".concat(u," (*").concat(t.weight,")")}}),s=a.reduce((e,t)=>e+t.score,0);return{hit:e,resultIndex:t.length-o,score:s,stories:a}})},t.calculateScore=void 0;var r=c(n(560)),o=c(n(448)),i=c(n(415)),a=c(n(557)),s=c(n(323)),u=c(n(57)),l=c(n(442));function c(e){return e&&e.__esModule?e:{default:e}}var f=(e,t)=>{var n=(0,u.default)((0,s.default)((0,l.default)((0,r.default)(t)))),o=(0,u.default)(e.map(r.default)),c=(0,i.default)(o,n),f=(0,a.default)(n,o),d=c.length/f.length;return 1===d?[1,"Exact match"]:[d/2,"Matched ".concat(c.length," of ").concat(f.length," terms: [").concat(c.join(", "),"]")]};t.calculateScore=f;var d=e=>"string"==typeof e?e:JSON.stringify(e)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tokenize=function(e){return e.match(r)||[]};var r=/([^\s,-])+/g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayOfPrimitives=d,t.hasOptionsList=p,t.default=function(e){if(p(e))return o.default;if(function(e){return"tags"===(0,r.default)(e.options,"layout")&&1===e.of.length&&u.type("string",e.of[0])}(e))return s.default;if(d(e))return a.default;if(function(e){return e.of.some(e=>u.type("block",e))}(e))return i.default;return l.default};var r=c(n(19)),o=c(n(1625)),i=c(n(304)),a=c(n(1629)),s=c(n(1634)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(303)),l=c(n(520));function c(e){return e&&e.__esModule?e:{default:e}}var f=["string","number","boolean"];function d(e){return e.of.every(e=>f.includes(e.jsonType))}function p(e){return(0,r.default)(e.options,"list")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(1626))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(19)),o=d(n(0)),i=d(n(1)),a=d(n(73)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(10)),u=d(n(1627)),l=d(n(1628)),c=n(74),f=n(562);function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if((0,f.isLegacyOptionsItem)(e)||(0,f.isLegacyOptionsItem)(t))return e.value===t.value;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("object"!=typeof e&&!Array.isArray(e))return e===t;if(e._key&&e._key===t._key)return!0;if(Array.isArray(e))return!e.length===t.length&&e.every((n,r)=>h(e[r],t[r]));var n=Object.keys(e),r=Object.keys(e);return n.length===r.length&&n.every(n=>h(e[n],t[n]))}function v(e,t){return!!e&&e.some(e=>h(e,t))}class m extends o.default.PureComponent{constructor(){super(...arguments),p(this,"handleChange",(e,t)=>{var n=this.props,o=n.type,i=n.value,a=void 0===i?[]:i,u=(0,r.default)(o.options,"list");!e&&t._key&&this.props.onChange(s.default.from((0,s.unset)([{_key:t._key}])));var l=u.filter(n=>h(t,n)?e:v(a,(0,f.resolveValueWithLegacyOptionsSupport)(n))).map(f.resolveValueWithLegacyOptionsSupport);this.props.onChange(s.default.from(l.length>0?(0,s.set)(l):(0,s.unset)()))})}getMemberTypeOfItem(e){return this.props.type.of.find(t=>t.name===(0,c.resolveTypeName)((0,f.resolveValueWithLegacyOptionsSupport)(e)))}render(){var e=this.props,t=e.type,n=e.markers,i=e.value,s=e.level,d=e.readOnly,p=(0,r.default)(t.options,"list"),h=(0,r.default)(t.options,"direction");return o.default.createElement(a.default,{legend:t.title,description:t.description,markers:n,level:s},p.map((e,n)=>{var r=this.getMemberTypeOfItem(e);if(!r){var a=(0,c.resolveTypeName)((0,f.resolveValueWithLegacyOptionsSupport)(e)),s=t.of.map(e=>e.name);return o.default.createElement("div",{key:e._key||n,className:l.default.error},"Invalid option type: Type ",o.default.createElement("code",null,a)," not valid for array of [",s.join(", "),"]. Check the list options of this field")}var p=v(i,(0,f.resolveValueWithLegacyOptionsSupport)(e));return o.default.createElement("div",{key:e._key||n,className:"vertical"===h?l.default.itemWrapperVertical:l.default.itemWrapperHorizontal},o.default.createElement(u.default,{layout:"inline",type:r,readOnly:d,value:e,checked:p,onChange:this.handleChange}))}))}}t.default=m,p(m,"propTypes",{type:i.default.shape({options:i.default.shape({list:i.default.array,direction:i.default.string}),name:i.default.string,description:i.default.string,of:i.default.array}),markers:i.default.array,value:i.default.array,level:i.default.number,readOnly:i.default.bool,onChange:i.default.func})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(489)),i=s(n(114)),a=n(562);function s(e){return e&&e.__esModule?e:{default:e}}t.default=class extends r.default.PureComponent{constructor(){var e,t,n;super(...arguments),n=(e=>{var t=this.props,n=t.onChange,r=t.value;n(e.currentTarget.checked,r)}),(t="handleChange")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}render(){var e=this.props,t=e.value,n=e.checked,s=e.type,u=e.readOnly;return r.default.createElement(o.default,{onChange:this.handleChange,checked:n,readOnly:u||s.readOnly},(0,a.isLegacyOptionsItem)(t)?t.title:r.default.createElement(i.default,{layout:"inline",type:s,value:(0,a.resolveValueWithLegacyOptionsSupport)(t)}))}}},function(e,t){e.exports={error:"OptionsArrayInput_error_1PKjg",itemWrapperVertical:"OptionsArrayInput_itemWrapperVertical_25vLc",itemWrapperHorizontal:"OptionsArrayInput_itemWrapperHorizontal_1ihUn"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(1630))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(19)),o=m(n(0)),i=n(90),a=n(192),s=m(n(473)),u=m(n(73)),l=n(10),c=n(62),f=n(74),d=m(n(113)),p=m(n(1631)),h=m(n(563)),v=m(n(1632));function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class extends o.default.PureComponent{constructor(){super(...arguments),y(this,"_element",void 0),y(this,"_lastAddedIndex",-1),y(this,"handleAppend",e=>{var t=this.props,n=t.value,r=void 0===n?[]:n,o=t.onFocus;this.set(r.concat(e)),o([r.length])}),y(this,"handlePrepend",e=>{var t=this.props,n=t.value,r=void 0===n?[]:n,o=t.onFocus;this.set([e].concat(r)),o([r.length])}),y(this,"handleRemoveItem",e=>{this.removeAt(e)}),y(this,"handleItemChange",e=>{this._lastAddedIndex=-1,this.props.onChange(e)}),y(this,"handleItemEnterKey",e=>{this.insertAt(e,this.props.type.of[0]),this._lastAddedIndex=e+1}),y(this,"handleItemEscapeKey",e=>{var t=this.props.value;e===this._lastAddedIndex&&""===t[e]&&this.removeAt(e)}),y(this,"handleSortEnd",e=>{var t=this.props.value,n=e.oldIndex,r=e.newIndex;this.set(function(e,t,n){var r=e.slice(),o=r[t];return r.splice(t,1),r.splice(n,0,o),r}(t,n,r))}),y(this,"renderItem",(e,t)=>{var n=this.props,s=n.type,u=n.level,l=n.markers,h=n.value,m=n.focusPath,y=n.onChange,g=n.onFocus,b=n.readOnly,_=n.onBlur,w=(0,f.resolveTypeName)(e),O=this.getMemberType(w);if(!O)return o.default.createElement(d.default,{key:t,actualType:w,validTypes:s.of.map(e=>e.name),onChange:e=>y(e.prefixAll(t)),value:h});var k=!1!==(0,r.default)(s,"options.sortable"),E=k?a.Item:i.Item,S=l.filter(e=>(0,c.startsWith)([t],e.path));return o.default.createElement(E,{key:t,index:t,className:p.default.item},o.default.createElement(v.default,{level:u+1,index:t,value:e,readOnly:b,markers:S,isSortable:k,type:O,focusPath:m,onFocus:g,onBlur:_,onEnterKey:this.handleItemEnterKey,onEscapeKey:this.handleItemEscapeKey,onChange:this.handleItemChange,onRemove:this.handleRemoveItem}))}),y(this,"setElement",e=>{this._element=e}),y(this,"handleFocusItem",e=>{this.props.onFocus([e])})}set(e){this._lastAddedIndex=-1;var t=0===e.length?(0,l.unset)():(0,l.set)(e);this.props.onChange(l.PatchEvent.from(t))}removeAt(e){var t=this.props.value,n=void 0===t?[]:t;this.set(n.filter((t,n)=>n!==e)),this.props.onFocus([Math.max(0,e-1)])}insertAt(e,t){var n=this.props,r=n.value,o=void 0===r?[]:r,i=n.onFocus;this.set(function(e,t,n){var r=e.slice();return r.splice(t+1,0,n),r}(o,e,(0,h.default)(t))),i([e+1])}getMemberType(e){return this.props.type.of.find(t=>t.name===e||t.jsonType===e)}renderList(e){var t=this.props.type;return!1!==(0,r.default)(t,"options.sortable")?o.default.createElement(a.List,{className:p.default.list,onSortEnd:this.handleSortEnd,movingItemClass:p.default.movingItem,useDragHandle:!0},e.map(this.renderItem)):o.default.createElement(i.List,{decoration:"divider"},e.map(this.renderItem))}focus(){this._element&&this._element.focus()}render(){var e=this.props,t=e.type,n=e.value,r=e.level,i=e.markers,a=e.readOnly,l=e.onChange,c=e.onFocus;return o.default.createElement(u.default,{legend:t.title,description:t.description,level:r,tabIndex:0,onFocus:c,ref:this.setElement,markers:i},o.default.createElement("div",{className:p.default.root},n&&n.length>0&&o.default.createElement("div",{className:p.default.list},this.renderList(n)),o.default.createElement("div",{className:p.default.functions},o.default.createElement(s.default,{type:t,value:n,readOnly:a,onAppendItem:this.handleAppend,onPrependItem:this.handlePrepend,onFocusItem:this.handleFocusItem,onCreateValue:h.default,onChange:l}))))}}},function(e,t){e.exports={root:"ArrayOfPrimitivesInput_root_J04Ly",list:"ArrayOfPrimitivesInput_list_suyLe DefaultList_root_8B-Db",deleteButton:"ArrayOfPrimitivesInput_deleteButton_gRd2e",item:"ArrayOfPrimitivesInput_item_38pNT",addButton:"ArrayOfPrimitivesInput_addButton_2wu1e",movingItem:"ArrayOfPrimitivesInput_movingItem_2PrgN helpers_movingItem_1oAqL shadows_shadow-6dp_3hP4o",inputLabel:"ArrayOfPrimitivesInput_inputLabel_iAEVx",functions:"ArrayOfPrimitivesInput_functions_37DSB undefined"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(0)),o=n(61),i=p(n(1633)),a=p(n(8)),s=p(n(115)),u=p(n(135)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(10)),c=p(n(563)),f=n(192),d=p(n(140));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,f.createDragHandle)(()=>r.default.createElement("span",{className:i.default.dragHandle},r.default.createElement(d.default,null)));t.default=class extends r.default.PureComponent{constructor(){super(...arguments),h(this,"handleRemove",()=>{var e=this.props,t=e.index;(0,e.onRemove)(t)}),h(this,"handleKeyPress",e=>{var t=this.props,n=t.index,r=t.onEnterKey;"Enter"===e.key&&r(n)}),h(this,"handleKeyUp",e=>{var t=this.props,n=t.index,r=t.onRemove,o=t.onEscapeKey,i=t.value;e.shiftKey&&"Backspace"===e.key&&""===i&&r(n),"Escape"===e.key&&o(n)}),h(this,"handleChange",e=>{var t=this.props,n=t.onChange,r=t.type,o=t.index;n(l.default.from(e.patches.map(e=>0===e.path.length&&"unset"===e.type?(0,l.set)((0,c.default)(r)):e)).prefixAll(o))})}render(){var e=this.props,t=e.value,n=e.level,l=e.markers,c=e.index,f=e.focusPath,d=e.onFocus,p=e.onBlur,h=e.type,m=e.readOnly,y=e.isSortable;return r.default.createElement("div",{className:i.default.root},y&&!m&&r.default.createElement(v,{className:i.default.dragHandle}),r.default.createElement("div",{className:i.default.input},r.default.createElement(o.FormBuilderInput,{value:t,path:[c],markers:l,focusPath:f,onFocus:d,onBlur:p,type:h,readOnly:m||h.readOnly,onKeyUp:this.handleKeyUp,onKeyPress:this.handleKeyPress,onChange:this.handleChange,level:n})),r.default.createElement("div",{className:i.default.functions},r.default.createElement("div",{className:i.default.validationStatus},r.default.createElement(u.default,{markers:l})),!m&&r.default.createElement("div",null,r.default.createElement(a.default,{kind:"simple",className:i.default.deleteButton,icon:s.default,title:"Delete",onClick:this.handleRemove}))))}}},function(e,t){e.exports={root:"Item_root_2PrXZ",media:"Item_media_2e8Yt",input:"Item_input_zrpbw",deleteButton:"Item_deleteButton_3gHXM",dragHandle:"Item_dragHandle_2k1io",functions:"Item_functions_3fbKI",validationStatus:"Item_validationStatus_1LpeR undefined"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(33)),i=s(n(1635)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(145));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class extends r.default.PureComponent{constructor(){super(...arguments),u(this,"_input",void 0),u(this,"handleChange",e=>{this.set(e)}),u(this,"setInput",e=>{this._input=e})}set(e){var t=0===e.length?(0,a.unset)():(0,a.set)(e);this.props.onChange(a.default.from(t))}focus(){this._input&&this._input.focus()}render(){var e=this.props,t=e.type,n=e.value,a=e.readOnly,s=e.level,u=e.onFocus;return r.default.createElement(o.default,{level:s,label:t.title,description:t.description},r.default.createElement(i.default,{readOnly:a,value:n,onChange:this.handleChange,onFocus:u,ref:this.setInput}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=a(n(1636));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends o.default.Component{constructor(){super(...arguments),l(this,"state",{inputValue:""}),l(this,"handleRemoveTagClick",e=>{this.removeTag(Number(e.currentTarget.getAttribute("data-index")))}),l(this,"handleKeyDown",e=>{var t=this.props.value,n=this.state.inputValue;"Backspace"===e.key&&""===n&&this.removeTag(t.length-1)}),l(this,"handleKeyPress",e=>{var t=this.state.inputValue;t&&"Enter"===e.key&&this.addAndClearInput(t)}),l(this,"handleBlur",e=>{var t=this.state.inputValue;t&&this.addAndClearInput(t),this.props.onBlur(e)}),l(this,"handleInputChange",e=>{this.setState({inputValue:e.currentTarget.value})}),l(this,"setInput",e=>{this._input=e})}addTag(e){var t=this.props,n=t.value;(0,t.onChange)((n||[]).concat(e))}removeTag(e){var t=this.props,n=t.value;(0,t.onChange)(function(e,t){var n=e?e.slice():[];return n.splice(t,1),n}(n,e))}addAndClearInput(e){this.addTag(e),this.setState({inputValue:""})}focus(){this._input&&this._input.focus()}render(){var e=this.state.inputValue,t=this.props,n=(t.onChange,t.value),r=t.readOnly,a=(t.markers,u(t,["onChange","value","readOnly","markers"]));return o.default.createElement("div",{className:r?i.default.rootReadOnly:i.default.root},o.default.createElement("div",{className:i.default.inner},o.default.createElement("div",{className:i.default.content},o.default.createElement("ul",{className:i.default.tags},n.map((e,t)=>o.default.createElement("li",{key:t,className:r?i.default.tag:i.default.tagWithClear},e,!r&&o.default.createElement("a",{onClick:this.handleRemoveTagClick,"data-index":t,className:i.default.clearTag},"×"))),o.default.createElement("input",s({},a,{readOnly:r,value:e,className:i.default.input,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onChange:this.handleInputChange,style:{width:"".concat(.8*Math.max(3,e.length),"em")},onBlur:this.handleBlur,ref:this.setInput,autoComplete:"off"})))),o.default.createElement("div",{className:i.default.focusHelper})))}}t.default=c,l(c,"propTypes",{onChange:r.default.func.isRequired,onBlur:r.default.func,readOnly:r.default.bool,markers:r.default.array,value:r.default.arrayOf(r.default.string)}),l(c,"defaultProps",{value:[],readOnly:!1,onBlur:()=>{}})},function(e,t){e.exports={root:"TextField_root_IZlMm",rootReadOnly:"TextField_rootReadOnly_ThE2m TextField_root_IZlMm",tags:"TextField_tags_1q5G9",tag:"TextField_tag_1kV8u",tagWithClear:"TextField_tagWithClear_2raW7 TextField_tag_1kV8u",clearTag:"TextField_clearTag_3A5bt",inner:"TextField_inner_M1EMQ",content:"TextField_content_1ma8z text-input_root_3I0je",input:"TextField_input_6S7XF"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOption=s,t.default=function(e){return s(e,"list")?o.default:i.default};var r=a(n(19)),o=a(n(1638)),i=a(n(507));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){return(0,r.default)(e.options,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(204)),o=l(n(0)),i=l(n(564)),a=l(n(565)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(10)),u=l(n(33));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f={title:"",value:void 0};class d extends o.default.Component{constructor(){super(...arguments),c(this,"_input",void 0),c(this,"name",(0,r.default)("RadioName")),c(this,"handleChange",e=>{(0,this.props.onChange)(s.default.from((0,s.set)("string"==typeof e?e:e.value)))}),c(this,"setInput",e=>{this._input=e})}focus(){this._input&&this._input.focus()}render(){var e,t=this.props,n=t.value,r=t.readOnly,s=t.markers,l=t.type,c=t.level,d=t.onFocus,p="string"==typeof(e=l.options.list||[])[0]?e.map(e=>({title:e,value:e})):e,h=p.find(e=>e.value===n),v=l.options&&"radio"===l.options.layout;return o.default.createElement(u.default,{markers:s,level:c,label:l.title,description:l.description},v?o.default.createElement(a.default,{name:this.name,legend:l.title,items:p,onChange:this.handleChange,onFocus:d,value:h,direction:l.options.direction||"vertical",ref:this.setInput,readOnly:r}):o.default.createElement(i.default,{label:l.title,value:h,placeholder:l.placeholder,onChange:this.handleChange,onFocus:d,items:[f].concat(p),ref:this.setInput,readOnly:r}))}}t.default=d,c(d,"defaultProps",{value:""})},function(e,t){e.exports={root:"DefaultSelect_root_2FQGX",arrow:"DefaultSelect_arrow_3n1vi",disabled:"DefaultSelect_disabled_1imH4 DefaultSelect_root_2FQGX",hasFocus:"DefaultSelect_hasFocus_2NooG DefaultSelect_root_2FQGX",select:"DefaultSelect_select_3xha0 text-input_root_3I0je",selectContainer:"DefaultSelect_selectContainer_AGEPt",selectContainerDisabled:"DefaultSelect_selectContainerDisabled_3IDqZ DefaultSelect_selectContainer_AGEPt",functions:"DefaultSelect_functions_38pkB"}},function(e,t){e.exports={root:"RadioSelect_root_1vqdm",vertical:"RadioSelect_vertical_147Xx RadioSelect_root_1vqdm",item:"RadioSelect_item_1zl1l",horizontal:"RadioSelect_horizontal_CzHyb RadioSelect_root_1vqdm",radioContainer:"RadioSelect_radioContainer_3ulVO",container:"RadioSelect_container_14NhL"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(204)),o=s(n(1)),i=s(n(0)),a=s(n(1642));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends i.default.Component{constructor(){super(...arguments),u(this,"handleMouseUp",e=>{this.handleBlur()}),u(this,"handleChange",()=>{this.props.onChange(this.props.item)}),u(this,"handleFocus",()=>{this.props.onFocus(this.props.item)}),u(this,"handleBlur",()=>{window.setTimeout(()=>{this.props.onBlur(this.props.item)},.001)})}componentWillMount(){this._inputId=(0,r.default)("RadioSelect")}render(){var e=this.props,t=e.disabled,n=e.checked,r=e.label,o=e.name,s=e.hasFocus;return i.default.createElement("label",{className:"\n ".concat(a.default.root,"\n ").concat(t?a.default.isDisabled:"","\n ").concat(n?a.default.isChecked:a.default.unChecked,"\n ").concat(s?a.default.isFocused:"","\n "),onMouseUp:this.handleMouseUp},i.default.createElement("input",{className:a.default.input,type:"radio",onChange:this.handleChange,checked:n,id:this._inputId,name:o,onFocus:this.handleFocus,onBlur:this.handleBlur,disabled:t}),i.default.createElement("div",{className:a.default.label,htmlFor:this._inputId},r),i.default.createElement("div",{className:a.default.circleOutline},i.default.createElement("div",{className:a.default.tickOutline})),i.default.createElement("div",{className:a.default.focusHelper}),i.default.createElement("div",{className:a.default.tickHelper}))}}t.default=l,u(l,"propTypes",{label:o.default.string.isRequired,item:o.default.object.isRequired,onChange:o.default.func,onFocus:o.default.func,onBlur:o.default.func,checked:o.default.bool,disabled:o.default.bool,name:o.default.string,hasFocus:o.default.bool}),u(l,"defaultProps",{onChange(){},onFocus(){},onBlur(){}})},function(e,t){e.exports={root:"RadioButtonDefault_root_xsrod",isChecked:"RadioButtonDefault_isChecked_3qP-D RadioButtonDefault_root_xsrod",unChecked:"RadioButtonDefault_unChecked_1-kio RadioButtonDefault_root_xsrod",isDisabled:"RadioButtonDefault_isDisabled_6pFfN",input:"RadioButtonDefault_input_Xffq4",circleOutline:"RadioButtonDefault_circleOutline_2-nnI",focusHelper:"RadioButtonDefault_focusHelper_3IApq",isFocused:"RadioButtonDefault_isFocused_37vMT",tickOutline:"RadioButtonDefault_tickOutline_3PAX_",label:"RadioButtonDefault_label_1wHQx"}},function(e,t,n){"use strict";n(1644)},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(144)),o=l(n(1)),i=l(n(0)),a=l(n(538)),s=(l(n(10)),n(566)),u=l(n(281));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends i.default.PureComponent{constructor(){super(...arguments),c(this,"document",void 0),c(this,"subscriptions",(0,a.default)("documentEvents","commit")),c(this,"state",{isLoading:!0,isSaving:!1,value:null,deletedSnapshot:null}),c(this,"patchChannel",u.default.createPatchChannel()),c(this,"handleDocumentEvent",e=>{switch(e.type){case"snapshot":this.setState({isLoading:!1,value:e.document?e.document:null});break;case"rebase":this.setState({value:e.document});break;case"mutation":this.handleIncomingMutationEvent(e);break;case"create":this.setState({value:e.document});break;default:console.log('Unhandled document event type "%s"',e.type,e)}}),c(this,"commit",(0,r.default)(()=>{this.setState({isSaving:!0}),this.subscriptions.replace("commit",this.document.commit().subscribe({next:()=>{},error:e=>{},complete:()=>{this.setState({isSaving:!1})}}))},1e3,{leading:!0,trailing:!0})),c(this,"handleChange",e=>{this.document.createIfNotExists({_id:this.props.documentId,_type:this.props.typeName}),this.document.patch(e.patches),this.commit()}),c(this,"handleDelete",()=>{this.document.delete(),this.commit()}),c(this,"handleCreate",e=>{this.document.create(e),this.commit()})}checkoutDocument(e){this.document=(0,s.checkout)(e),this.subscriptions.replace("documentEvents",this.document.events.subscribe({next:this.handleDocumentEvent}))}componentWillUnmount(){this.subscriptions.unsubscribeAll()}componentWillMount(){this.checkoutDocument(this.props.documentId)}componentWillReceiveProps(e){e.documentId!==this.props.documentId&&(this.setState({isLoading:!0,isSaving:!1,value:null,deletedSnapshot:null}),this.checkoutDocument(e.documentId))}handleIncomingMutationEvent(e){this.patchChannel.receivePatches({patches:e.patches,snapshot:e.document}),this.setState({deletedSnapshot:e.deletedSnapshot,value:e.document})}render(){var e=this.props,t=e.typeName,n=e.documentId,r=e.schema,o=e.children,a=this.state,s=a.isLoading,l=a.isSaving,c=a.value,f=a.deletedSnapshot;return i.default.createElement(u.default,{value:c,schema:r,patchChannel:this.patchChannel},i.default.createElement(o,{value:c,isLoading:s,isSaving:l,deletedSnapshot:f,documentId:n,type:r.get(t),onChange:this.handleChange,onDelete:this.handleDelete,onCreate:this.handleCreate}))}}t.default=f,c(f,"childContextTypes",{formBuilder:o.default.object})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toGradient=function(e){return e.map(l)},t.toFormBuilder=function(e,t){return(0,r.default)(t.map(t=>(function(e,t){return(0,r.default)(Object.keys(t).filter(u(["id","ifRevisionID","query"])).map(n=>{if("unset"===n)return t.unset.map(t=>({type:"unset",path:a.toFormBuilder(t),origin:e}));if("insert"===n){var r="before"in t.insert?"before":"after";return{type:"insert",position:r,path:a.toFormBuilder(t.insert[r]),items:t.insert.items,origin:e}}return Object.keys(t[n]).map(r=>"set"===n?{type:"set",path:a.toFormBuilder(r),value:t[n][r],origin:e}:"inc"===n||"dec"===n?{type:n,path:a.toFormBuilder(r),value:t[n][r],origin:e}:"setIfMissing"===n?{type:"setIfMissing",path:a.toFormBuilder(r),value:t[n][r],origin:e}:"diffMatchPatch"===n?{type:"diffMatchPatch",path:a.toFormBuilder(r),value:t[n][r],origin:e}:(console.warn(new Error("Unsupported patch type: ".concat(n))),null)).filter(Boolean)}))})(e,t)))};var r=s(n(23)),o=n(320),i=s(n(1647)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(567));function s(e){return e&&e.__esModule?e:{default:e}}var u=e=>t=>!e.includes(t);function l(e){var t=(0,o.arrayToJSONMatchPath)(e.path||[]);return"insert"===e.type?{insert:{[e.position]:t,items:e.items}}:"unset"===e.type?{unset:[t]}:((0,i.default)(e.type,"Missing patch type in patch ".concat(JSON.stringify(e))),t?{[e.type]:{[t]:e.value}}:{[e.type]:e.value})}},function(e,t,n){"use strict";(function(t){var r=n(14);function o(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o=0;l--)if(c[l]!==f[l])return!1;for(l=c.length-1;l>=0;l--)if(s=c[l],!b(e[s],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function _(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e,t,n,r){var o;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!o&&y(o,n,"Missing expected exception"+r);var i="string"==typeof r,s=!e&&o&&!n;if((!e&&a.isError(o)&&i&&w(o,n)||s)&&y(o,n,"Got unwanted exception"+r),e&&o&&n&&!w(o,n)||!e&&o)throw o}d.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=v(m((t=this).actual),128)+" "+t.operator+" "+v(m(t.expected),128),this.generatedMessage=!0);var n=e.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var o=r.stack,i=h(n),a=o.indexOf("\n"+i);if(a>=0){var s=o.indexOf("\n",a+1);o=o.substring(s+1)}this.stack=o}}},a.inherits(d.AssertionError,Error),d.fail=y,d.ok=g,d.equal=function(e,t,n){e!=t&&y(e,t,n,"==",d.equal)},d.notEqual=function(e,t,n){e==t&&y(e,t,n,"!=",d.notEqual)},d.deepEqual=function(e,t,n){b(e,t,!1)||y(e,t,n,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,n){b(e,t,!0)||y(e,t,n,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,n){b(e,t,!1)&&y(e,t,n,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,n,r){b(t,n,!0)&&y(t,n,r,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,n){e!==t&&y(e,t,n,"===",d.strictEqual)},d.notStrictEqual=function(e,t,n){e===t&&y(e,t,n,"!==",d.notStrictEqual)},d.throws=function(e,t,n){O(!0,e,t,n)},d.doesNotThrow=function(e,t,n){O(!1,e,t,n)},d.ifError=function(e){if(e)throw e},d.strict=r(function e(t,n){t||y(t,!0,n,"==",e)},d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var k=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(t,n(24))},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return y(o)||(o=c(e,o,r)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(m(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),O(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(k(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return f(n)}var l,_="",E=!1,S=["{","}"];(p(n)&&(E=!0,S=["[","]"]),k(n))&&(_=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(_=" "+RegExp.prototype.toString.call(n)),w(n)&&(_=" "+Date.prototype.toUTCString.call(n)),O(n)&&(_=" "+f(n)),0!==a.length||E&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=E?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,_,S)):S[0]+_+S[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),C(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),g(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function v(e){return null===e}function m(e){return"number"==typeof e}function y(e){return"string"==typeof e}function g(e){return void 0===e}function b(e){return _(e)&&"[object RegExp]"===E(e)}function _(e){return"object"==typeof e&&null!==e}function w(e){return _(e)&&"[object Date]"===E(e)}function O(e){return _(e)&&("[object Error]"===E(e)||e instanceof Error)}function k(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(g(i)&&(i=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=h,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=g,t.isRegExp=b,t.isObject=_,t.isDate=w,t.isError=O,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1649);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(e=new Date,n=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":"),[e.getDate(),x[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(1650),t._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function j(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),o=[],i=0;i{this.setState({focusPath:s()})}),a(this,"handleFocus",e=>{document.location.hash=(0,i.toGradient)(e)}),a(this,"handleBlur",()=>{})}componentDidMount(){window.addEventListener("hashchange",this.handleHashChange,!1)}componentWillUnmount(){window.removeEventListener("hashchange",this.handleHashChange,!1)}render(){return this.props.children({onBlur:this.handleBlur,onFocus:this.handleFocus,focusPath:this.state.focusPath})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=class extends o.default.Component{constructor(){super(...arguments),i(this,"state",{focusPath:[]}),i(this,"handleFocus",e=>{this.setState({focusPath:e})}),i(this,"handleBlur",()=>{})}render(){return this.props.children({onBlur:this.handleBlur,onFocus:this.handleFocus,focusPath:this.state.focusPath})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(8)),a=s(n(568));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){const t=e.currentMode,n=e.onSetPreviewMode,o=e.onSetWriteMode,s=e.onBlur,u=e.onFocus,l="write"===t;return r.default.createElement(r.default.Fragment,null,r.default.createElement(i.default,{className:l?a.default.activeTab:a.default.tab,kind:"simple",type:"button",ripple:!1,color:l?"primary":void 0,onClick:o,onFocus:u,onBlur:s},"Write"),r.default.createElement(i.default,{ref:e.previewRef,className:l?a.default.tab:a.default.activeTab,kind:"simple",type:"button",ripple:!1,color:l?void 0:"primary",onClick:n,onFocus:u,onBlur:s},"Preview"))}u.propTypes={currentMode:o.default.string.isRequired,onSetWriteMode:o.default.func.isRequired,onSetPreviewMode:o.default.func.isRequired,onBlur:o.default.func.isRequired,onFocus:o.default.func.isRequired};var l=u;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=m(n(0)),o=m(n(1)),i=m(n(1655)),a=m(n(1656)),s=m(n(1657)),u=m(n(1658)),l=m(n(1659)),c=m(n(1660)),f=m(n(1661)),d=m(n(1662)),p=m(n(1663)),h=m(n(569)),v=m(n(1664));function m(e){return e&&e.__esModule?e:{default:e}}function y(){return(y=Object.assign||function(e){for(var t=1;tr.default.createElement(v.default,y({key:t.id},t,{onClick:e.onClick}))))}b.propTypes={onClick:o.default.func.isRequired,float:o.default.bool.isRequired};var _=b;t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tr.default.createElement(o.default,a({viewBox:"0 0 40 40"},e),r.default.createElement("g",null,r.default.createElement("path",{fillRule:"evenodd",d:"m30.3 22.4l-3.4-12h-0.1l-3.4 12h6.9z m-17.6 2.3s-2.3-8-2.6-9.1h-0.2l-2.5 9.1h5.3z m25.8 8.6h-5l-2.1-7.2h-9.1l-2.1 7.2h-5l-1.5-5.1h-7.3l-1.6 5.1h-4.8l7.3-21.3h5.6l4.8 14.1 6.4-19.4h5.6l8.8 26.6h0z"})));t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(0)),o=i(n(208));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;tr.default.createElement(o.default,a({viewBox:"0 0 40 40"},e),r.default.createElement("g",null,r.default.createElement("path",{fillRule:"evenodd",d:"m10 5h9.6c6.2 0 10.7 1.9 10.7 7.4 0 2.8-1.5 5.5-4.2 6.5v0.1c3.4 0.8 5.8 3.1 5.8 7.2 0 6-4.9 8.8-11.5 8.8h-10.4v-30z m9.1 12.4c4.2 0 6-1.7 6-4.2 0-3-2-4.1-5.8-4.1h-4v8.3h3.8z m0.7 13.5c4.5 0 6.9-1.6 6.9-5 0-3.2-2.4-4.5-6.9-4.5h-4.5v9.5h4.5v0z"})));t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(0)),o=i(n(208));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;tr.default.createElement(o.default,a({viewBox:"0 0 40 40"},e),r.default.createElement("g",null,r.default.createElement("path",{fillRule:"evenodd",d:"m19.5 12.5h5l-4.5 22.5h-5l4.5-22.5z m0.9-6.7c0-1.8 1.5-3.3 3.4-3.3 1.3 0 2.8 1 2.8 2.6 0 1.9-1.5 3.2-3.3 3.2-1.5 0-2.9-0.9-2.9-2.6z"})));t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{const t=this.props;(0,t.onClick)(e,t.id)}),(n="handleClick")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}render(){const e=this.props,t=e.label,n=e.icon,o=e.groupStart?i.default.buttonGroupStart:i.default.button,a=n;return r.default.createElement("button",{type:"button",role:"button",color:"#586069",className:o,"aria-label":t,title:t,onClick:this.handleClick,tabIndex:"-1"},r.default.createElement(a,{size:s}))}}u.propTypes={id:o.default.string.isRequired,groupStart:o.default.bool,icon:o.default.func.isRequired,label:o.default.string.isRequired,onClick:o.default.func.isRequired},u.defaultProps={groupStart:!1};var l=u;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(457)),a=s(n(1666));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return(l=Object.assign||function(e){for(var t=1;te?n?r.default.createElement("div",{className:i.default.escapedHtml},s):t?r.default.createElement("div",{className:i.default.removedHtml,style:{backgroundImage:`url(${o.default}`}},r.default.createElement("div",{className:i.default.removedHtmlInner},"Skipped HTML")):a||s:a||s};var u={className:i.default.root,skipHtml:!0,renderers:s};t.default=u},function(e,t,n){e.exports=n.p+"assets/progressive-disclosure-line@2x-51d0dee815f142768f0f7c8527572703.png"},function(e,t){e.exports={root:"Preview_root_v4L4W",removedHtml:"Preview_removedHtml_2dzlI",removedHtmlInner:"Preview_removedHtmlInner_3lBVI",escapedHtml:"Preview_escapedHtml_3_poM"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(0)),o=i(n(1670));function i(e){return e&&e.__esModule?e:{default:e}}var a=e=>Math.round(100*e),s={name:"color",type:"object",title:"Color",inputComponent:o.default,fields:[{title:"Hex",name:"hex",type:"string"},{title:"Alpha",name:"alpha",type:"number"},{title:"Hue Saturation Lightness",name:"hsl",type:"hslaColor"},{title:"Hue Saturation Value",name:"hsv",type:"hsvaColor"},{title:"Red Green Blue (rgb)",name:"rgb",type:"rgbaColor"}],preview:{select:{title:"hex",alpha:"alpha",hex:"hex",hsl:"hsl"},prepare(e){var t=e.title,n=e.hex,o=e.hsl,i=e.alpha,s=n||"No color set";return o&&(s="H:".concat(a(o.l)," S:").concat(a(o.l)," L:").concat(a(o.l)," A:").concat(a(i))),{title:t,subtitle:s,media:()=>r.default.createElement("div",{style:{backgroundColor:n||"#000",opacity:i||1,position:"absolute",height:"100%",width:"100%",top:"0",left:"0"}})}}}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(45)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),i=c(n(8)),a=c(n(1)),s=n(137),u=c(n(73)),l=c(n(1671));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=s.patches.set,p=s.patches.unset,h=s.patches.setIfMissing,v={hex:"#24a3e3",hsl:{h:200,s:.7732,l:.5156,a:1},hsv:{h:200,s:.8414,v:.8901,a:1},rgb:{r:46,g:163,b:227,a:1},source:"hex"};class m extends o.PureComponent{constructor(){super(...arguments),f(this,"focusRef",o.default.createRef()),f(this,"emitSetColor",e=>{var t=this.props,n=t.onChange,r=t.type,o=r.fields.filter(t=>t.name in e).map(t=>{var n=e[t.name],r="object"===t.type.jsonType;return d(r?Object.assign({_type:t.type.name},n):n,[t.name])});n(s.PatchEvent.from([h({_type:r.name}),d(r.name,["_type"]),d(e.rgb.a,["alpha"]),...o]))}),f(this,"handleColorChange",(0,r.default)(this.emitSetColor,100)),f(this,"handleCreateColor",()=>{this.emitSetColor(v)}),f(this,"handleUnset",()=>{this.props.onChange(s.PatchEvent.from(p()))})}focus(){this.focusRef.current&&this.focusRef.current.focus&&this.focusRef.current.focus()}render(){var e=this.props,t=e.type,n=e.readOnly,r=e.value;return o.default.createElement(u.default,{legend:t.title,description:t.description},r?o.default.createElement(l.default,{ref:this.focusRef,color:r.hsl||r.hex,readOnly:n||t.readOnly,onChange:this.handleColorChange,disableAlpha:t.options&&t.options.disableAlpha,onUnset:this.handleUnset}):o.default.createElement(i.default,{ref:this.focusRef,inverted:!0,onClick:this.handleCreateColor},"Create color"))}}t.default=m,f(m,"propTypes",{type:a.default.shape({name:a.default.string,title:a.default.string,description:a.default.string,fields:a.default.arrayOf(a.default.shape({name:a.default.string.isRequired}))}).isRequired,onChange:a.default.func.isRequired,readOnly:a.default.bool,value:a.default.shape({hex:a.default.string,alpha:a.default.number})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(0)),o=c(n(1)),i=c(n(8)),a=n(570),s=c(n(1699)),u=c(n(115)),l=c(n(1701));function c(e){return e&&e.__esModule?e:{default:e}}var f=e=>{var t=e.width,n=e.rgb,o=e.hex,c=e.hsv,f=e.hsl,d=e.onChange,p=e.onUnset,h=e.disableAlpha,v=e.renderers,m=e.readOnly;return r.default.createElement("div",{style:{width:t}},!m&&r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:l.default.saturation},r.default.createElement("div",{className:l.default.saturationInner},r.default.createElement(a.Saturation,{is:"Saturation",onChange:d,hsl:f,hsv:c}))),r.default.createElement("div",{className:l.default.hue},r.default.createElement(a.Hue,{is:"Hue",hsl:f,onChange:!m&&d,style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})),!h&&r.default.createElement("div",{className:l.default.alpha},r.default.createElement(a.Alpha,{is:"Alpha",rgb:n,hsl:f,renderers:v,onChange:d,style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}}))),r.default.createElement("div",{className:l.default.controls},r.default.createElement("div",{className:l.default.preview},r.default.createElement("div",{className:l.default.checkboard},r.default.createElement(a.Checkboard,null)),r.default.createElement("div",{className:l.default.color,style:{backgroundColor:"rgba(".concat(n.r,",").concat(n.g,",").concat(n.b,",").concat(n.a,")")}}),m&&r.default.createElement("div",{className:l.default.readOnly},r.default.createElement("div",null,r.default.createElement("h3",null,o),r.default.createElement("p",null,r.default.createElement("strong",null,"RGB")," ",n.r," ",n.g," ",n.b,"    ",r.default.createElement("strong",null,"HSL"),": ",Math.round(f.h)," ",Math.round(f.s),"% ",Math.round(f.l),"%")),r.default.createElement(i.default,{disabled:!0,title:"This color can not be changed (read only)"},"Change"))),!m&&r.default.createElement("div",{className:l.default.fields},r.default.createElement(s.default,{rgb:n,hsl:f,hex:o,onChange:d,disableAlpha:h}),r.default.createElement(i.default,{onClick:p,title:"Delete color",icon:u.default,color:"danger"}))))};f.propTypes={width:o.default.string,hex:o.default.string,hsl:o.default.object,hsv:o.default.object,rgb:o.default.object,onChange:o.default.func,disableAlpha:o.default.bool,readOnly:o.default.bool,renderers:o.default.func,onUnset:o.default.func},f.defaultProps={disableAlpha:!1};var d=(0,a.ColorWrap)(f);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return n.push(e)}):(0,i.default)(t)?(0,o.default)(t,function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)}):(0,r.default)(t)&&n.push(t)}),n};t.default=u},function(e,t,n){var r=n(50),o=n(54),i=n(480),a=n(22);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(327)),o=a(n(1676)),i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map(function(t){var o=e[t];return o&&(0,r.default)(o,function(e,t){n[t]||(n[t]={}),n[t]=i({},n[t],o[t])}),t}),n};t.default=s},function(e,t,n){var r=n(258),o=1,i=4;e.exports=function(e){return r(e,o|i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=n(327),i=(r=o)&&r.__esModule?r:{default:r},a=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var l=arguments.length,c=Array(l),f=0;f1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var l=arguments.length,c=Array(l),f=0;f1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r,o){var i=o.clientWidth,a=o.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,u="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=s-(o.getBoundingClientRect().left+window.pageXOffset),c=u-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var f=void 0;if(f=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}else{var d=void 0;if(r!==(d=l<0?0:l>i?1:Math.round(100*l/i)/100))return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={},o=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null};t.get=function(e,t,n,i){var a=e+"-"+t+"-"+n+(i?"-server":"");if(r[a])return r[a];var s=o(e,t,n,i);return r[a]=s,s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var r=function(){function e(e,t){for(var n=0;n-1},f=function(e){return Number(String(e).replace(/%/g,""))},d=t.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t=f(e.target.value);if(!isNaN(t)&&c(e.keyCode)){var r=n.getArrowOffset(),o=e.keyCode===u?t+r:t-r;n.setUpdatedValue(o,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.PureComponent||o.Component),r(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.input;e.value!==this.state.value&&(t===document.activeElement?this.setState({blurValue:String(e.value).toUpperCase()}):this.setState({value:String(e.value).toUpperCase(),blurValue:!this.state.blurValue&&String(e.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=null!==this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t);var r,o=function(e){return String(e).indexOf("%")>-1}(t.target.value);this.setState({value:o?(r=e,r+"%"):e})}},{key:"render",value:function(){var e=this,t=(0,a.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return i.default.createElement("div",{style:t.wrap},i.default.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?i.default.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}();t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var r=function(){function e(e,t){for(var n=0;ni)c=0;else{c=360*(-100*l/i+100)/100}if(n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"rgb"}}else{var f=void 0;if(u<0)f=0;else if(u>o)f=359;else{f=360*(100*u/o)/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"rgb"}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(96)),a=s(n(1687));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.Raised=function(e){var t=e.zDepth,n=e.radius,o=e.background,s=e.children,u=e.styles,l=void 0===u?{}:u,c=(0,i.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:o}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},l),{"zDepth-1":1===t});return r.default.createElement("div",{style:c.wrap},r.default.createElement("div",{style:c.bg}),r.default.createElement("div",{style:c.content},s))};u.propTypes={background:o.default.string,zDepth:o.default.oneOf([0,1,2,3,4,5]),radius:o.default.number,styles:o.default.object},u.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},t.default=u},function(e,t,n){var r=n(1688),o=n(574)(function(e,t,n){r(e,t,n)});e.exports=o},function(e,t,n){var r=n(166),o=n(572),i=n(385),a=n(1689),s=n(20),u=n(175),l=n(573);e.exports=function e(t,n,c,f,d){t!==n&&i(n,function(i,u){if(d||(d=new r),s(i))a(t,n,u,c,e,f,d);else{var p=f?f(l(t,u),i,u+"",t,n,d):void 0;void 0===p&&(p=i),o(t,u,p)}},u)}},function(e,t,n){var r=n(572),o=n(419),i=n(421),a=n(176),s=n(422),u=n(162),l=n(22),c=n(131),f=n(163),d=n(244),p=n(20),h=n(70),v=n(241),m=n(573),y=n(1690);e.exports=function(e,t,n,g,b,_,w){var O=m(e,n),k=m(t,n),E=w.get(k);if(E)r(e,n,E);else{var S=_?_(O,k,n+"",e,t,w):void 0,x=void 0===S;if(x){var C=l(k),P=!C&&f(k),j=!C&&!P&&v(k);S=k,C||P||j?l(O)?S=O:c(O)?S=a(O):P?(x=!1,S=o(k,!0)):j?(x=!1,S=i(k,!0)):S=[]:h(k)||u(k)?(S=O,u(O)?S=y(O):p(O)&&!d(O)||(S=s(k))):x=!1}x&&(w.set(k,S),b(S,k,g,_,w),w.delete(k)),r(e,n,S)}}},function(e,t,n){var r=n(85),o=n(175);e.exports=function(e){return r(e,o(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var r=function(){function e(e,t){for(var n=0;no?u=o:l<0?l=0:l>i&&(l=i);var c=100*u/o,f=-100*l/i+100;return{h:t.h,s:c,v:f,a:t.a,source:"rgb"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var r=Object.assign||function(e){for(var t=1;t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=D(e,360),t=D(t,100),n=D(n,100),0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),o=a(u,s,e),i=a(u,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,u),f=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,h,v;return n=A(n),{ok:f,format:e.format||d,r:l(255,c(t.r,0)),g:l(255,c(t.g,0)),b:l(255,c(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=s++}function p(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,o,i=c(e,t,n),a=l(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var u=i-a;switch(o=s>.5?u/(2-i-a):u/(i+a),i){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(d(r));return i}function j(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(d({h:r,s:o,v:i})),i=(i+s)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=A(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return v(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[R(u(e).toString(16)),R(u(t).toString(16)),R(u(n).toString(16)),R(L(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*D(this._r,255))+"%",g:u(100*D(this._g,255))+"%",b:u(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*D(this._r,255))+"%, "+u(100*D(this._g,255))+"%, "+u(100*D(this._b,255))+"%)":"rgba("+u(100*D(this._r,255))+"%, "+u(100*D(this._g,255))+"%, "+u(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=d(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(x,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:F(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),i=n/100;return d({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,i=d.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},d.mostReadable=function(e,t,n){var r,o,i,a,s=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var l=0;lu&&(u=r,s=d(t[l]));return d.isReadable(e,s,{level:i,size:a})||!o?s:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var M=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(M);function A(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function I(e){return l(1,c(0,e))}function N(e){return parseInt(e,16)}function R(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function B(e){return N(e)/255}var z,W,U,H=(W="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",U="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{CSS_UNIT:new RegExp(z),rgb:new RegExp("rgb"+W),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+W),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+W),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!H.CSS_UNIT.exec(e)}void 0!==e&&e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=void 0;var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var o=arguments.length,i=Array(o),a=0;a{var t=e.onChange,n=e.rgb,s=e.hsl,l=e.hex,c=e.disableAlpha,f=(e,r)=>{e.hex?o.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},r):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:s.h,s:s.s,l:s.l,a:e.a,source:"rgb"},r))};return r.default.createElement("div",{className:a.default.fields},r.default.createElement("div",{className:a.default.double},r.default.createElement(i.EditableInput,{style:u,label:"hex",value:l.replace("#",""),onChange:f})),r.default.createElement("div",{className:a.default.single},r.default.createElement(i.EditableInput,{style:u,label:"r",value:n.r,onChange:f,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{className:a.default.single},r.default.createElement(i.EditableInput,{style:u,label:"g",value:n.g,onChange:f,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{className:a.default.single},r.default.createElement(i.EditableInput,{style:u,label:"b",value:n.b,onChange:f,dragLabel:"true",dragMax:"255"})),!c&&r.default.createElement("div",{className:a.default.alpha},r.default.createElement(i.EditableInput,{style:u,label:"a",value:Math.round(100*n.a),onChange:f,dragLabel:"true",dragMax:"100"})))};t.ColorPickerFields=l;var c=l;t.default=c},function(e,t){e.exports={fields:"ColorPickerFields_fields_1k1Dm",single:"ColorPickerFields_single_2KLMg",alpha:"ColorPickerFields_alpha_ZQE9f",double:"ColorPickerFields_double_2F-Ve",disableAlpha:"ColorPickerFields_disableAlpha_3sH60"}},function(e,t){e.exports={saturation:"ColorPicker_saturation_1jpJW",hue:"ColorPicker_hue_3HlDc",alpha:"ColorPicker_alpha_DbdT0",controls:"ColorPicker_controls_1081L",color:"ColorPicker_color_37R_w",preview:"ColorPicker_preview_31l2F",fields:"ColorPicker_fields_3P-Qs",readOnly:"ColorPicker_readOnly_3U6ce"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={title:"Red Green Blue (rgb)",name:"rgbaColor",type:"object",fields:[{name:"r",type:"number",title:"Red"},{name:"g",type:"number",title:"Green"},{name:"b",type:"number",title:"Blue"},{name:"a",type:"number",title:"Alpha"}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={title:"Hue Saturation Value",name:"hsvaColor",type:"object",fields:[{name:"h",type:"number",title:"Hue"},{name:"s",type:"number",title:"Saturation"},{name:"v",type:"number",title:"Value"},{name:"a",type:"number",title:"Alpha"}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={title:"Hue Saturation Lightness",name:"hslaColor",type:"object",fields:[{name:"h",type:"number",title:"Hue"},{name:"s",type:"number",title:"Saturation"},{name:"l",type:"number",title:"Lightness"},{name:"a",type:"number",title:"Alpha"}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(181).default(n(13));t.client=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.layoutOptions=["default","card","media","detail","block"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=["_id","_type","_createdAt","_updatedAt","_rev"];t.getExtendedProjection=function(e,t){return t.map(t=>(function e(t,n){const[o,...i]=n;if(!t.fields)return"";const a=t.fields.find(e=>e.name===o);if(!a)return r.includes(o)||console.warn('The current ordering config targeted the nonexistent field "%s" on schema type "%s". It should be one of %o',o,t.name,t.fields.map(e=>e.name)),"";if("reference"===a.type.name&&a.type.to){const t=a.type.to;return`${o}->{${t.map(t=>e(t,i)).join(",")}}`}const s=i.length>0&&e(a.type,i),u=s?`{${s}}`:"";return i.length>0?`${o}${u}`:o})(e,t.field.split("."))).join(", ")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(1709))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:r,n=void 0,o=[],i=void 0,a=!1,s=function(e,n){return t(e,o[n])};return function(){for(var t=arguments.length,r=Array(t),u=0;u{const e=r.default(n(581));return t=>new e(t)})()},function(e,t,n){"use strict";e.exports={listOptions:{},project:{}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isActionEnabled=(()=>{const e=n(147);return(t,n)=>e.isActionEnabled(t,n)})(),t.resolveEnabledActions=(()=>{const e=n(147);return t=>e.resolveEnabledActions(t)})()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(329),o=n(580);class i extends r.DocumentListBuilder{constructor(e){super(),this.spec=e||{}}filter(e){return this.cloneWithoutDefaultIntentHandler({options:Object.assign({},this.spec.options||{},{filter:e})})}params(e){return this.cloneWithoutDefaultIntentHandler({options:Object.assign({},this.spec.options||{filter:""},{params:e})})}schemaType(e){return this.cloneWithoutDefaultIntentHandler({schemaTypeName:"string"==typeof e?e:e.name})}child(e){return this.cloneWithoutDefaultIntentHandler({child:e})}clone(e){const t=new i;return t.spec=Object.assign({},this.spec,e||{}),t}cloneWithoutDefaultIntentHandler(e){const t=new i,n=this.spec.canHandleIntent,r=n&&n.identity===o.DEFAULT_INTENT_HANDLER?{canHandleIntent:void 0}:{};return t.spec=Object.assign({},this.spec,e||{},r),t}}t.DocumentTypeListBuilder=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(180),o=n(51),i=n(146),a=e=>t=>{let n=(new i.EditorBuilder).id("editor").documentId(t);return e.schemaType&&(n=n.schemaType(e.schemaType)),n};class s extends r.ListItemBuilder{constructor(e){super(e),this.spec=e||{}}serialize(e={path:[]}){const t=super.serialize(Object.assign({},e,{titleIsOptional:!0}));if(!t.schemaType)throw new o.SerializeError("`schemaType` is required for document list items",e.path,e.index).withHelpUrl(o.HELP_URL.SCHEMA_TYPE_REQUIRED);const n=t.child||a(t);return Object.assign({},t,{child:n,schemaType:t.schemaType,_id:t.id})}clone(e){const t=new s;return t.spec=Object.assign({},this.spec,e||{}),t}}t.DocumentListItemBuilder=s},function(e,t){e.exports={deskTool:"DeskTool_deskTool_h0a8u",createButtonContainer:"DeskTool_createButtonContainer_1YrpJ",createButton:"DeskTool_createButton_2KucK",nothingSelected:"DeskTool_nothingSelected_1gjcL positioning_center-both_2pPzU positioning_absoluteCenter_1T-ll headings_heading2_2Yx9A headings_root_1MVCX"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n(1720)),o=p(n(0)),i=p(n(1)),a=p(n(1722)),s=p(n(1728)),u=n(437),l=p(n(583)),c=p(n(1735)),f=n(6),d=n(4);function p(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign||function(e){for(var t=1;tnew f.Observable(t=>{var n=e=>t.next(e);return window.addEventListener(e,n),()=>{window.removeEventListener(e,n)}}),b=g("orientationchange"),_=g("resize"),w=(0,f.merge)(b,_).pipe((0,d.share)(),(0,d.debounceTime)(50),(0,d.map)(()=>window.innerWidth));function O(e){return"document"===e.type?500:320}function k(e){return"document"===e.type?672:350}class E extends o.default.Component{constructor(){var e;super(...arguments),e=this,v(this,"state",{collapsedPanes:[],windowWidth:"undefined"==typeof window?1e3:window.innerWidth,isMobile:"undefined"!=typeof window&&window.innerWidth{this.state.isMobile||1===this.props.panes.length||(this.userCollapsedPanes[e]=!0,this.handleAutoCollapse(this.state.windowWidth,void 0,this.userCollapsedPanes))}),v(this,"handlePaneExpand",e=>{this.state.isMobile||1===this.props.panes.length||(this.userCollapsedPanes[e]=!1,this.handleAutoCollapse(this.state.windowWidth,e,this.userCollapsedPanes))}),v(this,"handleAutoCollapse",function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=e.props,a=i.autoCollapse,s=i.panes,u=e.state.isMobile,l="number"==typeof n?n:s.length-1;if(!u&&a&&s&&0!==s.length){var c=[],f=(0,r.default)(s,e=>O(e)),d=f;d-=O(s[l]),c[l]=!1,o[l]=!1,f>t&&s.forEach((e,n)=>{l!=n&&d>t-O(s[l])&&(c[n]=!0,d-=O(e)-m)});var p=s.map((e,t)=>o[t]||c[t]);e.setState({collapsedPanes:p})}})}componentDidUpdate(e){var t;this.props.panes.length!=e.panes.length&&(this.userCollapsedPanes=[],this.handleAutoCollapse(this.state.windowWidth,void 0,this.userCollapsedPanes)),this.props.panes.map((n,r)=>{e.panes[r]!==n&&(t=r)}),t&&this.handleAutoCollapse(this.state.windowWidth,t,this.userCollapsedPanes)}componentDidMount(){var e=this.props,t=e.autoCollapse,n=e.panes;t&&(this.resizeSubscriber=w.pipe((0,d.distinctUntilChanged)()).subscribe(e=>{this.setState({windowWidth:e,isMobile:e{var f=!r&&this.state.collapsedPanes[a],d="".concat(a,"-").concat(n[a-1]||"root"),p=e===u.LOADING?"loading-".concat(a):"".concat(a,"-").concat(e.id);return i.push(e.id||"[".concat(a,"]")),o.default.createElement(s.default,{key:p,isCollapsed:!!f,minSize:O(e),defaultSize:k(e)},e===u.LOADING?o.default.createElement(l.default,{key:d,path:i,index:a,onExpand:this.handlePaneExpand,onCollapse:this.handlePaneCollapse,isCollapsed:!!f,isSelected:a===t.length-1}):o.default.createElement(c.default,h({key:d,index:a,itemId:n[a-1],onExpand:this.handlePaneExpand,onCollapse:this.handlePaneCollapse,isCollapsed:!!f,isSelected:a===t.length-1},e)))})}render(){var e=this.state.isMobile;return o.default.createElement(a.default,{isMobile:e,autoCollapse:this.props.autoCollapse,collapsedWidth:m,onCheckCollapse:this.handleCheckCollapse},this.renderPanes())}}t.default=E,v(E,"propTypes",{keys:i.default.arrayOf(i.default.string).isRequired,autoCollapse:i.default.bool,panes:i.default.arrayOf(i.default.oneOfType([i.default.shape({id:i.default.string.isRequired}),i.default.symbol])).isRequired})},function(e,t,n){var r=n(54),o=n(1721);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):0}},function(e,t){e.exports=function(e,t){for(var n,r=-1,o=e.length;++r{this.setState({isResizing:!0})}),u(this,"handleDragFinished",()=>{this.setState({isResizing:!1})}),u(this,"renderSplitPane",(e,t)=>{var n=e.props.isCollapsed,r=this.props.collapsedWidth,s=this.state.isResizing,u=n?r:void 0;return o.default.createElement("div",{className:"\n ".concat(a.default.vertical,"\n ").concat(s?a.default.splitWrapperResizing:a.default.splitWrapper,"\n ").concat(t?"":a.default.singleWrapper,"\n ").concat(n?a.default.isCollapsed:a.default.notCollapsed,"\n ")},o.default.createElement(i.default,{minSize:n?r:e.props.minSize,defaultSize:n?r:e.props.defaultSize,size:u,resizerClassName:n?a.default.ResizerIsCollapsed:a.default.Resizer,allowResize:!n,className:a.default.splitPane,onDragStarted:this.handleDragStarted,onDragFinished:this.handleDragFinished},e,t||o.default.createElement("div",{style:{display:"none"}})))}),u(this,"renderRecursivePanes",e=>{if(1===e.length)return e[0];if(2===e.length)return this.renderSplitPane(e[0],this.renderSplitPane(e[1]));var t=e.slice(1);return this.renderSplitPane(e[0],this.renderRecursivePanes(t))})}render(){var e=this.props,t=e.children,n=e.isMobile,r=o.default.Children.toArray(t);return 0===r.length?o.default.createElement("div",null,"No panes"):n?t:this.renderRecursivePanes(r.filter(e=>"div"!==e.type))}}t.default=l,u(l,"propTypes",{children:r.default.node.isRequired,onCheckCollapse:r.default.func,autoCollapse:r.default.bool,collapsedWidth:r.default.number,isMobile:r.default.bool})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=n.n(r),i=n(1724),a=n.n(i),s=n(1726);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n$.length&&$.push(e)}function Q(e,t,n){return null==e?0:function e(t,n,r,o){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var a=!1;if(null===t)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case E:case S:a=!0}}if(a)return r(o,t,""===n?"."+ee(t,0):n),1;if(a=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s=0?n:1/0;return Math.max(o,Math.min(i,r))}return void 0!==e?e:t}ce.propTypes={className:o.a.string.isRequired,onClick:o.a.func,onDoubleClick:o.a.func,onMouseDown:o.a.func.isRequired,onTouchStart:o.a.func.isRequired,onTouchEnd:o.a.func.isRequired,split:o.a.oneOf(["vertical","horizontal"]),style:a.a,resizerClassName:o.a.string.isRequired},ce.defaultProps={resizerClassName:"Resizer"};var pe=function(e){function t(e){var n;u(this,t),(n=y(this,h(t).call(this,e))).onMouseDown=n.onMouseDown.bind(m(m(n))),n.onTouchStart=n.onTouchStart.bind(m(m(n))),n.onMouseMove=n.onMouseMove.bind(m(m(n))),n.onTouchMove=n.onTouchMove.bind(m(m(n))),n.onMouseUp=n.onMouseUp.bind(m(m(n)));var r=e.size,o=e.defaultSize,i=e.minSize,a=e.maxSize,s=e.primary,l=void 0!==r?r:de(o,i,a,null);return n.state={active:!1,resized:!1,pane1Size:"first"===s?l:void 0,pane2Size:"second"===s?l:void 0,instanceProps:{size:r}},n}return p(t,ue.Component),c(t,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("touchmove",this.onTouchMove),this.setState(t.getSizeUpdate(this.props,this.state))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove)}},{key:"onMouseDown",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchStart(t)}},{key:"onTouchStart",value:function(e){var t=this.props,n=t.allowResize,r=t.onDragStarted,o=t.split;if(n){fe(document,window);var i="vertical"===o?e.touches[0].clientX:e.touches[0].clientY;"function"==typeof r&&r(),this.setState({active:!0,position:i})}}},{key:"onMouseMove",value:function(e){var t=Object.assign({},e,{touches:[{clientX:e.clientX,clientY:e.clientY}]});this.onTouchMove(t)}},{key:"onTouchMove",value:function(e){var t=this.props,n=t.allowResize,r=t.maxSize,o=t.minSize,i=t.onChange,a=t.split,s=t.step,u=this.state,l=u.active,c=u.position;if(n&&l){fe(document,window);var d="first"===this.props.primary,p=d?this.pane1:this.pane2,h=d?this.pane2:this.pane1;if(p){var v=p,m=h;if(v.getBoundingClientRect){var y=v.getBoundingClientRect().width,g=v.getBoundingClientRect().height,b="vertical"===a?y:g,_=c-("vertical"===a?e.touches[0].clientX:e.touches[0].clientY);if(s){if(Math.abs(_)parseInt(window.getComputedStyle(m).order)&&(w=-w);var O=r;if(void 0!==r&&r<=0){var k=this.splitPane;O="vertical"===a?k.getBoundingClientRect().width+r:k.getBoundingClientRect().height+r}var E=b-w,S=c-_;EO?E=O:this.setState({position:S,resized:!0}),i&&i(E),this.setState(f({draggedSize:E},d?"pane1Size":"pane2Size",E))}}}}},{key:"onMouseUp",value:function(){var e=this.props,t=e.allowResize,n=e.onDragFinished,r=this.state,o=r.active,i=r.draggedSize;t&&o&&("function"==typeof n&&n(i),this.setState({active:!1}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.allowResize,r=t.children,o=t.className,i=t.onResizerClick,a=t.onResizerDoubleClick,s=t.paneClassName,u=t.pane1ClassName,l=t.pane2ClassName,c=t.paneStyle,f=t.pane1Style,p=t.pane2Style,h=t.resizerClassName,v=t.resizerStyle,m=t.split,y=t.style,g=this.state,b=g.pane1Size,_=g.pane2Size,w=n?"":"disabled",O=h?"".concat(h," ").concat("Resizer"):h,k=function(e){return ue.Children.toArray(e).filter(function(e){return e})}(r),E=d({display:"flex",flex:1,height:"100%",position:"absolute",outline:"none",overflow:"hidden",MozUserSelect:"text",WebkitUserSelect:"text",msUserSelect:"text",userSelect:"text"},y);"vertical"===m?Object.assign(E,{flexDirection:"row",left:0,right:0}):Object.assign(E,{bottom:0,flexDirection:"column",minHeight:"100%",top:0,width:"100%"});var S=["SplitPane",o,m,w],x=d({},c,f),C=d({},c,p),P=["Pane1",s,u].join(" "),j=["Pane2",s,l].join(" ");return ue.createElement("div",{className:S.join(" "),ref:function(t){e.splitPane=t},style:E},ue.createElement(le,{className:P,key:"pane1",eleRef:function(t){e.pane1=t},size:b,split:m,style:x},k[0]),ue.createElement(ce,{className:w,onClick:i,onDoubleClick:a,onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,onTouchEnd:this.onMouseUp,key:"resizer",resizerClassName:O,split:m,style:v||{}}),ue.createElement(le,{className:j,key:"pane2",eleRef:function(t){e.pane2=t},size:_,split:m,style:C},k[1]))}}],[{key:"getDerivedStateFromProps",value:function(e,n){return t.getSizeUpdate(e,n)}},{key:"getSizeUpdate",value:function(e,t){var n={};if(t.instanceProps.size===e.size&&void 0!==e.size)return{};var r=void 0!==e.size?e.size:de(e.defaultSize,e.minSize,e.maxSize,t.draggedSize);void 0!==e.size&&(n.draggedSize=r);var o="first"===e.primary;return n[o?"pane1Size":"pane2Size"]=r,n[o?"pane2Size":"pane1Size"]=void 0,n.instanceProps={size:e.size},n}}]),t}();pe.propTypes={allowResize:o.a.bool,children:o.a.arrayOf(o.a.node).isRequired,className:o.a.string,primary:o.a.oneOf(["first","second"]),minSize:o.a.oneOfType([o.a.string,o.a.number]),maxSize:o.a.oneOfType([o.a.string,o.a.number]),defaultSize:o.a.oneOfType([o.a.string,o.a.number]),size:o.a.oneOfType([o.a.string,o.a.number]),split:o.a.oneOf(["vertical","horizontal"]),onDragStarted:o.a.func,onDragFinished:o.a.func,onChange:o.a.func,onResizerClick:o.a.func,onResizerDoubleClick:o.a.func,style:a.a,resizerStyle:a.a,paneClassName:o.a.string,pane1ClassName:o.a.string,pane2ClassName:o.a.string,paneStyle:a.a,pane1Style:a.a,pane2Style:a.a,resizerClassName:o.a.string,step:o.a.number},pe.defaultProps={allowResize:!0,minSize:50,primary:"first",split:"vertical",paneClassName:"",pane1ClassName:"",pane2ClassName:""},Object(s.a)(pe),t.default=pe},function(e,t,n){var r=n(1725),o=n(1);e.exports=function(e,t,n){var o=e[t];if(o){var i=[];if(Object.keys(o).forEach(function(e){-1===r.indexOf(e)&&i.push(e)}),i.length)throw new Error("Prop "+t+" passed to "+n+". Has invalid keys "+i.join(", "))}},e.exports.isRequired=function(t,n,r){if(!t[n])throw new Error("Prop "+n+" passed to "+r+" is required");return e.exports(t,n,r)},e.exports.supportingArrays=o.oneOfType([o.arrayOf(e.exports),e.exports])},function(e,t){e.exports=["alignContent","MozAlignContent","WebkitAlignContent","MSAlignContent","OAlignContent","alignItems","MozAlignItems","WebkitAlignItems","MSAlignItems","OAlignItems","alignSelf","MozAlignSelf","WebkitAlignSelf","MSAlignSelf","OAlignSelf","all","MozAll","WebkitAll","MSAll","OAll","animation","MozAnimation","WebkitAnimation","MSAnimation","OAnimation","animationDelay","MozAnimationDelay","WebkitAnimationDelay","MSAnimationDelay","OAnimationDelay","animationDirection","MozAnimationDirection","WebkitAnimationDirection","MSAnimationDirection","OAnimationDirection","animationDuration","MozAnimationDuration","WebkitAnimationDuration","MSAnimationDuration","OAnimationDuration","animationFillMode","MozAnimationFillMode","WebkitAnimationFillMode","MSAnimationFillMode","OAnimationFillMode","animationIterationCount","MozAnimationIterationCount","WebkitAnimationIterationCount","MSAnimationIterationCount","OAnimationIterationCount","animationName","MozAnimationName","WebkitAnimationName","MSAnimationName","OAnimationName","animationPlayState","MozAnimationPlayState","WebkitAnimationPlayState","MSAnimationPlayState","OAnimationPlayState","animationTimingFunction","MozAnimationTimingFunction","WebkitAnimationTimingFunction","MSAnimationTimingFunction","OAnimationTimingFunction","backfaceVisibility","MozBackfaceVisibility","WebkitBackfaceVisibility","MSBackfaceVisibility","OBackfaceVisibility","background","MozBackground","WebkitBackground","MSBackground","OBackground","backgroundAttachment","MozBackgroundAttachment","WebkitBackgroundAttachment","MSBackgroundAttachment","OBackgroundAttachment","backgroundBlendMode","MozBackgroundBlendMode","WebkitBackgroundBlendMode","MSBackgroundBlendMode","OBackgroundBlendMode","backgroundClip","MozBackgroundClip","WebkitBackgroundClip","MSBackgroundClip","OBackgroundClip","backgroundColor","MozBackgroundColor","WebkitBackgroundColor","MSBackgroundColor","OBackgroundColor","backgroundImage","MozBackgroundImage","WebkitBackgroundImage","MSBackgroundImage","OBackgroundImage","backgroundOrigin","MozBackgroundOrigin","WebkitBackgroundOrigin","MSBackgroundOrigin","OBackgroundOrigin","backgroundPosition","MozBackgroundPosition","WebkitBackgroundPosition","MSBackgroundPosition","OBackgroundPosition","backgroundRepeat","MozBackgroundRepeat","WebkitBackgroundRepeat","MSBackgroundRepeat","OBackgroundRepeat","backgroundSize","MozBackgroundSize","WebkitBackgroundSize","MSBackgroundSize","OBackgroundSize","blockSize","MozBlockSize","WebkitBlockSize","MSBlockSize","OBlockSize","border","MozBorder","WebkitBorder","MSBorder","OBorder","borderBlockEnd","MozBorderBlockEnd","WebkitBorderBlockEnd","MSBorderBlockEnd","OBorderBlockEnd","borderBlockEndColor","MozBorderBlockEndColor","WebkitBorderBlockEndColor","MSBorderBlockEndColor","OBorderBlockEndColor","borderBlockEndStyle","MozBorderBlockEndStyle","WebkitBorderBlockEndStyle","MSBorderBlockEndStyle","OBorderBlockEndStyle","borderBlockEndWidth","MozBorderBlockEndWidth","WebkitBorderBlockEndWidth","MSBorderBlockEndWidth","OBorderBlockEndWidth","borderBlockStart","MozBorderBlockStart","WebkitBorderBlockStart","MSBorderBlockStart","OBorderBlockStart","borderBlockStartColor","MozBorderBlockStartColor","WebkitBorderBlockStartColor","MSBorderBlockStartColor","OBorderBlockStartColor","borderBlockStartStyle","MozBorderBlockStartStyle","WebkitBorderBlockStartStyle","MSBorderBlockStartStyle","OBorderBlockStartStyle","borderBlockStartWidth","MozBorderBlockStartWidth","WebkitBorderBlockStartWidth","MSBorderBlockStartWidth","OBorderBlockStartWidth","borderBottom","MozBorderBottom","WebkitBorderBottom","MSBorderBottom","OBorderBottom","borderBottomColor","MozBorderBottomColor","WebkitBorderBottomColor","MSBorderBottomColor","OBorderBottomColor","borderBottomLeftRadius","MozBorderBottomLeftRadius","WebkitBorderBottomLeftRadius","MSBorderBottomLeftRadius","OBorderBottomLeftRadius","borderBottomRightRadius","MozBorderBottomRightRadius","WebkitBorderBottomRightRadius","MSBorderBottomRightRadius","OBorderBottomRightRadius","borderBottomStyle","MozBorderBottomStyle","WebkitBorderBottomStyle","MSBorderBottomStyle","OBorderBottomStyle","borderBottomWidth","MozBorderBottomWidth","WebkitBorderBottomWidth","MSBorderBottomWidth","OBorderBottomWidth","borderCollapse","MozBorderCollapse","WebkitBorderCollapse","MSBorderCollapse","OBorderCollapse","borderColor","MozBorderColor","WebkitBorderColor","MSBorderColor","OBorderColor","borderImage","MozBorderImage","WebkitBorderImage","MSBorderImage","OBorderImage","borderImageOutset","MozBorderImageOutset","WebkitBorderImageOutset","MSBorderImageOutset","OBorderImageOutset","borderImageRepeat","MozBorderImageRepeat","WebkitBorderImageRepeat","MSBorderImageRepeat","OBorderImageRepeat","borderImageSlice","MozBorderImageSlice","WebkitBorderImageSlice","MSBorderImageSlice","OBorderImageSlice","borderImageSource","MozBorderImageSource","WebkitBorderImageSource","MSBorderImageSource","OBorderImageSource","borderImageWidth","MozBorderImageWidth","WebkitBorderImageWidth","MSBorderImageWidth","OBorderImageWidth","borderInlineEnd","MozBorderInlineEnd","WebkitBorderInlineEnd","MSBorderInlineEnd","OBorderInlineEnd","borderInlineEndColor","MozBorderInlineEndColor","WebkitBorderInlineEndColor","MSBorderInlineEndColor","OBorderInlineEndColor","borderInlineEndStyle","MozBorderInlineEndStyle","WebkitBorderInlineEndStyle","MSBorderInlineEndStyle","OBorderInlineEndStyle","borderInlineEndWidth","MozBorderInlineEndWidth","WebkitBorderInlineEndWidth","MSBorderInlineEndWidth","OBorderInlineEndWidth","borderInlineStart","MozBorderInlineStart","WebkitBorderInlineStart","MSBorderInlineStart","OBorderInlineStart","borderInlineStartColor","MozBorderInlineStartColor","WebkitBorderInlineStartColor","MSBorderInlineStartColor","OBorderInlineStartColor","borderInlineStartStyle","MozBorderInlineStartStyle","WebkitBorderInlineStartStyle","MSBorderInlineStartStyle","OBorderInlineStartStyle","borderInlineStartWidth","MozBorderInlineStartWidth","WebkitBorderInlineStartWidth","MSBorderInlineStartWidth","OBorderInlineStartWidth","borderLeft","MozBorderLeft","WebkitBorderLeft","MSBorderLeft","OBorderLeft","borderLeftColor","MozBorderLeftColor","WebkitBorderLeftColor","MSBorderLeftColor","OBorderLeftColor","borderLeftStyle","MozBorderLeftStyle","WebkitBorderLeftStyle","MSBorderLeftStyle","OBorderLeftStyle","borderLeftWidth","MozBorderLeftWidth","WebkitBorderLeftWidth","MSBorderLeftWidth","OBorderLeftWidth","borderRadius","MozBorderRadius","WebkitBorderRadius","MSBorderRadius","OBorderRadius","borderRight","MozBorderRight","WebkitBorderRight","MSBorderRight","OBorderRight","borderRightColor","MozBorderRightColor","WebkitBorderRightColor","MSBorderRightColor","OBorderRightColor","borderRightStyle","MozBorderRightStyle","WebkitBorderRightStyle","MSBorderRightStyle","OBorderRightStyle","borderRightWidth","MozBorderRightWidth","WebkitBorderRightWidth","MSBorderRightWidth","OBorderRightWidth","borderSpacing","MozBorderSpacing","WebkitBorderSpacing","MSBorderSpacing","OBorderSpacing","borderStyle","MozBorderStyle","WebkitBorderStyle","MSBorderStyle","OBorderStyle","borderTop","MozBorderTop","WebkitBorderTop","MSBorderTop","OBorderTop","borderTopColor","MozBorderTopColor","WebkitBorderTopColor","MSBorderTopColor","OBorderTopColor","borderTopLeftRadius","MozBorderTopLeftRadius","WebkitBorderTopLeftRadius","MSBorderTopLeftRadius","OBorderTopLeftRadius","borderTopRightRadius","MozBorderTopRightRadius","WebkitBorderTopRightRadius","MSBorderTopRightRadius","OBorderTopRightRadius","borderTopStyle","MozBorderTopStyle","WebkitBorderTopStyle","MSBorderTopStyle","OBorderTopStyle","borderTopWidth","MozBorderTopWidth","WebkitBorderTopWidth","MSBorderTopWidth","OBorderTopWidth","borderWidth","MozBorderWidth","WebkitBorderWidth","MSBorderWidth","OBorderWidth","bottom","MozBottom","WebkitBottom","MSBottom","OBottom","boxDecorationBreak","MozBoxDecorationBreak","WebkitBoxDecorationBreak","MSBoxDecorationBreak","OBoxDecorationBreak","boxShadow","MozBoxShadow","WebkitBoxShadow","MSBoxShadow","OBoxShadow","boxSizing","MozBoxSizing","WebkitBoxSizing","MSBoxSizing","OBoxSizing","breakAfter","MozBreakAfter","WebkitBreakAfter","MSBreakAfter","OBreakAfter","breakBefore","MozBreakBefore","WebkitBreakBefore","MSBreakBefore","OBreakBefore","breakInside","MozBreakInside","WebkitBreakInside","MSBreakInside","OBreakInside","captionSide","MozCaptionSide","WebkitCaptionSide","MSCaptionSide","OCaptionSide","caretColor","MozCaretColor","WebkitCaretColor","MSCaretColor","OCaretColor","ch","MozCh","WebkitCh","MSCh","OCh","clear","MozClear","WebkitClear","MSClear","OClear","clip","MozClip","WebkitClip","MSClip","OClip","clipPath","MozClipPath","WebkitClipPath","MSClipPath","OClipPath","cm","MozCm","WebkitCm","MSCm","OCm","color","MozColor","WebkitColor","MSColor","OColor","columnCount","MozColumnCount","WebkitColumnCount","MSColumnCount","OColumnCount","columnFill","MozColumnFill","WebkitColumnFill","MSColumnFill","OColumnFill","columnGap","MozColumnGap","WebkitColumnGap","MSColumnGap","OColumnGap","columnRule","MozColumnRule","WebkitColumnRule","MSColumnRule","OColumnRule","columnRuleColor","MozColumnRuleColor","WebkitColumnRuleColor","MSColumnRuleColor","OColumnRuleColor","columnRuleStyle","MozColumnRuleStyle","WebkitColumnRuleStyle","MSColumnRuleStyle","OColumnRuleStyle","columnRuleWidth","MozColumnRuleWidth","WebkitColumnRuleWidth","MSColumnRuleWidth","OColumnRuleWidth","columnSpan","MozColumnSpan","WebkitColumnSpan","MSColumnSpan","OColumnSpan","columnWidth","MozColumnWidth","WebkitColumnWidth","MSColumnWidth","OColumnWidth","columns","MozColumns","WebkitColumns","MSColumns","OColumns","content","MozContent","WebkitContent","MSContent","OContent","counterIncrement","MozCounterIncrement","WebkitCounterIncrement","MSCounterIncrement","OCounterIncrement","counterReset","MozCounterReset","WebkitCounterReset","MSCounterReset","OCounterReset","cursor","MozCursor","WebkitCursor","MSCursor","OCursor","deg","MozDeg","WebkitDeg","MSDeg","ODeg","direction","MozDirection","WebkitDirection","MSDirection","ODirection","display","MozDisplay","WebkitDisplay","MSDisplay","ODisplay","dpcm","MozDpcm","WebkitDpcm","MSDpcm","ODpcm","dpi","MozDpi","WebkitDpi","MSDpi","ODpi","dppx","MozDppx","WebkitDppx","MSDppx","ODppx","em","MozEm","WebkitEm","MSEm","OEm","emptyCells","MozEmptyCells","WebkitEmptyCells","MSEmptyCells","OEmptyCells","ex","MozEx","WebkitEx","MSEx","OEx","filter","MozFilter","WebkitFilter","MSFilter","OFilter","flexBasis","MozFlexBasis","WebkitFlexBasis","MSFlexBasis","OFlexBasis","flexDirection","MozFlexDirection","WebkitFlexDirection","MSFlexDirection","OFlexDirection","flexFlow","MozFlexFlow","WebkitFlexFlow","MSFlexFlow","OFlexFlow","flexGrow","MozFlexGrow","WebkitFlexGrow","MSFlexGrow","OFlexGrow","flexShrink","MozFlexShrink","WebkitFlexShrink","MSFlexShrink","OFlexShrink","flexWrap","MozFlexWrap","WebkitFlexWrap","MSFlexWrap","OFlexWrap","float","MozFloat","WebkitFloat","MSFloat","OFloat","font","MozFont","WebkitFont","MSFont","OFont","fontFamily","MozFontFamily","WebkitFontFamily","MSFontFamily","OFontFamily","fontFeatureSettings","MozFontFeatureSettings","WebkitFontFeatureSettings","MSFontFeatureSettings","OFontFeatureSettings","fontKerning","MozFontKerning","WebkitFontKerning","MSFontKerning","OFontKerning","fontLanguageOverride","MozFontLanguageOverride","WebkitFontLanguageOverride","MSFontLanguageOverride","OFontLanguageOverride","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","fontSizeAdjust","MozFontSizeAdjust","WebkitFontSizeAdjust","MSFontSizeAdjust","OFontSizeAdjust","fontStretch","MozFontStretch","WebkitFontStretch","MSFontStretch","OFontStretch","fontStyle","MozFontStyle","WebkitFontStyle","MSFontStyle","OFontStyle","fontSynthesis","MozFontSynthesis","WebkitFontSynthesis","MSFontSynthesis","OFontSynthesis","fontVariant","MozFontVariant","WebkitFontVariant","MSFontVariant","OFontVariant","fontVariantAlternates","MozFontVariantAlternates","WebkitFontVariantAlternates","MSFontVariantAlternates","OFontVariantAlternates","fontVariantCaps","MozFontVariantCaps","WebkitFontVariantCaps","MSFontVariantCaps","OFontVariantCaps","fontVariantEastAsian","MozFontVariantEastAsian","WebkitFontVariantEastAsian","MSFontVariantEastAsian","OFontVariantEastAsian","fontVariantLigatures","MozFontVariantLigatures","WebkitFontVariantLigatures","MSFontVariantLigatures","OFontVariantLigatures","fontVariantNumeric","MozFontVariantNumeric","WebkitFontVariantNumeric","MSFontVariantNumeric","OFontVariantNumeric","fontVariantPosition","MozFontVariantPosition","WebkitFontVariantPosition","MSFontVariantPosition","OFontVariantPosition","fontWeight","MozFontWeight","WebkitFontWeight","MSFontWeight","OFontWeight","fr","MozFr","WebkitFr","MSFr","OFr","grad","MozGrad","WebkitGrad","MSGrad","OGrad","grid","MozGrid","WebkitGrid","MSGrid","OGrid","gridArea","MozGridArea","WebkitGridArea","MSGridArea","OGridArea","gridAutoColumns","MozGridAutoColumns","WebkitGridAutoColumns","MSGridAutoColumns","OGridAutoColumns","gridAutoFlow","MozGridAutoFlow","WebkitGridAutoFlow","MSGridAutoFlow","OGridAutoFlow","gridAutoRows","MozGridAutoRows","WebkitGridAutoRows","MSGridAutoRows","OGridAutoRows","gridColumn","MozGridColumn","WebkitGridColumn","MSGridColumn","OGridColumn","gridColumnEnd","MozGridColumnEnd","WebkitGridColumnEnd","MSGridColumnEnd","OGridColumnEnd","gridColumnGap","MozGridColumnGap","WebkitGridColumnGap","MSGridColumnGap","OGridColumnGap","gridColumnStart","MozGridColumnStart","WebkitGridColumnStart","MSGridColumnStart","OGridColumnStart","gridGap","MozGridGap","WebkitGridGap","MSGridGap","OGridGap","gridRow","MozGridRow","WebkitGridRow","MSGridRow","OGridRow","gridRowEnd","MozGridRowEnd","WebkitGridRowEnd","MSGridRowEnd","OGridRowEnd","gridRowGap","MozGridRowGap","WebkitGridRowGap","MSGridRowGap","OGridRowGap","gridRowStart","MozGridRowStart","WebkitGridRowStart","MSGridRowStart","OGridRowStart","gridTemplate","MozGridTemplate","WebkitGridTemplate","MSGridTemplate","OGridTemplate","gridTemplateAreas","MozGridTemplateAreas","WebkitGridTemplateAreas","MSGridTemplateAreas","OGridTemplateAreas","gridTemplateColumns","MozGridTemplateColumns","WebkitGridTemplateColumns","MSGridTemplateColumns","OGridTemplateColumns","gridTemplateRows","MozGridTemplateRows","WebkitGridTemplateRows","MSGridTemplateRows","OGridTemplateRows","height","MozHeight","WebkitHeight","MSHeight","OHeight","hyphens","MozHyphens","WebkitHyphens","MSHyphens","OHyphens","hz","MozHz","WebkitHz","MSHz","OHz","imageOrientation","MozImageOrientation","WebkitImageOrientation","MSImageOrientation","OImageOrientation","imageRendering","MozImageRendering","WebkitImageRendering","MSImageRendering","OImageRendering","imageResolution","MozImageResolution","WebkitImageResolution","MSImageResolution","OImageResolution","imeMode","MozImeMode","WebkitImeMode","MSImeMode","OImeMode","in","MozIn","WebkitIn","MSIn","OIn","inherit","MozInherit","WebkitInherit","MSInherit","OInherit","initial","MozInitial","WebkitInitial","MSInitial","OInitial","inlineSize","MozInlineSize","WebkitInlineSize","MSInlineSize","OInlineSize","isolation","MozIsolation","WebkitIsolation","MSIsolation","OIsolation","justifyContent","MozJustifyContent","WebkitJustifyContent","MSJustifyContent","OJustifyContent","khz","MozKhz","WebkitKhz","MSKhz","OKhz","left","MozLeft","WebkitLeft","MSLeft","OLeft","letterSpacing","MozLetterSpacing","WebkitLetterSpacing","MSLetterSpacing","OLetterSpacing","lineBreak","MozLineBreak","WebkitLineBreak","MSLineBreak","OLineBreak","lineHeight","MozLineHeight","WebkitLineHeight","MSLineHeight","OLineHeight","listStyle","MozListStyle","WebkitListStyle","MSListStyle","OListStyle","listStyleImage","MozListStyleImage","WebkitListStyleImage","MSListStyleImage","OListStyleImage","listStylePosition","MozListStylePosition","WebkitListStylePosition","MSListStylePosition","OListStylePosition","listStyleType","MozListStyleType","WebkitListStyleType","MSListStyleType","OListStyleType","margin","MozMargin","WebkitMargin","MSMargin","OMargin","marginBlockEnd","MozMarginBlockEnd","WebkitMarginBlockEnd","MSMarginBlockEnd","OMarginBlockEnd","marginBlockStart","MozMarginBlockStart","WebkitMarginBlockStart","MSMarginBlockStart","OMarginBlockStart","marginBottom","MozMarginBottom","WebkitMarginBottom","MSMarginBottom","OMarginBottom","marginInlineEnd","MozMarginInlineEnd","WebkitMarginInlineEnd","MSMarginInlineEnd","OMarginInlineEnd","marginInlineStart","MozMarginInlineStart","WebkitMarginInlineStart","MSMarginInlineStart","OMarginInlineStart","marginLeft","MozMarginLeft","WebkitMarginLeft","MSMarginLeft","OMarginLeft","marginRight","MozMarginRight","WebkitMarginRight","MSMarginRight","OMarginRight","marginTop","MozMarginTop","WebkitMarginTop","MSMarginTop","OMarginTop","mask","MozMask","WebkitMask","MSMask","OMask","maskClip","MozMaskClip","WebkitMaskClip","MSMaskClip","OMaskClip","maskComposite","MozMaskComposite","WebkitMaskComposite","MSMaskComposite","OMaskComposite","maskImage","MozMaskImage","WebkitMaskImage","MSMaskImage","OMaskImage","maskMode","MozMaskMode","WebkitMaskMode","MSMaskMode","OMaskMode","maskOrigin","MozMaskOrigin","WebkitMaskOrigin","MSMaskOrigin","OMaskOrigin","maskPosition","MozMaskPosition","WebkitMaskPosition","MSMaskPosition","OMaskPosition","maskRepeat","MozMaskRepeat","WebkitMaskRepeat","MSMaskRepeat","OMaskRepeat","maskSize","MozMaskSize","WebkitMaskSize","MSMaskSize","OMaskSize","maskType","MozMaskType","WebkitMaskType","MSMaskType","OMaskType","maxHeight","MozMaxHeight","WebkitMaxHeight","MSMaxHeight","OMaxHeight","maxWidth","MozMaxWidth","WebkitMaxWidth","MSMaxWidth","OMaxWidth","minBlockSize","MozMinBlockSize","WebkitMinBlockSize","MSMinBlockSize","OMinBlockSize","minHeight","MozMinHeight","WebkitMinHeight","MSMinHeight","OMinHeight","minInlineSize","MozMinInlineSize","WebkitMinInlineSize","MSMinInlineSize","OMinInlineSize","minWidth","MozMinWidth","WebkitMinWidth","MSMinWidth","OMinWidth","mixBlendMode","MozMixBlendMode","WebkitMixBlendMode","MSMixBlendMode","OMixBlendMode","mm","MozMm","WebkitMm","MSMm","OMm","ms","MozMs","WebkitMs","MSMs","OMs","objectFit","MozObjectFit","WebkitObjectFit","MSObjectFit","OObjectFit","objectPosition","MozObjectPosition","WebkitObjectPosition","MSObjectPosition","OObjectPosition","offsetBlockEnd","MozOffsetBlockEnd","WebkitOffsetBlockEnd","MSOffsetBlockEnd","OOffsetBlockEnd","offsetBlockStart","MozOffsetBlockStart","WebkitOffsetBlockStart","MSOffsetBlockStart","OOffsetBlockStart","offsetInlineEnd","MozOffsetInlineEnd","WebkitOffsetInlineEnd","MSOffsetInlineEnd","OOffsetInlineEnd","offsetInlineStart","MozOffsetInlineStart","WebkitOffsetInlineStart","MSOffsetInlineStart","OOffsetInlineStart","opacity","MozOpacity","WebkitOpacity","MSOpacity","OOpacity","order","MozOrder","WebkitOrder","MSOrder","OOrder","orphans","MozOrphans","WebkitOrphans","MSOrphans","OOrphans","outline","MozOutline","WebkitOutline","MSOutline","OOutline","outlineColor","MozOutlineColor","WebkitOutlineColor","MSOutlineColor","OOutlineColor","outlineOffset","MozOutlineOffset","WebkitOutlineOffset","MSOutlineOffset","OOutlineOffset","outlineStyle","MozOutlineStyle","WebkitOutlineStyle","MSOutlineStyle","OOutlineStyle","outlineWidth","MozOutlineWidth","WebkitOutlineWidth","MSOutlineWidth","OOutlineWidth","overflow","MozOverflow","WebkitOverflow","MSOverflow","OOverflow","overflowWrap","MozOverflowWrap","WebkitOverflowWrap","MSOverflowWrap","OOverflowWrap","overflowX","MozOverflowX","WebkitOverflowX","MSOverflowX","OOverflowX","overflowY","MozOverflowY","WebkitOverflowY","MSOverflowY","OOverflowY","padding","MozPadding","WebkitPadding","MSPadding","OPadding","paddingBlockEnd","MozPaddingBlockEnd","WebkitPaddingBlockEnd","MSPaddingBlockEnd","OPaddingBlockEnd","paddingBlockStart","MozPaddingBlockStart","WebkitPaddingBlockStart","MSPaddingBlockStart","OPaddingBlockStart","paddingBottom","MozPaddingBottom","WebkitPaddingBottom","MSPaddingBottom","OPaddingBottom","paddingInlineEnd","MozPaddingInlineEnd","WebkitPaddingInlineEnd","MSPaddingInlineEnd","OPaddingInlineEnd","paddingInlineStart","MozPaddingInlineStart","WebkitPaddingInlineStart","MSPaddingInlineStart","OPaddingInlineStart","paddingLeft","MozPaddingLeft","WebkitPaddingLeft","MSPaddingLeft","OPaddingLeft","paddingRight","MozPaddingRight","WebkitPaddingRight","MSPaddingRight","OPaddingRight","paddingTop","MozPaddingTop","WebkitPaddingTop","MSPaddingTop","OPaddingTop","pageBreakAfter","MozPageBreakAfter","WebkitPageBreakAfter","MSPageBreakAfter","OPageBreakAfter","pageBreakBefore","MozPageBreakBefore","WebkitPageBreakBefore","MSPageBreakBefore","OPageBreakBefore","pageBreakInside","MozPageBreakInside","WebkitPageBreakInside","MSPageBreakInside","OPageBreakInside","pc","MozPc","WebkitPc","MSPc","OPc","perspective","MozPerspective","WebkitPerspective","MSPerspective","OPerspective","perspectiveOrigin","MozPerspectiveOrigin","WebkitPerspectiveOrigin","MSPerspectiveOrigin","OPerspectiveOrigin","pointerEvents","MozPointerEvents","WebkitPointerEvents","MSPointerEvents","OPointerEvents","position","MozPosition","WebkitPosition","MSPosition","OPosition","pt","MozPt","WebkitPt","MSPt","OPt","px","MozPx","WebkitPx","MSPx","OPx","q","MozQ","WebkitQ","MSQ","OQ","quotes","MozQuotes","WebkitQuotes","MSQuotes","OQuotes","rad","MozRad","WebkitRad","MSRad","ORad","rem","MozRem","WebkitRem","MSRem","ORem","resize","MozResize","WebkitResize","MSResize","OResize","revert","MozRevert","WebkitRevert","MSRevert","ORevert","right","MozRight","WebkitRight","MSRight","ORight","rubyAlign","MozRubyAlign","WebkitRubyAlign","MSRubyAlign","ORubyAlign","rubyMerge","MozRubyMerge","WebkitRubyMerge","MSRubyMerge","ORubyMerge","rubyPosition","MozRubyPosition","WebkitRubyPosition","MSRubyPosition","ORubyPosition","s","MozS","WebkitS","MSS","OS","scrollBehavior","MozScrollBehavior","WebkitScrollBehavior","MSScrollBehavior","OScrollBehavior","scrollSnapCoordinate","MozScrollSnapCoordinate","WebkitScrollSnapCoordinate","MSScrollSnapCoordinate","OScrollSnapCoordinate","scrollSnapDestination","MozScrollSnapDestination","WebkitScrollSnapDestination","MSScrollSnapDestination","OScrollSnapDestination","scrollSnapType","MozScrollSnapType","WebkitScrollSnapType","MSScrollSnapType","OScrollSnapType","shapeImageThreshold","MozShapeImageThreshold","WebkitShapeImageThreshold","MSShapeImageThreshold","OShapeImageThreshold","shapeMargin","MozShapeMargin","WebkitShapeMargin","MSShapeMargin","OShapeMargin","shapeOutside","MozShapeOutside","WebkitShapeOutside","MSShapeOutside","OShapeOutside","tabSize","MozTabSize","WebkitTabSize","MSTabSize","OTabSize","tableLayout","MozTableLayout","WebkitTableLayout","MSTableLayout","OTableLayout","textAlign","MozTextAlign","WebkitTextAlign","MSTextAlign","OTextAlign","textAlignLast","MozTextAlignLast","WebkitTextAlignLast","MSTextAlignLast","OTextAlignLast","textCombineUpright","MozTextCombineUpright","WebkitTextCombineUpright","MSTextCombineUpright","OTextCombineUpright","textDecoration","MozTextDecoration","WebkitTextDecoration","MSTextDecoration","OTextDecoration","textDecorationColor","MozTextDecorationColor","WebkitTextDecorationColor","MSTextDecorationColor","OTextDecorationColor","textDecorationLine","MozTextDecorationLine","WebkitTextDecorationLine","MSTextDecorationLine","OTextDecorationLine","textDecorationStyle","MozTextDecorationStyle","WebkitTextDecorationStyle","MSTextDecorationStyle","OTextDecorationStyle","textEmphasis","MozTextEmphasis","WebkitTextEmphasis","MSTextEmphasis","OTextEmphasis","textEmphasisColor","MozTextEmphasisColor","WebkitTextEmphasisColor","MSTextEmphasisColor","OTextEmphasisColor","textEmphasisPosition","MozTextEmphasisPosition","WebkitTextEmphasisPosition","MSTextEmphasisPosition","OTextEmphasisPosition","textEmphasisStyle","MozTextEmphasisStyle","WebkitTextEmphasisStyle","MSTextEmphasisStyle","OTextEmphasisStyle","textIndent","MozTextIndent","WebkitTextIndent","MSTextIndent","OTextIndent","textOrientation","MozTextOrientation","WebkitTextOrientation","MSTextOrientation","OTextOrientation","textOverflow","MozTextOverflow","WebkitTextOverflow","MSTextOverflow","OTextOverflow","textRendering","MozTextRendering","WebkitTextRendering","MSTextRendering","OTextRendering","textShadow","MozTextShadow","WebkitTextShadow","MSTextShadow","OTextShadow","textTransform","MozTextTransform","WebkitTextTransform","MSTextTransform","OTextTransform","textUnderlinePosition","MozTextUnderlinePosition","WebkitTextUnderlinePosition","MSTextUnderlinePosition","OTextUnderlinePosition","top","MozTop","WebkitTop","MSTop","OTop","touchAction","MozTouchAction","WebkitTouchAction","MSTouchAction","OTouchAction","transform","MozTransform","WebkitTransform","msTransform","OTransform","transformBox","MozTransformBox","WebkitTransformBox","MSTransformBox","OTransformBox","transformOrigin","MozTransformOrigin","WebkitTransformOrigin","MSTransformOrigin","OTransformOrigin","transformStyle","MozTransformStyle","WebkitTransformStyle","MSTransformStyle","OTransformStyle","transition","MozTransition","WebkitTransition","MSTransition","OTransition","transitionDelay","MozTransitionDelay","WebkitTransitionDelay","MSTransitionDelay","OTransitionDelay","transitionDuration","MozTransitionDuration","WebkitTransitionDuration","MSTransitionDuration","OTransitionDuration","transitionProperty","MozTransitionProperty","WebkitTransitionProperty","MSTransitionProperty","OTransitionProperty","transitionTimingFunction","MozTransitionTimingFunction","WebkitTransitionTimingFunction","MSTransitionTimingFunction","OTransitionTimingFunction","turn","MozTurn","WebkitTurn","MSTurn","OTurn","unicodeBidi","MozUnicodeBidi","WebkitUnicodeBidi","MSUnicodeBidi","OUnicodeBidi","unset","MozUnset","WebkitUnset","MSUnset","OUnset","verticalAlign","MozVerticalAlign","WebkitVerticalAlign","MSVerticalAlign","OVerticalAlign","vh","MozVh","WebkitVh","MSVh","OVh","visibility","MozVisibility","WebkitVisibility","MSVisibility","OVisibility","vmax","MozVmax","WebkitVmax","MSVmax","OVmax","vmin","MozVmin","WebkitVmin","MSVmin","OVmin","vw","MozVw","WebkitVw","MSVw","OVw","whiteSpace","MozWhiteSpace","WebkitWhiteSpace","MSWhiteSpace","OWhiteSpace","widows","MozWidows","WebkitWidows","MSWidows","OWidows","width","MozWidth","WebkitWidth","MSWidth","OWidth","willChange","MozWillChange","WebkitWillChange","MSWillChange","OWillChange","wordBreak","MozWordBreak","WebkitWordBreak","MSWordBreak","OWordBreak","wordSpacing","MozWordSpacing","WebkitWordSpacing","MSWordSpacing","OWordSpacing","wordWrap","MozWordWrap","WebkitWordWrap","MSWordWrap","OWordWrap","writingMode","MozWritingMode","WebkitWritingMode","MSWritingMode","OWritingMode","zIndex","MozZIndex","WebkitZIndex","MSZIndex","OZIndex","fontSize","MozFontSize","WebkitFontSize","MSFontSize","OFontSize","flex","MozFlex","WebkitFlex","MSFlex","OFlex","fr","MozFr","WebkitFr","MSFr","OFr","overflowScrolling","MozOverflowScrolling","WebkitOverflowScrolling","MSOverflowScrolling","OOverflowScrolling","userSelect","MozUserSelect","WebkitUserSelect","MSUserSelect","OUserSelect"]},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.d(t,"a",function(){return a}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t){e.exports={root:"SplitController_root_1_Pta",vertical:"SplitController_vertical_3_E5x SplitController_root_1_Pta",splitPane:"SplitController_splitPane_18bcQ",splitWrapper:"SplitController_splitWrapper_24AHo",splitWrapperResizing:"SplitController_splitWrapperResizing_172Lr SplitController_splitWrapper_24AHo",singleWrapper:"SplitController_singleWrapper_2k9c8",Resizer:"SplitController_Resizer_1fQXJ",disabled:"SplitController_disabled_3_IsL",ResizerIsCollapsed:"SplitController_ResizerIsCollapsed_2oq7p SplitController_Resizer_1fQXJ",lastPane:"SplitController_lastPane_cbghY",hideResize:"SplitController_hideResize_2CP7G"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1)),o=i(n(0));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s extends o.default.Component{render(){return this.props.children||o.default.createElement("div",null)}}t.default=s,a(s,"propTypes",{minSize:r.default.number,maxSize:r.default.number,defaultSize:r.default.number,children:r.default.node,index:r.default.number}),a(s,"defaultProps",{minSize:100,maxSize:500,defaultSize:321,children:void 0})},function(e,t,n){var r=n(130),o=n(239),i=Object.prototype.hasOwnProperty,a=o(function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(1)),o=u(n(0)),i=n(16),a=u(n(585)),s=u(n(27));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends o.default.Component{constructor(){super(...arguments),l(this,"handleClick",e=>{e.stopPropagation(),this.props.onAction(e,this.props.item)}),l(this,"handleFocus",e=>{this.props.onFocus(e,this.props.item)}),l(this,"renderLinkChildren",()=>{var e=this.props.item,t=e.icon,n=e.title;return o.default.createElement(o.default.Fragment,null,t&&o.default.createElement("span",{className:a.default.iconContainer},o.default.createElement(t,{className:a.default.icon})),n)}),l(this,"renderIntentLink",()=>{var e=this.props,t=e.danger,n=e.item.intent;return o.default.createElement(i.IntentLink,{onClick:this.handleClick,className:t?a.default.dangerLink:a.default.link,onFocus:this.handleFocus,tabIndex:"0",intent:n.type,params:n.params},this.renderLinkChildren())}),l(this,"renderFunctionLink",()=>{var e=this.props,t=e.isDisabled,n=e.danger;return o.default.createElement("a",{onClick:t?null:this.handleClick,className:n?a.default.dangerLink:a.default.link,onFocus:this.handleFocus,tabIndex:"0"},this.renderLinkChildren())})}render(){var e=this.props,t=e.className,n=e.isDisabled,r=e.isFocused,i=e.item.intent;return o.default.createElement("li",{className:(0,s.default)([r?a.default.focusedItem:a.default.item,n&&a.default.isDisabled,t])},i?this.renderIntentLink():this.renderFunctionLink())}}l(c,"propTypes",{isFocused:r.default.bool,onFocus:r.default.func.isRequired,onAction:r.default.func.isRequired,className:r.default.string,danger:r.default.bool,isDisabled:r.default.bool,item:r.default.shape({title:r.default.node.isRequired,icon:r.default.func,intent:r.default.shape({type:r.default.string.isRequired,params:r.default.object})}).isRequired}),l(c,"defaultProps",{className:"",isFocused:!1,isDisabled:!1,danger:!1});var f=c;t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(0)),o=a(n(1)),i=a(n(1732));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends r.default.PureComponent{constructor(){super(...arguments),s(this,"handleScroll",e=>{this.props.onScroll(e)}),s(this,"setScrollContainerElement",e=>{this._scrollContainerElement=e})}getChildContext(){return{getScrollContainer:()=>this._scrollContainerElement}}componentDidMount(){this.props.onScroll&&this._scrollContainerElement.addEventListener("scroll",this.handleScroll,{passive:!0})}componentWillUnmount(){this.props.onScroll&&this._scrollContainerElement.removeEventListener("scroll",this.handleScroll,{passive:!0})}render(){return r.default.createElement("div",{ref:this.setScrollContainerElement,className:"".concat(i.default.scrollContainer," ").concat(this.props.className)},this.props.children)}}t.default=u,s(u,"propTypes",{className:o.default.string,children:o.default.node,onScroll:o.default.func}),s(u,"defaultProps",{className:"",onScroll:()=>{}}),s(u,"defaultProps",{className:""}),s(u,"childContextTypes",{getScrollContainer:o.default.func})},function(e,t){e.exports={scrollContainer:"ScrollContainer_scrollContainer_RkYhF"}},function(e,t){e.exports={root:"DefaultPane_root_4AmYb",isDisabled:"DefaultPane_isDisabled_3lAn9",isActive:"DefaultPane_isActive_1siOT",isCollapsed:"DefaultPane_isCollapsed_2s79X DefaultPane_root_4AmYb",header:"DefaultPane_header_3ctgw",headerContent:"DefaultPane_headerContent_3dqTZ",buttonWrapper:"DefaultPane_buttonWrapper_28Zyv",actionButton:"DefaultPane_actionButton_2jpqC",actionButtonInner:"DefaultPane_actionButtonInner_3JxkP",menuWrapper:"DefaultPane_menuWrapper_3Wl0g DefaultPane_buttonWrapper_28Zyv",menuOverflowButton:"DefaultPane_menuOverflowButton_2NVrb DefaultPane_actionButton_2jpqC",menuOverflowButtonInner:"DefaultPane_menuOverflowButtonInner_17KAX DefaultPane_actionButtonInner_3JxkP",actions:"DefaultPane_actions_3IHYn",menuContainer:"DefaultPane_menuContainer_iIJye",menuButton:"DefaultPane_menuButton_1vQbY",title:"DefaultPane_title_1kt9V",functions:"DefaultPane_functions_1SFxw",functionsLarge:"DefaultPane_functionsLarge_MA1CW DefaultPane_functions_1SFxw",functionsSmall:"DefaultPane_functionsSmall_1ZWA_ DefaultPane_functions_1SFxw",main:"DefaultPane_main_1fnq9",scrollContainer:"DefaultPane_scrollContainer_1WlAM scrolling_scrollY_S9M7c scrolling_touchScroll_13M6t",notScrollable:"DefaultPane_notScrollable_1SzH1",functionsButton:"DefaultPane_functionsButton_1_tk3",functionsButtonText:"DefaultPane_functionsButtonText_2Uorv"}},function(e,t){e.exports={root:"LoadingPane_root_3Cf_o"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(273)),o=c(n(0)),i=c(n(1)),a=c(n(1736)),s=c(n(1760)),u=c(n(1762)),l=c(n(1764));function c(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;tthis.props.onCollapse(this.props.index)),d(this,"handlePaneExpand",()=>this.props.onExpand(this.props.index))}render(){var e=this.props.type,t=p[e]||u.default;return o.default.createElement(t,f({},this.props,{onExpand:this.handlePaneExpand,onCollapse:this.handlePaneCollapse}))}}t.default=h,d(h,"propTypes",{index:i.default.number,title:i.default.string,type:i.default.string.isRequired,onCollapse:i.default.func,onExpand:i.default.func}),d(h,"defaultProps",{title:"",index:0,onCollapse:r.default,onExpand:r.default})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=S(n(102)),a=S(n(0)),s=S(n(1)),u=n(16),l=S(n(39)),c=S(n(330)),f=S(n(8)),d=S(n(97)),p=S(n(1737)),h=S(n(91)),v=S(n(26)),m=n(214),y=n(147),g=n(6),b=S(n(586)),_=S(n(1744)),w=S(n(332)),O=S(n(1745)),k=S(n(587)),E=n(4);function S(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var P=[{field:"_createdAt",direction:"desc"}];function j(e){var t=C((0,i.default)(e.map(e=>e._id),m.isDraftId),2),n=t[0],r=t[1];return e.map(e=>(function(e){for(var t=1;t!((0,m.isPublishedId)(e._id)&&e.hasDraft))}function M(e){return(0,m.getPublishedId)(e._id)}function T(){console.warn("No handler defined for action")}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(/\b_type\s*==\s*(['"].*?['"]|\$.*?(?:\s|$))|\B(['"].*?['"]|\$.*?(?:\s|$))\s*==\s*_type\b/);if(!n)return null;var r=(n[1]||n[2]).trim().replace(/^["']|["']$/g,"");return("$"===r[0]?t[r.slice(1)]:r)||null}function D(e){return e.map(e=>[e.field,(e.direction||"").toLowerCase()].map(e=>e.trim()).filter(Boolean).join(" ")).join(", ")}var I=(0,u.withRouterHOC)((o=r=class extends a.default.PureComponent{constructor(e){super(),x(this,"actionHandlers",{setLayout:e=>{var t=e.layout;this.layoutSetting.set(t)},setSortOrder:e=>{this.sortOrderSetting.set(e)}}),x(this,"state",{scrollTop:0,sortOrder:null,layout:null}),x(this,"getLinkStateForItem",e=>{var t=this.props,n=t.router,r=t.index;return{panes:(n.state.panes||[]).slice(0,r).concat((0,m.getPublishedId)(e))}}),x(this,"renderItem",e=>a.default.createElement(k.default,{id:e._id,getLinkState:this.getLinkStateForItem,layout:this.state.layout||this.props.defaultLayout||"default",value:e,icon:!1!==this.props.displayOptions.showIcons&&void 0,schemaType:l.default.get(e._type),isSelected:this.itemIsSelected(e._id)})),x(this,"handleAction",e=>{("function"==typeof e.action?e.action:this.actionHandlers[e.action]||T)(e.params,this)}),x(this,"handleCreateNew",()=>{var e=this.props,t=e.options,n=e.router,r=A(t.filter,t.params);n.navigateIntent("create",{type:r})}),x(this,"handleScroll",e=>{this.setState({scrollTop:e})});var t=e.options,n=A(t.filter,t.params),r=b.default.forNamespace(n);this.sortOrderSetting=r.forKey("sortOrder"),this.layoutSetting=r.forKey("layout");var o=!0;this.settingsSubscription=(0,g.combineLatest)(this.sortOrderSetting.listen(P),this.layoutSetting.listen()).pipe((0,E.map)(e=>{var t=C(e,2);return{sortOrder:t[0],layout:t[1]}}),(0,E.tap)(e=>{o?this.state=e:this.setState(e)})).subscribe(),o=!1}componentWillUnmount(){this.settingsSubscription.unsubscribe()}itemIsSelected(e){var t=this.props,n=t.router,r=t.index,o=(n.state.panes||[])[r]||"";return(0,m.getPublishedId)(e)===(0,m.getPublishedId)(o)}buildListQuery(){var e=this.props.options,t=e.filter,n=e.defaultOrdering,r=this.state.sortOrder,o=r&&r.extendedProjection,i=["_id","_type"],a=i.join(", "),s=r&&r.by||n||[],u=s.length>0?s:P;if(o){var l=i.concat(o).join(", ");return["*[".concat(t,"] [0...50000]"),"{".concat(l,"}"),"order(".concat(D(u),")"),"{".concat(a,"}")].join(" | ")}return"*[".concat(t,"] | order(").concat(D(u),") [0...50000] {").concat(a,"}")}render(){var e=this.props,t=e.title,n=e.options,r=e.className,o=e.isCollapsed,i=e.isSelected,s=e.onCollapse,u=e.onExpand,m=e.defaultLayout,g=e.menuItems,b=e.menuItemGroups,k=n.filter,E=n.params,S=this.state.layout||m||"default",x=A(k,E),C=function(e){return/^_type\s*==\s*['"$]\w+['"]?\s*$/.test(e.trim())}(k),P=this.buildListQuery();return a.default.createElement(d.default,{title:t,className:r,styles:this.props.styles,index:this.props.index,scrollTop:this.state.scrollTop,menuItems:g,menuItemGroups:b,isSelected:i,isCollapsed:o,onCollapse:s,onAction:this.handleAction,onExpand:u,isScrollable:!1},a.default.createElement(p.default,{query:P,params:E},e=>{var t=e.result,n=e.loading,r=e.error,o=e.onRetry;if(r)return a.default.createElement(h.default,{kind:"danger",action:{title:"Retry"},onAction:o},a.default.createElement("div",null,"An error occurred while loading items:"),a.default.createElement("div",null,r.message));if(n)return a.default.createElement("div",{className:_.default["layout__".concat(S)]},n&&a.default.createElement(v.default,{center:!0,message:"Loading items…"}));if(!t)return null;var i=j(t?t.documents:[]);if(!(e=>e&&e.length>0)(i)){var s=l.default.get(x);return a.default.createElement("div",{className:_.default.empty},a.default.createElement("div",null,a.default.createElement("h3",null,C?"No documents of this type found":"No documents matching this filter found"),x&&(0,y.isActionEnabled)(s,"create")&&a.default.createElement(f.default,{color:"primary",icon:c.default,onClick:this.handleCreateNew},"New ",s.title)))}return a.default.createElement("div",{className:_.default["layout__".concat(S)]},i&&a.default.createElement(O.default,{className:w.default.scroll,onScroll:this.handleScroll,items:i,layout:S,getItemKey:M,renderItem:this.renderItem}))}))}},x(r,"propTypes",{index:s.default.number.isRequired,title:s.default.string.isRequired,className:s.default.string,styles:s.default.object,router:s.default.shape({state:s.default.shape({panes:s.default.arrayOf(s.default.string)})}).isRequired,defaultLayout:s.default.string,options:s.default.shape({filter:s.default.string.isRequired,defaultOrdering:s.default.arrayOf(s.default.shape({field:s.default.string.isRequired,direction:s.default.oneOf(["asc","desc"])})),params:s.default.object}).isRequired,menuItems:s.default.arrayOf(s.default.shape({title:s.default.string.isRequired})),menuItemGroups:s.default.arrayOf(s.default.shape({id:s.default.string.isRequired})),displayOptions:s.default.shape({showIcons:s.default.bool}),isSelected:s.default.bool.isRequired,isCollapsed:s.default.bool.isRequired,onExpand:s.default.func,onCollapse:s.default.func}),x(r,"defaultProps",{className:"",styles:{},menuItems:[],menuItemGroups:[],displayOptions:{},onExpand:void 0,onCollapse:void 0,defaultLayout:void 0}),o));t.default=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=n(4),i=n(6),a=(r=n(1738))&&r.__esModule?r:{default:r},s=n(141),u=n(1739);function l(e){for(var t=1;t({result:{documents:e},loading:!1,error:!1}),h=(0,s.streamingComponent)(e=>{var t=f((0,s.createEventHandler)(),2),n=t[0],r=t[1],c=e.pipe((0,o.map)(e=>({query:e.query,params:e.params})),(0,o.distinctUntilChanged)(a.default),(0,o.publishReplay)(1),(0,o.refCount)()).pipe((0,o.switchMap)(e=>{var t=(0,u.listenQuery)(e.query,e.params).pipe((0,o.map)(p),(0,o.share)());return(0,i.merge)((0,i.of)({loading:!0}).pipe((0,o.delay)(400),(0,o.takeUntil)(t)),t)})).pipe((0,o.startWith)(d),(0,o.catchError)((e,t)=>(0,i.concat)((0,i.of)((e=>({result:null,loading:!1,error:e}))(e)),n.pipe((0,o.take)(1),(0,o.mergeMapTo)(t)))),(0,o.scan)((e,t)=>l({},e,t)));return(0,i.combineLatest)(e,c).pipe((0,o.map)(e=>{var t=f(e,2),n=t[0],o=t[1],i=n.children;return"function"==typeof n.mapFn&&console.warn("The mapFn prop of the is removed."),i(l({},o,{onRetry:r}))}))});t.default=h},function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var s,u,l,c=r(t),f=r(n);if(c&&f){if((u=t.length)!=n.length)return!1;for(s=u;0!=s--;)if(!e(t[s],n[s]))return!1;return!0}if(c!=f)return!1;var d=t instanceof Date,p=n instanceof Date;if(d!=p)return!1;if(d&&p)return t.getTime()==n.getTime();var h=t instanceof RegExp,v=n instanceof RegExp;if(h!=v)return!1;if(h&&v)return t.toString()==n.toString();var m=o(t);if((u=m.length)!==o(n).length)return!1;for(s=u;0!=s--;)if(!i.call(n,m[s]))return!1;if(a&&t instanceof Element&&n instanceof Element)return t===n;for(s=u;0!=s--;)if(!("_owner"===(l=m[s])&&t.$$typeof||e(t[l],n[l])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listenQuery=void 0;var r,o=(r=n(13))&&r.__esModule?r:{default:r},i=n(6),a=n(4);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}t.listenQuery=((e,t)=>{var n=((e,t)=>(0,i.defer)(()=>o.default.observable.fetch(e,t)))(e,t),r=s(((e,t)=>(0,i.defer)(()=>o.default.listen(e,t,{events:["welcome","mutation","reconnect"],includeResult:!1,visibility:"query"})))(e,t).pipe((0,a.mergeMap)((e,t)=>{var n=0===t,r="welcome"===e.type;return n&&!r?(0,i.throwError)(new Error("reconnect"===e.type?"Could not establish EventSource connection":'Received unexpected type of first event "'.concat(e.type,'"'))):(0,i.of)(e)}),(0,a.share)(),(0,a.partition)(e=>"welcome"===e.type)),2),u=r[0],l=r[1];return(0,i.merge)(u.pipe((0,a.take)(1)),l.pipe((0,a.throttleTime)(1e3,i.asyncScheduler,{leading:!0,trailing:!0}))).pipe((0,a.switchMapTo)(n))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(6),o=n(4),i=(0,n(1741).resolveBackend)(),a=new r.Subject,s=(e,t)=>"".concat(e,"::").concat(t),u=a.pipe((0,o.switchMap)(e=>i.set(e.key,e.value).pipe((0,o.map)(t=>({key:e.key,value:t}))))),l=(e,t)=>(0,r.merge)(i.get(e,t),u.pipe((0,o.filter)(t=>t.key===e),(0,o.map)(e=>e.value))),c=(e,t)=>{a.next({key:e,value:t})},f=e=>({forKey:t=>{var n=s(e,t);return{listen:e=>l(n,e),set:e=>c(n,e),del:()=>c(n,void 0)}},listen:(t,n)=>l(s(e,t),n),set:(t,n)=>c(s(e,t),n),del:t=>c(s(e,t),void 0),forNamespace:t=>f(s(e,t))}),d={forNamespace:f};t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveBackend=void 0;var r=i(n(1742)),o=i(n(1743));function i(e){return e&&e.__esModule?e:{default:e}}var a=null;t.resolveBackend=(()=>(()=>{if(null!==a)return a;try{localStorage.setItem("__test__","__test__"),localStorage.removeItem("__test__"),a=!0}catch(e){a=!1}return a})()?r.default:o.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(6),o={get:(e,t)=>{var n=localStorage.getItem(e);return(0,r.of)(null===n?t:((e,t)=>{try{return JSON.parse(e)}catch(e){return console.warn("Failed to parse settings: ".concat(e.message)),t}})(n,t))},set:(e,t)=>(null==t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t)),(0,r.of)(t))};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(6),o=Object.create(null),i={get:(e,t)=>(0,r.of)(e in o?o[e]:t),set:(e,t)=>(null==t?delete o[e]:o[e]=t,(0,r.of)(t))};t.default=i},function(e,t){e.exports={root:"DocumentsListPane_root_O9Hu-",layout__default:"DocumentsListPane_layout__default_2fANL DocumentsListPane_root_O9Hu-",layout__detail:"DocumentsListPane_layout__detail_3ypjn DocumentsListPane_root_O9Hu-",layout__card:"DocumentsListPane_layout__card_2UhbY DocumentsListPane_root_O9Hu-",layout__media:"DocumentsListPane_layout__media_344Lo DocumentsListPane_root_O9Hu-",empty:"DocumentsListPane_empty_4urxd",link:"DocumentsListPane_link_3syeq selectable_item_LB4ab",item:"DocumentsListPane_item_2b38H helpers_resetListItem__Z6e9",selectedItem:"DocumentsListPane_selectedItem_3wHlc DocumentsListPane_item_2b38H helpers_resetListItem__Z6e9 selectable_selected_21Ajz selectable_item_LB4ab",itemStatus:"DocumentsListPane_itemStatus_1raEr"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=u(n(1)),a=u(n(0)),s=u(n(1746));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=(0,u(n(1747)).default)((o=r=class extends a.default.PureComponent{constructor(){super(...arguments),l(this,"state",{triggerUpdate:0,itemSize:void 0}),l(this,"setMeasureElement",e=>{e&&e.offsetHeight&&this.setState({itemSize:e.offsetHeight})}),l(this,"renderItem",e=>{var t=e.index,n=e.style,r=this.props,o=r.renderItem,i=r.getItemKey,s=r.items[t];return a.default.createElement("div",{key:i(s),style:n},o(s,t))})}UNSAFE_componentWillReceiveProps(e){e.items!==this.props.items&&this.setState({triggerUpdate:Math.random()}),e.layout!==this.props.layout&&this.setState({itemSize:void 0})}render(){var e=this.props,t=e.layout,n=e.height,r=e.items,o=e.className,i=e.renderItem,u=this.state,l=u.triggerUpdate,c=u.itemSize;return r&&0!==r.length?!c&&r?a.default.createElement("div",{ref:this.setMeasureElement},i(r[0],0)):a.default.createElement(s.default,{key:t,"data-trigger-update-hack":l,onScroll:this.props.onScroll,className:o||"",height:n,itemCount:r.length,itemSize:c,renderItem:this.renderItem,overscanCount:50}):a.default.createElement("div",null)}},l(r,"propTypes",{height:i.default.number,items:i.default.array,renderItem:i.default.func,className:i.default.string,getItemKey:i.default.func,layout:i.default.oneOf(["default","detail","card","media"]),onScroll:i.default.func}),l(r,"defaultProps",{layout:"default",items:[],height:250}),o));t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"ScrollDirection",function(){return s});var r=n(0),o=(n.n(r),n(1)),i=(n.n(o),function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)});var a,s,u,l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=this.itemCount)throw Error("Requested index "+e+" is outside of range 0.."+this.itemCount);if(e>this.lastMeasuredIndex){for(var t=this.getSizeAndPositionOfLastMeasuredItem(),n=t.offset+t.size,r=this.lastMeasuredIndex+1;r<=e;r++){var o=this.itemSizeGetter(r);if(null==o||isNaN(o))throw Error("Invalid size returned for index "+r+" of value "+o);this.itemSizeAndPositionData[r]={offset:n,size:o},n+=o}this.lastMeasuredIndex=e}return this.itemSizeAndPositionData[e]},e.prototype.getSizeAndPositionOfLastMeasuredItem=function(){return this.lastMeasuredIndex>=0?this.itemSizeAndPositionData[this.lastMeasuredIndex]:{offset:0,size:0}},e.prototype.getTotalSize=function(){var e=this.getSizeAndPositionOfLastMeasuredItem();return e.offset+e.size+(this.itemCount-this.lastMeasuredIndex-1)*this.estimatedItemSize},e.prototype.getUpdatedOffsetForIndex=function(e){var t=e.align,n=void 0===t?a.START:t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(r<=0)return 0;var s,u=this.getSizeAndPositionForIndex(i),l=u.offset,c=l-r+u.size;switch(n){case a.END:s=c;break;case a.CENTER:s=l-(r-u.size)/2;break;case a.START:s=l;break;default:s=Math.max(c,Math.min(l,o))}var f=this.getTotalSize();return Math.max(0,Math.min(f-r,s))},e.prototype.getVisibleRange=function(e){var t=e.containerSize,n=e.offset,r=e.overscanCount;if(0===this.getTotalSize())return{};var o=n+t,i=this.findNearestItem(n);if(void 0===i)throw Error("Invalid offset "+n+" specified");var a=this.getSizeAndPositionForIndex(i);n=a.offset+a.size;for(var s=i;n=e?this.binarySearch({high:n,low:0,offset:e}):this.exponentialSearch({index:n,offset:e})},e.prototype.binarySearch=function(e){for(var t=e.low,n=e.high,r=e.offset,o=0,i=0;t<=n;){if(o=t+Math.floor((n-t)/2),(i=this.getSizeAndPositionForIndex(o).offset)===r)return o;ir&&(n=o-1)}return t>0?t-1:0},e.prototype.exponentialSearch=function(e){for(var t=e.index,n=e.offset,r=1;t=n)&&(e=0),this.sizeAndPositionManager.getUpdatedOffsetForIndex({align:t,containerSize:this.props[m[o]],currentOffset:this.state&&this.state.offset||0,targetIndex:e})},t.prototype.recomputeSizes=function(e){void 0===e&&(e=0),this.styleCache={},this.sizeAndPositionManager.resetItem(e)},t.prototype.render=function(){var e,t=this,n=this.props,o=(n.estimatedItemSize,n.height),i=n.overscanCount,a=void 0===i?3:i,u=n.renderItem,c=(n.itemCount,n.itemSize,n.onItemsRendered),f=(n.onScroll,n.scrollDirection),d=void 0===f?s.VERTICAL:f,p=(n.scrollOffset,n.scrollToIndex,n.scrollToAlignment,n.stickyIndices),h=n.style,v=n.width,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{e&&this.setup(e)}),u(this,"handleResize",()=>{this.setState({height:this._element.offsetHeight})}),this.erd=(0,o.default)({strategy:"scroll"})}componentWillUnmount(){this.teardown(this._element)}setup(e){this._element&&this.teardown(this._element),this.erd.listenTo(e,this.handleResize),this._element=e}teardown(e){this.erd.removeAllListeners(e),this.erd.uninstall(e),this._element=null}render(){return r.default.createElement("div",{className:i.default.root,ref:this.setContainer},r.default.createElement(e,s({},this.props,this.state)))}},u(t,"displayName","enhanceWithAvailHeight(".concat(e.displayName||e.name,")")),n};var r=a(n(0)),o=a(n(502)),i=a(n(1748));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t!0===e.liveEdit,g=(e,t)=>e?d.default:t?null:f.default,b=e=>{var t=e.value,n=e.draft,i=e.published,a=n||i;return a?(0,r.default)({},a,t,(e,t)=>void 0===t?e:t):(e=>({title:o.default.createElement("span",{style:{fontStyle:"italic"}},e.title||"Missing document"),subtitle:o.default.createElement("span",{style:{fontStyle:"italic"}},e.title?"Missing document ID: ".concat(e._id):"Document ID: ".concat(e._id)),media:l.default}))(t)};class _ extends o.default.Component{constructor(e){super(),m(this,"state",{});var t=e.value,n=e.schemaType,r=t.title,o=!0;this.subscription=(0,a.concat)((0,a.of)({isLoading:!0}),(0,a.combineLatest)([y(n)?(0,a.of)({snapshot:null}):(0,c.observeForPreview)({_id:(0,u.getDraftId)(t._id)},n),(0,c.observeForPreview)({_id:(0,u.getPublishedId)(t._id)},n)]).pipe((0,s.map)(e=>{var t=v(e,2),n=t[0],o=t[1];return{draft:n.snapshot?h({title:r},n.snapshot):null,published:o.snapshot?h({title:r},o.snapshot):null,isLoading:!1}}))).subscribe(e=>{o?this.state=e:this.setState(e)}),o=!1}componentWillUnmount(){this.subscription&&this.subscription.unsubscribe()}render(){var e=this.props,t=e.value,n=e.schemaType,r=e.layout,i=e.icon,a=this.state,s=a.draft,u=a.published,l=a.isLoading;return o.default.createElement(c.SanityDefaultPreview,{value:b({isLoading:l,value:t,schemaType:n,draft:s,published:u}),isPlaceholder:l,icon:i,layout:r,type:n,status:l?null:g(s,u)})}}t.default=_,_.propTypes={layout:i.default.string,icon:i.default.oneOfType([i.default.func,i.default.bool]),value:i.default.object,schemaType:i.default.object}},function(e,t,n){var r=n(85),o=n(574),i=n(65),a=o(function(e,t,n,o){r(t,i(t),e,o)});e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(588)),i=n(34),a=s(n(589));function s(e){return e&&e.__esModule?e:{default:e}}var u=()=>r.default.createElement(i.Tooltip,{className:a.default.itemStatus,title:"Not published",arrow:!0,theme:"light",distance:"2",sticky:!0,size:"small"},r.default.createElement("i",null,r.default.createElement(o.default,null)));t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;tr.default.createElement(i.Tooltip,{className:a.default.itemStatus,title:"Has changes not yet published",arrow:!0,theme:"light",distance:"2",sticky:!0,size:"small"},r.default.createElement("i",null,r.default.createElement(o.default,null)));t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=((e,t,n)=>!1!==e&&(e||t&&t.icon||n))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(1)),i=n(52),a=s(n(60));function s(e){return e&&e.__esModule?e:{default:e}}var u=(e,t)=>({title:r.default.createElement("span",{style:{fontStyle:"italic"}},'No schema found for type "',t,'"'),subtitle:r.default.createElement("span",{style:{fontStyle:"italic"}},"Document: ",e),media:a.default});class l extends r.default.Component{render(){var e=this.props,t=e.layout,n=e.value;return r.default.createElement(i.SanityDefaultPreview,{value:u(n._id,n._type),layout:t})}}t.default=l,l.propTypes={layout:o.default.string,value:o.default.object}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=l(n(1759)),o=l(n(332)),i=l(n(1)),a=l(n(0)),s=n(16),u=n(295);function l(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.useGrid,n=e.linkState,i=e.layout,l=e.isSelected,c=a.default.createElement(s.StateLink,{state:n,className:l?r.default.linkIsSelected:r.default.link},e.children);return t?a.default.createElement(u.Item,{className:o.default["".concat(i,"ListItem")]},c):a.default.createElement("div",{className:l?r.default.selected:r.default.item},c)}c.propTypes={layout:i.default.string,useGrid:i.default.bool,isSelected:i.default.bool,linkState:i.default.object,children:i.default.node}},function(e,t){e.exports={item:"PaneItem_item_5-POL",selected:"PaneItem_selected_jJ41l PaneItem_item_5-POL",linkWrapper:"PaneItem_linkWrapper_2Cqdp",link:"PaneItem_link_1t_BS PaneItem_linkWrapper_2Cqdp selectable_item_LB4ab",linkIsSelected:"PaneItem_linkIsSelected_2gm1s PaneItem_linkWrapper_2Cqdp selectable_selected_21Ajz selectable_item_LB4ab"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(97)),a=s(n(1761));function s(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends r.default.PureComponent{constructor(e){super(e),c(this,"handleAction",e=>{var t;(t="function"==typeof e.action?e.action:this.userComponent&&this.userComponent.current&&this.userComponent.current.actionHandlers&&this.userComponent.current.actionHandlers[e.action])?t(e.params,this):console.warn("No handler defined for action")}),this.userComponent=r.default.createRef()}render(){var e=this.props,t=e.isSelected,n=e.isCollapsed,o=e.onCollapse,s=e.onExpand,c=e.component,f=(e.index,e.styles,e.title),d=(e.type,e.menuItems),p=e.menuItemGroups,h=e.renderActions,v=l(e,["isSelected","isCollapsed","onCollapse","onExpand","component","index","styles","title","type","menuItems","menuItemGroups","renderActions"]),m=!f&&!d.length&&!h?{header:a.default.noHeader}:{},y="function"==typeof c&&c;return r.default.createElement(i.default,{styles:m,title:f,menuItems:d,menuItemGroups:p,isSelected:t,isCollapsed:n,onCollapse:o,onExpand:s,onAction:this.handleAction},y?r.default.createElement(y,u({ref:this.userComponent},v)):c)}}t.default=f,c(f,"propTypes",{styles:o.default.object,title:o.default.string,index:o.default.number.isRequired,type:o.default.string.isRequired,component:o.default.oneOfType([o.default.node,o.default.func]).isRequired,isSelected:o.default.bool.isRequired,isCollapsed:o.default.bool.isRequired,onExpand:o.default.func,onCollapse:o.default.func,renderActions:o.default.func,menuItems:o.default.arrayOf(o.default.shape({title:o.default.string.isRequired})),menuItemGroups:o.default.arrayOf(o.default.shape({id:o.default.string.isRequired}))}),c(f,"defaultProps",{title:"",menuItems:[],menuItemGroups:[],styles:void 0,onExpand:void 0,onCollapse:void 0,renderActions:void 0})},function(e,t){e.exports={noHeader:"UserComponentPane_noHeader_30Vu3"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(97)),a=s(n(1763));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends r.default.PureComponent{render(){var e=this.props,t=e.isSelected,n=e.isCollapsed,o=e.onCollapse,s=e.onExpand,u=e.type;return r.default.createElement(i.default,{title:"Unknown pane type",index:this.props.index,isSelected:t,isCollapsed:n,onCollapse:o,onExpand:s},r.default.createElement("div",{className:a.default.root},r.default.createElement("p",null,u?r.default.createElement("span",null,"Structure item of type ",r.default.createElement("code",null,u)," is not a known entity."):r.default.createElement("span",null,"Structure item is missing required ",r.default.createElement("code",null,"type")," property."))))}}t.default=l,u(l,"propTypes",{type:o.default.string,isSelected:o.default.bool.isRequired,isCollapsed:o.default.bool.isRequired,onExpand:o.default.func,onCollapse:o.default.func,index:o.default.number}),u(l,"defaultProps",{type:void 0,onExpand:void 0,onCollapse:void 0})},function(e,t){e.exports={root:"UnknownPaneType_root_d9Jnq"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=k(n(45)),a=k(n(144)),s=k(n(43)),u=k(n(1)),l=k(n(0)),c=k(n(1765)),f=n(6),d=n(4),p=n(449),h=n(137),v=n(214),m=k(n(39)),y=k(n(8)),g=k(n(13)),b=k(n(1766)),_=k(n(1769)),w=k(n(1770)),O=k(n(1931));function k(e){return e&&e.__esModule?e:{default:e}}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function S(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function x(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){S(i,r,o,a,s,"next",e)}function s(e){S(i,r,o,a,s,"throw",e)}a(void 0)})}}function C(e){for(var t=1;t{"mutation"===e.type&&this.patchChannel.receivePatches({patches:e.patches,snapshot:e.document})}),P(this,"handleDelete",()=>{var e=this.props.options.id;g.default.observable.transaction().delete((0,v.getPublishedId)(e)).delete((0,v.getDraftId)(e)).commit().pipe((0,d.map)(e=>({type:"success",result:e})),(0,d.catchError)(e=>(0,f.of)({type:"error",message:"An error occurred while attempting to delete document.\n This usually means that you attempted to delete a document that other documents\n refers to.",error:e}))).subscribe(e=>{this.setStateIfMounted({transactionResult:e})})}),P(this,"handleClearTransactionResult",()=>{this.setStateIfMounted({transactionResult:null})}),P(this,"handleUnpublish",()=>{var e=this.props.options.id,t=this.state.published,n=g.default.observable.transaction().delete((0,v.getPublishedId)(e));t.snapshot&&(n=n.createIfNotExists(C({},(0,s.default)(t.snapshot,"_updatedAt"),{_id:(0,v.getDraftId)(e)}))),n.commit().pipe((0,d.map)(e=>({type:"success",result:e})),(0,d.catchError)(e=>(0,f.of)({type:"error",message:"An error occurred while attempting to unpublish document.\n This usually means that you attempted to unpublish a document that other documents\n refers to.",error:e}))).subscribe(e=>{this.setStateIfMounted({transactionResult:e})})}),P(this,"handlePublish",()=>{var e=this.props.options.id,t=this.state,n=t.draft,r=t.published;this.setState({isPublishing:!0});var o=g.default.observable.transaction();r&&r.snapshot?o.patch((0,v.getPublishedId)(e),{unset:["_reserved_prop_"],ifRevisionID:r.snapshot._rev}).createOrReplace(C({},(0,s.default)(n.snapshot,"_updatedAt"),{_id:(0,v.getPublishedId)(e)})):o.create(C({},(0,s.default)(n.snapshot,"_updatedAt"),{_id:(0,v.getPublishedId)(e)})),o.delete((0,v.getDraftId)(e)),o.commit().pipe((0,d.map)(e=>({type:"success",result:e})),(0,d.catchError)(e=>(0,f.of)({type:"error",message:"An error occurred while attempting to publishing document",error:e}))).subscribe({next:e=>{this.setState({transactionResult:e})},complete:()=>{this.setStateIfMounted({isPublishing:!1})}})}),P(this,"handleRestoreRevision",e=>{var t=this.props.options.id;this.setState({isRestoring:!0});var n=g.default.observable.transaction();n.createOrReplace(C({},(0,s.default)(e,"_updatedAt"),{_id:(0,v.getDraftId)(t)})),n.commit().pipe((0,d.map)(e=>({type:"success",result:e})),(0,d.catchError)(e=>(0,f.of)({type:"error",message:"An error occurred while attempting to restore the document",error:e}))).subscribe({next:e=>{this.setStateIfMounted({transactionResult:e})},complete:()=>{this.setStateIfMounted({isRestoring:!1})}})}),P(this,"handleChange",e=>{var t=this.state,n=t.published,r=t.draft,o=this.props.options.type;this.isLiveEditEnabled()?(this.published.createIfNotExists({_id:this.getPublishedId(),_type:o}),this.published.patch(e.patches)):(r.snapshot||this.draft.createIfNotExists(C({},(0,s.default)(n.snapshot,"_updatedAt"),{_id:this.getDraftId(),_type:o})),this.draft.patch(e.patches)),this.commit()}),P(this,"setStateIfMounted",function(){t._isMounted&&t.setState(...arguments)}),P(this,"commit",(0,a.default)(()=>{var e=this.isLiveEditEnabled()?this.published:this.draft;this.setStateIfMounted({isSaving:!0}),e.commit().subscribe({next:()=>{},error:e=>{},complete:()=>{this.setStateIfMounted({isSaving:!1})}})},1e3,{leading:!0,trailing:!0})),P(this,"handleRestoreDeleted",()=>{var e=this.state,t=e.draft,n=e.published,r=[];t.deletedSnapshot?(this.draft.createIfNotExists(t.deletedSnapshot),r.push(this.draft.commit())):n.deletedSnapshot&&(this.published.createIfNotExists(n.deletedSnapshot),r.push(this.published.commit())),r.forEach(e=>{e.subscribe({next:()=>{}})})}),this.setup(e.options.id)}setup(e){this.dispose();var t=(0,v.getPublishedId)(e),n=(0,v.getDraftId)(e),r=(0,h.checkoutPair)({publishedId:t,draftId:n}),o=r.published,a=r.draft;this.published=o,this.draft=a,this.validateLatestDocument=(0,i.default)((0,c.default)(this.validateDocument,300));var s=this.published.events,u=this.draft.events.pipe((0,d.tap)(this.receiveDraftEvent));this.subscription=(0,f.merge)(s.pipe((0,d.map)(e=>C({},e,{version:"published"}))),u.pipe((0,d.map)(e=>C({},e,{version:"draft"})))).pipe((0,d.switchMap)(e=>"reconnect"===e.type?(0,f.timer)(500).pipe((0,d.mapTo)(e)):(0,f.of)(e)),(0,d.catchError)((e,t)=>(console.error(e),(0,f.of)({type:"error",error:e})))).subscribe(e=>{this.setState(t=>{var n=e.version;return{isReconnecting:"reconnect"===e.type,validationPending:!0,error:"error"===e.type?e.error:null,[n]:C({},t[n]||{},T(e),{isLoading:!1})}},this.validateLatestDocument)})}getDraftId(){return(0,v.getDraftId)(this.props.options.id)}getPublishedId(){return(0,v.getPublishedId)(this.props.options.id)}componentDidUpdate(e){e.options.id!==this.props.options.id&&this.setup(this.props.options.id)}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1,this.commit.cancel(),this.draft.commit().subscribe(()=>{}),this.dispose()}isLiveEditEnabled(){return!0===m.default.get(this.props.options.type).liveEdit}dispose(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.validateLatestDocument&&(this.validateLatestDocument.cancel(),this.validateLatestDocument=null),this.published=null,this.draft=null}renderDeleted(){return l.default.createElement("div",{className:_.default.deletedDocument},l.default.createElement("div",{className:_.default.deletedDocumentInner},l.default.createElement("h3",null,"This document just got deleted"),l.default.createElement("p",null,"You can undo deleting it until you close this window/tab"),l.default.createElement(y.default,{onClick:this.handleRestoreDeleted},"Undo delete")))}renderError(e){return l.default.createElement("div",{className:_.default.error},l.default.createElement("div",{className:_.default.errorInner},l.default.createElement("h3",null,"We’re sorry, but your changes could not be applied."),l.default.createElement(O.default,{startWith:!1},t=>{var n=E(t,2),r=n[0],o=n[1];return l.default.createElement(l.default.Fragment,null,l.default.createElement(y.default,{onClick:()=>this.setup(this.props.options.id)},"Reload"),l.default.createElement(y.default,{inverted:!0,onClick:()=>o(!r)},r?"Hide":"Show"," details"),l.default.createElement("div",null,r&&l.default.createElement("textarea",{className:_.default.errorDetails,onFocus:e=>e.currentTarget.select(),value:e.stack})))})))}renderUnknownSchemaType(){var e=this.props.options,t=this.state,n=t.draft,r=t.published,o=e.type;n.snapshot||r.snapshot;return l.default.createElement("div",{className:_.default.unknownSchemaType},l.default.createElement("div",{className:_.default.unknownSchemaTypeInner},l.default.createElement("h3",null,"Unknown schema type"),l.default.createElement("p",null,"This document has the schema type ",l.default.createElement("code",null,o),", which is not defined as a type in the local content studio schema."),!1))}render(){var e=this.props,t=e.options,n=e.index,r=e.title,o=t.type,i=m.default.get(o),a=this.state,s=a.draft,u=a.published,c=a.markers,f=a.isCreatingDraft,d=a.isUnpublishing,p=a.transactionResult,h=a.isPublishing,v=a.isRestoring,y=a.isSaving,g=a.error,b=a.validationPending,_=a.isReconnecting;return i?function(e,t){return!function(e,t){return e.snapshot||t.snapshot}(e,t)&&(e.deletedSnapshot||t.deletedSnapshot)}(s,u)?this.renderDeleted():g?this.renderError(g):l.default.createElement(w.default,{title:r,paneIndex:n,patchChannel:this.patchChannel,type:i,published:u.snapshot,draft:s.snapshot,markers:c,validationPending:b,isLoading:s.isLoading||u.isLoading,isRestoring:v,isSaving:y,isReconnecting:_,isPublishing:h,isUnpublishing:d,transactionResult:p,isCreatingDraft:f,onDelete:this.handleDelete,onClearTransactionResult:this.handleClearTransactionResult,onPublish:this.handlePublish,onRestore:this.handleRestoreRevision,onUnpublish:this.handleUnpublish,onChange:this.handleChange}):this.renderUnknownSchemaType()}},P(r,"propTypes",{title:u.default.string,index:u.default.number.isRequired,options:u.default.shape({id:u.default.string.isRequired,type:u.default.string.isRequired}).isRequired}),P(r,"defaultProps",{title:null}),o));t.default=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=void 0,n=void 0,r=void 0,o=void 0;return function(){return t=e.apply(void 0,arguments),n||(n=new Promise(function(e,t){r=e,o=t})),t.then(function(e,o){e===t&&(n=null,r(o))}.bind(null,t),function(e,r){e===t&&(n=null,o(r))}.bind(null,t)),n}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n;return n=t=class extends r.default.PureComponent{constructor(e){super(e);var t=e.options,n=t.id,r=t.type;this.state={type:r||void 0},r||(this.subscription=i.default.observable.fetch("*[_id == $id][0]._type",{id:n}).subscribe(e=>this.setState({type:e})))}componentWillUnmount(){this.subscription&&this.subscription.unsubscribe()}render(){var t=this.state.type;return this.props.options.type?r.default.createElement(e,this.props):t?r.default.createElement(e,l({},this.props,{options:c({},this.props.options,{type:t})})):null===t?r.default.createElement(s.default,null,"Document with ID ",r.default.createElement("code",null,this.props.options.id)," not found"):r.default.createElement(a.default,this.props)}},f(t,"displayName","withDocumentType(".concat(e.displayName||e.name,")")),f(t,"propTypes",{isSelected:o.default.bool.isRequired,isCollapsed:o.default.bool.isRequired,onExpand:o.default.func,onCollapse:o.default.func,path:o.default.arrayOf(o.default.string),options:o.default.shape({id:o.default.string.isRequired,type:o.default.string}).isRequired}),f(t,"defaultProps",{path:[],onExpand:void 0,onCollapse:void 0}),n};var r=u(n(0)),o=u(n(1)),i=u(n(13)),a=u(n(583)),s=u(n(1767));function u(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t({action:"duplicate",title:"Duplicate",icon:_.default,isDisabled:r||!e&&!t}),$=(e,t,n,r)=>n?null:{action:"unpublish",title:"Unpublish…",icon:g.default,isDisabled:r||!t},Z=(e,t,n,r)=>({group:"danger",action:"delete",title:"Delete…",icon:m.default,danger:!0,isDisabled:r||!e&&!t}),X=(e,t,n,r)=>n?null:window&&window.innerWidth>512?{action:"browseHistory",title:"Browse history",icon:x.default,isDisabled:r||!(e||t)}:null,Q=(e,t)=>({action:"inspect",title:a.default.createElement("span",{className:B.default.menuItem},"Inspect"," ",a.default.createElement("span",{className:B.default.hotkey},a.default.createElement(T.default,{keys:["Ctrl","Alt","I"]}))),icon:b.default,isDisabled:!(e||t)}),ee=(e,t,n,r,o)=>{var i,s=e||t;if(!s||!P.default)return null;try{i=(0,P.default)(s,o&&o.rev)}catch(e){return e.message="An error was thrown while trying to get production preview url: ".concat(e.message),console.error(e),null}return i&&{action:"production-preview",title:a.default.createElement("span",{className:B.default.menuItem},"Open preview",a.default.createElement("span",{className:B.default.hotkey},a.default.createElement(T.default,{keys:["Ctrl","Alt","O"]}))),icon:y.default,url:i}},te=(e,t,n,r,o,i)=>[ee,e.includes("delete")&&$,e.includes("create")&&J,X,Q,e.includes("delete")&&Z].filter(Boolean).map(e=>e(t,n,r,o,i)).filter(Boolean),ne=e=>"validation"===e.type&&"error"===e.level,re={isOpen:!1,isLoading:!0,error:!1,events:[],selectedRev:null},oe={inspect:!1,isMenuOpen:!1,isCreatingDraft:!1,showSavingStatus:!1,showConfirmDelete:!1,showConfirmUnpublish:!1,showValidationTooltip:!1,focusPath:[],historyState:re,filterField:()=>!0},ie=(0,l.withRouterHOC)((o=r=class extends a.default.PureComponent{constructor(){super(...arguments),G(this,"state",oe),G(this,"setSavingStatus",(0,i.default)(()=>{this.setState({showSavingStatus:!1})},1500,{trailing:!0})),G(this,"handleFocus",e=>{this.setState({focusPath:e})}),G(this,"handleBlur",()=>{}),G(this,"handleCreateCopy",()=>{var e=this.props,t=e.router,n=e.draft,r=e.published,o=e.paneIndex,i=(0,f.getPublishedId)((n||r)._id),a=["_createdAt","_updatedAt"],s=this.isLiveEditEnabled()?(0,A.default)(r,{omit:a}):(0,f.newDraftFrom)((0,A.default)(n||r,{omit:a}));this.duplicate$=w.default.create(s).subscribe(e=>{var n=(0,f.getPublishedId)(e._id);if(t.state.panes){var r=t.state.panes.map((e,t)=>t===o-1&&e===i?n:e);t.navigate(Y({},t.state,{panes:r}))}else{if(!t.state.editDocumentId)throw new Error("Unknown router state");t.navigate(Y({},t.state,{editDocumentId:n}))}})}),G(this,"handleEditAsActualType",()=>{var e=this.props,t=e.router,n=e.draft,r=e.published;t.navigateIntent("edit",{id:(0,f.getPublishedId)((n||r)._id),type:n._type||r._type})}),G(this,"handleChange",e=>{(0,this.props.onChange)(e)}),G(this,"handleMenuToggle",e=>{e.stopPropagation(),this.setState(e=>({isMenuOpen:!e.isMenuOpen}))}),G(this,"handlePublishRequested",()=>{var e=this.props,t=e.markers,n=e.validationPending,r=e.onPublish,o=e.draft;if(o){var i=t.filter(ne).length>0;n||i?this.setState(e=>({showValidationTooltip:!e.showValidationTooltip})):r(o)}}),G(this,"handleCancelUnpublish",()=>{this.setState({showConfirmUnpublish:!1})}),G(this,"handleCancelDelete",()=>{this.setState({showConfirmDelete:!1})}),G(this,"handleConfirmUnpublish",()=>{(0,this.props.onUnpublish)(),this.setState({showConfirmUnpublish:!1})}),G(this,"handleConfirmHistoryRestore",()=>{var e=this.props.onRestore,t=this.findSelectedEvent();t&&d.default.getDocumentAtRevision(t.displayDocumentId,t.rev).then(t=>{e(t),this.setHistoryState({selected:null,isOpen:!1})})}),G(this,"handleConfirmDelete",()=>{(0,this.props.onDelete)(),this.setState({showConfirmDelete:!1})}),G(this,"handleHideInspector",()=>{this.setState({inspect:!1})}),G(this,"handleMenuAction",e=>{"production-preview"===e.action&&K(e.url),"delete"===e.action&&this.setState({showConfirmDelete:!0}),"unpublish"===e.action&&this.setState({showConfirmUnpublish:!0}),"duplicate"===e.action&&this.handleCreateCopy(),"inspect"===e.action&&this.setState({inspect:!0}),"browseHistory"===e.action&&this.handleOpenHistory(),this.setState({isMenuOpen:!1})}),G(this,"handleCloseValidationResults",()=>{this.setState({showValidationTooltip:!1})}),G(this,"handleToggleValidationResults",()=>{this.setState(e=>({showValidationTooltip:!e.showValidationTooltip}))}),G(this,"renderPublishButtonTooltip",(e,t)=>e.length>0?a.default.createElement("span",null,"Fix errors before publishing"):a.default.createElement("span",{className:B.default.menuItem},t?"Publish changes":"Publish",e.length<1&&a.default.createElement("span",{className:B.default.hotkey},a.default.createElement(T.default,{keys:["Ctrl","Alt","P"]})))),G(this,"renderActions",()=>{var e=this.props,t=e.draft,n=e.published,r=e.markers,o=e.type,i=e.isReconnecting,s=this.state,u=s.historyState,l=s.handleFocus,c=s.showSavingStatus,f=s.showValidationTooltip;return u.isOpen?null:a.default.createElement(z.default,{handleFocus:l,value:t||n,markers:r,type:o,isLiveEditEnabled:this.isLiveEditEnabled(),isReconnecting:i,showSavingStatus:c,showValidationTooltip:f,onCloseValidationResults:this.handleCloseValidationResults,onToggleValidationResults:this.handleToggleValidationResults,onFocus:this.handleFocus})}),G(this,"renderPublishInfo",()=>{var e=this.props,t=e.draft,n=e.isCreatingDraft,r=e.isPublishing,o=e.isReconnecting,i=e.isRestoring,s=e.isUnpublishing,l=e.markers,c=e.published,f=l.filter(e=>"validation"===e.type).filter(e=>"error"===e.level);return a.default.createElement(a.default.Fragment,null,(n||r||s||i)&&a.default.createElement("div",{className:B.default.spinnerContainer},n&&a.default.createElement(h.default,{center:!0,message:"Making changes…"}),r&&a.default.createElement(h.default,{center:!0,message:"Publishing…"}),s&&a.default.createElement(h.default,{center:!0,message:"Unpublishing…"}),i&&a.default.createElement(h.default,{center:!0,message:"Restoring changes…"})),a.default.createElement(u.Tooltip,{arrow:!0,theme:"light",disabled:"ontouchstart"in document.documentElement,className:B.default.publishButton,html:this.renderPublishButtonTooltip(f,c)},a.default.createElement(v.default,{disabled:o||!t||f.length>0,onClick:this.handlePublishRequested,color:"primary"},"Publish")),a.default.createElement("div",{className:B.default.publishInfoUndoButton},!c&&a.default.createElement(v.default,{kind:"simple",onClick:()=>this.setState({showConfirmDelete:!0})},"Delete document")))}),G(this,"renderHistoryInfo",()=>{var e=this.props.isReconnecting,t=this.state.historyState,n=this.findSelectedEvent(),r=t.events[0]===n;return a.default.createElement(W.default,{disabled:e||!t.isOpen||r,onRestore:this.handleConfirmHistoryRestore})}),G(this,"setHistoryState",e=>{this.setState(t=>({historyState:Y({},t.historyState,e)}))}),G(this,"handleOpenHistory",()=>{if(!this.state.historyState.isOpen){var e=this.props,t=e.draft,n=e.published;this.setHistoryState(Y({},re,{isOpen:!0}));var r=d.default.historyEventsFor((0,f.getPublishedId)((t||n)._id)).pipe((0,q.map)((e,t)=>(0===t&&this.setHistoryState({isLoading:!1,selectedRev:e[0].rev}),this.setHistoryState({events:e}),e)));this._historyEventsSubscription=r.subscribe()}}),G(this,"handleCloseHistory",()=>{this._historyEventsSubscription.unsubscribe(),this.setHistoryState({isOpen:!1,historyEvent:void 0})}),G(this,"renderStaticContent",()=>{var e=this.props.draft;return a.default.createElement("div",{className:!e&&!this.state.historyState.isOpen||this.isLiveEditEnabled()?B.default.publishInfoHidden:B.default.publishInfo},this.state.historyState.isOpen&&this.renderHistoryInfo(),!this.state.historyState.isOpen&&e&&this.renderPublishInfo())}),G(this,"handleHistorySelect",e=>{this.setHistoryState({selectedRev:e.rev})})}componentDidMount(){this.unlistenForKey=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.addEventListener(t,n,r),function(){e.removeEventListener(t,n,r)}}(window,"keyup",e=>{if("Escape"===e.code&&this.state.showValidationTooltip)this.setState({showValidationTooltip:!1});else if(this.state.historyState.isOpen||!e.ctrlKey||"KeyI"!==e.code||!e.altKey||e.shiftKey){if(e.ctrlKey&&"KeyP"===e.code&&e.altKey&&!e.shiftKey)this.handlePublishRequested();else if(e.ctrlKey&&"KeyO"===e.code&&e.altKey&&!e.shiftKey){var t=this.props,n=t.draft,r=t.published,o=ee(n||r);o&&o.url&&K(o.url)}}else this.setState(e=>({inspect:!e.inspect}))}),M.default&&(this.filterFieldFnSubscription=M.default.subscribe(e=>this.setState({filterField:e})))}componentWillUnmount(){this.unlistenForKey(),this.setSavingStatus.cancel(),this.filterFieldFnSubscription&&this.filterFieldFnSubscription.unsubscribe(),this.duplicate$&&this.duplicate$.unsubscribe(),this._historyEventsSubscription&&this._historyEventsSubscription.unsubscribe()}UNSAFE_componentWillReceiveProps(e){this.setState({didPublish:this.props.isPublishing&&!e.isPublishing}),this.props.isSaving&&!e.isSaving&&(this.setState({showSavingStatus:!0}),this.setSavingStatus())}isLiveEditEnabled(){return!0===O.default.get(this.props.type.name).liveEdit}getTitle(e){var t=this.props,n=t.title,r=t.type,o=this.state.historyState;return n?a.default.createElement("span",null,n):o.isOpen?a.default.createElement(a.default.Fragment,null,"History of"," ",a.default.createElement(c.PreviewFields,{document:e,type:r,fields:["title"]},e=>{var t=e.title;return t?a.default.createElement("em",null,t):a.default.createElement("em",null,"Untitled")})):e?a.default.createElement(c.PreviewFields,{document:e,type:r,fields:["title"]},e=>{var t=e.title;return t?a.default.createElement("span",null,t):a.default.createElement("em",null,"Untitled")}):"Creating new ".concat(r.title||r.name)}findSelectedEvent(){var e=this.state.historyState,t=e.events,n=e.selectedRev;return t.find(e=>e.rev===n||e.transactionIds.includes(n))}renderForm(){var e=this.props,t=e.type,n=e.markers,r=e.draft,o=e.published,i=e.patchChannel,s=this.state,u=s.historyState,l=s.focusPath,c=s.filterField,f=s.isReconnecting,d=this.findSelectedEvent();return u.isOpen&&!u.isLoading&&d?a.default.createElement(H.default,{isLatest:d===u.events[0],event:d,schema:O.default,type:t}):a.default.createElement(U.default,{draft:r,filterField:c,focusPath:l,isLiveEditEnabled:this.isLiveEditEnabled(),markers:n,onBlur:this.handleBlur,onChange:this.handleChange,onFocus:this.handleFocus,onShowHistory:this.handleOpenHistory,patchChannel:i,published:o,readOnly:f||!(0,p.isActionEnabled)(t,"update"),schema:O.default,type:t,value:r||o||{_type:t.name}})}render(){var e=this.props,t=e.draft,n=e.published,r=e.type,o=e.isLoading,i=e.isReconnecting,s=e.transactionResult,u=e.onClearTransactionResult,l=this.state,c=l.inspect,d=l.showConfirmDelete,m=l.showConfirmUnpublish,y=l.didPublish,g=l.historyState,b=t||n;if(o)return a.default.createElement("div",{className:B.default.loading},a.default.createElement(h.default,{center:!0,message:"Loading ".concat(r.title,"…"),delay:600}));if(b&&b._type&&b._type!==r.name)return a.default.createElement("div",{className:B.default.typeMisMatchMessage},"This document is of type ",a.default.createElement("code",null,b._type)," and cannot be edited as"," ",a.default.createElement("code",null,r.name),a.default.createElement("div",null,a.default.createElement(v.default,{onClick:this.handleEditAsActualType},"Edit as ",b._type," instead")));var _=(0,p.resolveEnabledActions)(r);return a.default.createElement("div",{className:g.isOpen?B.default.paneWrapperWithHistory:B.default.paneWrapper},g.isOpen&&a.default.createElement(L.default,{documentId:(0,f.getPublishedId)(b._id),onClose:this.handleCloseHistory,onItemSelect:this.handleHistorySelect,lastEdited:b&&new Date(b._updatedAt),published:n,draft:t,events:g.events,isLoading:g.isLoading,error:g.error,selectedEvent:this.findSelectedEvent()}),a.default.createElement(k.default,{styles:this.props.paneStyles,index:this.props.index,title:this.getTitle(b),onAction:this.handleMenuAction,menuItems:te(_,t,n,this.isLiveEditEnabled(),g.isOpen,g.isOpen&&this.findSelectedEvent()),renderActions:this.renderActions,onMenuToggle:this.handleMenuToggle,isSelected:!0,staticContent:this.renderStaticContent(),contentMaxWidth:672,minSize:g.isOpen&&1e3},a.default.createElement("div",{className:B.default.pane},this.renderForm(),E.default.map((e,t)=>a.default.createElement(e,{key:t,documentId:n._id})),c&&g.isOpen&&a.default.createElement(R.default,{id:b._id,event:this.findSelectedEvent(),onClose:this.handleHideInspector}),c&&(!g||!g.isOpen)&&a.default.createElement(N.default,{value:b,onClose:this.handleHideInspector}),d&&a.default.createElement(I.default,{draft:t,published:n,onCancel:this.handleCancelDelete,onConfirm:this.handleConfirmDelete}),m&&a.default.createElement(D.default,{draft:t,published:n,onCancel:this.handleCancelUnpublish,onConfirm:this.handleConfirmUnpublish}),i&&a.default.createElement(C.default,{kind:"warning"},a.default.createElement(j.default,null)," Connection lost. Reconnecting…"),y&&a.default.createElement(C.default,{kind:"success",timeout:4,onHide:()=>this.setState({didPublish:!1})},a.default.createElement(S.default,null)," You just published"," ",a.default.createElement("em",null,a.default.createElement(F.default,{document:t||n}))),s&&"error"===s.type&&a.default.createElement(C.default,{kind:"danger",action:{title:"Ok, got it"},onAction:u},a.default.createElement("div",null,s.message,a.default.createElement("details",null,s.error.message))))))}},G(r,"propTypes",{title:s.default.string,paneIndex:s.default.number.isRequired,index:s.default.number,paneStyles:s.default.object,patchChannel:s.default.object,draft:s.default.object,published:s.default.object,type:s.default.object.isRequired,markers:s.default.arrayOf(s.default.shape({path:s.default.array})),router:s.default.shape({state:s.default.object,navigate:s.default.func,navigateIntent:s.default.func}).isRequired,onDelete:s.default.func,onChange:s.default.func,onPublish:s.default.func,onRestore:s.default.func,onUnpublish:s.default.func,transactionResult:s.default.shape({type:s.default.string,error:s.default.object,message:s.default.string}),onClearTransactionResult:s.default.func,validationPending:s.default.bool,isCreatingDraft:s.default.bool,isUnpublishing:s.default.bool,isPublishing:s.default.bool,isReconnecting:s.default.bool,isRestoring:s.default.bool,isLoading:s.default.bool,isSaving:s.default.bool}),G(r,"defaultProps",{title:null,markers:[],isLoading:!1,isSaving:!1,isUnpublishing:!1,isPublishing:!1,isReconnecting:!1,isRestoring:!1,isCreatingDraft:!1,transactionResult:null,onDelete(){},onChange(){},onClearTransactionResult(){}}),o));t.default=ie},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{getDocumentAtRevision:h,getHistory:p,getTransactions:v,historyEventsFor:m}};var r,o=(r=n(13))&&r.__esModule?r:{default:r},i=n(6),a=n(1773),s=n(4),u=n(561);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=Object.create(null),f=(e,t)=>(e[t.id]?(e[t.id].mutations=e[t.id].mutations.concat(t.mutations),e[t.id].timestamp=t.timestamp):e[t.id]=t,e),d=e=>e.toString("utf8").split("\n").filter(Boolean).map(e=>JSON.parse(e)),p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Array.isArray(e)?e:[e],r=t.time,i=t.revision;if(r&&i)throw new Error("getHistory can't handle both time and revision parameters");var a=o.default.clientConfig.dataset,s="/data/history/".concat(a,"/documents/").concat(n.join(","));if(i)s="".concat(s,"?revision=").concat(i);else{var u=r||(new Date).toISOString();s="".concat(s,"?time=").concat(u)}return o.default.request({url:s})},h=(e,t)=>{var n="".concat(e,"@").concat(t);if(!(n in c)){var r=o.default.clientConfig.dataset,i="/data/history/".concat(r,"/documents/").concat(e,"?revision=").concat(t);c[n]=o.default.request({url:i}).then(e=>e.documents[0])}return c[n]},v=e=>{var t=Array.isArray(e)?e:[e],n=o.default.clientConfig.dataset,r="/data/history/".concat(n,"/transactions/").concat(t.join(","),"?excludeContent=true");return o.default.request({url:r}).then(d)};function m(e){var t=[(0,u.getDraftId)(e),(0,u.getPublishedId)(e)],n=(0,i.from)(v(t)).pipe((0,s.mergeMap)(e=>(0,i.from)(e)),(0,s.map)(e=>({author:e.author,documentIDs:t,id:e.id,mutations:e.mutations,timestamp:e.timestamp})),(0,s.reduce)(f,{})),r=o.default.observable.listen("*[_id in $documentIds]",{documentIds:t}).pipe((0,s.map)(e=>({author:e.identity,documentIDs:t,id:e.transactionId,mutations:e.mutations,timestamp:e.timestamp})),(0,s.scan)(f,{}));return(0,i.merge)(r,n).pipe((0,s.scan)((e,t)=>(function(e){for(var t=1;t(0,a.transactionsToEvents)(t,Object.keys(e).map(t=>e[t])).reverse()))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1774);t.transactionsToEvents=r.transactionsToEvents,t.default={transactionsToEvents:t.transactionsToEvents}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(38),o=n(1775),i=3e5;function a(e,t,n,o){const a=o[n+1];return"edited"===t.type&&a&&"edited"===a.type&&new Date(a.endTime).getTime()-new Date(t.endTime).getTime()void 0===e.patch),r=n.find(e=>void 0!==e.createOrReplace),o=r&&r.createOrReplace,i=n.find(e=>void 0!==e.create),a=i&&i.create,s=n.find(e=>void 0!==e.createIfNotExists),u=s&&s.createIfNotExists,l=n.find(e=>void 0!==e.delete),c=l&&l.delete,f=n.find(e=>void 0!==e.createSquashed),d=f&&f.createSquashed,p=o||a||u;if(0===t){const e="created";if(o)return{type:e,documentId:o._id};if(u)return{type:e,documentId:u._id};if(a)return{type:e,documentId:a._id}}if(t>0&&1===e.length&&u){return{type:u._id.startsWith(".draft")?"edited":"published",documentId:u._id}}if((o||a||u)&&c&&c.id.startsWith("drafts."))return{type:"published",documentId:p&&p._id||null};if(2===n.length&&(u||a)&&c&&!c.id.startsWith("drafts."))return{type:"unpublished",documentId:p&&p._id||null};if(o&&o._id.startsWith("drafts.")||a&&a._id.startsWith("drafts.")||u&&u._id.startsWith("drafts."))return{type:"edited",documentId:p&&p._id||null};if(1===e.length&&c&&c.id.startsWith("drafts."))return{type:"discardDraft",documentId:c.id.replace("drafts.","")};if(1===e.length&&d)return{type:"truncated",documentId:d.document._id};if(e.every(e=>void 0!==e.delete))return{type:"deleted",documentId:null};const h=e.find(e=>void 0!==e.patch);return h&&h.patch?{type:"edited",documentId:h.patch.id}:o?{type:"edited",documentId:o._id}:{type:"unknown",documentId:null}}function u(e,t){return new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime()}t.transactionsToEvents=function(e,t){return(Array.isArray(t)?t:o.ndjsonToArray(t)).filter(t=>t.documentIDs&&t.documentIDs.some(t=>e.includes(t))).sort(u).map((t,n)=>(function(e,t,n=0){const{type:r,documentId:o}=s(function(e,t){return e.filter(e=>Object.keys(e).map(t=>{const n=e[t];return n.id||n._id||n.document&&n.document._id||!1}).some(e=>e&&t.includes(e)))}(e.mutations,t),n),i=e.timestamp,a=function(e,t){if("truncated"===t){const t=e.mutations.find(e=>void 0!==e.createSquashed),n=t&&t.createSquashed;if(n)return n.authors}return[e.author]}(e,r);return{type:r,documentIDs:e.documentIDs,displayDocumentId:o,rev:e.id,userIds:a,transactionIds:[e.id],startTime:i,endTime:i}})(t,e,n)).filter(e=>"discardDraft"!==e.type).reduce(a,[]).reduce(function(){let e;return(t,n,r,o)=>{if((e=e||o.filter(e=>"truncated"===e.type)).includes(n)||t.push(n),r===o.length-1){const n=e.find(e=>!!e.displayDocumentId&&e.displayDocumentId.startsWith("drafts.")),r=e.find(e=>!!e.displayDocumentId&&!e.displayDocumentId.startsWith("drafts."));n&&r?(t.unshift(Object.assign({},n,{type:"edited"})),t.unshift(r)):r?t.unshift(r):n&&t.unshift(n)}return t}}(),[])},t.mutationsToEventTypeAndDocumentId=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ndjsonToArray=function(e){return e.toString("utf8").split("\n").filter(Boolean).map(e=>JSON.parse(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(1777))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=["_id"].concat(t.omit);return s((0,r.default)(e,n),t)};var r=i(n(43)),o=i(n(20));function i(e){return e&&e.__esModule?e:{default:e}}var a=["number","string","boolean"];function s(e,t){if(Array.isArray(e))return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.map(e=>s(e,t)).filter(Boolean)}(e,t);var n,r=typeof e;return a.includes(r)?e:e&&(0,o.default)(e)?function(e){return"reference"===e._type||!("_type"in e)&&"_ref"in e}(e)?t.excludeReferences?void 0:(n=e,Object.assign({},n)):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((n,r)=>(n[r]=s(e[r],t),n),{})}(e,t):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=d(n(1)),a=d(n(0)),s=d(n(32)),u=d(n(26)),l=d(n(592)),c=d(n(215)),f=d(n(593));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(0,l.default)((o=r=class extends a.default.PureComponent{constructor(){super(...arguments),p(this,"handleAction",e=>{var t=this.props,n=t.onCancel,r=t.onConfirm;"confirm"===e.name&&r(),"cancel"===e.name&&n()})}render(){var e=this.props,t=e.isCheckingReferringDocuments,n=e.referringDocuments,r=e.draft,o=e.published,i=e.onCancel,l=n.length>0,d=[!t&&{name:"confirm",title:l?"Try to unpublish anyway":"Unpublish now"},{name:"cancel",title:"Cancel",kind:"simple"}].filter(Boolean),p=t?"Checking…":"Confirm unpublish";return a.default.createElement(s.default,{isOpen:!0,showHeader:!0,centered:!0,title:p,onClose:i,onAction:this.handleAction,actions:d},t&&a.default.createElement(u.default,{message:"Looking for referring documents…"}),l&&a.default.createElement("div",null,a.default.createElement("h3",null,"Warning: Found"," ",1===n.length?"a document":"".concat(n.length," documents")," ","that refers to ",'"',a.default.createElement(c.default,{document:r||o}),'"'),a.default.createElement("p",null,"You may not be allowed to unpublish",' "',a.default.createElement(c.default,{document:r||o}),'" ',"as the following document",1===n.length?"":"s"," refers to it:"),a.default.createElement(f.default,{documents:n})),!t&&!l&&a.default.createElement("div",null,a.default.createElement("p",null,"Are you sure you would like to unpublish the document"," ",a.default.createElement("strong",null,a.default.createElement(c.default,{document:r||o})),"?"),a.default.createElement("h2",null,"Careful!"),a.default.createElement("p",null,"If you unpublish, this document will no longer be available for the public, but it will not be deleted and can be published again later if you change your mind.")))}},p(r,"propTypes",{onCancel:i.default.func.isRequired,onConfirm:i.default.func.isRequired,published:i.default.object,draft:i.default.object,referringDocuments:i.default.array,isCheckingReferringDocuments:i.default.bool}),o));t.default=h},function(e,t){e.exports={root:"ReferringDocumentsList_root_2h2QI DefaultList_root_8B-Db",item:"ReferringDocumentsList_item_1zpJ- DefaultListItem_lineBetween_3avII DefaultListItem_root_2MZTj",link:"ReferringDocumentsList_link_3XeuN"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=d(n(1)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),s=d(n(32)),u=d(n(26)),l=d(n(592)),c=d(n(215)),f=d(n(593));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(0,l.default)((o=r=class extends a.default.PureComponent{constructor(){super(...arguments),p(this,"handleAction",e=>{var t=this.props,n=t.onCancel,r=t.onConfirm;"confirm"===e.name&&r(),"cancel"===e.name&&n()})}render(){var e=this.props,t=e.isCheckingReferringDocuments,n=e.referringDocuments,r=e.draft,o=e.published,i=n.length>0,l=[!t&&{name:"confirm",title:i?"Try to delete anyway":"Delete now",color:"danger"},{name:"cancel",title:"Cancel",kind:"simple"}].filter(Boolean),d=t?"Checking…":"Confirm delete";return a.default.createElement(s.default,{isOpen:!0,showHeader:!0,color:"danger",centered:!0,title:d,onAction:this.handleAction,actions:l},t&&a.default.createElement(u.default,{message:"Looking for referring documents…"}),i&&a.default.createElement("div",null,a.default.createElement("h3",null,"Warning: Found"," ",1===n.length?"a document":"".concat(n.length," documents")," ","that refers to ",'"',a.default.createElement(c.default,{document:r||o}),'"'),a.default.createElement("p",null,"You may not be allowed to delete",' "',a.default.createElement(c.default,{document:r||o}),'" ',"as the following document",1===n.length?"":"s"," refers to it:"),a.default.createElement(f.default,{documents:n})),!t&&!i&&a.default.createElement(a.Fragment,null,a.default.createElement("h3",null,"Are you sure you would like to permanently delete the document",a.default.createElement("strong",null," “",a.default.createElement(c.default,{document:r||o}),"”"),"?")))}},p(r,"propTypes",{onCancel:i.default.func.isRequired,onConfirm:i.default.func.isRequired,published:i.default.object,draft:i.default.object,referringDocuments:i.default.array,isCheckingReferringDocuments:i.default.bool}),o));t.default=h},function(e,t){},function(e,t){e.exports={content:"InspectView_content_1xV1t",toolbar:"InspectView_toolbar_3F-nm",raw:"InspectView_raw_1YjmF"}},function(e,t,n){var r=n(0),o=n(216),i=n(1),a=n(1795),s=r.createElement,u=n(1797),l=n(1801),c=n(1802),f=n(597),d=n(1804),p=n(596);e.exports=o({propTypes:{data:i.any.isRequired,search:i.oneOfType([i.func,i.bool]),searchOptions:i.shape({debounceTime:i.number}),onClick:i.func,validateQuery:i.func,isExpanded:i.func,filterOptions:i.shape({cacheResults:i.bool,ignoreCase:i.bool}),query:i.string,verboseShowOriginal:i.bool},getDefaultProps:function(){return{data:null,search:l,searchOptions:{debounceTime:0},className:"",id:"json-"+Date.now(),onClick:p,filterOptions:{cacheResults:!0,ignoreCase:!1},validateQuery:function(e){return e.length>=2},isExpanded:function(e,t){return!1},verboseShowOriginal:!1}},getInitialState:function(){return{query:this.props.query||""}},render:function(){var e=this.props,t=this.state,n=""!==t.query&&e.validateQuery(t.query),r=n?t.filterer(t.query):e.data,o=n&&f(r);return s("div",{className:"json-inspector "+e.className},this.renderToolbar(),o?s("div",{className:"json-inspector__not-found"},"Nothing found"):s(u,{data:r,onClick:e.onClick,id:e.id,getOriginal:this.getOriginal,query:n?new RegExp(t.query,e.filterOptions.ignoreCase?"i":""):null,label:"root",root:!0,isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel,verboseShowOriginal:e.verboseShowOriginal}))},renderToolbar:function(){var e=this.props.search;if(e)return s("div",{className:"json-inspector__toolbar"},s(e,{onChange:a(this.search,this.props.searchOptions.debounceTime),data:this.props.data,query:this.state.query}))},search:function(e){this.setState({query:e})},componentWillMount:function(){this.createFilterer(this.props.data,this.props.filterOptions)},componentWillReceiveProps:function(e){this.createFilterer(e.data,e.filterOptions),"string"==typeof e.query&&e.query!==this.state.query&&this.setState({query:e.query})},shouldComponentUpdate:function(e,t){return e.query!==this.props.query||t.query!==this.state.query||e.data!==this.props.data||e.onClick!==this.props.onClick},createFilterer:function(e,t){this.setState({filterer:c(e,t)})},getOriginal:function(e){return d(this.props.data,e)}})},function(e,t,n){"use strict";var r=n(14),o=n(1793),i=n(1794),a="mixins";e.exports=function(e,t,n){var s=[],u={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},l={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},c={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n0?o=setTimeout(l,t-c):(o=null,n||(u=e.apply(a,i),o||(a=i=null)))}return null==t&&(t=100),function(){a=this,i=arguments,s=r();var c=n&&!o;return o||(o=setTimeout(l,t)),c&&(u=e.apply(a,i),a=i=null),u}}},function(e,t){e.exports=Date.now||function(){return(new Date).getTime()}},function(e,t,n){var r=n(0),o=n(216),i=n(1798),a=n(1799),s=n(334),u=n(595),l=n(1800),c=r.createElement,f=o({getInitialState:function(){return{expanded:this._isInitiallyExpanded(this.props)}},getDefaultProps:function(){return{root:!1,prefix:""}},render:function(){var e="id_"+a(),t=this.props,n={path:this.keypath(),key:t.label.toString(),value:t.data},r=this._onClick.bind(this,n);return c("div",{className:this.getClassName(),id:"leaf-"+this._rootPath()},c("input",{className:"json-inspector__radio",type:"radio",name:t.id,id:e,tabIndex:-1}),c("label",{className:"json-inspector__line",htmlFor:e,onClick:r},c("div",{className:"json-inspector__flatpath"},n.path),c("span",{className:"json-inspector__key"},this.format(n.key),":",this.renderInteractiveLabel(n.key,!0)),this.renderTitle(),this.renderShowOriginalButton()),this.renderChildren())},renderTitle:function(){var e=this.data(),t=s(e);switch(t){case"Array":return c("span",{className:"json-inspector__value json-inspector__value_helper"},"[] "+d(e.length));case"Object":return c("span",{className:"json-inspector__value json-inspector__value_helper"},"{} "+d(Object.keys(e).length));default:return c("span",{className:"json-inspector__value json-inspector__value_"+t.toLowerCase()},this.format(String(e)),this.renderInteractiveLabel(e,!1))}},renderChildren:function(){var e=this.props,t=this._rootPath(),n=this.data();return this.state.expanded&&!u(n)?Object.keys(n).map(function(r){var o=n[r],i=!this.state.original||!!e.verboseShowOriginal&&e.query;return c(f,{data:o,label:r,prefix:t,onClick:e.onClick,id:e.id,query:e.query,getOriginal:i?e.getOriginal:null,key:p(r,o),isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel,verboseShowOriginal:e.verboseShowOriginal})},this):null},renderShowOriginalButton:function(){var e=this.props;return u(e.data)||this.state.original||!e.getOriginal||!e.query||h(this.keypath(),e.query)?null:c("span",{className:"json-inspector__show-original",onClick:this._onShowOriginalClick})},renderInteractiveLabel:function(e,t){return"function"==typeof this.props.interactiveLabel?c(this.props.interactiveLabel,{value:String(e),originalValue:e,isKey:t,keypath:this.keypath()}):null},componentWillReceiveProps:function(e){e.query&&this.setState({expanded:!h(e.label,e.query)}),this.props.query&&!e.query&&this.setState({expanded:this._isInitiallyExpanded(e)})},_rootPath:function(){return this.props.prefix+"."+this.props.label},keypath:function(){return this._rootPath().substr(".root.".length)},data:function(){return this.state.original||this.props.data},format:function(e){return c(l,{string:e,highlight:this.props.query})},getClassName:function(){var e="json-inspector__leaf";return this.props.root&&(e+=" json-inspector__leaf_root"),this.state.expanded&&(e+=" json-inspector__leaf_expanded"),u(this.props.data)||(e+=" json-inspector__leaf_composite"),e},toggle:function(){this.setState({expanded:!this.state.expanded})},_onClick:function(e,t){this.toggle(),this.props.onClick(e),t.stopPropagation()},_onShowOriginalClick:function(e){this.setState({original:this.props.getOriginal(this.keypath())}),e.stopPropagation()},_isInitiallyExpanded:function(e){var t=this.keypath();return!!e.root||(e.query?!h(t,e.query)&&"function"==typeof e.getOriginal:e.isExpanded(t,e.data))}});function d(e){return e+(1===e?" item":" items")}function p(e,t){return u(t)?e+":"+i(String(t)):e+"["+s(t)+"]"}function h(e,t){return-1!==e.indexOf(t)}e.exports=f},function(e,t,n){"use strict";e.exports=function(e){for(var t=function(e){var t,n=1+(e.length+8>>6),r=new Array(16*n);for(t=0;t<16*n;t++)r[t]=0;for(t=0;t>2]|=e.charCodeAt(t)<<(8*e.length+t)%4*8;r[t>>2]|=128<<(8*e.length+t)%4*8;var o=8*e.length;return r[16*n-2]=255&o,r[16*n-2]|=(o>>>8&255)<<8,r[16*n-2]|=(o>>>16&255)<<16,r[16*n-2]|=(o>>>24&255)<<24,r}(e),n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a>>1|t>>>1)<<1|(1&e|1&t)}function i(e,t){return(e>>>1^t>>>1)<<1|1&e^1&t}function a(e,t){return(e>>>1&t>>>1)<<1|1&e&t}function s(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function u(e){var t,n="";for(t=0;t<=3;t++)n+=r.charAt(e>>8*t+4&15)+r.charAt(e>>8*t&15);return n}function l(e,t,n,r,o,i){return s((a=s(s(t,e),s(r,i)))<<(u=o)|a>>>32-u,n);var a,u}function c(e,t,n,r,i,s,u){return l(o(a(t,n),a(~t,r)),e,t,i,s,u)}function f(e,t,n,r,i,s,u){return l(o(a(t,r),a(n,~r)),e,t,i,s,u)}function d(e,t,n,r,o,a,s){return l(i(i(t,n),r),e,t,o,a,s)}function p(e,t,n,r,a,s,u){return l(i(n,o(t,~r)),e,t,a,s,u)}},function(e,t){var n=Math.ceil(10*Math.random());e.exports=function(){return++n}},function(e,t,n){var r=n(0),o=n(216),i=r.createElement;e.exports=o({getDefaultProps:function(){return{string:"",highlight:""}},shouldComponentUpdate:function(e){return e.highlight!==this.props.highlight},render:function(){var e=this.props,t=e.string.search(e.highlight);if(!e.highlight||-1===t)return i("span",null,e.string);var n=e.highlight.source.length,r=e.string.substr(t,n);return i("span",null,e.string.split(e.highlight).map(function(e,t){return i("span",{key:t},t>0?i("span",{className:"json-inspector__hl"},r):null,e)}))}})},function(e,t,n){var r=n(0),o=n(216),i=r.createElement,a=n(596);e.exports=o({getDefaultProps:function(){return{onChange:a}},render:function(){return i("input",{className:"json-inspector__search",type:"search",placeholder:"Search",onChange:this.onChange})},onChange:function(e){this.props.onChange(e.target.value)}})},function(e,t,n){var r=n(1803),o=Object.keys,i=n(595),a=n(597);function s(e,t,n){return o(e).reduce(function(o,l){var c,f=e[l];return i(f)?(u(t,l,n)||u(t,f,n))&&(o[l]=f):u(t,l,n)?o[l]=f:(c=s(f,t,n),a(c)||r(o,function(e,t){var n={};return n[e]=t,n}(l,c))),o},{})}function u(e,t,n){if(t){var r=String(t),o=e;return n.ignoreCase&&(r=r.toLowerCase(),o=o.toLowerCase()),-1!==r.indexOf(o)}}e.exports=function(e,t){t||(t={cacheResults:!0});var n={};return function(r){if(!t.cacheResults)return s(e,r,t);var o;if(!n[r])for(var i=r.length-1;i>0;i-=1)if(o=r.substr(0,i),n[o]){n[r]=s(n[o],r,t);break}return n[r]||(n[r]=s(e,r,t)),n[r]}}},function(e,t,n){"use strict";e.exports=Object.assign||function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i=e&&(t=0,r=n,n=Object.create(null))}return{has:function(e){return void 0!==n[e]||void 0!==r[e]},remove:function(e){void 0!==n[e]&&(n[e]=void 0),void 0!==r[e]&&(r[e]=void 0)},get:function(e){var t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set:function(e,t){void 0!==n[e]?n[e]=t:o(e,t)},clear:function(){n=Object.create(null),r=Object.create(null)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(0)),o=u(n(1)),i=u(n(594)),a=u(n(26)),s=u(n(333));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends r.default.PureComponent{constructor(){super(...arguments),l(this,"state",{document:void 0})}componentDidMount(){var e=this.props.event,t=e.displayDocumentId,n=e.rev;this.fetch(t,n)}UNSAFE_componentWillReceiveProps(e){if(e.event!==this.props.event){var t=e.event,n=t.displayDocumentId,r=t.rev;this.fetch(n,r)}}fetch(e,t){s.default.getDocumentAtRevision(e,t).then(e=>{this.setState({document:e})})}render(){return this.state.document?r.default.createElement(i.default,{value:this.state.document,onClose:this.props.onClose}):r.default.createElement(a.default,null)}}t.default=c,l(c,"propTypes",{event:o.default.object.isRequired,onClose:o.default.func})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(1)),o=d(n(0)),i=d(n(1808)),a=d(n(37)),s=d(n(8)),u=d(n(91)),l=d(n(26)),c=d(n(1809)),f=d(n(1920));function d(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var t=1;te&&t(e);class m extends o.default.PureComponent{constructor(){super(...arguments),h(this,"state",{headerShadowOpacity:0}),h(this,"_listElement",o.default.createRef()),h(this,"handleListScroll",e=>{var t=e.target.scrollTop;this.setState({headerShadowOpacity:Math.min(t,50)/100})}),h(this,"handleNewCurrentEvent",()=>{this._listElement&&this._listElement.current&&i.default.top(this._listElement.current,0)})}componentDidMount(){this._listElement&&this._listElement.current&&this._listElement.current.addEventListener("scroll",this.handleListScroll,{passive:!0})}componentDidUnmount(){this._listElement&&this._listElement.current&&this._listElement.current.removeEventListener("scroll",this.handleListScroll)}componentDidUpdate(e){var t=this.props,n=t.selectedRev,r=t.events,o=t.historyValue;e.historyValue&&!o&&r[0].rev===n&&this.handleNewCurrentEvent()}render(){var e=this.props,t=e.onClose,n=e.events,r=e.onItemSelect,i=e.selectedEvent,d=e.isLoading,h=e.error,m=this.state.headerShadowOpacity;return o.default.createElement("div",{className:f.default.root},o.default.createElement("div",{className:f.default.header,style:{boxShadow:"0 0px 2px rgba(0, 0, 0, ".concat(m,")")}},"History",o.default.createElement(s.default,{onClick:t,title:"Close",icon:a.default,bleed:!0,kind:"simple",className:f.default.closeButton})),d&&o.default.createElement(l.default,{center:!0,message:"Loading history"}),h&&o.default.createElement("p",null,"Could not load history"),o.default.createElement("div",{className:f.default.list,ref:this._listElement},!(d||h)&&n.map((e,t)=>o.default.createElement(c.default,p({},e,{key:e.rev,onClick:()=>r(n[t]),isSelected:e===i,isCurrentVersion:0===t,onSelectPrev:()=>v(n[t-1],r),onSelectNext:()=>v(n[t+1],r)})))),h&&o.default.createElement(u.default,{kind:"danger",timeout:3},h))}}t.default=m,h(m,"propTypes",{events:r.default.arrayOf(r.default.object),onClose:r.default.func,documentId:r.default.string,onItemSelect:r.default.func,isLoading:r.default.bool,lastEdited:r.default.object,errorMessage:r.default.string,selectedEvent:r.default.object,selectedRev:r.default.string,historyValue:r.default.object,error:r.default.object}),h(m,"defaultProps",{isLoading:!0})},function(e,t){var n=new Error("Element already at target scroll position"),r=new Error("Scroll cancelled"),o=Math.min,i=Date.now;function a(e){return function(t,a,l,c){"function"==typeof(l=l||{})&&(c=l,l={}),"function"!=typeof c&&(c=u);var f=i(),d=t[e],p=l.ease||s,h=isNaN(l.duration)?350:+l.duration,v=!1;return d===a?c(n,t[e]):requestAnimationFrame(function n(s){if(v)return c(r,t[e]);var u=i();var l=o(1,(u-f)/h);var m=p(l);t[e]=m*(a-d)+d;l<1?requestAnimationFrame(n):requestAnimationFrame(function(){c(null,t[e])})}),function(){v=!0}}}function s(e){return.5*(1-Math.cos(Math.PI*e))}function u(){}e.exports={left:a("scrollLeft"),top:a("scrollTop")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(1)),o=u(n(0)),i=u(n(1810)),a=u(n(119)),s=n(217);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=a.default.getUsers,f="MMM D, YYYY, hh:mm A";function d(e){return"discardDraft"===e?"Discarded Edits":"truncated"===e?"Truncated Events":"unknown"===e?"Edited":e}class p extends o.default.PureComponent{constructor(){super(...arguments),l(this,"handleKeyUp",e=>{var t=this.props.onClick;"Enter"===e.key&&t()}),l(this,"handleKeyDown",e=>{var t=this.props,n=t.onSelectPrev,r=t.onSelectNext;"ArrowDown"===e.key?(r(),e.preventDefault()):"ArrowUp"===e.key&&(n(),e.preventDefault())}),l(this,"state",{users:[]})}componentDidMount(){this._isMounted=!0;var e=this.props.userIds;e&&c(e).then(e=>{this._isMounted&&this.setState({users:e})})}componentWillUnmount(){this._isMounted=!1}render(){var e,t=this.props,n=t.type,r=t.endTime,a=t.isSelected,u=t.isCurrentVersion,l=t.rev,c=t.onClick,p=this.state.users;return o.default.createElement(i.default,{isCurrentVersion:u,status:d(n),type:n,title:(e=r,(0,s.isToday)(e)?"Today, ".concat((0,s.format)(e,"hh:mm A")):(0,s.isYesterday)(e)?"Yesterday, ".concat((0,s.format)(e,"hh:mm A")):(0,s.format)(e,f)),tooltip:(0,s.format)(r,f),rev:l,users:p,onClick:c,onKeyUp:this.handleKeyUp,onKeyDown:this.handleKeyDown,isSelected:a})}}t.default=p,l(p,"defaultProps",{isSelected:!1,userIds:void 0}),l(p,"propTypes",{endTime:r.default.string.isRequired,isCurrentVersion:r.default.bool.isRequired,isSelected:r.default.bool,onClick:r.default.func.isRequired,onSelectNext:r.default.func,onSelectPrev:r.default.func,rev:r.default.string.isRequired,type:r.default.oneOf(["created","deleted","edited","published","unpublished","truncated","unknown"]).isRequired,userIds:r.default.arrayOf(r.default.string)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(1)),o=f(n(0)),i=n(34),a=f(n(598)),s=f(n(1812)),u=f(n(1814)),l=f(n(1820)),c=f(n(1822));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){for(var t=1;t{},v=3,m=2,y=5,g=100,b=50;function _(){for(var e="",t=90;t<=270;t+=y){var n=b*Math.cos(t*Math.PI/180),r=b*Math.sin(t*Math.PI/180);e+=",".concat((g+n).toFixed(m),"% ").concat((50+r).toFixed(m),"%")}return"polygon(0 0,0 100%".concat(e,",0 0)")}class w extends o.default.PureComponent{constructor(){super(...arguments),p(this,"_rootElement",o.default.createRef()),p(this,"handleClick",e=>{this.props.onClick(e)})}componentDidUpdate(e){!this.props.isSelected||e&&e.isSelected||this.focus()}focus(){this._rootElement&&this._rootElement.current&&this._rootElement.current.focus()}render(){var e=this.props,t=e.status,n=e.isSelected,r=e.title,f=e.users,p=e.children,h=e.isCurrentVersion,m=e.rev,y=e.onKeyUp,g=e.onKeyDown,b=e.tooltip,w=e.type,O=n?c.default.selected:c.default.unSelected;return o.default.createElement("div",{className:O,"data-type":w,"data-is-current-version":h,"data-is-selected":n,"data-rev":m,onClick:this.handleClick,tabIndex:"truncated"===w?null:"0",onKeyUp:y,onKeyDown:g,title:b,ref:this._rootElement},o.default.createElement(l.default,{className:c.default.icon,type:w}),o.default.createElement("div",{className:c.default.startLine,"aria-hidden":"true"}),o.default.createElement("div",{className:c.default.endLine,"aria-hidden":"true"}),o.default.createElement("div",{className:c.default.status},t),r&&"truncated"!==w&&o.default.createElement("div",{className:c.default.title},r),"truncated"===w&&o.default.createElement("div",{className:c.default.truncatedInfo},o.default.createElement("p",null,o.default.createElement("a",{href:"https://www.sanity.io/docs/content-studio/history-experience",target:"_blank",rel:"noopener noreferrer"},"Learn about history retention"))),f&&f.length>0&&o.default.createElement(i.Tooltip,{html:o.default.createElement(s.default,{markers:f.map(e=>({type:"presence",identity:e.id,color:(0,u.default)(e.id),user:d({},e)}))}),disabled:f.length<2,interactive:!0,position:"top",trigger:"mouseenter",animation:"scale",arrow:!0,theme:"light",distance:"10",duration:50},o.default.createElement("div",{className:c.default.users},o.default.createElement("div",{className:c.default.userIcons},f.slice(0,v).map((e,t)=>o.default.createElement("div",{className:c.default.user,key:e.id},o.default.createElement("div",{className:c.default.userInner,style:{clipPath:_()}},o.default.createElement(a.default,{title:1===f.length?void 0:e.displayName,showTooltip:!1,imageUrl:e.imageUrl,color:e.imageUrl?void 0:(0,u.default)(e.id)}))))),1===f.length&&o.default.createElement("div",{className:c.default.userName},f[0].displayName),f.length>1&&o.default.createElement("div",{className:c.default.extraItems},o.default.createElement("div",{className:c.default.userName},f.length," people")))),p&&o.default.createElement("div",{className:c.default.children},p))}}t.default=w,p(w,"propTypes",{status:r.default.string,title:r.default.string,children:r.default.node,isCurrentVersion:r.default.bool,isSelected:r.default.bool,onClick:r.default.func,onKeyUp:r.default.func,onKeyDown:r.default.func,rev:r.default.string,tooltip:r.default.string.isRequired,type:r.default.string.isRequired,users:r.default.arrayOf(r.default.shape({name:r.default.string,email:r.default.string,imageUrl:r.default.string,id:r.default.string}))}),p(w,"defaultProps",{status:"Edited",title:void 0,onClick:h,onKeyUp:h,onKeyDown:h,isCurrentVersion:!1,isSelected:!1,users:[],children:void 0,rev:void 0})},function(e,t){e.exports={root:"PresenceCircle_root_3C13c",hoverAnimation:"PresenceCircle_hoverAnimation_1Wo_H",initials:"PresenceCircle_initials_1CcRF"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(598)),a=s(n(1813));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends r.default.PureComponent{render(){var e=function(e){return e.filter(e=>"presence"===e.type)}(this.props.markers);return r.default.createElement("ul",{className:a.default.root},e.map(e=>{var t=e.user,n=t.imageUrl,o=t&&t.displayName.match(/\b\w/g).join("")||"?";return r.default.createElement("li",{key:e.identity,className:a.default.item},r.default.createElement("div",{className:a.default.circle},r.default.createElement(i.default,{imageUrl:n,color:e.color,text:o})),t.displayName)}))}}t.default=l,u(l,"propTypes",{markers:o.default.arrayOf(o.default.shape({path:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.number,o.default.shape({_key:o.default.string})])),type:o.default.string,identity:o.default.string,session:o.default.string}))}),u(l,"defaultProps",{markers:[]})},function(e,t){e.exports={root:"PresenceList_root_1_jra",item:"PresenceList_item_CgGEv",circle:"PresenceList_circle_2VULV"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(1815)),o=i(n(1816));function i(e){return e&&e.__esModule?e:{default:e}}var a=i(n(1819)).default.brandPrimary||"#fcc",s=(0,o.default)(a);t.default=(e=>(function(e){if(!e)return a;var t=(0,r.default)(e)/Math.pow(2,32),n=Object.keys(s).slice(2)[Math.floor(t*(Object.keys(s).length-2))],o=s[n].slice(6),i=Math.floor(t*o.length)+6;return s[n][i]})(e&&function(e){return e.split("").reverse().join("")}(e)))},function(e,t,n){"use strict";e.exports=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}},function(e,t,n){"use strict";var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(1817),i=n(1818),a=[9,8,7,6,5,4,3,2,1,0].map(function(e){return e+.5}).map(function(e){return e/10}),s=function(e){return function(t){var n=o(t).hsl(),i=r(n,3),a=i[0],s=(i[1],i[2]);return o.hsl(a,e,s).hex()}},u=function(e){var t=s(1/8)(e);return o(t).luminance(.05).hex()},l=function(e){return a.map(function(t){return o(e).luminance(t).hex()})},c=function(e,t){return e[e[t.key]?t.key+"2":t.key]=t.value,e};e.exports=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var t,n,a=o(e),f=[],d=a.hsl(),p=r(d,3),h=p[0],v=p[1],m=p[2],y=(n=360/(t=12),function(e){return function(e){for(var t=[],n=0;nn&&(e=n),e},Se=function(e){return e.length>=3?Array.prototype.slice.call(e):e[0]},k=function(e){var t,n;for(e._clipped=!1,e._unclipped=e.slice(0),t=n=0;n<3;t=++n)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]<0&&(e[t]=0),e[t]>255&&(e[t]=255)):3===t&&(e[t]<0&&(e[t]=0),e[t]>1&&(e[t]=1));return e._clipped||delete e._unclipped,e},a=Math.PI,be=Math.round,S=Math.cos,M=Math.floor,re=Math.pow,$=Math.log,we=Math.sin,Oe=Math.sqrt,m=Math.atan2,Q=Math.max,v=Math.abs,l=2*a,s=a/3,o=a/180,u=180/a,(O=function(){return arguments[0]instanceof r?arguments[0]:function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(r,arguments,function(){})}).default=O,h=[],null!=e&&null!=e.exports&&(e.exports=O),void 0===(n=function(){return O}.apply(t,[]))||(e.exports=n),O.version="1.4.1",p={},f=[],d=!1,r=function(){function e(){var e,t,n,r,o,i,a,s,u;for(i=this,t=[],s=0,r=arguments.length;s1&&(a=t[t.length-1]),null!=p[a])i._rgb=k(p[a](Se(t.slice(0,-1))));else{for(d||(f=f.sort(function(e,t){return t.p-e.p}),d=!0),u=0,o=f.length;u3?t[3]:1]},Pe=function(e){return 255*(e<=.00304?12.92*e:1.055*re(e,1/2.4)-.055)},V=function(e){return e>i.t1?e*e*e:i.t2*(e-i.t0)},i={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},fe=function(){var e,t,n,r,o,i,a;return n=(r=Se(arguments))[0],t=r[1],e=r[2],i=(o=me(n,t,e))[0],[116*(a=o[1])-16,500*(i-a),200*(a-o[2])]},ye=function(e){return(e/=255)<=.04045?e/12.92:re((e+.055)/1.055,2.4)},Ce=function(e){return e>i.t3?re(e,1/3):e/i.t2+i.t0},me=function(){var e,t,n,r;return n=(r=Se(arguments))[0],t=r[1],e=r[2],n=ye(n),t=ye(t),e=ye(e),[Ce((.4124564*n+.3575761*t+.1804375*e)/i.Xn),Ce((.2126729*n+.7151522*t+.072175*e)/i.Yn),Ce((.0193339*n+.119192*t+.9503041*e)/i.Zn)]},O.lab=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(r,je.call(arguments).concat(["lab"]),function(){})},p.lab=q,r.prototype.lab=function(){return fe(this._rgb)},y=function(e){var t,n,r,o,i,a,s,u,l,c,f;return 2===(e=function(){var t,n,r;for(r=[],n=0,t=e.length;n=0&&t[3]<=1?"rgb":void 0}}),p.lrgb=p.rgb,z=function(e,t,n,o){var i,a;return i=e._rgb,a=t._rgb,new r(Oe(re(i[0],2)*(1-n)+re(a[0],2)*n),Oe(re(i[1],2)*(1-n)+re(a[1],2)*n),Oe(re(i[2],2)*(1-n)+re(a[2],2)*n),o)},c=function(e){var t,n,o,i,a;for(t=1/e.length,a=[0,0,0,0],o=0,n=e.length;o1&&(a[3]=1),new r(k(a))},h.push(["lrgb",z]),O.average=function(e,t){var n,r,o,i,s,u,l,f,d,p,h,v,y;if(null==t&&(t="rgb"),d=e.length,l=(e=e.map(function(e){return O(e)})).splice(0,1)[0],"lrgb"===t)return c(e);for(f in i=[],s=0,u=0,v=l.get(t))v[f]=v[f]||0,i.push(isNaN(v[f])?0:1),"h"!==t.charAt(f)||isNaN(v[f])||(n=v[f]/180*a,s+=S(n),u+=we(n));for(r=l.alpha(),h=0,p=e.length;h=360;)n-=360;v[f]=n}else v[f]=v[f]/i[f];return O(v,t).alpha(r/d)},A=function(e){var t,n;if(e.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/))return 4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[(n=parseInt(e,16))>>16,n>>8&255,255&n,1];if(e.match(/^#?([A-Fa-f0-9]{8})$/))return 9===e.length&&(e=e.substr(1)),[(n=parseInt(e,16))>>24&255,n>>16&255,n>>8&255,be((255&n)/255*100)/100];if(null!=p.css&&(t=p.css(e)))return t;throw"unknown color: "+e},se=function(e,t){var n,r,o,i,a,s;return null==t&&(t="auto"),a=e[0],o=e[1],r=e[2],n=e[3],"auto"===t&&(t=n<1?"rgba":"rgb"),a=Math.round(a),o=Math.round(o),r=Math.round(r),s=(s="000000"+(a<<16|o<<8|r).toString(16)).substr(s.length-6),i=(i="0"+be(255*n).toString(16)).substr(i.length-2),"#"+function(){switch(t.toLowerCase()){case"rgba":return s+i;case"argb":return i+s;default:return s}}()},p.hex=function(e){return A(e)},O.hex=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(r,je.call(arguments).concat(["hex"]),function(){})},r.prototype.hex=function(e){return null==e&&(e="auto"),se(this._rgb,e)},f.push({p:4,test:function(e){if(1===arguments.length&&"string"===Ee(e))return"hex"}}),N=function(){var e,t,n,r,o,i,a,s,u,l,c,f,d,p;if(o=(e=Se(arguments))[0],c=e[1],a=e[2],0===c)u=r=t=255*a;else{for(n=[0,0,0],f=2*a-(d=a<.5?a*(1+c):a+c-a*c),(p=[0,0,0])[0]=(o/=360)+1/3,p[1]=o,p[2]=o-1/3,i=s=0;s<=2;i=++s)p[i]<0&&(p[i]+=1),p[i]>1&&(p[i]-=1),6*p[i]<1?n[i]=f+6*(d-f)*p[i]:2*p[i]<1?n[i]=d:3*p[i]<2?n[i]=f+(d-f)*(2/3-p[i])*6:n[i]=f;u=(l=[be(255*n[0]),be(255*n[1]),be(255*n[2])])[0],r=l[1],t=l[2]}return e.length>3?[u,r,t,e[3]]:[u,r,t]},le=function(e,t,n){var r,o,i,a,s;return void 0!==e&&e.length>=3&&(e=(a=e)[0],t=a[1],n=a[2]),e/=255,t/=255,n/=255,i=Math.min(e,t,n),o=((Q=Math.max(e,t,n))+i)/2,Q===i?(s=0,r=Number.NaN):s=o<.5?(Q-i)/(Q+i):(Q-i)/(2-Q-i),e===Q?r=(t-n)/(Q-i):t===Q?r=2+(n-e)/(Q-i):n===Q&&(r=4+(e-t)/(Q-i)),(r*=60)<0&&(r+=360),[r,s,o]},O.hsl=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(r,je.call(arguments).concat(["hsl"]),function(){})},p.hsl=N,r.prototype.hsl=function(){return le(this._rgb)},R=function(){var e,t,n,r,o,i,a,s,u,l,c,f,d,p,h,v,m,y;if(o=(e=Se(arguments))[0],v=e[1],y=e[2],y*=255,0===v)u=r=t=y;else switch(360===o&&(o=0),o>360&&(o-=360),o<0&&(o+=360),a=y*(1-v),s=y*(1-v*(n=(o/=60)-(i=M(o)))),m=y*(1-v*(1-n)),i){case 0:u=(l=[y,m,a])[0],r=l[1],t=l[2];break;case 1:u=(c=[s,y,a])[0],r=c[1],t=c[2];break;case 2:u=(f=[a,y,m])[0],r=f[1],t=f[2];break;case 3:u=(d=[a,s,y])[0],r=d[1],t=d[2];break;case 4:u=(p=[m,a,y])[0],r=p[1],t=p[2];break;case 5:u=(h=[y,a,s])[0],r=h[1],t=h[2]}return[u,r,t,e.length>3?e[3]:1]},ce=function(){var e,t,n,r,o,i,a,s,u;return i=(a=Se(arguments))[0],n=a[1],e=a[2],o=Math.min(i,n,e),t=(Q=Math.max(i,n,e))-o,u=Q/255,0===Q?(r=Number.NaN,s=0):(s=t/Q,i===Q&&(r=(n-e)/t),n===Q&&(r=2+(e-i)/t),e===Q&&(r=4+(i-n)/t),(r*=60)<0&&(r+=360)),[r,s,u]},O.hsv=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(r,je.call(arguments).concat(["hsv"]),function(){})},p.hsv=R,r.prototype.hsv=function(){return ce(this._rgb)},te=function(e){return"number"===Ee(e)&&e>=0&&e<=16777215?[e>>16,e>>8&255,255&e,1]:(console.warn("unknown num color: "+e),[0,0,0,1])},he=function(){var e;return((e=Se(arguments))[0]<<16)+(e[1]<<8)+e[2]},O.num=function(e){return new r(e,"num")},r.prototype.num=function(e){return null==e&&(e="rgb"),he(this._rgb,e)},p.num=te,f.push({p:1,test:function(e){if(1===arguments.length&&"number"===Ee(e)&&e>=0&&e<=16777215)return"num"}}),T=function(){var e,t,n,r,o,i,a,s,u,l,c,f,d,p,h,v,m,y,g,b;if(s=(n=Se(arguments))[0],o=n[1],t=n[2],a=a/100*255,e=255*(o/=100),0===o)f=a=r=t;else switch(360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360),c=(l=t*(1-o))+e*(1-(i=(s/=60)-(u=M(s)))),g=l+e*i,b=l+e,u){case 0:f=(d=[b,g,l])[0],a=d[1],r=d[2];break;case 1:f=(p=[c,b,l])[0],a=p[1],r=p[2];break;case 2:f=(h=[l,b,g])[0],a=h[1],r=h[2];break;case 3:f=(v=[l,c,b])[0],a=v[1],r=v[2];break;case 4:f=(m=[g,l,b])[0],a=m[1],r=m[2];break;case 5:f=(y=[b,l,c])[0],a=y[1],r=y[2]}return[f,a,r,n.length>3?n[3]:1]},ae=function(){var e,t,n,r,o,i,a,s,u;return s=(u=Se(arguments))[0],o=u[1],t=u[2],a=Math.min(s,o,t),n=100*(r=(Q=Math.max(s,o,t))-a)/255,e=a/(255-r)*100,0===r?i=Number.NaN:(s===Q&&(i=(o-t)/r),o===Q&&(i=2+(t-s)/r),t===Q&&(i=4+(s-o)/r),(i*=60)<0&&(i+=360)),[i,n,e]},O.hcg=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(r,je.call(arguments).concat(["hcg"]),function(){})},p.hcg=T,r.prototype.hcg=function(){return ae(this._rgb)},x=function(e){var t,n,r,o,i,a,s,u;if(e=e.toLowerCase(),null!=O.colors&&O.colors[e])return A(O.colors[e]);if(i=e.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)){for(s=i.slice(1,4),o=a=0;a<=2;o=++a)s[o]=+s[o];s[3]=1}else if(i=e.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/))for(s=i.slice(1,5),o=u=0;u<=3;o=++u)s[o]=+s[o];else if(i=e.match(/rgb\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)){for(s=i.slice(1,4),o=t=0;t<=2;o=++t)s[o]=be(2.55*s[o]);s[3]=1}else if(i=e.match(/rgba\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)){for(s=i.slice(1,5),o=n=0;n<=2;o=++n)s[o]=be(2.55*s[o]);s[3]=+s[3]}else(i=e.match(/hsl\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/))?((r=i.slice(1,4))[1]*=.01,r[2]*=.01,(s=N(r))[3]=1):(i=e.match(/hsla\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/))&&((r=i.slice(1,4))[1]*=.01,r[2]*=.01,(s=N(r))[3]=+i[4]);return s},ie=function(e){var t;return"rgb"===(t=e[3]<1?"rgba":"rgb")?t+"("+e.slice(0,3).map(be).join(",")+")":"rgba"===t?t+"("+e.slice(0,3).map(be).join(",")+","+e[3]+")":void 0},ge=function(e){return be(100*e)/100},I=function(e,t){var n;return n=t<1?"hsla":"hsl",e[0]=ge(e[0]||0),e[1]=ge(100*e[1])+"%",e[2]=ge(100*e[2])+"%","hsla"===n&&(e[3]=t),n+"("+e.join(",")+")"},p.css=function(e){return x(e)},O.css=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(r,je.call(arguments).concat(["css"]),function(){})},r.prototype.css=function(e){return null==e&&(e="rgb"),"rgb"===e.slice(0,3)?ie(this._rgb):"hsl"===e.slice(0,3)?I(this.hsl(),this.alpha()):void 0},p.named=function(e){return A(xe[e])},f.push({p:5,test:function(e){if(1===arguments.length&&null!=xe[e])return"named"}}),r.prototype.name=function(e){var t,n;for(n in arguments.length&&(xe[e]&&(this._rgb=A(xe[e])),this._rgb[3]=1),t=this.hex("rgb"),xe)if(t===xe[n])return n;return t},Y=function(){var e,t,n,r;return n=(r=Se(arguments))[0],e=r[1],t=r[2],[n,S(t*=o)*e,we(t)*e]},G=function(){var e,t,n,r,o,i,a,s,u;return a=(n=Se(arguments))[0],o=n[1],i=n[2],e=(s=Y(a,o,i))[0],t=s[1],r=s[2],[(u=q(e,t,r))[0],u[1],r=u[2],n.length>3?n[3]:1]},H=function(){var e,t,n,r,o,i;return o=(i=Se(arguments))[0],e=i[1],t=i[2],n=Oe(e*e+t*t),r=(m(t,e)*u+360)%360,0===be(1e4*n)&&(r=Number.NaN),[o,n,r]},de=function(){var e,t,n,r,o,i,a;return o=(i=Se(arguments))[0],n=i[1],t=i[2],r=(a=fe(o,n,t))[0],e=a[1],t=a[2],H(r,e,t)},O.lch=function(){var e;return e=Se(arguments),new r(e,"lch")},O.hcl=function(){var e;return e=Se(arguments),new r(e,"hcl")},p.lch=G,p.hcl=function(){var e,t,n,r;return t=(r=Se(arguments))[0],e=r[1],n=r[2],G([n,e,t])},r.prototype.lch=function(){return de(this._rgb)},r.prototype.hcl=function(){return de(this._rgb).reverse()},oe=function(e){var t,n,r,o,i,a;return null==e&&(e="rgb"),i=(a=Se(arguments))[0],r=a[1],t=a[2],r/=255,t/=255,[(1-(i/=255)-(o=1-Math.max(i,Math.max(r,t))))*(n=o<1?1/(1-o):0),(1-r-o)*n,(1-t-o)*n,o]},E=function(){var e,t,n,r,o,i;return n=(t=Se(arguments))[0],o=t[1],i=t[2],r=t[3],e=t.length>4?t[4]:1,1===r?[0,0,0,e]:[n>=1?0:255*(1-n)*(1-r),o>=1?0:255*(1-o)*(1-r),i>=1?0:255*(1-i)*(1-r),e]},p.cmyk=function(){return E(Se(arguments))},O.cmyk=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(r,je.call(arguments).concat(["cmyk"]),function(){})},r.prototype.cmyk=function(){return oe(this._rgb)},p.gl=function(){var e,t,n,r,o;for(r=function(){var e,n;for(t in n=[],e=Se(arguments))o=e[t],n.push(o);return n}.apply(this,arguments),e=n=0;n<=2;e=++n)r[e]*=255;return r},O.gl=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(r,je.call(arguments).concat(["gl"]),function(){})},r.prototype.gl=function(){var e;return[(e=this._rgb)[0]/255,e[1]/255,e[2]/255,e[3]]},pe=function(e,t,n){var r;return e=(r=Se(arguments))[0],t=r[1],n=r[2],.2126*(e=Z(e))+.7152*(t=Z(t))+.0722*(n=Z(n))},Z=function(e){return(e/=255)<=.03928?e/12.92:re((e+.055)/1.055,2.4)},U=function(e,t,n,o){var i,a;return i=e._rgb,a=t._rgb,new r(i[0]+n*(a[0]-i[0]),i[1]+n*(a[1]-i[1]),i[2]+n*(a[2]-i[2]),o)},h.push(["rgb",U]),r.prototype.luminance=function(e,t){var n,r,o,i;return null==t&&(t="rgb"),arguments.length?(o=this._rgb,0===e?o=[0,0,0,this._rgb[3]]:1===e?o=[255,255,255,this[3]]:(n=pe(this._rgb),1e-7,r=20,i=function(n,o){var a,s;return a=(s=n.interpolate(o,.5,t)).luminance(),Math.abs(e-a)<1e-7||!r--?s:a>e?i(n,s):i(s,o)},o=n>e?i(O("black"),this).rgba():i(this,O("white")).rgba()),O(o).alpha(this.alpha())):pe(this._rgb)},ke=function(e){var t,n,r,o;return(o=e/100)<66?(r=255,n=-155.25485562709179-.44596950469579133*(n=o-2)+104.49216199393888*$(n),t=o<20?0:.8274096064007395*(t=o-10)-254.76935184120902+115.67994401066147*$(t)):(r=351.97690566805693+.114206453784165*(r=o-55)-40.25366309332127*$(r),n=325.4494125711974+.07943456536662342*(n=o-50)-28.0852963507957*$(n),t=255),[r,n,t]},ve=function(){var e,t,n,r,o,i,a;for(r=(o=Se(arguments))[0],o[1],e=o[2],n=1e3,t=4e4,.4;t-n>.4;)(i=ke(a=.5*(t+n)))[2]/i[0]>=e/r?t=a:n=a;return be(a)},O.temperature=O.kelvin=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(r,je.call(arguments).concat(["temperature"]),function(){})},p.temperature=p.kelvin=p.K=ke,r.prototype.temperature=function(){return ve(this._rgb)},r.prototype.kelvin=r.prototype.temperature,O.contrast=function(e,t){var n,o,i,a;return"string"!==(i=Ee(e))&&"number"!==i||(e=new r(e)),"string"!==(a=Ee(t))&&"number"!==a||(t=new r(t)),(n=e.luminance())>(o=t.luminance())?(n+.05)/(o+.05):(o+.05)/(n+.05)},O.distance=function(e,t,n){var o,i,a,s,u,l,c;for(i in null==n&&(n="lab"),"string"!==(u=Ee(e))&&"number"!==u||(e=new r(e)),"string"!==(l=Ee(t))&&"number"!==l||(t=new r(t)),a=e.get(n),s=t.get(n),c=0,a)c+=(o=(a[i]||0)-(s[i]||0))*o;return Math.sqrt(c)},O.deltaE=function(e,t,n,o){var i,s,u,l,c,f,d,p,h,y,g,b,_,w,O,k,E,x,C,P,j,M,T,A;for(null==n&&(n=1),null==o&&(o=1),"string"!==(O=Ee(e))&&"number"!==O||(e=new r(e)),"string"!==(k=Ee(t))&&"number"!==k||(t=new r(t)),i=(E=e.lab())[0],u=E[1],c=E[2],s=(x=t.lab())[0],l=x[1],f=x[2],d=Oe(u*u+c*c),p=Oe(l*l+f*f),P=i<16?.511:.040975*i/(1+.01765*i),C=.0638*d/(1+.0131*d)+.638,w=d<1e-6?0:180*m(c,u)/a;w<0;)w+=360;for(;w>=360;)w-=360;return j=w>=164&&w<=345?.56+v(.2*S(a*(w+168)/180)):.36+v(.4*S(a*(w+35)/180)),_=Oe((h=d*d*d*d)/(h+1900)),Oe((M=(i-s)/(n*P))*M+(T=(b=d-p)/(o*C))*T+((y=u-l)*y+(g=c-f)*g-b*b)/((A=C*(_*j+1-_))*A))},r.prototype.get=function(e){var t,n,r,o,i;return this,r=(o=e.split("."))[0],t=o[1],i=this[r](),t?(n=r.indexOf(t))>-1?i[n]:console.warn("unknown channel "+t+" in mode "+r):i},r.prototype.set=function(e,t){var n,r,o,i,a;if(this,o=(i=e.split("."))[0],n=i[1])if(a=this[o](),(r=o.indexOf(n))>-1)if("string"===Ee(t))switch(t.charAt(0)){case"+":case"-":a[r]+=+t;break;case"*":a[r]*=+t.substr(1);break;case"/":a[r]/=+t.substr(1);break;default:a[r]=+t}else a[r]=t;else console.warn("unknown channel "+n+" in mode "+o);else a=t;return O(a,o).alpha(this.alpha())},r.prototype.clipped=function(){return this._rgb._clipped||!1},r.prototype.alpha=function(e){return arguments.length?O.rgb([this._rgb[0],this._rgb[1],this._rgb[2],e]):this._rgb[3]},r.prototype.darken=function(e){var t;return null==e&&(e=1),this,(t=this.lab())[0]-=i.Kn*e,O.lab(t).alpha(this.alpha())},r.prototype.brighten=function(e){return null==e&&(e=1),this.darken(-e)},r.prototype.darker=r.prototype.darken,r.prototype.brighter=r.prototype.brighten,r.prototype.saturate=function(e){var t;return null==e&&(e=1),this,(t=this.lch())[1]+=e*i.Kn,t[1]<0&&(t[1]=0),O.lch(t).alpha(this.alpha())},r.prototype.desaturate=function(e){return null==e&&(e=1),this.saturate(-e)},r.prototype.premultiply=function(){var e,t;return t=this.rgb(),e=this.alpha(),O(t[0]*e,t[1]*e,t[2]*e,e)},ee=function(e,t){return e*t/255},C=function(e,t){return e>t?t:e},K=function(e,t){return e>t?e:t},_e=function(e,t){return 255*(1-(1-e/255)*(1-t/255))},ne=function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},w=function(e,t){return 255*(1-(1-t/255)/(e/255))},P=function(e,t){return 255===e?255:(e=t/255*255/(1-e/255))>255?255:e},(g=function(e,t,n){if(!g[n])throw"unknown blend mode "+n;return g[n](e,t)}).normal=(b=function(e){return function(t,n){var r,o;return r=O(n).rgb(),o=O(t).rgb(),O(e(r,o),"rgb")}})((j=function(e){return function(t,n){var r,o,i;for(i=[],r=o=0;o<=3;r=++o)i[r]=e(t[r],n[r]);return i}})(function(e,t){return e})),g.multiply=b(j(ee)),g.screen=b(j(_e)),g.overlay=b(j(ne)),g.darken=b(j(C)),g.lighten=b(j(K)),g.dodge=b(j(P)),g.burn=b(j(w)),O.blend=g,O.analyze=function(e){var t,n,r,o;for(r={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0},n=0,t=e.length;nr.max&&(r.max=o),r.count+=1);return r.domain=[r.min,r.max],r.limits=function(e,t){return O.limits(r,e,t)},r},O.scale=function(e,t){var n,r,o,i,a,s,u,l,c,f,d,p,h,v,m,y,g,b,_,w,k;return c="rgb",f=O("#ccc"),v=0,!1,a=[0,1],h=[],p=[0,0],n=!1,o=[],d=!1,l=0,u=1,i=!1,r={},m=!0,s=1,w=function(e){var t,n,r,i,a,s;if(null==e&&(e=["#fff","#000"]),null!=e&&"string"===Ee(e)&&null!=O.brewer&&(e=O.brewer[e]||O.brewer[e.toLowerCase()]||e),"array"===Ee(e)){for(1===e.length&&(e=[e[0],e[0]]),t=r=0,i=(e=e.slice(0)).length-1;0<=i?r<=i:r>=i;t=0<=i?++r:--r)n=e[t],"string"===Ee(n)&&(e[t]=O(n));for(h.length=0,t=s=0,a=e.length-1;0<=a?s<=a:s>=a;t=0<=a?++s:--s)h.push(t/(e.length-1))}return _(),o=e},g=function(e){var t,r;if(null!=n){for(r=n.length-1,t=0;t=n[t];)t++;return t-1}return 0},k=function(e){return e},function(e){var t,r,o,i,a;return a=e,n.length>2&&(i=n.length-1,t=g(e),o=n[0]+(n[1]-n[0])*(0+.5*v),r=n[i-1]+(n[i]-n[i-1])*(1-.5*v),a=l+(n[t]+.5*(n[t+1]-n[t])-o)/(r-o)*(u-l)),a},b=function(e,t){var i,a,d,v,y,b,_;if(null==t&&(t=!1),isNaN(e)||null===e)return f;if(_=t?e:n&&n.length>2?g(e)/(n.length-2):u!==l?(e-l)/(u-l):1,t||(_=k(_)),1!==s&&(_=re(_,s)),_=p[0]+_*(1-p[0]-p[1]),_=Math.min(1,Math.max(0,_)),d=Math.floor(1e4*_),m&&r[d])i=r[d];else{if("array"===Ee(o))for(a=v=0,b=h.length-1;0<=b?v<=b:v>=b;a=0<=b?++v:--v){if(_<=(y=h[a])){i=o[a];break}if(_>=y&&a===h.length-1){i=o[a];break}if(_>y&&_=c;t=0<=c?++f:--f)h.push(t/(r-1));return a=[l,u],y},y.mode=function(e){return arguments.length?(c=e,_(),y):c},y.range=function(e,t){return w(e),y},y.out=function(e){return d=e,y},y.spread=function(e){return arguments.length?(v=e,y):v},y.correctLightness=function(e){return null==e&&(e=!0),i=e,_(),k=i?function(e){var t,n,r,o,i,a,s,u,l;for(t=b(0,!0).lab()[0],n=b(1,!0).lab()[0],s=t>n,r=b(e,!0).lab()[0],o=r-(i=t+(n-t)*e),u=0,l=1,a=20;Math.abs(o)>.01&&a-- >0;)s&&(o*=-1),o<0?(u=e,e+=.5*(l-e)):(l=e,e+=.5*(u-e)),r=b(e,!0).lab()[0],o=r-i;return e}:function(e){return e},y},y.padding=function(e){return null!=e?("number"===Ee(e)&&(e=[e,e]),p=e,y):p},y.colors=function(t,r){var i,s,u,l,c,f,d,p;if(arguments.length<2&&(r="hex"),c=[],0===arguments.length)c=o.slice(0);else if(1===t)c=[y(.5)];else if(t>1)s=a[0],i=a[1]-s,c=function(){f=[];for(var e=0;0<=t?et;0<=t?e++:e--)f.push(e);return f}.apply(this).map(function(e){return y(s+e/(t-1)*i)});else{if(e=[],d=[],n&&n.length>2)for(u=p=1,l=n.length;1<=l?pl;u=1<=l?++p:--p)d.push(.5*(n[u-1]+n[u]));else d=a;c=d.map(function(e){return y(e)})}return O[r]&&(c=c.map(function(e){return e[r]()})),c},y.cache=function(e){return null!=e?(m=e,y):m},y.gamma=function(e){return null!=e?(s=e,y):s},y.nodata=function(e){return null!=e?(f=O(e),y):f},y},null==O.scales&&(O.scales={}),O.scales.cool=function(){return O.scale([O.hsl(180,1,.9),O.hsl(250,.7,.4)])},O.scales.hot=function(){return O.scale(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")},O.analyze=function(e,t,n){var r,o,i,a,s,u;if(s={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0},null==n&&(n=function(){return!0}),r=function(e){null==e||isNaN(e)||(s.values.push(e),s.sum+=e,es.max&&(s.max=e),s.count+=1)},u=function(e,o){if(n(e,o))return null!=t&&"function"===Ee(t)?r(t(e)):null!=t&&"string"===Ee(t)||"number"===Ee(t)?r(e[t]):r(e)},"array"===Ee(e))for(a=0,i=e.length;a=z;E=1<=z?++R:--R)C.push(j+E/n*(Q-j));C.push(Q)}else if("l"===t.substr(0,1)){if(j<=0)throw"Logarithmic scales are only possible for values > 0";for(T=Math.LOG10E*$(j),P=Math.LOG10E*$(Q),C.push(j),E=le=1,W=n-1;1<=W?le<=W:le>=W;E=1<=W?++le:--le)C.push(re(10,T+E/n*(P-T)));C.push(Q)}else if("q"===t.substr(0,1)){for(C.push(j),E=r=1,G=n-1;1<=G?r<=G:r>=G;E=1<=G?++r:--r)F=(ue.length-1)*E/n,(L=M(F))===F?C.push(ue[L]):(B=F-L,C.push(ue[L]*(1-B)+ue[L+1]*B));C.push(Q)}else if("k"===t.substr(0,1)){for(D=ue.length,y=new Array(D),w=new Array(n),oe=!0,I=0,b=null,(b=[]).push(j),E=o=1,K=n-1;1<=K?o<=K:o>=K;E=1<=K?++o:--o)b.push(j+E/n*(Q-j));for(b.push(Q);oe;){for(S=i=0,J=n-1;0<=J?i<=J:i>=J;S=0<=J?++i:--i)w[S]=0;for(E=a=0,Z=D-1;0<=Z?a<=Z:a>=Z;E=0<=Z?++a:--a){for(se=ue[E],A=Number.MAX_VALUE,S=s=0,X=n-1;0<=X?s<=X:s>=X;S=0<=X?++s:--s)(k=v(b[S]-se))=ee;S=0<=ee?++u:--u)N[S]=null;for(E=l=0,te=D-1;0<=te?l<=te:l>=te;E=0<=te?++l:--l)null===N[_=y[E]]?N[_]=ue[E]:N[_]+=ue[E];for(S=c=0,ne=n-1;0<=ne?c<=ne:c>=ne;S=0<=ne?++c:--c)N[S]*=1/w[S];for(oe=!1,S=f=0,U=n-1;0<=U?f<=U:f>=U;S=0<=U?++f:--f)if(N[S]!==b[E]){oe=!0;break}b=N,++I>200&&(oe=!1)}for(x={},S=d=0,H=n-1;0<=H?d<=H:d>=H;S=0<=H?++d:--d)x[S]=[];for(E=p=0,q=D-1;0<=q?p<=q:p>=q;E=0<=q?++p:--p)x[_=y[E]].push(ue[E]);for(ie=[],S=h=0,V=n-1;0<=V?h<=V:h>=V;S=0<=V?++h:--h)ie.push(x[S][0]),ie.push(x[S][x[S].length-1]);for(ie=ie.sort(function(e,t){return e-t}),C.push(ie[0]),E=m=1,Y=ie.length-1;m<=Y;E=m+=2)ae=ie[E],isNaN(ae)||-1!==C.indexOf(ae)||C.push(ae)}return C},D=function(e,t,n){var r,o,i,a;return e=(r=Se(arguments))[0],t=r[1],n=r[2],isNaN(e)&&(e=0),(e/=360)<1/3?i=1-((o=(1-t)/3)+(a=(1+t*S(l*e)/S(s-l*e))/3)):e<2/3?o=1-((a=(1-t)/3)+(i=(1+t*S(l*(e-=1/3))/S(s-l*e))/3)):a=1-((i=(1-t)/3)+(o=(1+t*S(l*(e-=2/3))/S(s-l*e))/3)),[255*(a=J(n*a*3)),255*(i=J(n*i*3)),255*(o=J(n*o*3)),r.length>3?r[3]:1]},ue=function(){var e,t,n,r,o,i,a;return o=(i=Se(arguments))[0],t=i[1],e=i[2],l=2*Math.PI,o/=255,t/=255,e/=255,0===(a=1-Math.min(o,t,e)/(r=(o+t+e)/3))?n=0:(n=(o-t+(o-e))/2,n/=Math.sqrt((o-t)*(o-t)+(o-e)*(t-e)),n=Math.acos(n),e>t&&(n=l-n),n/=l),[360*n,a,r]},O.hsi=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(r,je.call(arguments).concat(["hsi"]),function(){})},p.hsi=D,r.prototype.hsi=function(){return ue(this._rgb)},L=function(e,t,n,r){var o,i,a,s,u,l,c,f,d,p;return"hsl"===r?(d=e.hsl(),p=t.hsl()):"hsv"===r?(d=e.hsv(),p=t.hsv()):"hcg"===r?(d=e.hcg(),p=t.hcg()):"hsi"===r?(d=e.hsi(),p=t.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",d=e.hcl(),p=t.hcl()),"h"===r.substr(0,1)&&(i=d[0],c=d[1],s=d[2],a=p[0],f=p[1],u=p[2]),isNaN(i)||isNaN(a)?isNaN(i)?isNaN(a)?o=Number.NaN:(o=a,1!==s&&0!==s||"hsv"===r||(l=f)):(o=i,1!==u&&0!==u||"hsv"===r||(l=c)):o=i+n*(a>i&&a-i>180?a-(i+360):a180?a+360-i:a-i),null==l&&(l=c+n*(f-c)),O[r](o,l,s+n*(u-s))},W=function(e,t,n,r){var o,i;return o=e.num(),i=t.num(),O.num(o+(i-o)*n,"num")},(h=h.concat(function(){var e,t,n,r;for(r=[],t=0,e=(n=["hsv","hsl","hsi","hcl","lch","hcg"]).length;ta||s>u)throw new Error("The start of the range cannot be after the end of the range");return i0?Math.floor(n):Math.ceil(n)}},function(e,t,n){var r=n(2),o=n(606),i=n(150),a=n(611);e.exports=function(e,t){var n=r(e),s=r(t),u=i(n,s),l=Math.abs(o(n,s));return n=a(n,u*l),u*(l-(i(n,s)===-u))}},function(e,t,n){var r=n(219),o=6e4;e.exports=function(e,t){var n=r(e,t)/o;return n>0?Math.floor(n):Math.ceil(n)}},function(e,t,n){var r=n(338);e.exports=function(e,t){var n=r(e,t)/3;return n>0?Math.floor(n):Math.ceil(n)}},function(e,t,n){var r=n(610);e.exports=function(e,t){var n=r(e,t)/7;return n>0?Math.floor(n):Math.ceil(n)}},function(e,t,n){var r=n(2),o=n(609),i=n(150);e.exports=function(e,t){var n=r(e),a=r(t),s=i(n,a),u=Math.abs(o(n,a));return n.setFullYear(n.getFullYear()-s*u),s*(u-(i(n,a)===-s))}},function(e,t,n){var r=n(337),o=n(2),i=n(339),a=n(300),s=1440,u=43200,l=525600;e.exports=function(e,t,n){var c=n||{},f=r(e,t),d=c.locale,p=a.distanceInWords.localize;d&&d.distanceInWords&&d.distanceInWords.localize&&(p=d.distanceInWords.localize);var h,v,m,y={addSuffix:Boolean(c.addSuffix),comparison:f};f>0?(h=o(e),v=o(t)):(h=o(t),v=o(e));var g=Math[c.partialMethod?String(c.partialMethod):"floor"],b=i(v,h),_=v.getTimezoneOffset()-h.getTimezoneOffset(),w=g(b/60)-_;if("s"===(m=c.unit?String(c.unit):w<1?"s":w<60?"m":wa)throw new Error("The first date cannot be after the second date");var s=[],u=o;for(u.setHours(0,0,0,0);u.getTime()<=a;)s.push(r(u)),u.setDate(u.getDate()+i);return s}},function(e,t,n){var r=n(2);e.exports=function(e){var t=r(e);return t.setMinutes(59,59,999),t}},function(e,t,n){var r=n(613);e.exports=function(e){return r(e,{weekStartsOn:1})}},function(e,t,n){var r=n(94),o=n(93);e.exports=function(e){var t=r(e),n=new Date(0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);var i=o(n);return i.setMilliseconds(i.getMilliseconds()-1),i}},function(e,t,n){var r=n(2);e.exports=function(e){var t=r(e);return t.setSeconds(59,999),t}},function(e,t,n){var r=n(2);e.exports=function(e){var t=r(e),n=t.getMonth(),o=n-n%3+3;return t.setMonth(o,0),t.setHours(23,59,59,999),t}},function(e,t,n){var r=n(2);e.exports=function(e){var t=r(e);return t.setMilliseconds(999),t}},function(e,t,n){var r=n(340);e.exports=function(){return r(new Date)}},function(e,t){e.exports=function(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r+1),o.setHours(23,59,59,999),o}},function(e,t,n){var r=n(2);e.exports=function(e){var t=r(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}},function(e,t){e.exports=function(){var e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r-1),o.setHours(23,59,59,999),o}},function(e,t,n){var r=n(2);e.exports=function(e){return r(e).getDate()}},function(e,t,n){var r=n(2);e.exports=function(e){return r(e).getDay()}},function(e,t,n){var r=n(615);e.exports=function(e){return r(e)?366:365}},function(e,t,n){var r=n(2);e.exports=function(e){return r(e).getHours()}},function(e,t,n){var r=n(142),o=n(336),i=6048e5;e.exports=function(e){var t=r(e),n=r(o(t,60)).valueOf()-t.valueOf();return Math.round(n/i)}},function(e,t,n){var r=n(2);e.exports=function(e){return r(e).getMilliseconds()}},function(e,t,n){var r=n(2);e.exports=function(e){return r(e).getMinutes()}},function(e,t,n){var r=n(2);e.exports=function(e){return r(e).getMonth()}},function(e,t,n){var r=n(2),o=864e5;e.exports=function(e,t,n,i){var a=r(e).getTime(),s=r(t).getTime(),u=r(n).getTime(),l=r(i).getTime();if(a>s||u>l)throw new Error("The start of the range cannot be after the end of the range");if(!(as?s:l)-(uo.getTime()}},function(e,t,n){var r=n(2);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()(new Date).getTime()}},function(e,t,n){var r=n(2),o=n(340),i=n(614);e.exports=function(e){var t=r(e);return o(t).getTime()===i(t).getTime()}},function(e,t,n){var r=n(2);e.exports=function(e){return 1===r(e).getDay()}},function(e,t,n){var r=n(2);e.exports=function(e){return r(e).getTime()<(new Date).getTime()}},function(e,t,n){var r=n(92);e.exports=function(e,t){var n=r(e),o=r(t);return n.getTime()===o.getTime()}},function(e,t,n){var r=n(2);e.exports=function(e){return 6===r(e).getDay()}},function(e,t,n){var r=n(2);e.exports=function(e){return 0===r(e).getDay()}},function(e,t,n){var r=n(617);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(619);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(620);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(621);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(623);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(624);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(626);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(341);e.exports=function(e,t){return r(new Date,e,t)}},function(e,t,n){var r=n(628);e.exports=function(e){return r(new Date,e)}},function(e,t,n){var r=n(2);e.exports=function(e){return 4===r(e).getDay()}},function(e,t,n){var r=n(92);e.exports=function(e){return r(e).getTime()===r(new Date).getTime()}},function(e,t,n){var r=n(92);e.exports=function(e){var t=new Date;return t.setDate(t.getDate()+1),r(e).getTime()===r(t).getTime()}},function(e,t,n){var r=n(2);e.exports=function(e){return 2===r(e).getDay()}},function(e,t,n){var r=n(2);e.exports=function(e){return 3===r(e).getDay()}},function(e,t,n){var r=n(2);e.exports=function(e){var t=r(e).getDay();return 0===t||6===t}},function(e,t,n){var r=n(2);e.exports=function(e,t,n){var o=r(e).getTime(),i=r(t).getTime(),a=r(n).getTime();if(i>a)throw new Error("The start of the range cannot be after the end of the range");return o>=i&&o<=a}},function(e,t,n){var r=n(92);e.exports=function(e){var t=new Date;return t.setDate(t.getDate()-1),r(e).getTime()===r(t).getTime()}},function(e,t,n){var r=n(629);e.exports=function(e){return r(e,{weekStartsOn:1})}},function(e,t,n){var r=n(94),o=n(93);e.exports=function(e){var t=r(e),n=new Date(0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);var i=o(n);return i.setDate(i.getDate()-1),i}},function(e,t,n){var r=n(2);e.exports=function(e){var t=r(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}},function(e,t,n){var r=n(2);e.exports=function(e){var t=r(e),n=t.getMonth(),o=n-n%3+3;return t.setMonth(o,0),t.setHours(0,0,0,0),t}},function(e,t,n){var r=n(2);e.exports=function(e){var t=r(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(0,0,0,0),t}},function(e,t,n){var r=n(2);e.exports=function(){var e=Array.prototype.slice.call(arguments).map(function(e){return r(e)}),t=Math.max.apply(null,e);return new Date(t)}},function(e,t,n){var r=n(2);e.exports=function(){var e=Array.prototype.slice.call(arguments).map(function(e){return r(e)}),t=Math.min.apply(null,e);return new Date(t)}},function(e,t,n){var r=n(2);e.exports=function(e,t){var n=r(e),o=Number(t);return n.setDate(o),n}},function(e,t,n){var r=n(2),o=n(148);e.exports=function(e,t,n){var i=n&&Number(n.weekStartsOn)||0,a=r(e),s=Number(t),u=a.getDay();return o(a,((s%7+7)%7"validation"===e.type),f=c.filter(e=>"error"===e.level),d=c.filter(e=>"warning"===e.level);return 0===f.length&&0===d.length?null:a.default.createElement(u.Tooltip,{arrow:!0,theme:"light noPadding",trigger:"click",position:"bottom",interactive:!0,duration:100,open:i,onRequestClose:t,html:a.default.createElement(p.default,{truncate:!0,markers:c,showLink:!0,isOpen:i,documentType:s,onClose:t,onFocus:n})},a.default.createElement(l.default,{color:"danger",bleed:!0,icon:v.default,padding:"small",onClick:r},f.length,a.default.createElement("span",{style:{paddingLeft:"0.5em",display:"flex"}},a.default.createElement(h.default,null))))}render(){var e=this.props,t=e.isReconnecting,n=e.showSavingStatus,r=e.value;return a.default.createElement("div",{className:m.default.paneFunctions},c.default&&a.default.createElement(c.default,null),n&&this.renderSavingStatus(),t&&this.renderReconnecting(),r&&!n&&!t&&this.renderSyncedStatus(),this.renderErrors())}}t.default=g,r=g,o="propTypes",i={isLiveEditEnabled:s.default.bool.isRequired,isReconnecting:s.default.bool.isRequired,markers:s.default.arrayOf(s.default.shape({path:s.default.array})).isRequired,onCloseValidationResults:s.default.func.isRequired,onFocus:s.default.func.isRequired,onToggleValidationResults:s.default.func.isRequired,showSavingStatus:s.default.bool.isRequired,showValidationTooltip:s.default.bool.isRequired,type:s.default.object.isRequired,value:s.default.object},o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(1923))&&r.__esModule?r:{default:r}).default;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{this.setState({showConfirmHistoryRestore:!1})}),f(this,"handleShowHistoryRestore",()=>{this.setState({showConfirmHistoryRestore:!0})}),f(this,"handleConfirmHistoryRestore",()=>{var e=this.props.onRestore;this.setState({showConfirmHistoryRestore:!1}),e()})}render(){var e=this.props.disabled,t=this.state.showConfirmHistoryRestore;return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",null,r.default.createElement(i.Tooltip,{arrow:!0,theme:"light",disabled:"ontouchstart"in document.documentElement,className:l.default.publishButton,html:r.default.createElement("div",null,"Restore to this version")},r.default.createElement(s.default,{disabled:e,onClick:this.handleShowHistoryRestore,color:"primary"},"Restore")),r.default.createElement("div",{className:l.default.publishInfoUndoButton},t&&r.default.createElement(a.default,{onClickOutside:this.handleCancelHistoryRestore,useOverlay:!1,hasAnimation:!0},r.default.createElement("div",null,r.default.createElement("div",{className:l.default.popOverText},r.default.createElement("strong",null,"Are you sure")," you want to restore this document?"),r.default.createElement(u.default,null,r.default.createElement(s.default,{kind:"simple",onClick:this.handleCancelHistoryRestore},"Cancel"),r.default.createElement(s.default,{color:"danger",onClick:this.handleConfirmHistoryRestore},"Restore")))))))}}t.default=d,f(d,"propTypes",{disabled:o.default.bool.isRequired,onRestore:o.default.func.isRequired})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(0)),o=c(n(1)),i=n(217),a=c(n(137)),s=c(n(1926)),u=c(n(631)),l=c(n(151));function c(e){return e&&e.__esModule?e:{default:e}}var f,d,p,h=e=>e.preventDefault();class v extends r.default.PureComponent{render(){var e=this.props,t=e.draft,n=e.published,o=e.filterField,c=e.focusPath,f=e.isLiveEditEnabled,d=e.markers,p=e.onBlur,v=e.onChange,m=e.onFocus,y=e.onShowHistory,g=e.patchChannel,b=e.readOnly,_=e.schema,w=e.type,O=t||n;return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",{className:l.default.top},r.default.createElement("span",{className:l.default.statusBadges},r.default.createElement(s.default,{liveEdit:f,isDraft:!!t,isPublished:!!n,title:n&&"Published ".concat((0,i.distanceInWordsToNow)(n._updatedAt,{addSuffix:!0}))})),O&&r.default.createElement("span",{className:l.default.editedTimeClickable,onClick:y},"Updated ",r.default.createElement(u.default,{time:O._updatedAt}))),r.default.createElement("form",{className:l.default.editor,onSubmit:h,id:"Sanity_Default_DeskTool_Editor_ScrollContainer"},r.default.createElement(a.default,{schema:_,patchChannel:g,value:O||{_type:w},type:w,filterField:o,readOnly:b,onBlur:p,onFocus:m,focusPath:c,onChange:v,markers:d})))}}t.default=v,f=v,d="propTypes",p={draft:o.default.object,filterField:o.default.func.isRequired,focusPath:o.default.array.isRequired,isLiveEditEnabled:o.default.bool,markers:o.default.arrayOf(o.default.shape({path:o.default.array})).isRequired,onBlur:o.default.func.isRequired,onChange:o.default.func.isRequired,onFocus:o.default.func.isRequired,onShowHistory:o.default.func.isRequired,patchChannel:o.default.object.isRequired,published:o.default.object,readOnly:o.default.bool.isRequired,schema:o.default.object.isRequired,type:o.default.object.isRequired},d in f?Object.defineProperty(f,d,{value:p,enumerable:!0,configurable:!0,writable:!0}):f[d]=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i,a=l(n(0)),s=l(n(1)),u=l(n(1927));function l(e){return e&&e.__esModule?e:{default:e}}class c extends a.default.PureComponent{render(){var e=this.props,t=e.isDraft,n=e.isPublished,r=e.title,o=e.liveEdit;return a.default.createElement(a.default.Fragment,null,o?a.default.createElement(u.default,{color:"danger"},"Live"):a.default.createElement(a.default.Fragment,null,!t&&!n&&a.default.createElement(u.default,{inverted:!0,faded:!0},"Draft"),n&&a.default.createElement(u.default,{color:"success",title:r},"Published"),t&&a.default.createElement(u.default,{inverted:!0,color:"neutral"},"Draft")))}}t.default=c,r=c,o="propTypes",i={isDraft:s.default.bool,isPublished:s.default.bool,title:s.default.string,liveEdit:s.default.bool},o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=a(n(1928));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u extends o.default.PureComponent{render(){var e=this.props,t=e.color,n=e.inverted,r=e.children,a=e.title,s=e.faded;return o.default.createElement("span",{className:n?i.default.inverted:i.default.default,"data-color":t,"data-faded":s,title:a},r)}}t.default=u,s(u,"propTypes",{color:r.default.oneOf([void 0,"success","warning","danger","info","neutral"]),inverted:r.default.bool,faded:r.default.bool,children:r.default.node,title:r.default.string}),s(u,"defaultProps",{color:void 0,inverted:!1})},function(e,t){e.exports={root:"DefaultBadge-modules_root_3jLf5",default:"DefaultBadge-modules_default_2espm DefaultBadge-modules_root_3jLf5",inverted:"DefaultBadge-modules_inverted_1v_Lg DefaultBadge-modules_root_3jLf5"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDateString=m,t.default=void 0;var r=d(n(0)),o=d(n(1)),i=d(n(137)),a=d(n(333)),s=d(n(631)),u=d(n(151)),l=n(217),c=d(n(26)),f=d(n(1930));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=()=>null,v="MMM D, YYYY, hh:mm A";function m(e){return(0,l.isToday)(e)?"Today, ".concat((0,l.format)(e,"hh:mm A")):(0,l.isYesterday)(e)?"Yesterday, ".concat((0,l.format)(e,"hh:mm A")):(0,l.format)(e,v)}class y extends r.default.PureComponent{constructor(){super(...arguments),p(this,"state",{isLoading:!0,document:null,focusPath:[]}),p(this,"handleFocus",e=>{this.setState({focusPath:e})})}componentDidMount(){var e=this.props.event,t=e.displayDocumentId,n=e.rev;this.fetch(t,n)}UNSAFE_componentWillReceiveProps(e){if(e.event!==this.props.event){var t=e.event,n=t.displayDocumentId,r=t.rev;this.fetch(n,r)}}fetch(e,t){this.setState({isLoading:!0}),a.default.getDocumentAtRevision(e,t).then(e=>{this.setState({document:e,isLoading:!1})})}render(){var e=this.props,t=e.schema,n=e.type,o=e.event,a=e.isLatest,l=this.state,d=l.isLoading,p=l.document,v=l.focusPath;return r.default.createElement(r.default.Fragment,null,d&&r.default.createElement(f.default,{ms:600},r.default.createElement("div",{className:u.default.spinnerContainer},r.default.createElement(c.default,{center:!0,message:"Loading revision from ".concat(m(o.endTime),"…")}))),r.default.createElement("div",{className:u.default.top},p&&r.default.createElement("span",{className:u.default.editedTime},"Changed ",r.default.createElement(s.default,{time:o.endTime}),a&&r.default.createElement("span",null," - Latest version"))),r.default.createElement("form",{className:u.default.editor,id:"Sanity_Default_DeskTool_Editor_ScrollContainer"},!d&&!p&&r.default.createElement("p",null,"There is no data associated with this history event."),p&&r.default.createElement(i.default,{onBlur:h,onFocus:this.handleFocus,focusPath:v,readOnly:!0,schema:t,type:n,value:p})))}}t.default=y,p(y,"propTypes",{schema:o.default.object.isRequired,type:o.default.object.isRequired,event:o.default.shape({displayDocumentId:o.default.string,rev:o.default.string,endTime:o.default.string}),isLatest:o.default.bool})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(0)),o=i(n(1));function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}class a extends r.Component{constructor(){var e,t,n;super(...arguments),n={done:!1},(t="state")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}componentDidMount(){this.timer=setTimeout(()=>{this.setState({done:!0})},this.props.ms)}componentWillUnmount(){clearTimeout(this.timer)}render(){var e=this.props.children;return this.state.done?"function"==typeof e?e():e:null}}t.default=a,a.propTypes={children:o.oneOfType([o.func,o.node]),ms:o.number.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(0)),o=i(n(1));function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}class a extends r.Component{constructor(e){var t,n,r;super(e),r=(e=>this.setState({value:e})),(n="setValue")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.state={value:e.startWith}}render(){return this.props.children([this.state.value,this.setValue])}}t.default=a,a.propTypes={startWith:o.any,children:o.func}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i=d(n(0)),a=d(n(1)),s=n(16),u=d(n(97)),l=d(n(1933)),c=d(n(587)),f=d(n(1934));function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=(0,s.withRouterHOC)((o=r=class extends i.default.PureComponent{constructor(){super(...arguments),p(this,"getLinkStateForItem",e=>{var t=this.props,n=t.router,r=t.index;return{panes:(n.state.panes||[]).slice(0,r).concat(e)}}),p(this,"shouldShowIconForItem",e=>{var t=this.props.displayOptions.showIcons,n=e.displayOptions&&e.displayOptions.showIcon;return void 0!==n?!1!==n&&e.icon:!1!==t&&e.icon})}itemIsSelected(e){var t=this.props,n=t.router,r=t.index,o=(n.state.panes||[])[r];return e.id===o}render(){var e=this.props,t=e.title,n=e.styles,r=e.className,o=e.defaultLayout,a=e.items,s=e.index,d=e.menuItems,p=e.menuItemGroups,h=e.isSelected,v=e.isCollapsed,m=e.onCollapse,y=e.onExpand;return i.default.createElement(u.default,{index:s,title:t,styles:n,className:r,isSelected:h,isCollapsed:v,onCollapse:m,onExpand:y,menuItems:d,menuItemGroups:p},i.default.createElement(f.default,{layout:o},a.map(e=>"divider"===e.type?i.default.createElement("hr",{key:e.id,className:l.default.divider}):i.default.createElement(c.default,{key:e.id,id:e.id,index:s,value:e,icon:this.shouldShowIconForItem(e),layout:o,isSelected:this.itemIsSelected(e),getLinkState:this.getLinkStateForItem,schemaType:e.schemaType}))))}},p(r,"propTypes",{index:a.default.number.isRequired,title:a.default.string.isRequired,className:a.default.string,styles:a.default.object,router:a.default.shape({state:a.default.shape({panes:a.default.arrayOf(a.default.string)})}).isRequired,defaultLayout:a.default.string,items:a.default.arrayOf(a.default.shape({id:a.default.string.isRequired,type:a.default.string.isRequired,schemaType:a.default.shape({name:a.default.string})})),menuItems:a.default.arrayOf(a.default.shape({title:a.default.string.isRequired})),menuItemGroups:a.default.arrayOf(a.default.shape({id:a.default.string.isRequired})),displayOptions:a.default.shape({showIcons:a.default.bool}),isSelected:a.default.bool.isRequired,isCollapsed:a.default.bool.isRequired,onExpand:a.default.func,onCollapse:a.default.func}),p(r,"defaultProps",{className:"",items:[],menuItems:[],menuItemGroups:[],displayOptions:{},styles:void 0,onExpand:void 0,onCollapse:void 0,defaultLayout:void 0}),o));t.default=h},function(e,t){e.exports={root:"DefaultList_root_8B-Db",divider:"DefaultList_divider_1CnzD"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1)),o=s(n(0)),i=n(295),a=s(n(332));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends o.default.PureComponent{render(){var e=this.props,t=e.layout,n=e.children;return"card"===t?o.default.createElement(i.List,{className:a.default.cardList},n):"media"===t?o.default.createElement(i.List,{className:a.default.mediaList},n):n}}t.default=l,u(l,"propTypes",{layout:r.default.oneOf(["default","detail","card","media"]),children:r.default.node}),u(l,"defaultProps",{layout:"default",children:void 0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=l(n(0)),o=l(n(1)),i=l(n(53)),a=n(269),s=l(n(632)),u=l(n(1937));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.error,n=t.path,o=t.helpId,l=t.message,c=t.stack,f=!(e.error instanceof a.SerializeError||l.includes("Module build failed:"));return r.default.createElement("div",{className:u.default.root},r.default.createElement("h2",{className:u.default.title},"Hmm… encountered an error while reading structure"),r.default.createElement("div",{className:u.default.body},r.default.createElement("h2",{className:u.default.path},n&&n.map((e,t)=>r.default.createElement("span",{key:t,className:u.default.segment},r.default.createElement("span",{className:u.default.pathSegmentProperty},e)))),r.default.createElement("div",{className:u.default.problem},r.default.createElement("div",{className:u.default.problemSeverity},r.default.createElement("span",{className:u.default.problemSeverityIcon},r.default.createElement(s.default,null)),r.default.createElement("span",{className:u.default.problemSeverityText},"Error")),r.default.createElement("div",{className:u.default.problemContent},r.default.createElement("div",{className:u.default.problemMessage},f?function(e){return e.replace(/\(\.\.\.\)\./g,"(...)\n .").replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,"").replace(/___default\./g,".").replace(new RegExp(" \\(https?:\\/\\/".concat(window.location.host),"g")," (")}(c):l),o&&r.default.createElement("a",{className:u.default.problemLink,href:(0,i.default)(o),rel:"noopener noreferrer",target:"_blank"},"View documentation")))))}c.propTypes={error:o.default.shape({message:o.default.string.isRequired,stack:o.default.string.isRequired,path:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.number])),helpId:o.default.string}).isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t{var e=o.default.documentTypeListItems();return 0===e.length?o.default.component({id:"empty-list-pane",component:r.default.createElement(i.default,null)}):o.default.list().id("__root__").title("Content").showIcons(e.some(e=>e.getSchemaType().icon)).items(e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.default.createElement("div",{className:o.default.root},r.default.createElement("h2",null,"Empty schema"),r.default.createElement("p",null,"Your schema does not contain any document types. If it did, those types would be listed here."," ",r.default.createElement("a",{title:"Schema documentation",target:"_blank",rel:"noopener noreferrer",href:"https://www.sanity.io/docs/content-studio/the-schema"},"Read more about how to add schema types"),"."))};var r=i(n(0)),o=i(n(1940));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports={root:"MissingDocumentTypesMessage_root_jeff- positioning_absoluteCenter_1T-ll"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(633))&&r.__esModule?r:{default:r};function i(e){var t=e.getSchemaType();return!0===t.singleInstance?e.child(o.default.editor().id(t.name).schemaType(t.name).documentId(t.name)):e}t.default=(()=>o.default.list().title("Content").items([...o.default.documentTypeListItems().map(i)]))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=i.CONFIGURED_SPACES.find(t=>t.name===e.space);t&&t.api&&o.default.config(t.api)};var r,o=(r=n(13))&&r.__esModule?r:{default:r},i=n(118)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o,i,a=O(n(133)),s=O(n(1)),u=O(n(0)),l=O(n(39)),c=O(n(581)),f=O(n(425)),d=n(16),p=O(n(590)),h=n(147),v=O(n(119)),m=O(n(1944)),y=O(n(1945)),g=O(n(1948)),b=O(n(1950)),_=n(1977),w=O(n(1980));function O(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}c.default&&(i=new c.default(l.default));var E=(0,d.withRouterHOC)((o=r=class extends u.default.Component{constructor(){super(...arguments),k(this,"state",{createMenuIsOpen:!1,menuIsOpen:!1,showLoadingScreen:!0,searchIsOpen:!1,loaded:!1}),k(this,"handleClickCapture",e=>{e.target.closest(".".concat(m.default.root))&&(this.state.menuIsOpen&&(e.target.closest(".".concat(m.default.sideMenuContainer))||(e.preventDefault(),e.stopPropagation(),this.handleToggleMenu())))}),k(this,"handleAnimationEnd",e=>{this.setState({showLoadingScreen:!1})}),k(this,"handleCreateButtonClick",()=>{this.setState(e=>({createMenuIsOpen:!e.createMenuIsOpen}))}),k(this,"handleActionModalClose",()=>{this.setState({createMenuIsOpen:!1})}),k(this,"handleToggleMenu",()=>{this.setState(e=>({menuIsOpen:!e.menuIsOpen}))}),k(this,"handleSwitchTool",()=>{this.setState({menuIsOpen:!1})}),k(this,"handleSearchOpen",()=>{this.setState({searchIsOpen:!0})}),k(this,"handleSearchClose",()=>{this.setState({searchIsOpen:!1})}),k(this,"setLoadingScreenElement",e=>{this._loadingScreenElement=e}),k(this,"renderContent",()=>{var e=this.props,t=e.tools,n=e.router,r=this.state,o=r.createMenuIsOpen,s=r.menuIsOpen,c=r.searchIsOpen,_=(i?i.getInferredTypes():l.default.getTypeNames().filter(e=>{var t=l.default.get(e);return t.type&&"document"===t.type.name})).map(e=>l.default.get(e)).filter(e=>(0,h.isActionEnabled)(e,"create")).map(e=>({title:i?i.getDisplayName(e.name):e.title||(0,a.default)(e.name),icon:i?i.getIcon(e.name):e.icon,params:{type:e.name}})),O=s||c,k=m.default.root;return O&&(k+=" ".concat(m.default.isOverlayVisible)),u.default.createElement("div",{className:k,onClickCapture:this.handleClickCapture},this.state.showLoadingScreen&&u.default.createElement("div",{className:this.state.loaded||"hidden"==document.visibilityState?m.default.loadingScreenLoaded:m.default.loadingScreen,ref:this.setLoadingScreenElement},u.default.createElement(f.default,{text:"Restoring Sanity"})),u.default.createElement("div",{className:m.default.navBar},u.default.createElement(b.default,{tools:t,onCreateButtonClick:this.handleCreateButtonClick,onToggleMenu:this.handleToggleMenu,onSwitchTool:this.handleSwitchTool,router:n,user:this.state.user,searchIsOpen:c,onUserLogout:v.default.actions.logout,onSearchOpen:this.handleSearchOpen,onSearchClose:this.handleSearchClose})),u.default.createElement("div",{className:m.default.sideMenuContainer},u.default.createElement(w.default,{activeToolName:n.state.tool,isOpen:s,onClose:this.handleToggleMenu,onSignOut:v.default.actions.logout,onSwitchTool:this.handleSwitchTool,tools:this.props.tools,user:this.state.user})),u.default.createElement("div",{className:m.default.mainArea},u.default.createElement("div",{className:m.default.toolContainer},u.default.createElement(d.RouteScope,{scope:n.state.tool},u.default.createElement(y.default,{tool:n.state.tool})))),o&&u.default.createElement(g.default,{onClose:this.handleActionModalClose,actions:_}),p.default.map((e,t)=>u.default.createElement(e,{key:t})))})}componentWillMount(){this.userSubscription=v.default.currentUser.subscribe(e=>this.setState({user:e.user}))}componentDidMount(){this._loadingScreenElement&&this.state.showLoadingScreen&&this._loadingScreenElement.addEventListener("animationend",this.handleAnimationEnd,!1)}componentWillUnmount(){this.userSubscription.unsubscribe(),this._loadingScreenElement&&this._loadingScreenElement.removeEventListener("animationend",this.handleAnimationEnd,!1)}componentDidUpdate(e){this.state.loaded||this.setState({loaded:!0})}render(){return u.default.createElement(_.SchemaErrorReporter,null,this.renderContent)}},k(r,"propTypes",{router:s.default.shape({state:s.default.shape({tool:s.default.string}),navigate:s.default.func}).isRequired,tools:s.default.arrayOf(s.default.shape({name:s.default.string})).isRequired}),o));t.default=E},function(e,t){e.exports={root:"DefaultLayout_root_b1e5d",isOverlayVisible:"DefaultLayout_isOverlayVisible_3E0LS",navBar:"DefaultLayout_navBar_1_Gka",loadingScreen:"DefaultLayout_loadingScreen_2oSup",loadingScreenLoaded:"DefaultLayout_loadingScreenLoaded_30DUO",navigation:"DefaultLayout_navigation_16A2k",toolContainer:"DefaultLayout_toolContainer_1eNru",sideMenuContainer:"DefaultLayout_sideMenuContainer_18Toi",mainArea:"DefaultLayout_mainArea_2Xk1j"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),o=l(n(1)),i=l(n(268)),a=l(n(8)),s=l(n(1946)),u=l(n(1947));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends r.Component{constructor(){super(...arguments),c(this,"state",{error:null,showErrorDetails:!1}),c(this,"handleShowDetails",()=>{this.setState({showErrorDetails:!0})}),c(this,"handleRetry",()=>{this.setState({error:null})})}componentDidCatch(e,t){this.setState({error:{error:e,info:t}})}renderError(){var e,t,n,o=this.getActiveTool()||{},i=this.state.error,l=i.error,c=i.info,f=this.state.showErrorDetails;return r.default.createElement("div",{className:s.default.error},r.default.createElement("div",{className:s.default.errorSplash},r.default.createElement(u.default,null),r.default.createElement("h2",{className:s.default.errorHeading},"Rats! The ",o.title||o.name||"active"," tool crashed!"),r.default.createElement("div",{className:s.default.errorActionButton},r.default.createElement(a.default,{onClick:this.handleRetry},"Retry"),r.default.createElement(a.default,{onClick:this.handleShowDetails,disabled:f},"Details"))),f&&r.default.createElement("div",{className:s.default.errorDetails},r.default.createElement("div",{className:s.default.errorStackTraceWrapper},r.default.createElement("h3",null,"Stack trace:"),r.default.createElement("pre",{className:s.default.errorStackTrace},function(e){return e.replace(/\(\.\.\.\)\./g,"(...)\n .").replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,"").replace(/___default\./g,".").replace(new RegExp(" \\(https?:\\/\\/".concat(window.location.host),"g")," (")}(function(e){return e.split("\n").slice(0,15).join("\n")}((t=(e=l).stack.toString(),n=e.message,-1===t.indexOf(n)?"".concat(n,"\n\n").concat(t):t))))),r.default.createElement("div",{className:s.default.errorComponentStack},r.default.createElement("h3",null,"Component stack:"),r.default.createElement("pre",null,c.componentStack.replace(/^\s*\n+/,"")))))}getActiveTool(){var e=this.props.tool;return i.default.find(t=>t.name===e)}render(){if(this.state.error)return this.renderError();if(!i.default.length)return r.default.createElement("div",null,"No tools fulfills the part ",r.default.createElement("code",null,"`part:@sanity/base/tool`"));var e=this.getActiveTool();if(!e)return r.default.createElement("div",null,"Tool not found: ",this.props.tool);var t=e.component;return r.default.createElement(t,this.props)}}t.default=f,c(f,"propTypes",{tool:o.default.string}),c(f,"defaultProps",{tool:null})},function(e,t){e.exports={error:"RenderTool_error_2WjWG",errorSplash:"RenderTool_errorSplash_1kjkJ",errorDetails:"RenderTool_errorDetails_36k6L",errorStackTraceWrapper:"RenderTool_errorStackTraceWrapper_jC9PS",errorComponentStack:"RenderTool_errorComponentStack_1HUFa",errorStackTrace:"RenderTool_errorStackTrace_YmaIU",errorActionButton:"RenderTool_errorActionButton_Rg45T"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};var i=()=>o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 680 680"},o.default.createElement("path",{fill:"#f85040",d:"M223 190c-3 2-3 3-2 12a2299 2299 0 0 1 11 119l1 5 13 4 17 5c6 0 20 3 41 7 17 4 31 6 50 8a304 304 0 0 1 48 8c6 0 24 2 30 4 6 1 26 3 30 2l4-2c1-4-1-25-3-40l-7-49-6-40-3-3a320 320 0 0 1-55-10l-36-7a1289 1289 0 0 0-96-18l-12-3-19-5c-3 0-4 0-6 3z"}),o.default.createElement("path",{d:"M277 18c0 2 3 7 5 8 3 2 4 3 1 3l-2 2c0 3 6 9 8 9 4 0 2 2-5 4-11 5-25 12-27 15-5 5-1 14 7 15 3 1 4 2 4 4 0 4 5 9 11 11l12 2c6 2 8 2 10 5s10 8 18 11l5 1-10 1c-10 0-16 2-17 5 0 2 5 7 11 11l14 5 11 5 6 4c2 0 3 1 4 3s3 3 8 0l4-1c3 0 2-2-1-6l-3-4 5-1c4 0 4 0 4-2-1-4-5-5-22-5h-20l-9-2c-10-5-7-5 30-5 30 0 32-1 33-2 0-4-3-5-34-9l-10-1 23-1a684 684 0 0 0 43-4c0-3-5-5-21-7l-16-3h9c15-2 17-2 17-4 0-5-8-7-30-11l-12-1 13-5 21-8c7-3 14-10 14-12l2-2c5 0 2-5-6-10-4-2-10-4-14-4l-6-2 2-1c0-3-4-6-9-7a436 436 0 0 0-59-1c-7-2-22-4-22-3zm57 14l-18 3c-12 2-19 2-25 0-2-1-2-1 3-2 3-1 10-2 26-2s19 0 14 1zm25 8zm-11 6c38 0 37 0 26 7-6 3-6 3-10 2l-20-1c-23 1-39 4-61 12-11 4-15 4-14 0 2-4 7-9 14-13 10-5 24-9 27-9l38 2zm-84 18l1 3c0 2-2 2-4 1v-3c1-2 3-3 3-1zm60 6c-8 1-22 4-31 4-10 1-9 1 14-3 20-3 24-4 16-1zm30 10l8 2c-2 2-65 5-65 3l10-5c8-2 28-2 47 0zm-68 1c4 0 5 0 5 3l-1 2-16-4c-2-2 0-3 3-3l9 2zm75 15c1 1-3 1-20 1-16 0-23-1-24-2-2-1 1-1 20-1l24 2zm-48 56l-7 3-10 3-16 5-13 4c-5 0-17-3-24-5-10-3-11-3-26 6l-13 8-1 8 1 15a424 424 0 0 1 8 67c1 29 4 63 6 69 1 3 6 5 20 8l14 4a316 316 0 0 0-35 21l-46 25c-14 7-17 9-27 18l-6 4c-5 0-24 2-28 4l-17 1c-17 1-31 4-34 7-3 2 0 8 4 9l3 2-4 2c-5 3-5 3-3 6 3 4 7 5 17 3l13-2h4l-2 3c-2 4-1 10 1 12 5 5 12 4 19-3 10-9 14-10 29-10 10-1 11-1 14-3l4-2a222 222 0 0 1 25-12c8-3 11-5 28-15a278 278 0 0 1 52-24l7-3v20l2 31c2 10 4 42 4 54v4l-6 3-11 2-27 4-18 4a236 236 0 0 0-29 6l-86 23c-11 4-13 5-11 8 1 2 1 2-1 4l-3 1-2 1-6-7c-6-14-11-20-17-27l-6-7h-8c-5 0-8 0-13 3s-6 4-8 8-2 4-1 12c3 11 15 31 26 44 7 6 11 7 20 6l11-2c4 0 6-1 10-6 6-5 10-7 10-3 1 2 1 2 5 2 5 0 16-3 22-7l14-5 15-5 17-5 18-4 11-2 12-2 18-4c6-1 13-3 16-5l13-3 11-3c8-2 19-2 30 1l17 4c10 2 21 5 23 7l2 4c0 3-11 17-19 27l-6 6-3-6c-2-7-4-10-10-12-4-2-13-3-19-1-7 2-12 8-15 16-3 9-4 21-2 27l2 11c3 17 7 30 13 34l6 5c5 4 10 5 17 5 7-1 8-2 10-13 0-7 2-10 4-10 4 0 8-4 19-17a812 812 0 0 1 74-73c10-9 14-11 20-14l6-1v-41c0-47 1-61 4-68 2-6 4-7 7-5 3 1 22 16 31 24l23 17a415 415 0 0 1 62 35l-1 8-5 20c0 4 5 6 8 5s9-8 13-14c6-8 6-8 14-1 14 11 16 13 22 15 8 5 14 3 14-2 0-3-1-5-11-14l-11-11 4 1 12 5c11 4 18 4 22 1 7-6-1-14-19-18l-9-3h7c10 1 30-1 32-3 4-5-4-11-15-13-4 0-5 0-4-2 3-2 2-6 0-7-4-3-18-3-28 0l-11 3-12-6-27-17a800 800 0 0 1-86-58l-3-2h4c9 0 11-1 13-3a428 428 0 0 0 20-15l3-3v-9l-1-10 5-6 16-20 1-8c0-7 0-9-6-45a272 272 0 0 1-5-42l-5-30c0-4-2-6-6-7l-9-2-8-1-12-3-14-4-19-4-36-6-42-5c-51-8-54-8-60-7zm31 7a1129 1129 0 0 0 70 10 587 587 0 0 1 92 19l8 2 1 6 5 40c1 15 4 34 7 47 1 9 3 28 2 30-2 4-10 14-16 19l-6 7 1 10v10l-7 7c-6 4-9 6-13 7l-6 2h-19a670 670 0 0 0-58-6l-14-2-21-4c-17-4-24-5-45-7-12-1-26-4-42-8a539 539 0 0 0-60-14c-2-1-5-45-5-66 0-20-3-43-7-65l-2-16v-7l13-7 16-8 6 2c4 2 9 3 23 5 6 1 7 1 15-2a177 177 0 0 1 27-9c6-4 7-4 16-4l19 2zm-64 194c20 5 36 8 49 9l40 6a219 219 0 0 0 44 7l18 2c26 3 28 3 36 7l13 10 14 10a890 890 0 0 1 65 42c17 10 34 22 34 23 0 3-14 17-19 20-1 1-4-1-14-7-18-11-27-16-32-17-10-4-25-14-40-26l-32-25c-7-3-13 0-16 7s-4 21-4 67l-1 41-3 1c-6 2-10 2-20 1l-22-3-14-1-13-2c-16-2-58-16-74-24l-7-4v-16l-4-40c-2-18-2-27-2-41 0-17 0-18-2-18l-14 6-19 8c-9 3-26 11-46 23a264 264 0 0 1-33 17c-5 3-8 3-13-2-4-3-5-6-6-9 0-3 0-4 5-8 9-9 14-12 28-19a573 573 0 0 0 68-38c7-3 14-7 15-9l5-2 16 4zm-142 73l8 11 5 5-4 1-13 1c-8-1-10 0-15 2l-11 7c-14 14-18 6-5-9 2-2 6-5 10-6 7-4 9-7 4-8-3 0-11 3-16 8-3 2-5 3-10 3l-10 2-9 1c-5 1-5 1 11-7 24-12 35-16 49-16h5l1 5zm-56 4c-7 3-8 4-13 3l-6-1c-1-1 5-3 12-4l7-2h4c4 0 4 0-4 4zm551 36c0 2-6 4-13 6l-7 2 2 2 2 2 11-1h19l7 2c0 1-4 2-21 3l-18 1c-2 1-2 4 0 7l13 4c11 3 18 6 18 8 0 1-5 3-8 3s-13-3-27-9h-6c-2 2 1 7 12 17l11 11-2 1c-4 2-11-2-19-10-7-6-17-13-19-13-3 0-6 3-11 10l-6 7-3 3v-4l4-11c1-4 2-8 1-10 0-2 0-2 2-2 4 0 13-7 20-17 5-6 5-7 10-7l10-3a84 84 0 0 1 18-3v1zm-325 48a183 183 0 0 0 28 9c8 2 17 5 23 5a718 718 0 0 1 43 7l16 1-3 3c-28 25-61 57-75 74l-11 13v-7c-1-8-4-16-8-19-4-4-3-8 3-15l7-8 18-22c1-4 0-9-3-12-3-4-15-8-27-10-10-1-18-3-24-6-5-2-21-1-28 1l-9 2-13 4-30 7a817 817 0 0 0-93 26l-17 6-2-4c-1-7-3-12-7-17-3-4-4-5-2-4l10-2 13-4 29-8a714 714 0 0 1 60-14c23-6 38-9 50-10l20-4 7-3 6 3 19 8zM96 562c2 6 2 8 0 8-2 1-2 0-5-6l-2-7c0-1 3-2 5-1l2 6zm227 52c1 6 0 15-2 16s-2 1-2-3l-1-14v-10l2 4 3 7z"}),o.default.createElement("path",{d:"M266 229l4 7 3 6-3 4c-4 3-5 6-3 7 1 1 8-1 10-3l3-2 6 6c7 7 9 8 9 4l-5-8-6-6 3-4c4-4 4-7 1-8-3-2-3-1-7 2l-3 3-5-5c-5-6-7-6-7-3zm63 16l-2 7-4 18c-2 9-2 11-1 13 2 5 15 11 17 8 1-1 0-4-2-4l-6-3-3-2 2-5c3-12 5-26 3-30-1-3-3-4-4-2zm46 6l3 5 3 4-5 6c-3 4-4 5-3 6 2 3 8 2 11-1 2-3 2-3 6 3 1 3 6 7 7 7v-7l-3-5-3-4 5-6c6-4 6-5 5-7-2-4-6-4-11 2l-3 3-5-4c-5-4-7-5-7-2zm-78 52c-1 2 1 4 3 4l4 1 7 1 8 2c3 1 3 1 3 8 0 8 2 13 6 18 4 4 8 5 15 5 9 1 13-4 13-17l2-8c4 1 18 4 20 6 4 2 6 1 6-1 0-5-5-8-16-10l-19-3-29-5-16-2c-6-1-7-1-7 1zm36 11v6c0 4 1 5 3 8 3 3 4 2 4-6-1-8-1-8 6-6 4 0 4 1 4 3 0 6-2 12-5 14s-3 3-7 2c-6-1-9-5-9-11l-1-8c0-3 0-3 2-3l3 1z"}));t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(1)),o=f(n(0)),i=n(16),a=f(n(32)),s=f(n(199)),u=f(n(1949)),l=f(n(107)),c=f(n(105));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return o.default.createElement(a.default,{className:u.default.modal,onClose:e.onClose,isOpen:!0,padding:"none"},o.default.createElement("div",{className:u.default.contentWrapper},o.default.createElement(l.default,{size:"large",padding:"medium"},o.default.createElement("h1",{className:u.default.title},"Create new"),o.default.createElement("ul",{className:u.default.list},e.actions.map(t=>{var n=t.icon;return o.default.createElement("li",{className:u.default.listItem,key:t.title},o.default.createElement(i.IntentLink,{onClick:e.onClose,className:u.default.actionLink,intent:"create",params:t.params},o.default.createElement("span",{className:u.default.icon},n?o.default.createElement(n,null):o.default.createElement(s.default,null)),o.default.createElement("span",null,t.title),o.default.createElement(c.default,{duration:1e3,opacity:.1,radius:200})))})))))}d.defaultProps={title:"Create",actions:[]},d.propTypes={title:r.default.string,actions:r.default.array,onClose:r.default.func.isRequired};var p=d;t.default=p},function(e,t){e.exports={modal:"ActionModal_modal_1iXRp",contentWrapper:"ActionModal_contentWrapper_dvyTe",title:"ActionModal_title_q_g9H",list:"ActionModal_list_3h1Iz",listItem:"ActionModal_listItem_2Pmj3",icon:"ActionModal_icon_2tWRv",actionLink:"ActionModal_actionLink_1cOPS"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(0)),o=i(n(1951));function i(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t{this.handleFrame(),this.tickAnimFrameId=window.requestAnimationFrame(this.tick)}),s(this,"handleSetLoginStatusElement",e=>{this.loginStatusElement=e}),s(this,"handleSetSearchElement",e=>{this.searchElement=e})}componentDidMount(){this.tick()}componentDidUpdate(e,t){var n=this.state,r=n.showLabel,o=n.showLabelMinWidth,i=n.showToolSwitcher,a=n.showToolSwitcherMinWidth,s=-1===o&&!t.showLabel&&r,u=-1===a&&!t.showToolSwitcher&&i,l=-1===a&&t.showLabel&&!r;(s||u||l)&&this.handleCustomResize(window.innerWidth)}componentWillUnmount(){this.io&&(this.io.disconnect(),this.io=null),this.tickAnimFrameId&&(window.cancelAnimationFrame(this.tickAnimFrameId),this.tickAnimFrameId=null)}handleFrame(){var e=window.innerWidth;e!==this.state.winWidth&&this.handleCustomResize(e)}handleCustomResize(e){if(this.loginStatusElement){var t=this.state.showToolSwitcher?this.loginStatusElement.getBoundingClientRect():this.searchElement.getBoundingClientRect();this.setState(n=>(function(e,t,n){var r=e.showLabel,o=e.showLabelMinWidth,i=e.showToolSwitcher,a=e.showToolSwitcherMinWidth,s={winWidth:n};return t&&t<=n?(r?(-1===o||no.default.createElement("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"1em",height:"1em"},o.default.createElement("path",{d:"M5 7.5H20",stroke:"currentColor",style:i}),o.default.createElement("path",{d:"M5 12.5H20",stroke:"currentColor",style:i}),o.default.createElement("path",{d:"M5 17.5H20",stroke:"currentColor",style:i}));t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=a(n(636));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.tools,n=e.direction,r=e.activeToolName,a=e.renderItem,s="vertical"===n;return o.default.createElement("ul",{className:"horizontal"===n?i.default.rootHorizontal:i.default.rootVertical},t.map(e=>{var t=r===e.name?i.default.activeItem:i.default.item;return o.default.createElement("li",{key:e.name,className:t},a(e,!0,s))}))}s.defaultProps={tools:[],direction:"horizontal"},s.propTypes={activeToolName:r.default.string,renderItem:r.default.func,direction:r.default.oneOf(["vertical","horizontal"]),tools:r.default.arrayOf(r.default.shape({name:r.default.string.isRequired,icon:r.default.func}))};var u=s;t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(1)),o=u(n(0)),i=u(n(1955)),a=n(34),s=u(n(1956));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.isActive,n=e.title,r=e.icon,u=e.showIcon,l=e.showLabel,c=e.direction,f=r||i.default;return o.default.createElement(a.Tooltip,{className:"".concat(t?s.default.rootActive:s.default.root," ").concat("vertical"===c?s.default.vertical:s.default.horizontal),title:n,arrow:!0,inertia:!0,theme:"dark",distance:"7",sticky:!0,size:"small",disabled:l||"ontouchstart"in document.documentElement},o.default.createElement("div",{className:s.default.inner,tabIndex:-1},u&&o.default.createElement("div",{className:s.default.iconContainer},o.default.createElement(f,null)),l&&o.default.createElement("div",{className:s.default.toolName},n)))}l.defaultProps={isActive:!1,showIcon:!0,showLabel:!0,direction:"horizontal"},l.propTypes={direction:r.default.oneOf(["horizontal","vertical"]),isActive:r.default.bool,title:r.default.string.isRequired,icon:r.default.func,showIcon:r.default.bool,showLabel:r.default.bool};var c=l;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};var i={vectorEffect:"non-scaling-stroke"},a=()=>o.default.createElement("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"1em",height:"1em"},o.default.createElement("path",{d:"M8 13L6 15L9 18L11 16C13.5 17.5 15 18 17 16L18.5 14.5L9.5 5.5L8 7C6 9 6.5 10.5 8 13Z",stroke:"currentColor",style:i}),o.default.createElement("path",{d:"M12 8L17 3",stroke:"currentColor",style:i}),o.default.createElement("path",{d:"M16 12L21 7",stroke:"currentColor",style:i}),o.default.createElement("path",{d:"M7.5 16.5L2.5 21.5",stroke:"currentColor",style:i}));t.default=a},function(e,t){e.exports={root:"ToolSwitcherItem_root_1qYUw",inner:"ToolSwitcherItem_inner_1MBi5",horizontal:"ToolSwitcherItem_horizontal_oRAeZ",vertical:"ToolSwitcherItem_vertical_3pSXi",rootActive:"ToolSwitcherItem_rootActive_29T07 ToolSwitcherItem_root_1qYUw",iconContainer:"ToolSwitcherItem_iconContainer_Neoqi",toolName:"ToolSwitcherItem_toolName_2fPJa"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(1958)),a=s(n(15));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.projectName||"Sanity",n=e.logo||a.default;return r.default.createElement("div",{className:i.default.root,tabIndex:-1},n&&r.default.createElement("div",{className:i.default.brandLogoContainer},r.default.createElement(n,null)),!n&&r.default.createElement("div",null,r.default.createElement("h1",{className:i.default.projectName},t)))}u.propTypes={projectName:o.default.string};var l=u;t.default=l},function(e,t){e.exports={root:"Branding_root_32lhs",projectName:"Branding_projectName_2Zo-i",brandLogoContainer:"Branding_brandLogoContainer_1sF86"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(1)),o=l(n(0)),i=l(n(188)),a=l(n(584)),s=l(n(638)),u=l(n(1960));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends o.default.PureComponent{constructor(){super(...arguments),c(this,"handleClickOutside",()=>{this.state.userMenuOpened&&this.setState({userMenuOpened:!1})}),c(this,"handleUserMenuToggle",()=>{this.setState(e=>({userMenuOpened:!e.userMenuOpened}))}),c(this,"handleUserMenuItemClick",e=>{var t=this.props.onLogout;"signOut"===e.action&&t()}),this.state={userMenuOpened:!1}}render(){var e=this.props.user,t=this.state.userMenuOpened;if(!e)return null;var n=u.default.root;return this.props.className&&(n+=this.props.className),o.default.createElement("div",{className:n},o.default.createElement("button",{className:u.default.button,onClick:this.handleUserMenuToggle,title:"Show user menu",type:"button"},o.default.createElement("div",{className:u.default.inner,tabIndex:-1},e.profileImage?o.default.createElement("img",{src:e.profileImage,className:u.default.userImage,alt:"".concat(e.name,"'s profile image")}):o.default.createElement("div",{className:u.default.userImageMissing},e.name?e.name.charAt(0):e.email.charAt(0)))),o.default.createElement("div",{className:u.default.userName},e.name),t&&o.default.createElement("div",{className:u.default.userMenu},o.default.createElement(a.default,{onAction:this.handleUserMenuItemClick,items:[{title:"Log out ".concat(e.name),icon:s.default,action:"signOut"}],origin:"top-right",onClickOutside:this.handleUserMenuClose})))}}c(f,"propTypes",{className:r.default.string,onLogout:r.default.func,user:r.default.shape({name:r.default.string,profileImage:r.default.string})});var d=(0,i.default)(f);t.default=d},function(e,t){e.exports={root:"LoginStatus_root_m4UGS",button:"LoginStatus_button_2Thif",inner:"LoginStatus_inner_3nWUd",userImage:"LoginStatus_userImage_2N9IP",userImageMissing:"LoginStatus_userImageMissing_8AkLt LoginStatus_userImage_2N9IP",userName:"LoginStatus_userName_2vmS9",userMenu:"LoginStatus_userMenu_ZnTDy"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(0)),o=n(6),i=n(4),a=f(n(119)),s=n(141),u=f(n(1962)),l=f(n(342)),c=f(n(1964));function f(e){return e&&e.__esModule?e:{default:e}}function d(){return(d=Object.assign||function(e){for(var t=1;te.reduce((e,t)=>Math.max(e,h.indexOf(t.severity)),0);var m=(0,s.withPropsStream)(a.default.currentUser.pipe((0,i.flatMap)(e=>e.user&&"administrator"===e.user.role?u.default.checkVersions().then(e=>{return{versionReply:e.result,showStatus:!0}}):{showStatus:!1}),(0,i.catchError)(e=>(0,o.of)({error:e,showStatus:!1}))),class extends r.default.PureComponent{constructor(){super(...arguments),p(this,"state",{showDialog:!1}),p(this,"handleHideDialog",()=>{this.setState({showDialog:!1})}),p(this,"handleShowDialog",()=>{this.setState({showDialog:!0})})}render(){if(!this.props.showStatus)return null;var e=this.props.versionReply.outdated,t=h[v(e||[])];return r.default.createElement(c.default,d({},this.props.versionReply,{level:t,showDialog:this.state.showDialog,onHideDialog:this.handleHideDialog,onShowDialog:this.handleShowDialog,versions:l.default}))}});t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(43)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),i=c(n(639)),a=c(n(342)),s=c(n(32)),u=c(n(13)),l=c(n(640));function c(e){return e&&e.__esModule?e:{default:e}}var f=e=>e;var d="function"==typeof window.requestIdleCallback?window.requestIdleCallback:e=>setTimeout(e,0),p=()=>({m:Object.keys(a.default).map(e=>"".concat(e,"@").concat(a.default[e]))}),h="undefined"==typeof sessionStorage?{}:sessionStorage,v=e=>{console.warn("Module versions check failed. Dependencies *might* be out of date.",e)},m=e=>e.split("\n\n").map((e,t)=>{var n=e.split("\n");return o.default.createElement("p",{key:t},(e=>{for(var t=[],n=0;n0&&void 0!==arguments[0]?arguments[0]:{}).getOutdated,t=(e=>e.join(",").replace(/@?sanity[\/-]/g,""))(p().m),n=h.versionCheck&&0===h.versionCheck.indexOf(t)&&h.versionCheck.slice(t.length+1);return!e&&n?Promise.resolve({result:JSON.parse(n)}):u.default.request({uri:"/versions",query:p(),json:!0}).then(e=>({hash:t,result:f(e)}))};class g extends o.PureComponent{constructor(){super(...arguments),this.state={},this.onResponse=this.onResponse.bind(this),this.handleClose=this.handleClose.bind(this)}onResponse(e){var t=(0,r.default)(e.result,["outdated"]);t.hash&&h&&(h.versionCheck=[e.hash,JSON.stringify(t)].join("|")),t.isSupported||this.setState({result:t})}handleClose(){this.setState({result:null})}componentDidMount(){d(()=>{y().then(this.onResponse).catch(v)})}render(){var e=this.state.result;if(!e||e.isSupported||void 0===e.isSupported)return null;var t=s.default||l.default;return o.default.createElement(t,{centered:!0,isOpen:!0,color:"danger",title:"Unsupported module versions",onClose:this.handleClose},m(e.message||""),e.helpUrl&&o.default.createElement("p",null,"For more information, please read ",o.default.createElement("a",{href:e.helpUrl},e.helpUrl)))}}g.checkVersions=y,g.getLatestInstalled=(()=>{var e=Object.keys(a.default).map(e=>a.default[e]).sort(i.default);return e[e.length-1]});var b=g;t.default=b},function(e,t){e.exports={container:"FullscreenError_container_31RIo",content:"FullscreenError_content_2ULHo",closeButton:"FullscreenError_closeButton_15Rl0"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var r=l(n(1)),o=l(n(0)),i=l(n(1965)),a=l(n(1966)),s=l(n(1967)),u=l(n(1968));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){var t,n=e.isSupported,r=e.isUpToDate,l=e.level,c=e.onHideDialog,f=e.onShowDialog,d=e.outdated,p=e.showDialog,h=e.versions,v=d.length?l:"notice",m=n?v:"high",y="".concat(u.default.root," ").concat(u.default[m]),g=r?s.default:a.default;return o.default.createElement("div",{className:y},p&&o.default.createElement(g,{severity:m,outdated:d,onClose:c,versions:h}),o.default.createElement("button",{className:u.default.button,onClick:f,type:"button"},o.default.createElement("div",{className:u.default.buttonInner,tabIndex:-1},r?o.default.createElement("span",null,"Up to date"):o.default.createElement("span",null,o.default.createElement(i.default,null)," ",1===(t=d.length)?" 1 update":"".concat(t," updates")))))}c.defaultProps={outdated:[]},c.propTypes={isUpToDate:r.default.bool.isRequired,isSupported:r.default.bool.isRequired,level:r.default.string.isRequired,onHideDialog:r.default.func.isRequired,onShowDialog:r.default.func.isRequired,outdated:r.default.array,showDialog:r.default.bool.isRequired,versions:r.default.any.isRequired}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r};var i={vectorEffect:"non-scaling-stroke"},a=()=>o.default.createElement("svg",{viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",width:"1em",height:"1em"},o.default.createElement("path",{d:"M12.5 4.5L5.5 9V16L12.5 20.5L19.5 16V9L12.5 4.5Z",stroke:"currentColor",style:i}),o.default.createElement("path",{d:"M5.5 9L12.5 13.5L19.5 9",stroke:"currentColor",style:i}),o.default.createElement("path",{d:"M12.5 13.5V20.5",stroke:"currentColor",style:i}),o.default.createElement("path",{d:"M9 6.5L16 11",stroke:"currentColor",style:i}));t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),o=u(n(1)),i=u(n(8)),a=u(n(88)),s=u(n(641));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=e=>"".concat(e.slice(0,1).toUpperCase()).concat(e.slice(1));class f extends r.Component{renderTable(){var e=this.props.outdated;return r.default.createElement("div",null,r.default.createElement("table",{className:s.default.versionsTable},r.default.createElement("thead",null,r.default.createElement("tr",null,r.default.createElement("th",null,"Module"),r.default.createElement("th",null,"Installed"),r.default.createElement("th",null,"Latest"),r.default.createElement("th",null,"Importance"))),r.default.createElement("tbody",null,e.map(e=>r.default.createElement("tr",{key:e.name},r.default.createElement("td",null,e.name),r.default.createElement("td",null,e.version),r.default.createElement("td",null,e.latest),r.default.createElement("td",null,c(e.severity||"low")))))),r.default.createElement("p",{className:s.default.upgradeText},"To upgrade, run the Sanity CLI command ",r.default.createElement("code",{className:s.default.code},"sanity upgrade")," ","in your project folder."))}renderContactDeveloper(){var e=this.props.severity;return r.default.createElement("div",null,r.default.createElement("p",null,"You are running an outdated studio."),"high"===e?r.default.createElement("p",null,"Please get in touch with your developers and ask them to upgrade it for you."):r.default.createElement("p",null,"Consider getting in touch with your developers and ask them to upgrade it for you."),r.default.createElement("details",null,r.default.createElement("summary",null,"Developer info"),this.renderTable()))}render(){var e=this.props,t=e.severity,n=e.onClose;return r.default.createElement(a.default,{isOpen:!0,onClose:n,onClickOutside:n},r.default.createElement("div",{className:s.default.content},r.default.createElement("div",null,r.default.createElement("h2",null,"low"===t?"New versions available":"Studio is outdated"),this.renderContactDeveloper(),r.default.createElement(i.default,{color:"primary",onClick:n},"Close"))))}}l(f,"propTypes",{onClose:o.default.func.isRequired,severity:o.default.string.isRequired,outdated:o.default.arrayOf(o.default.shape({name:o.default.string,latest:o.default.string,severity:o.default.string}))}),l(f,"defaultProps",{outdated:[]});var d=f;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(0)),o=u(n(1)),i=u(n(8)),a=u(n(88)),s=u(n(641));function u(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.onClose,n=e.versions;return r.default.createElement(a.default,{isOpen:!0,onClose:t,onClickOutside:t},r.default.createElement("div",{className:s.default.content},r.default.createElement("div",null,r.default.createElement("h2",null,"Studio is up to date"),r.default.createElement("table",{className:s.default.versionsTable},r.default.createElement("thead",null,r.default.createElement("tr",null,r.default.createElement("th",null,"Module"),r.default.createElement("th",null,"Installed"),r.default.createElement("th",null,"Latest"))),r.default.createElement("tbody",null,Object.keys(n).map(e=>r.default.createElement("tr",{key:e},r.default.createElement("td",null,e),r.default.createElement("td",null,n[e]),r.default.createElement("td",null,n[e]))))),r.default.createElement(i.default,{color:"primary",onClick:t},"Close"))))}l.defaultProps={versions:{}},l.propTypes={onClose:o.default.func.isRequired,versions:o.default.objectOf(o.default.string)};var c=l;t.default=c},function(e,t){e.exports={root:"SanityStatus_root_2DJul",button:"SanityStatus_button_1Lgyb",buttonInner:"SanityStatus_buttonInner_AK1y_",notice:"SanityStatus_notice_2aA5B",low:"SanityStatus_low_26exq",medium:"SanityStatus_medium_bPhlQ",high:"SanityStatus_high_3yj1u"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(205),o=m(n(1)),i=m(n(0)),a=m(n(39)),s=m(n(52)),u=n(6),l=n(4),c=n(16),f=m(n(1970)),d=m(n(105)),p=m(n(1972)),h=m(n(1974)),v=m(n(642));function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g={debugSearch:(0,r.isKeyHotkey)("ctrl+shift+d")},b=e=>""===e?(0,u.of)([]):(0,f.default)(e);class _ extends i.default.Component{constructor(){super(...arguments),y(this,"fieldRef",i.default.createRef()),y(this,"resultsRef",i.default.createRef()),y(this,"searchTerm$",new u.Subject),y(this,"componentWillUnmount$",new u.Subject),y(this,"state",{activeIndex:-1,error:null,isBleeding:!0,isFocused:!1,isLoading:!1,isPressing:!1,results:[],value:"",isDebug:!1}),y(this,"handleInputChange",e=>{this.searchTerm$.next(e.currentTarget.value)}),y(this,"handleBlur",()=>{this.state.isPressing||(this.props.onClose(),this.setState({isFocused:!1}))}),y(this,"handleFocus",()=>{this.props.onOpen(),this.setState({isFocused:!0})}),y(this,"handleHitMouseDown",e=>{this.setState({activeIndex:Number(e.currentTarget.getAttribute("data-hit-index"))})}),y(this,"handleHitClick",e=>{this.handleClear()}),y(this,"handleClear",()=>{this.props.onClose(),this.searchTerm$.next(""),this.setState({isFocused:!1})}),y(this,"handleKeyDown",e=>{var t=this.state,n=t.results,r=t.activeIndex,o=["ArrowUp","ArrowDown"].includes(e.key),i=n.length-1;if("Enter"===e.key){var a=this.resultsRef.current.element,s=a&&a.querySelector('[data-hit-index="'.concat(r,'"]'));s&&s.click()}if("Escape"===e.key&&this.fieldRef.current.inputElement.blur(),o){e.preventDefault();var u=r+("ArrowUp"===e.key?-1:1);u<0&&(u=i),u>i&&(u=0),this.setState({activeIndex:u})}}),y(this,"handleMouseDown",()=>{this.setState({isPressing:!0})}),y(this,"handleWindowKeyDown",e=>{g.debugSearch(e)&&this.setState(e=>({isDebug:!e.isDebug}))}),y(this,"handleWindowResize",()=>{var e=!window.matchMedia("all and (min-width: 32em)").matches;this.setState({isBleeding:e})}),y(this,"handleWindowMouseUp",()=>{this.setState({isPressing:!1})}),y(this,"wrapWithDebug",(e,t)=>{if(!this.state.isDebug)return t;var n=e.stories,r=e.score;return i.default.createElement("div",{style:{border:"1px solid #aaa"}},i.default.createElement("div",{style:{padding:4,fontSize:"90%",backgroundColor:"#f0f0f0"}},i.default.createElement("strong",null,"Total score: ",Math.round(100*r)/100),i.default.createElement("ul",null,n.filter(e=>e.score>0).map((e,t)=>i.default.createElement("li",{key:t},e.path,": ",e.score," (",e.why,")")))),t)}),y(this,"renderItem",(e,t,n)=>{var r=e.hit,o=a.default.get(r._type);return i.default.createElement(c.IntentLink,{className:n,intent:"edit",params:{id:r._id,type:o.name},"data-hit-index":t,onMouseDown:this.handleHitMouseDown,onClick:this.handleHitClick,tabIndex:-1},this.wrapWithDebug(e,i.default.createElement(s.default,{value:r,layout:"default",type:o,status:i.default.createElement("div",{className:v.default.itemType},o.title)})),i.default.createElement(d.default,{duration:200,opacity:.1,radius:200}))})}componentDidMount(){window.addEventListener("keydown",this.handleWindowKeyDown),window.addEventListener("mouseup",this.handleWindowMouseUp),window.addEventListener("resize",this.handleWindowResize),this.searchTerm$.pipe((0,l.distinctUntilChanged)(),(0,l.switchMap)(e=>(0,u.concat)((0,u.of)({activeIndex:-1,error:null,value:e,isLoading:!0}),(0,u.timer)(100).pipe((0,l.mergeMapTo)(b(e)),(0,l.map)(e=>({results:e,isLoading:!1}))))),(0,l.catchError)((e,t)=>(0,u.concat)((0,u.of)({error:e}),t)),(0,l.tap)(e=>this.setState(e)),(0,l.takeUntil)(this.componentWillUnmount$.asObservable())).subscribe(),this.handleWindowResize()}componentDidUpdate(e){!e.shouldBeFocused&&this.props.shouldBeFocused&&this.fieldRef.current.inputElement.select()}componentWillUnmount(){window.removeEventListener("mouseup",this.handleWindowMouseUp),window.removeEventListener("keydown",this.handleWindowKeyDown),window.removeEventListener("resize",this.handleWindowResize),this.componentWillUnmount$.next(),this.componentWillUnmount$.complete()}renderResults(){var e=this.state,t=e.activeIndex,n=e.error,r=e.isBleeding,o=e.isLoading,a=e.results,s=e.value;return i.default.createElement(h.default,{activeIndex:t,error:n,isBleeding:r,isLoading:o,items:a,query:s,renderItem:this.renderItem,ref:this.resultsRef})}render(){var e=this.state,t=e.isBleeding,n=e.isFocused,r=e.isLoading,o=e.value,a=n&&o.length>0;return i.default.createElement(p.default,{isBleeding:t,isFocused:n,isLoading:r,isOpen:a,onBlur:this.handleBlur,onChange:this.handleInputChange,onClear:this.handleClear,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,ref:this.fieldRef,results:this.renderResults(),value:o})}}y(_,"propTypes",{onOpen:o.default.func.isRequired,onClose:o.default.func.isRequired,shouldBeFocused:o.default.bool.isRequired});var w=_;t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(13)),o=a(n(39)),i=n(1971);function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,n(556).createWeightedSearch)((0,i.getSearchableTypes)(o.default),r.default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSearchableTypes=void 0;t.getSearchableTypes=(e=>e.getTypeNames().map(t=>e.get(t)).filter(e=>(e=>e.type&&"document"===e.type.name)(e)&&!(e=>e.name.startsWith("sanity."))(e)))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(1)),o=c(n(0)),i=c(n(105)),a=c(n(37)),s=c(n(637)),u=c(n(591)),l=c(n(1973));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class d extends o.default.PureComponent{constructor(){super(...arguments),f(this,"inputElement",null),f(this,"setInputElement",e=>{this.inputElement=e})}render(){var e=this.props,t=e.hotkeys,n=e.isBleeding,r=e.isFocused,c=e.isOpen,f=e.onBlur,d=e.onChange,p=e.onClear,h=e.onFocus,v=e.onKeyDown,m=e.onMouseDown,y=e.placeholder,g=e.results,b=e.value,_=l.default.root;return n&&(_+=" ".concat(l.default.isBleeding)),r&&(_+=" ".concat(l.default.isFocused)),c&&(_+=" ".concat(l.default.isOpen)),b.length&&(_+=" ".concat(l.default.hasValue)),o.default.createElement("div",{className:_,onMouseDown:m},o.default.createElement("div",{className:l.default.inputField},o.default.createElement("label",{className:l.default.label},o.default.createElement(s.default,null)),o.default.createElement("input",{className:l.default.input,type:"text",value:b,onChange:d,onBlur:f,onFocus:h,onKeyDown:v,placeholder:y,ref:this.setInputElement}),t&&o.default.createElement("div",{className:l.default.hotkeys},o.default.createElement(u.default,{keys:t})),o.default.createElement("div",{className:b?l.default.clearButtonWithValue:l.default.clearButton,onClick:p,title:"Clear search"},o.default.createElement(a.default,null),o.default.createElement(i.default,{duration:1e3,opacity:.1,radius:200}))),o.default.createElement("div",{className:l.default.results},g))}}f(d,"propTypes",{hotkeys:r.default.arrayOf(r.default.string),isBleeding:r.default.bool,isFocused:r.default.bool,isOpen:r.default.bool,onBlur:r.default.func,onChange:r.default.func,onClear:r.default.func,onFocus:r.default.func,onKeyDown:r.default.func,onMouseDown:r.default.func,placeholder:r.default.string,results:r.default.element,value:r.default.string.isRequired}),f(d,"defaultProps",{hotkeys:void 0,isBleeding:!1,isFocused:!1,isOpen:!1,onBlur:void 0,onChange:void 0,onClear:void 0,onFocus:void 0,onKeyDown:void 0,onMouseDown:void 0,placeholder:"Search",results:null});var p=d;t.default=p},function(e,t){e.exports={root:"SearchField_root_2fBCC",isBleeding:"SearchField_isBleeding_3tUoZ",isFocused:"SearchField_isFocused_seZZ-",isOpen:"SearchField_isOpen_y8qlK",inputField:"SearchField_inputField_17gAw",label:"SearchField_label_8owZ2",input:"SearchField_input_1Pt1o",clearButton:"SearchField_clearButton_30110",hasValue:"SearchField_hasValue_1EOo1",clearButtonWithValue:"SearchField_clearButtonWithValue_1b49q SearchField_clearButton_30110",hotkeys:"SearchField_hotkeys_18X0u",results:"SearchField_results_tSBaI shadows_shadow-12dp_1NhBJ"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(26)),o=s(n(1)),i=s(n(0)),a=s(n(642));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l extends i.default.Component{constructor(){super(...arguments),u(this,"element",null),u(this,"setElement",e=>{this.element=e})}componentDidUpdate(e){}render(){var e=this.props,t=e.activeIndex,n=e.error,o=e.isLoading,s=e.items,u=e.query,l=e.renderItem,c=!o&&u.length>0&&0===s.length;return n?i.default.createElement("div",{className:"".concat(a.default.root," ").concat(a.default.noResults)},n.message):c?i.default.createElement("div",{className:"".concat(a.default.root," ").concat(a.default.noResults)},i.default.createElement("div",null,"Could not find"," ",i.default.createElement("strong",null,"“",u,"”"))):o?i.default.createElement("div",{className:"".concat(a.default.root," ").concat(a.default.isLoading)},i.default.createElement(r.default,{center:!0,message:"Searching…"})):i.default.createElement("ul",{className:a.default.root,ref:this.setElement},s.map((e,n)=>i.default.createElement("li",{key:e.hit._id,className:a.default.listItem},l(e,n,t===n?a.default.activeItem:a.default.item))))}}u(l,"propTypes",{activeIndex:o.default.number.isRequired,error:o.default.instanceOf(Error),isLoading:o.default.bool.isRequired,items:o.default.arrayOf(o.default.shape({hit:o.default.shape({_id:o.default.string.isRequired})})).isRequired,query:o.default.string.isRequired,renderItem:o.default.func.isRequired}),u(l,"defaultProps",{error:null});var c=l;t.default=c},function(e,t){e.exports={root:"SpaceSwitcher_root_4yaJe"}},function(e,t){e.exports={root:"NavBar_root_3R8dL",withToolSwitcher:"NavBar_withToolSwitcher_2TLU0",branding:"NavBar_branding_18L90",hamburger:"NavBar_hamburger_J58Rb",hamburgerButton:"NavBar_hamburgerButton_2-MF2",hamburgerButtonInner:"NavBar_hamburgerButtonInner_26fco",spaceSwitcher:"NavBar_spaceSwitcher_1vPPm",toolSwitcher:"NavBar_toolSwitcher_7g3sr",sanityStatus:"NavBar_sanityStatus_3brEP",loginStatus:"NavBar_loginStatus_1MEn9",extras:"NavBar_extras_14kVM",search:"NavBar_search_3Hd56",searchIsOpen:"NavBar_searchIsOpen_2gN70",createButton:"NavBar_createButton_CiBLe",createButtonInner:"NavBar_createButtonInner_2yeWi",createButtonIcon:"NavBar_createButtonIcon_2uVwz",createButtonText:"NavBar_createButtonText_1KQG7",searchButton:"NavBar_searchButton_1UE6F",searchButtonInner:"NavBar_searchButtonInner_qlrAy",searchButtonIcon:"NavBar_searchButtonIcon_16A5f",searchButtonText:"NavBar_searchButtonText_2yR2s"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaErrorReporter=void 0;var r=s(n(0)),o=s(n(1)),i=s(n(39)),a=s(n(1978));function s(e){return e&&e.__esModule?e:{default:e}}function u(){}class l extends r.default.Component{constructor(){var e,t,n;super(...arguments),n=u,(t="componentDidMount")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}render(){var e=i.default._validation.filter(e=>e.problems.some(e=>"error"===e.severity));return e.length>0?r.default.createElement(a.default,{problemGroups:e}):this.props.children()}}t.SchemaErrorReporter=l,l.propTypes={children:o.default.func}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(0)),o=l(n(1)),i=l(n(632)),a=l(n(60)),s=l(n(53)),u=l(n(1979));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=e.problemGroups;return r.default.createElement("div",{className:u.default.root},r.default.createElement("h2",{className:u.default.title},"Uh oh… found errors in schema"),r.default.createElement("ul",{className:u.default.list},t.map((e,t)=>r.default.createElement("li",{key:"g_".concat(t),className:u.default.listItem},r.default.createElement("h2",{className:u.default.path},function(e){return e.map((e,t)=>{var n="s_".concat(t);return"type"===e.kind?r.default.createElement("span",{className:u.default.segment,key:n},r.default.createElement("span",{key:"name",className:u.default.pathSegmentTypeName},e.name)," ",r.default.createElement("span",{key:"type",className:u.default.pathSegmentTypeType},e.type)):"property"===e.kind?r.default.createElement("span",{className:u.default.segment,key:n},r.default.createElement("span",{className:u.default.pathSegmentProperty},e.name)):"type"===e.kind?r.default.createElement("span",{className:u.default.segment,key:n},r.default.createElement("span",{key:"name",className:u.default.pathSegmentTypeName},e.name),r.default.createElement("span",{key:"type",className:u.default.pathSegmentTypeType},e.type)):null}).filter(Boolean)}(e.path)),r.default.createElement("ul",{className:u.default.problems},e.problems.map((e,n)=>r.default.createElement("li",{key:"g_".concat(t,"_p_").concat(n),className:u.default["problem_".concat(e.severity)]},r.default.createElement("div",{className:u.default.problemSeverity},r.default.createElement("span",{className:u.default.problemSeverityIcon},"error"===e.severity&&r.default.createElement(i.default,null),"warning"===e.severity&&r.default.createElement(a.default,null)),r.default.createElement("span",{className:u.default.problemSeverityText},e.severity)),r.default.createElement("div",{className:u.default.problemContent},r.default.createElement("div",{className:u.default.problemMessage},e.message),e.helpId&&r.default.createElement("a",{className:u.default.problemLink,href:(0,s.default)(e.helpId),target:"_blank",rel:"noopener noreferrer"},"View documentation")))))))))}c.propTypes={problemGroups:o.default.arrayOf(o.default.shape({path:o.default.arrayOf(o.default.shape({kind:o.default.string,type:o.default.string,name:o.default.string})),problems:o.default.arrayOf(o.default.shape({severity:o.default.string}))}).isRequired).isRequired};var f=c;t.default=f},function(e,t){e.exports={root:"SchemaErrors_root_TaJvy",title:"SchemaErrors_title_2tmRX",list:"SchemaErrors_list_2voDX",path:"SchemaErrors_path_3frFF",segment:"SchemaErrors_segment_1YYBl",problems:"SchemaErrors_problems_x_v-n",problem:"SchemaErrors_problem_1jYUf",problemSeverity:"SchemaErrors_problemSeverity_B9JOS",problemSeverityIcon:"SchemaErrors_problemSeverityIcon_G-2hw",problemSeverityText:"SchemaErrors_problemSeverityText_2Mxf3",problemLink:"SchemaErrors_problemLink_1_LFq",problemMessage:"SchemaErrors_problemMessage_uM0UQ",problem_error:"SchemaErrors_problem_error_1AQWZ SchemaErrors_problem_1jYUf",problem_warning:"SchemaErrors_problem_warning_1An2F SchemaErrors_problem_1jYUf",listItem:"SchemaErrors_listItem_1SZUY",arrow:"SchemaErrors_arrow_3Dgcy",pathSegmentTypeName:"SchemaErrors_pathSegmentTypeName_3HOJr",pathSegmentTypeType:"SchemaErrors_pathSegmentTypeType_3uQmo",pathSegmentProperty:"SchemaErrors_pathSegmentProperty_2EZhW"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n(1)),o=f(n(0)),i=f(n(37)),a=f(n(638)),s=f(n(635)),u=n(118),l=f(n(643)),c=f(n(1981));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){var t=e.activeToolName,n=e.isOpen,r=e.onClose,f=e.onSignOut,d=e.onSwitchTool,p=e.tools,h=e.user,v=c.default.root;n&&(v+=" ".concat(c.default.isOpen));var m=n?"0":"-1";return o.default.createElement("div",{className:v},o.default.createElement("div",null,o.default.createElement("button",{className:c.default.closeButton,type:"button",onClick:r,title:"Close menu",tabIndex:m},o.default.createElement(i.default,null)),o.default.createElement("div",{className:c.default.userProfile},h.profileImage?o.default.createElement("img",{className:c.default.userProfileImage,src:h.profileImage,alt:"".concat(h.name,"'s profile image")}):o.default.createElement("div",{className:c.default.userProfileImageMissing},h.name?h.name.charAt(0):h.email.charAt(0)),o.default.createElement("div",{className:c.default.userProfileText},h.name)),u.HAS_SPACES&&o.default.createElement("div",{className:c.default.spaceSwitcher},o.default.createElement(l.default,{isVisible:n})),o.default.createElement("div",{className:c.default.toolSwitcher},o.default.createElement(s.default,{activeToolName:t,direction:"vertical",isVisible:n,onSwitchTool:d,tools:p})),o.default.createElement("div",{className:c.default.menuBottom},o.default.createElement("div",{className:c.default.signOutButton},o.default.createElement("a",{onClick:f,tabIndex:m},o.default.createElement("span",{className:c.default.signOutButtonIconContainer},o.default.createElement(a.default,null))," ",o.default.createElement("span",{className:c.default.signOutButtonText},"Sign out"))))))}d.propTypes={activeToolName:r.default.string,isOpen:r.default.bool.isRequired,onClose:r.default.func.isRequired,onSignOut:r.default.func.isRequired,onSwitchTool:r.default.func.isRequired,tools:r.default.arrayOf(r.default.shape({name:r.default.string})).isRequired,user:r.default.shape({profileImage:r.default.string,name:r.default.string.isRequired}).isRequired},d.defaultProps={activeToolName:""};var p=d;t.default=p},function(e,t){e.exports={root:"SideMenu_root_3kkLY",isOpen:"SideMenu_isOpen_3Bm4d",closeButton:"SideMenu_closeButton_gQv-U",userProfile:"SideMenu_userProfile_1biQR",userProfileImage:"SideMenu_userProfileImage_1Xc0v",userProfileImageMissing:"SideMenu_userProfileImageMissing_2CBYQ SideMenu_userProfileImage_1Xc0v",userProfileText:"SideMenu_userProfileText_12T7a",spaceSwitcher:"SideMenu_spaceSwitcher_114ML",toolSwitcher:"SideMenu_toolSwitcher_2_I48",menuBottom:"SideMenu_menuBottom_183Iy",sanityStudioLogoContainer:"SideMenu_sanityStudioLogoContainer_2hPhD",signOutButton:"SideMenu_signOutButton_3kWNv",signOutButtonIconContainer:"SideMenu_signOutButtonIconContainer_2vnkp",signOutButtonText:"SideMenu_signOutButtonText_1kBfe"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return o.default.createElement("div",null,o.default.createElement("h2",null,"Page not found"),e.children,o.default.createElement(i.StateLink,{toIndex:!0},"Go to index"))};var r,o=(r=n(0))&&r.__esModule?r:{default:r},i=n(16)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(0)),o=a(n(91)),i=a(n(1984));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=Symbol.for("SANITY_ERROR_HANDLER");t.default=class extends r.default.PureComponent{constructor(e){super(e),s(this,"state",{error:null}),s(this,"handleGlobalError",(e,t,n,r,o)=>{o&&([/unexpected token <$/i].some(e=>e.test(o.message))||(console.error(o),this.setState({error:o})))}),s(this,"handleClose",()=>{this.setState({error:null})}),this.handleGlobalError=this.handleGlobalError.bind(this),this.handleGlobalError.identity=u}componentDidMount(){window.onerror&&window.onerror.identity!==u&&(this.originalErrorHandler=window.onerror),window.onerror=this.handleGlobalError}componentWillUnmount(){window.onerror=this.originalErrorHandler||window.onerror}render(){var e=this.state.error;return e?r.default.createElement(o.default,{kind:"error",action:{title:"Close"},onAction:this.handleClose,timeout:2500},r.default.createElement("div",{className:i.default.errorMessageHeader},r.default.createElement("strong",null,"An error occured")),r.default.createElement("div",null,"Check browser javascript console for details")):null}}},function(e,t){e.exports={errorMessageHeader:"ErrorHandler_errorMessageHeader_1jpcM"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(43)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),i=c(n(639)),a=c(n(342)),s=c(n(32)),u=c(n(13)),l=c(n(640));function c(e){return e&&e.__esModule?e:{default:e}}var f=e=>e;var d="function"==typeof window.requestIdleCallback?window.requestIdleCallback:e=>setTimeout(e,0),p=()=>({m:Object.keys(a.default).map(e=>"".concat(e,"@").concat(a.default[e]))}),h="undefined"==typeof sessionStorage?{}:sessionStorage,v=e=>{console.warn("Module versions check failed. Dependencies *might* be out of date.",e)},m=e=>e.split("\n\n").map((e,t)=>{var n=e.split("\n");return o.default.createElement("p",{key:t},(e=>{for(var t=[],n=0;n0&&void 0!==arguments[0]?arguments[0]:{}).getOutdated,t=(e=>e.join(",").replace(/@?sanity[\/-]/g,""))(p().m),n=h.versionCheck&&0===h.versionCheck.indexOf(t)&&h.versionCheck.slice(t.length+1);return!e&&n?Promise.resolve({result:JSON.parse(n)}):u.default.request({uri:"/versions",query:p(),json:!0}).then(e=>({hash:t,result:f(e)}))};class g extends o.PureComponent{constructor(){super(...arguments),this.state={},this.onResponse=this.onResponse.bind(this),this.handleClose=this.handleClose.bind(this)}onResponse(e){var t=(0,r.default)(e.result,["outdated"]);t.hash&&h&&(h.versionCheck=[e.hash,JSON.stringify(t)].join("|")),t.isSupported||this.setState({result:t})}handleClose(){this.setState({result:null})}componentDidMount(){d(()=>{y().then(this.onResponse).catch(v)})}render(){var e=this.state.result;if(!e||e.isSupported||void 0===e.isSupported)return null;var t=s.default||l.default;return o.default.createElement(t,{centered:!0,isOpen:!0,color:"danger",title:"Unsupported module versions",onClose:this.handleClose},m(e.message||""),e.helpUrl&&o.default.createElement("p",null,"For more information, please read ",o.default.createElement("a",{href:e.helpUrl},e.helpUrl)))}}g.checkVersions=y,g.getLatestInstalled=(()=>{var e=Object.keys(a.default).map(e=>a.default[e]).sort(i.default);return e[e.length-1]});var b=g;t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=o.default.root,t=o.default.project,n=o.default.plugins,s=o.default.api||{},u=s.dataset,l=s.projectId,c={root:e,project:t,api:{projectId:l||"myProjectId",dataset:u||"myDatasetName"},plugins:n},f=[!l&&'"projectId"',!u&&'"dataset"'].filter(Boolean);return r.default.createElement(a.default,{color:"default",title:"Project details missing",isOpen:!0,centered:!0},r.default.createElement(i.default,{size:"medium",padding:"none"},r.default.createElement("p",null,"The ",r.default.createElement("code",null,"sanity.json")," file in your studio folder seems to be missing the"," ",f.join(" and ")," configuration ",f.length>1?"options ":"option ","under the ",r.default.createElement("code",null,"api")," key."),r.default.createElement("p",null,"A valid ",r.default.createElement("code",null,"sanity.json")," file looks something like the following:"),r.default.createElement("pre",null,r.default.createElement("code",null,(d=JSON.stringify(c,null,2),p=d.split(/("dataset": "myDatasetName"|"projectId": "myProjectId")/).reduce((e,t,n)=>n%2==0?e.concat(t):e.concat(r.default.createElement("strong",{key:t},t)),[]),r.default.createElement(r.default.Fragment,null,p))))));var d,p};var r=s(n(0)),o=s(n(63)),i=s(n(107)),a=s(n(32));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports={root:"SanityRoot_root_102GA"}}],[644]); diff --git a/studio/dist/static/js/vendor.bundle.js b/studio/dist/static/js/vendor.bundle.js new file mode 100644 index 0000000..1027083 --- /dev/null +++ b/studio/dist/static/js/vendor.bundle.js @@ -0,0 +1 @@ +!function(e){var t=window.webpackJsonp;window.webpackJsonp=function(n,i,a){for(var o,u,c,s=0,f=[];sz.length&&z.push(e)}function U(e,t,n){return null==e?0:function e(t,n,r,l){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var u=!1;if(null===t)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case a:u=!0}}if(u)return r(l,t,""===n?"."+D(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;cthis.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=ce,e.release=se}l(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:oe,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=oe,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return l(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=l({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(ue);var de=ue.extend({data:null}),pe=ue.extend({data:null}),me=[9,13,27,32],he=$&&"CompositionEvent"in window,ve=null;$&&"documentMode"in document&&(ve=document.documentMode);var ye=$&&"TextEvent"in window&&!ve,ge=$&&(!he||ve&&8=ve),be=String.fromCharCode(32),ke={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},xe=!1;function we(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Te(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var _e=!1;var Se={eventTypes:ke,extractEvents:function(e,t,n,r){var l=void 0,i=void 0;if(he)e:{switch(e){case"compositionstart":l=ke.compositionStart;break e;case"compositionend":l=ke.compositionEnd;break e;case"compositionupdate":l=ke.compositionUpdate;break e}l=void 0}else _e?we(e,n)&&(l=ke.compositionEnd):"keydown"===e&&229===n.keyCode&&(l=ke.compositionStart);return l?(ge&&"ko"!==n.locale&&(_e||l!==ke.compositionStart?l===ke.compositionEnd&&_e&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,_e=!0)),l=de.getPooled(l,t,n,r),i?l.data=i:null!==(i=Te(n))&&(l.data=i),H(l),i=l):i=null,(e=ye?function(e,t){switch(e){case"compositionend":return Te(t);case"keypress":return 32!==t.which?null:(xe=!0,be);case"textInput":return(e=t.data)===be&&xe?null:e;default:return null}}(e,n):function(e,t){if(_e)return"compositionend"===e||!he&&we(e,t)?(e=ie(),le=re=ne=null,_e=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1