diff --git a/pull/4071/94975-2eef262f55e1d4e78e77.css b/pull/4071/94975-2166fb78d3bcc982bbd8.css similarity index 100% rename from pull/4071/94975-2eef262f55e1d4e78e77.css rename to pull/4071/94975-2166fb78d3bcc982bbd8.css diff --git a/pull/4071/94975-2166fb78d3bcc982bbd8.js b/pull/4071/94975-2166fb78d3bcc982bbd8.js new file mode 100644 index 00000000000..ed673bcc1d1 --- /dev/null +++ b/pull/4071/94975-2166fb78d3bcc982bbd8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkterra_core=self.webpackChunkterra_core||[]).push([[94975],{7563:function(e,t,n){n.r(t),n.d(t,{default:function(){return L}});var r=n(96540),a=n(36665),i=n(5260),o=n(56531),l=["components"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var d={};function c(e){var t=e.components,n=s(e,l);return(0,a.mdx)("wrapper",u({},d,n,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React from 'react';\nimport Signature from 'terra-signature';\nimport classNames from 'classnames/bind';\nimport Tabs from 'terra-tabs';\nimport TextSignature from './TextSignature';\nimport ImageSignature from './ImageSignature';\nimport VisuallyHiddenText from 'terra-visually-hidden-text';\nimport styles from './SignatureExample.module.scss';\n\nconst cx = classNames.bind(styles);\n\nclass SignatureExample extends React.Component {\n constructor() {\n super();\n\n this.state = { lineSegments: [], lineWidth: Signature.Opts.Width.FINE, message: '' };\n this.handleClear = this.handleClear.bind(this);\n this.handleLineWidth = this.handleLineWidth.bind(this);\n this.handleLiveRegion = this.handleLiveRegion.bind(this);\n this.tabKey = 'compact';\n }\n\n handleClear() {\n const newState = { ...this.state, lineSegments: [] };\n this.setState(newState);\n this.handleLiveRegion();\n }\n\n handleLineWidth(event) {\n this.setState({ [event.target.name]: event.target.value });\n }\n\n handleLiveRegion(value) {\n this.setState({ message: value ? 'Added Signature' : 'Cleared Signature' });\n setTimeout(() => {\n this.setState({ message: '' });\n }, 3000);\n }\n\n render() {\n return (\n
\n \n \n
\n <>\n
\n \n
\n \n
\n
\n \n
\n

\n \n
\n
\n
\n \n
\n \n
\n \n
\n \n
\n
\n

\n Note: \n
\n

    \n
  • This example Terra Signature currently supports only Draw Functionality.
  • \n
  • Signature Text and Signature Upload Image functionalities will be part of future enhancement.
  • \n
\n

\n \n
\n );\n }\n}\n\nexport default SignatureExample;\n\n")))}c.isMDXComponent=!0;var p=n(201),f=["components"];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var g={};function b(e){var t=e.components,n=h(e,f);return(0,a.mdx)("wrapper",m({},g,n,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-scss"},":local { \n .signature-wrapper {\n border: 1px solid rgb(0, 0, 0);\n height: 100px;\n padding: 7px;\n width: 100%;\n }\n\n .text-area-style {\n border: 0;\n height: 88px;\n width: calc(100% - 0.2rem);\n \n &:focus {\n outline: 2px dotted #000;\n outline-offset: -2px;\n }\n }\n\n .clear-button {\n position: relative;\n z-index: 0;\n }\n\n .add-button {\n margin: 5px;\n }\n\n .input-image {\n margin: 5px;\n }\n}\n\n")))}b.isMDXComponent=!0;var y=function(e){var t=e.title,n=e.description,a=e.isExpanded;return r.createElement(p.A,{title:t||"Signature Example",description:n,example:r.createElement(o.A,null),exampleCssSrc:r.createElement(b,null),exampleSrc:r.createElement(c,null),isExpanded:a})},v=n(12883),x=["components"];function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var w={},E="wrapper";function _(e){var t=e.components,n=S(e,x);return(0,a.mdx)(E,O({},w,n,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(v.Ay,{mdxType:"PropsTable"},(0,a.mdx)(v.fI,{key:"ROW1",mdxType:"Row"},(0,a.mdx)(v.dt,{mdxType:"PropNameCell"},"lineWidth"),(0,a.mdx)(v.$d,{mdxType:"TypeCell"},(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-javascript"},"enum: [\n 1\n 2\n 4\n 6\n],\n"))),(0,a.mdx)(v.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,a.mdx)(v.NZ,{mdxType:"DefaultValueCell"},(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-javascript"},"2\n"))),(0,a.mdx)(v.Hd,{mdxType:"DescriptionCell"},(0,a.mdx)("p",null,"The line width to use when drawing the signature on the canvas.\nOne of Signature.Opts.Width.EXTRA_FINE, Signature.Opts.Width.FINE, Signature.Opts.Width.MEDIUM, Signature.Opts.Width.HEAVY."))),(0,a.mdx)(v.fI,{key:"ROW2",mdxType:"Row"},(0,a.mdx)(v.dt,{mdxType:"PropNameCell"},"lineSegments"),(0,a.mdx)(v.$d,{mdxType:"TypeCell"},(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-javascript"},"array\n"))),(0,a.mdx)(v.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,a.mdx)(v.NZ,{mdxType:"DefaultValueCell"},(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-javascript"},"[]\n"))),(0,a.mdx)(v.Hd,{mdxType:"DescriptionCell"},(0,a.mdx)("p",null,"Line segments that define signature."))),(0,a.mdx)(v.fI,{key:"ROW3",mdxType:"Row"},(0,a.mdx)(v.dt,{mdxType:"PropNameCell"},"onChange"),(0,a.mdx)(v.$d,{mdxType:"TypeCell"},(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-javascript"},"func\n"))),(0,a.mdx)(v.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,a.mdx)(v.NZ,{mdxType:"DefaultValueCell"},(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-javascript"},"undefined\n"))),(0,a.mdx)(v.Hd,{mdxType:"DescriptionCell"},(0,a.mdx)("p",null,"A callback function to execute when a line segment is drawn. The first parameter is the event, the\nsecond parameter is all the line segments, and the last parameter is the most recent line segment drawn.")))))}_.isMDXComponent=!0;var j=["components"];function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var N={},C="wrapper";function L(e){var t=e.components,n=P(e,j);return(0,a.mdx)(C,T({},N,n,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(i.E,{mdxType:"Badge"}),(0,a.mdx)("h1",{id:"terra-signature"},"Terra Signature"),(0,a.mdx)("p",null,"The terra-signature component provides users a way to define a signature with a series of line segments.\nThe component can define line width, line color, and optionally display a signature if the line segments have\nalready been recorded. Exiting the canvas then re-entering continues the drawing, as long as the pointer does not exit the confines of the browser. For mouse usage, only left click drawing is enabled."),(0,a.mdx)("h2",{id:"getting-started"},"Getting Started"),(0,a.mdx)("ul",null,(0,a.mdx)("li",{parentName:"ul"},"Install with ",(0,a.mdx)("a",{parentName:"li",href:"https://www.npmjs.com/"},"npmjs"),":",(0,a.mdx)("ul",{parentName:"li"},(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("inlineCode",{parentName:"li"},"npm install terra-signature"))))),(0,a.mdx)("h2",{id:"peer-dependencies"},"Peer Dependencies"),(0,a.mdx)("p",null,"This component requires the following peer dependencies be installed in your app for the component to properly function."),(0,a.mdx)("table",null,(0,a.mdx)("thead",{parentName:"table"},(0,a.mdx)("tr",{parentName:"thead"},(0,a.mdx)("th",{parentName:"tr",align:null},"Peer Dependency"),(0,a.mdx)("th",{parentName:"tr",align:null},"Version"))),(0,a.mdx)("tbody",{parentName:"table"},(0,a.mdx)("tr",{parentName:"tbody"},(0,a.mdx)("td",{parentName:"tr",align:null},"react"),(0,a.mdx)("td",{parentName:"tr",align:null},"^16.8.5")),(0,a.mdx)("tr",{parentName:"tbody"},(0,a.mdx)("td",{parentName:"tr",align:null},"react-dom"),(0,a.mdx)("td",{parentName:"tr",align:null},"^16.8.5")))),(0,a.mdx)("h2",{id:"usage"},"Usage"),(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-jsx"},"import Signature from 'terra-signature';\n")),(0,a.mdx)("h2",{id:"consuming-teams-are-responsible-for"},"Consuming teams are responsible for"),(0,a.mdx)("ul",null,(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Providing Descriptive Labels"),": Ensure that the terra-signature component is labeled clearly and descriptively for screen reader users. This includes providing labels for form fields and instructions for signing.")),(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Implementing Keyboard Accessibility"),": Ensure that all functionality of terra-signature can be accessed and operated using only a keyboard, without any mouse interactions.")),(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Using ARIA Attributes"),": Use ARIA (Accessible Rich Internet Applications) ",(0,a.mdx)("a",{parentName:"p",href:"https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA"},"attributes")," to enhance the accessibility of terra-signature, such as ",(0,a.mdx)("a",{parentName:"p",href:"https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label"},"aria-label")," and ",(0,a.mdx)("a",{parentName:"p",href:"https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-describedby"},"aria-describedby"),", to provide additional context for screen reader users.")),(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Testing with Assistive Technologies"),": Test terra-signature with a variety of assistive technologies, such as screen readers, to ensure that it is fully accessible and usable by all users.")),(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Providing Alternative Text for Images"),": If terra-signature includes any images or icons, provide alternative text that describes the content or function of the image for users who cannot see it.")),(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Ensuring Sufficient Color Contrast"),": Ensure that there is sufficient color contrast between text and background colors to make terra-signature readable for users with low vision or color blindness.")),(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Documenting Accessibility Features"),": Document the accessibility features of terra-signature for end users, including instructions on how to use it with assistive technologies."))),(0,a.mdx)("p",null,"By following these guidelines, consumers can ensure that the Terra Signature component is accessible to all users, including those with disabilities."),(0,a.mdx)("h2",{id:"component-features"},"Component Features"),(0,a.mdx)("ul",null,(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("a",{parentName:"li",href:"https://engineering.cerner.com/terra-ui/about/terra-ui/component-standards#cross-browser-support"},"Cross-Browser Support"))),(0,a.mdx)("h2",{id:"examples"},"Examples"),(0,a.mdx)(y,{title:"Default Signature",mdxType:"SignatureExample"}),(0,a.mdx)("h2",{id:"signature-props"},"Signature Props"),(0,a.mdx)(_,{mdxType:"SignaturePropsTable"}))}L.isMDXComponent=!0},5260:function(e,t,n){n.d(t,{E:function(){return i}});var r=n(96540),a=n(55713),i=function(e){var t=e.url;return r.createElement(a.A,{src:"https://github.com/cerner/terra-core/tree/main/packages/terra-signature",name:"terra-signature",version:"2.42.0",url:t})}},33446:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(96540)),a=u(n(67967)),i=u(n(46604)),o=u(n(5556)),l=u(n(7232));function u(e){return e&&e.__esModule?e:{default:e}}var s=a.default.bind(l.default),d={onClearSignature:o.default.func},c=function(e){return r.default.createElement("div",null,r.default.createElement("div",{className:s("signature-wrapper")},r.default.createElement(i.default,{id:"upload"})),r.default.createElement("br",null),r.default.createElement("button",{type:"button",onClick:function(){var t=document.getElementById("upload");t&&(t.getContext("2d").clearRect(0,0,1e3,100),document.getElementById("file-select").value="",e.onClearSignature())}},"Clear"),r.default.createElement("input",{className:s("input-image"),id:"file-select",type:"file",accept:"image/*",onChange:function(){var e=document.getElementById("upload");if(e){var t=e.getContext("2d");t.clearRect(0,0,1e3,100);var n=document.getElementById("file-select").files[0],r=new Image;r.onload=function(){t.drawImage(r,10,0,200,e.offsetHeight)},r.src=URL.createObjectURL(n)}}}))};c.propTypes=d;t.default=c},56531:function(e,t,n){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},r(e)}t.A=void 0;var a=p(n(96540)),i=p(n(46604)),o=p(n(67967)),l=p(n(19814)),u=p(n(57128)),s=p(n(33446)),d=p(n(56500)),c=p(n(7232));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var f=o.default.bind(u.default),m={children:a.default.node.isRequired,disableStripes:a.default.bool,paddingStyle:a.default.oneOf(["none","standard","compact"])},h=function(e){var t=e.children,n=e.disableStripes,a=e.paddingStyle,o=p(e,s),u=r.default.useContext(l.default),d=(0,i.default)(f("table",{striped:!n},{"padding-standard":"standard"===a},{"padding-compact":"compact"===a},u.className),o.className);return r.default.createElement("table",c({},o,{className:d}),t)};h.propTypes=m,h.defaultProps={disableStripes:!1,paddingStyle:"none"};t.default=h},15460:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(96540)),a=o(n(5556)),i=["children"];function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var u={children:a.default.node},s=function(e){var t=e.children,n=l(e,i);return r.default.createElement("tbody",n,t)};s.propTypes=u,s.defaultProps={children:[]};t.default=s},59584:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(96540)),a=o(n(5556)),i=["children"];function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var u={children:a.default.node},s=function(e){var t=e.children,n=l(e,i);return r.default.createElement("td",n,t)};s.propTypes=u,s.defaultProps={children:[]};t.default=s},14281:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(96540)),a=l(n(5556)),i=l(n(93623)),o=["children"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s={children:a.default.node},d=function(e){var t=e.children,n=u(e,o);return r.default.createElement("thead",n,r.default.createElement("tr",null,i.default.addScope(t,"col")))};d.propTypes=s,d.defaultProps={children:[]};t.default=d},93401:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(96540)),a=o(n(5556)),i=["children"];function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var u={children:a.default.node},s=function(e){var t=e.children,n=l(e,i);return r.default.createElement("th",n,t)};s.propTypes=u,s.defaultProps={children:[]};t.default=s},96646:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(96540)),a=s(n(5556)),i=s(n(67967)),o=s(n(19677)),l=s(n(93623)),u=["children"];function s(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=i.default.bind(o.default),f={children:a.default.node},m=function(e){var t=e.children,n=c(e,u),a=p(["row"]);return r.default.createElement("tr",d({},n,{className:n.className?"".concat(a," ").concat(n.className):a}),l.default.addScope(t,"row"))};m.propTypes=f,m.defaultProps={children:[]};t.default=m},93623:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=(r=n(96540))&&r.__esModule?r:{default:r};var i={addScope:function(e,t){var n=[];return a.default.Children.forEach(e,(function(e){n.push(a.default.cloneElement(e,{scope:"TableHeaderCell"===e.type.name?t:void 0}))})),n}};t.default=i},17568:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Body",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Cell",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Header",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"HeaderCell",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Row",{enumerable:!0,get:function(){return i.default}}),t.default=void 0;var r=s(n(17212)),a=s(n(15460)),i=s(n(96646)),o=s(n(59584)),l=s(n(14281)),u=s(n(93401));function s(e){return e&&e.__esModule?e:{default:e}}t.default=r.default},11071:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(96540)),a=i(n(56445));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){var t=Object.assign({},e);return r.default.createElement(a.default,t,r.default.createElement("path",{d:"M48 21H27V0h-6v21H0v6h21v21h6V27h21z"}))};o.displayName="IconAdd",o.defaultProps={viewBox:"0 0 48 48","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg"};t.default=o},27166:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(96540)),a=i(n(56445));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){var t=Object.assign({},e);return r.default.createElement(a.default,t,r.default.createElement("path",{d:"M10.3 24 33.8 0l3.9 3.8L18 24l19.7 20.2-3.9 3.8z"}))};o.displayName="IconChevronLeft",o.defaultProps={viewBox:"0 0 48 48","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg"};t.default=o},46604:function(e,t,n){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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=d(n(96540)),i=d(n(5556)),o=d(n(67967)),l=d(n(52103)),u=d(n(49189)),s=["lineSegments","lineWidth","onChange"];function d(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function f(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.changedTouches[0].pageY&&t.right>e.changedTouches[0].pageX:t.tope.pageY&&t.right>e.pageX}},{key:"mouseDown",value:function(e){"button"in e&&e.button!==w||(this.setState({lastLineSegments:[],painting:!0}),this.canvasRect=this.canvas.getBoundingClientRect(),"touchstart"===e.type?this.addLine(e.changedTouches[0].pageX-this.canvasRect.left,e.changedTouches[0].pageY-this.canvasRect.top,!1):this.addLine(e.pageX-this.canvasRect.left,e.pageY-this.canvasRect.top,!1),this.draw())}},{key:"mouseUp",value:function(e){this.setState({painting:!1}),this.props.onChange&&this.props.onChange(e,this.state.lineSegments,this.state.lastLineSegments)}},{key:"mouseXY",value:function(e){this.state.painting&&this.mouseInBounds(e)&&("touchmove"===e.type?this.addLine(e.changedTouches[0].pageX-this.canvasRect.left,e.changedTouches[0].pageY-this.canvasRect.top,!0):this.addLine(e.pageX-this.canvasRect.left,e.pageY-this.canvasRect.top,!0),this.draw())}},{key:"mouseLeave",value:function(e){this.state.painting&&(this.setState({painting:!1}),this.props.onChange&&this.props.onChange(e,this.state.lineSegments,this.state.lastLineSegments))}},{key:"addLine",value:function(e,t,n){var r;if(n){var a=this.state.lineSegments[this.state.lineSegments.length-1];r={x1:a.x2,y1:a.y2,x2:e,y2:t}}else r={x1:e,y1:t,x2:e,y2:t};this.setState((function(e){return{lineSegments:[].concat(f(e.lineSegments),[r]),lastLineSegments:[].concat(f(e.lastLineSegments),[r])}}))}},{key:"draw",value:function(){var e=this.canvas.getContext("2d");if(this.state.lineSegments.length>0){var t=this.state.lineSegments[this.state.lineSegments.length-1],n=window.getComputedStyle(this.canvas).getPropertyValue("color");e.lineJoin="round",e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.strokeStyle=n,e.stroke()}}},{key:"drawSignature",value:function(e,t){var n=this.canvas.getContext("2d"),r=window.getComputedStyle(this.canvas).getPropertyValue("color");n.lineJoin="round",n.lineWidth=t,n.clearRect(0,0,this.canvasRect.width,this.canvasRect.height);for(var a=e.length,i=0;i=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var d={};function c(e){var t=e.components,n=s(e,l);return(0,a.mdx)("wrapper",u({},d,n,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-jsx"},'import React from \'react\';\nimport Signature from \'terra-signature\';\nimport classNames from \'classnames/bind\';\nimport Tabs from \'terra-tabs\';\nimport TextSignature from \'./TextSignature\';\nimport ImageSignature from \'./ImageSignature\';\nimport styles from \'./SignatureExample.module.scss\';\n\nconst cx = classNames.bind(styles);\n\nclass SignatureExample extends React.Component {\n constructor() {\n super();\n\n this.state = { lineSegments: [], lineWidth: Signature.Opts.Width.FINE };\n this.handleClear = this.handleClear.bind(this);\n this.handleLineWidth = this.handleLineWidth.bind(this);\n this.tabKey = \'compact\';\n }\n\n handleClear() {\n const newState = { ...this.state, lineSegments: [] };\n this.setState(newState);\n }\n\n handleLineWidth(event) {\n this.setState({ [event.target.name]: event.target.value });\n }\n\n render() {\n return (\n
\n \n \n
\n <>\n
\n \n
\n \n
\n
\n \n
\n

\n \n
\n
\n
\n \n
\n \n
\n \n
\n \n
\n
\n

\n Note: \n
\n

    \n
  • This example Terra Signature currently supports only Draw Functionality.
  • \n
  • Signature Text and Signature Upload Image functionalities will be part of future enhancement.
  • \n
\n

\n
\n );\n }\n}\n\nexport default SignatureExample;\n\n')))}c.isMDXComponent=!0;var p=n(201),f=["components"];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var b={};function y(e){var t=e.components,n=h(e,f);return(0,a.mdx)("wrapper",m({},b,n,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-scss"},":local { \n .signature-wrapper {\n border: 1px solid rgb(0, 0, 0);\n height: 100px;\n padding: 7px;\n width: 100%;\n }\n\n .text-area-style {\n border: 0;\n height: 88px;\n width: calc(100% - 0.2rem);\n \n &:focus {\n outline: 2px dotted #000;\n outline-offset: -2px;\n }\n }\n\n .clear-button {\n position: relative;\n z-index: 0;\n }\n\n .add-button {\n margin: 5px;\n }\n\n .input-image {\n margin: 5px;\n }\n}\n\n")))}y.isMDXComponent=!0;var g=function(e){var t=e.title,n=e.description,a=e.isExpanded;return r.createElement(p.A,{title:t||"Signature Example",description:n,example:r.createElement(o.A,null),exampleCssSrc:r.createElement(y,null),exampleSrc:r.createElement(c,null),isExpanded:a})},v=n(12883),x=["components"];function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var S={},E="wrapper";function _(e){var t=e.components,n=w(e,x);return(0,a.mdx)(E,O({},S,n,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(v.Ay,{mdxType:"PropsTable"},(0,a.mdx)(v.fI,{key:"ROW1",mdxType:"Row"},(0,a.mdx)(v.dt,{mdxType:"PropNameCell"},"lineWidth"),(0,a.mdx)(v.$d,{mdxType:"TypeCell"},(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-javascript"},"enum: [\n 1\n 2\n 4\n 6\n],\n"))),(0,a.mdx)(v.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,a.mdx)(v.NZ,{mdxType:"DefaultValueCell"},(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-javascript"},"2\n"))),(0,a.mdx)(v.Hd,{mdxType:"DescriptionCell"},(0,a.mdx)("p",null,"The line width to use when drawing the signature on the canvas.\nOne of Signature.Opts.Width.EXTRA_FINE, Signature.Opts.Width.FINE, Signature.Opts.Width.MEDIUM, Signature.Opts.Width.HEAVY."))),(0,a.mdx)(v.fI,{key:"ROW2",mdxType:"Row"},(0,a.mdx)(v.dt,{mdxType:"PropNameCell"},"lineSegments"),(0,a.mdx)(v.$d,{mdxType:"TypeCell"},(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-javascript"},"array\n"))),(0,a.mdx)(v.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,a.mdx)(v.NZ,{mdxType:"DefaultValueCell"},(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-javascript"},"[]\n"))),(0,a.mdx)(v.Hd,{mdxType:"DescriptionCell"},(0,a.mdx)("p",null,"Line segments that define signature."))),(0,a.mdx)(v.fI,{key:"ROW3",mdxType:"Row"},(0,a.mdx)(v.dt,{mdxType:"PropNameCell"},"onChange"),(0,a.mdx)(v.$d,{mdxType:"TypeCell"},(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-javascript"},"func\n"))),(0,a.mdx)(v.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,a.mdx)(v.NZ,{mdxType:"DefaultValueCell"},(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-javascript"},"undefined\n"))),(0,a.mdx)(v.Hd,{mdxType:"DescriptionCell"},(0,a.mdx)("p",null,"A callback function to execute when a line segment is drawn. The first parameter is the event, the\nsecond parameter is all the line segments, and the last parameter is the most recent line segment drawn.")))))}_.isMDXComponent=!0;var j=["components"];function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var N={},C="wrapper";function I(e){var t=e.components,n=P(e,j);return(0,a.mdx)(C,T({},N,n,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(i.E,{mdxType:"Badge"}),(0,a.mdx)("h1",{id:"terra-signature"},"Terra Signature"),(0,a.mdx)("p",null,"The terra-signature component provides users a way to define a signature with a series of line segments.\nThe component can define line width, line color, and optionally display a signature if the line segments have\nalready been recorded. Exiting the canvas then re-entering continues the drawing, as long as the pointer does not exit the confines of the browser. For mouse usage, only left click drawing is enabled."),(0,a.mdx)("h2",{id:"getting-started"},"Getting Started"),(0,a.mdx)("ul",null,(0,a.mdx)("li",{parentName:"ul"},"Install with ",(0,a.mdx)("a",{parentName:"li",href:"https://www.npmjs.com/"},"npmjs"),":",(0,a.mdx)("ul",{parentName:"li"},(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("inlineCode",{parentName:"li"},"npm install terra-signature"))))),(0,a.mdx)("h2",{id:"peer-dependencies"},"Peer Dependencies"),(0,a.mdx)("p",null,"This component requires the following peer dependencies be installed in your app for the component to properly function."),(0,a.mdx)("table",null,(0,a.mdx)("thead",{parentName:"table"},(0,a.mdx)("tr",{parentName:"thead"},(0,a.mdx)("th",{parentName:"tr",align:null},"Peer Dependency"),(0,a.mdx)("th",{parentName:"tr",align:null},"Version"))),(0,a.mdx)("tbody",{parentName:"table"},(0,a.mdx)("tr",{parentName:"tbody"},(0,a.mdx)("td",{parentName:"tr",align:null},"react"),(0,a.mdx)("td",{parentName:"tr",align:null},"^16.8.5")),(0,a.mdx)("tr",{parentName:"tbody"},(0,a.mdx)("td",{parentName:"tr",align:null},"react-dom"),(0,a.mdx)("td",{parentName:"tr",align:null},"^16.8.5")))),(0,a.mdx)("h2",{id:"usage"},"Usage"),(0,a.mdx)("pre",null,(0,a.mdx)("code",{parentName:"pre",className:"language-jsx"},"import Signature from 'terra-signature';\n")),(0,a.mdx)("h2",{id:"consuming-teams-are-responsible-for"},"Consuming teams are responsible for"),(0,a.mdx)("ul",null,(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Providing Descriptive Labels"),": Ensure that the terra-signature component is labeled clearly and descriptively for screen reader users. This includes providing labels for form fields and instructions for signing.")),(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Implementing Keyboard Accessibility"),": Ensure that all functionality of terra-signature can be accessed and operated using only a keyboard, without any mouse interactions.")),(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Using ARIA Attributes"),": Use ARIA (Accessible Rich Internet Applications) ",(0,a.mdx)("a",{parentName:"p",href:"https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA"},"attributes")," to enhance the accessibility of terra-signature, such as ",(0,a.mdx)("a",{parentName:"p",href:"https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label"},"aria-label")," and ",(0,a.mdx)("a",{parentName:"p",href:"https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-describedby"},"aria-describedby"),", to provide additional context for screen reader users.")),(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Testing with Assistive Technologies"),": Test terra-signature with a variety of assistive technologies, such as screen readers, to ensure that it is fully accessible and usable by all users.")),(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Providing Alternative Text for Images"),": If terra-signature includes any images or icons, provide alternative text that describes the content or function of the image for users who cannot see it.")),(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Ensuring Sufficient Color Contrast"),": Ensure that there is sufficient color contrast between text and background colors to make terra-signature readable for users with low vision or color blindness.")),(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("p",{parentName:"li"},(0,a.mdx)("strong",{parentName:"p"},"Documenting Accessibility Features"),": Document the accessibility features of terra-signature for end users, including instructions on how to use it with assistive technologies."))),(0,a.mdx)("p",null,"By following these guidelines, consumers can ensure that the Terra Signature component is accessible to all users, including those with disabilities."),(0,a.mdx)("h2",{id:"component-features"},"Component Features"),(0,a.mdx)("ul",null,(0,a.mdx)("li",{parentName:"ul"},(0,a.mdx)("a",{parentName:"li",href:"https://engineering.cerner.com/terra-ui/about/terra-ui/component-standards#cross-browser-support"},"Cross-Browser Support"))),(0,a.mdx)("h2",{id:"examples"},"Examples"),(0,a.mdx)(g,{title:"Default Signature",mdxType:"SignatureExample"}),(0,a.mdx)("h2",{id:"signature-props"},"Signature Props"),(0,a.mdx)(_,{mdxType:"SignaturePropsTable"}))}I.isMDXComponent=!0},5260:function(e,t,n){n.d(t,{E:function(){return i}});var r=n(96540),a=n(55713),i=function(e){var t=e.url;return r.createElement(a.A,{src:"https://github.com/cerner/terra-core/tree/main/packages/terra-signature",name:"terra-signature",version:"2.42.0",url:t})}},33446:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(96540)),a=l(n(67967)),i=l(n(46604)),o=l(n(7232));function l(e){return e&&e.__esModule?e:{default:e}}var u=a.default.bind(o.default);t.default=function(){return r.default.createElement("div",null,r.default.createElement("div",{className:u("signature-wrapper")},r.default.createElement(i.default,{id:"upload"})),r.default.createElement("br",null),r.default.createElement("button",{type:"button",onClick:function(){var e=document.getElementById("upload");e&&(e.getContext("2d").clearRect(0,0,1e3,100),document.getElementById("file-select").value="")}},"Clear"),r.default.createElement("input",{className:u("input-image"),id:"file-select",type:"file",accept:"image/*",onChange:function(){var e=document.getElementById("upload");if(e){var t=e.getContext("2d");t.clearRect(0,0,1e3,100);var n=document.getElementById("file-select").files[0],r=new Image;r.onload=function(){t.drawImage(r,10,0,200,e.offsetHeight)},r.src=URL.createObjectURL(n)}}}))}},56531:function(e,t,n){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},r(e)}t.A=void 0;var a=c(n(96540)),i=c(n(46604)),o=c(n(67967)),l=c(n(19814)),u=c(n(57128)),s=c(n(33446)),d=c(n(7232));function c(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var f=o.default.bind(u.default),m={children:a.default.node.isRequired,disableStripes:a.default.bool,paddingStyle:a.default.oneOf(["none","standard","compact"])},h=function(e){var t=e.children,n=e.disableStripes,a=e.paddingStyle,o=p(e,s),u=r.default.useContext(l.default),d=(0,i.default)(f("table",{striped:!n},{"padding-standard":"standard"===a},{"padding-compact":"compact"===a},u.className),o.className);return r.default.createElement("table",c({},o,{className:d}),t)};h.propTypes=m,h.defaultProps={disableStripes:!1,paddingStyle:"none"};t.default=h},15460:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(96540)),a=o(n(5556)),i=["children"];function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var u={children:a.default.node},s=function(e){var t=e.children,n=l(e,i);return r.default.createElement("tbody",n,t)};s.propTypes=u,s.defaultProps={children:[]};t.default=s},59584:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(96540)),a=o(n(5556)),i=["children"];function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var u={children:a.default.node},s=function(e){var t=e.children,n=l(e,i);return r.default.createElement("td",n,t)};s.propTypes=u,s.defaultProps={children:[]};t.default=s},14281:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(96540)),a=l(n(5556)),i=l(n(93623)),o=["children"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s={children:a.default.node},d=function(e){var t=e.children,n=u(e,o);return r.default.createElement("thead",n,r.default.createElement("tr",null,i.default.addScope(t,"col")))};d.propTypes=s,d.defaultProps={children:[]};t.default=d},93401:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(96540)),a=o(n(5556)),i=["children"];function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var u={children:a.default.node},s=function(e){var t=e.children,n=l(e,i);return r.default.createElement("th",n,t)};s.propTypes=u,s.defaultProps={children:[]};t.default=s},96646:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(96540)),a=s(n(5556)),i=s(n(67967)),o=s(n(19677)),l=s(n(93623)),u=["children"];function s(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=i.default.bind(o.default),f={children:a.default.node},m=function(e){var t=e.children,n=c(e,u),a=p(["row"]);return r.default.createElement("tr",d({},n,{className:n.className?"".concat(a," ").concat(n.className):a}),l.default.addScope(t,"row"))};m.propTypes=f,m.defaultProps={children:[]};t.default=m},93623:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=(r=n(96540))&&r.__esModule?r:{default:r};var i={addScope:function(e,t){var n=[];return a.default.Children.forEach(e,(function(e){n.push(a.default.cloneElement(e,{scope:"TableHeaderCell"===e.type.name?t:void 0}))})),n}};t.default=i},17568:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Body",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Cell",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Header",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"HeaderCell",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Row",{enumerable:!0,get:function(){return i.default}}),t.default=void 0;var r=s(n(17212)),a=s(n(15460)),i=s(n(96646)),o=s(n(59584)),l=s(n(14281)),u=s(n(93401));function s(e){return e&&e.__esModule?e:{default:e}}t.default=r.default},11071:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(96540)),a=i(n(56445));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){var t=Object.assign({},e);return r.default.createElement(a.default,t,r.default.createElement("path",{d:"M48 21H27V0h-6v21H0v6h21v21h6V27h21z"}))};o.displayName="IconAdd",o.defaultProps={viewBox:"0 0 48 48","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg"};t.default=o},27166:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(96540)),a=i(n(56445));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){var t=Object.assign({},e);return r.default.createElement(a.default,t,r.default.createElement("path",{d:"M10.3 24 33.8 0l3.9 3.8L18 24l19.7 20.2-3.9 3.8z"}))};o.displayName="IconChevronLeft",o.defaultProps={viewBox:"0 0 48 48","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg"};t.default=o},46604:function(e,t,n){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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=d(n(96540)),i=d(n(5556)),o=d(n(67967)),l=d(n(52103)),u=d(n(49189)),s=["lineSegments","lineWidth","onChange"];function d(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function f(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.changedTouches[0].pageY&&t.right>e.changedTouches[0].pageX:t.tope.pageY&&t.right>e.pageX}},{key:"mouseDown",value:function(e){"button"in e&&e.button!==S||(this.setState({lastLineSegments:[],painting:!0}),this.canvasRect=this.canvas.getBoundingClientRect(),"touchstart"===e.type?this.addLine(e.changedTouches[0].pageX-this.canvasRect.left,e.changedTouches[0].pageY-this.canvasRect.top,!1):this.addLine(e.pageX-this.canvasRect.left,e.pageY-this.canvasRect.top,!1),this.draw())}},{key:"mouseUp",value:function(e){this.setState({painting:!1}),this.props.onChange&&this.props.onChange(e,this.state.lineSegments,this.state.lastLineSegments)}},{key:"mouseXY",value:function(e){this.state.painting&&this.mouseInBounds(e)&&("touchmove"===e.type?this.addLine(e.changedTouches[0].pageX-this.canvasRect.left,e.changedTouches[0].pageY-this.canvasRect.top,!0):this.addLine(e.pageX-this.canvasRect.left,e.pageY-this.canvasRect.top,!0),this.draw())}},{key:"mouseLeave",value:function(e){this.state.painting&&(this.setState({painting:!1}),this.props.onChange&&this.props.onChange(e,this.state.lineSegments,this.state.lastLineSegments))}},{key:"addLine",value:function(e,t,n){var r;if(n){var a=this.state.lineSegments[this.state.lineSegments.length-1];r={x1:a.x2,y1:a.y2,x2:e,y2:t}}else r={x1:e,y1:t,x2:e,y2:t};this.setState((function(e){return{lineSegments:[].concat(f(e.lineSegments),[r]),lastLineSegments:[].concat(f(e.lastLineSegments),[r])}}))}},{key:"draw",value:function(){var e=this.canvas.getContext("2d");if(this.state.lineSegments.length>0){var t=this.state.lineSegments[this.state.lineSegments.length-1],n=window.getComputedStyle(this.canvas).getPropertyValue("color");e.lineJoin="round",e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.strokeStyle=n,e.stroke()}}},{key:"drawSignature",value:function(e,t){var n=this.canvas.getContext("2d"),r=window.getComputedStyle(this.canvas).getPropertyValue("color");n.lineJoin="round",n.lineWidth=t,n.clearRect(0,0,this.canvasRect.width,this.canvasRect.height);for(var a=e.length,i=0;i0&&r.push({icon:a.default.createElement(c.default,null),key:"terra-dev-site.application-switcher",text:"Application Switcher",metaData:{disclose:function(){O.disclose({preferredType:"modal",size:"tiny",content:{key:"terra-dev-site.application-switcher",component:a.default.createElement(b.default,{sites:t})}})}}}),r)},P?P.pageConfig?x?a.default.createElement(y.default,{pageContentConfig:P.pageConfig,contentImports:o.contentImports}):a.default.createElement(f.default,null,a.default.createElement(d.default,{pageContentConfig:P.pageConfig,contentImports:o.contentImports})):a.default.createElement(v.default,{label:P.label,id:P.path.substring(1),config:P.children,contentImports:o.contentImports}):a.default.createElement(f.default,null,a.default.createElement(p.default,null))))};w.propTypes=_;t.default=w},42266:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(96540)),i=n(r(5556)),l=r(28651),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(85055)),s=n(r(63635)),u=n(r(58028)),d=n(r(41859)),f=n(r(19752)),p=n(r(41379)),h=r(87038);function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}var b={id:i.default.string.isRequired,contentImports:h.contentImportsShape.isRequired,config:h.navigationConfigShape,label:i.default.string.isRequired},g=function e(t,r){return t.map((function(t){return t.children?o.default.createElement(d.default,{key:t.label,label:t.label},e(t.children,r)):o.default.createElement(c.default,{key:t.path,navigationKey:t.path,label:t.label,renderPage:function(){return o.default.createElement(f.default,{pageContentConfig:t,contentImports:r})}})}))},v=function(e){var t=e.id,r=e.label,n=e.config,a=e.contentImports,i=(0,l.useLocation)(),d=(0,l.useHistory)(),f=o.default.useContext(c.NavigationItemContext).isActive,h=o.default.useMemo((function(){return g(n,a)}),[n,a]);return f?o.default.createElement(u.default,{id:t,activeNavigationKey:i.pathname.toLocaleLowerCase(),label:r,onSelectNavigationItem:function(e){return d.push(e)},renderNavigationFallback:function(){return o.default.createElement(s.default,{isMain:!0},o.default.createElement(p.default,null))}},h):null};v.propTypes=b;t.default=v},83858:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(85715)),o=n(r(96540)),i=r(28651),l=n(r(67967)),c=n(r(82232)),s=n(r(17604)),u=n(r(73171)),d=n(r(75980)),f=n(r(87038)),p=n(r(92292)),h=l.default.bind(p.default),m={siteConfig:f.default.isRequired},b=function(e){var t=e.siteConfig,r=(0,i.useLocation)().pathname.substring(4).toLocaleLowerCase(),n=t.pageConfig[r],l=t.contentImports[r],f=o.default.useState(),p=(0,a.default)(f,2),m=p[0],b=p[1];return n&&l?m?o.default.createElement(s.default,{type:n.type,isScrollContainer:!0},o.default.createElement("div",null,"Error: chunk failed to load.")):o.default.createElement("div",{role:"main",className:h("main")},o.default.createElement(u.default,{fallback:o.default.createElement("div",null,"loading"),onError:function(){return b(!0)}},o.default.createElement(s.default,{type:n.type,isScrollContainer:!0},o.default.createElement(l,null)))):o.default.createElement(c.default,{src:d.default,width:"100%",alt:"404"})};b.propTypes=m;t.default=b},2801:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o=n(r(5556)),i=n(r(67967)),l=n(r(34068)),c=n(r(45722)),s=n(r(17371)),u=i.default.bind(s.default),d={children:o.default.node},f=function(e){var t=e.children,r=a.default.useContext(l.default),n=a.default.useMemo((function(){return{startActions:r.startActions||[],containerActions:[]}}),[r.startActions]);return a.default.createElement("div",{className:u("page-container"),"data-testid":"page-container"},a.default.createElement(c.default.Provider,{value:n},t))};f.propTypes=d;t.default=f},45722:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.contextShape=void 0;var a=n(r(96540)),o=n(r(5556)),i=a.default.createContext(),l=o.default.shape({key:o.default.string.isRequired,label:o.default.string.isRequired,icon:o.default.elementType,onSelect:o.default.func});t.contextShape={containerStartActions:o.default.arrayOf(l),containerEndActions:o.default.arrayOf(l)},t.default=i},63635:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(2801));t.default=a.default},34068:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.contextShape=void 0;var a=r(96540),o=n(r(5556)),i=(0,a.createContext)({startActions:[],endActions:[]}),l=o.default.shape({key:o.default.string.isRequired,label:o.default.string.isRequired,icon:o.default.elementType,onSelect:o.default.func,isToggleActive:o.default.bool});t.contextShape={startActions:o.default.arrayOf(l),endActions:o.default.arrayOf(l)},t.default=i},41859:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o=n(r(5556)),i={label:o.default.string,children:o.default.node},l=function(e){e.label,e.children;return a.default.createElement("div",null)};l.propTypes=i;t.default=l},58028:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(41132)),o=n(r(85715)),i=n(r(96540)),l=n(r(5556)),c=n(r(67967)),s=r(25966),u=n(r(51621)),d=r(92912),f=r(53757),p=n(r(58175)),h=n(r(85055)),m=n(r(63635)),b=n(r(97448)),g=n(r(34068)),v=n(r(41859)),y=n(r(12371)),_=n(r(70669)),w=n(r(41042)),x=c.default.bind(w.default),O=["tiny","small","medium"],E={id:l.default.string.isRequired,label:l.default.string.isRequired,activeNavigationKey:l.default.string.isRequired,onSelectNavigationItem:l.default.func,renderPage:l.default.func,renderLayout:l.default.func,renderNavigationFallback:l.default.func,children:l.default.node};function S(e){return{text:e.label,name:e.label,path:e.key,childItems:e.childItems?e.childItems.map(S):void 0}}var P=function(e){var t=e.id,r=e.label,n=e.activeNavigationKey,l=e.children,c=e.onSelectNavigationItem,w=e.renderPage,E=e.renderLayout,P=e.renderNavigationFallback,C=i.default.useContext(f.ActiveBreakpointContext),k=i.default.useContext(g.default),j=i.default.useContext(d.ThemeContext),D=i.default.useRef(),T=i.default.useRef(),A=i.default.useRef(),M=i.default.useRef(),N=(0,p.default)(n,(function(){(0,b.default)((function(){document.body.focus()}))})),I=(0,o.default)(N,3),R=I[0],F=I[1],L=I[2],z=i.default.useState(!1),B=(0,o.default)(z,2),U=B[0],H=B[1];var W=function e(t){return i.default.Children.toArray(t).reduce((function(t,r){var n=(0,a.default)(t);if(r.type===h.default)n.push(r);else if(r.type===v.default){var o=e(r.props.children);o&&n.push.apply(n,(0,a.default)(o))}return n}),[])}(l),G=!!W.find((function(e){return e.props.navigationKey===n})),V=!!W.length,q=-1!==O.indexOf(C),K=V&&(U||-1===O.indexOf(C)),Y=i.default.useMemo((function(){var e=k.startActions;return V&&q&&(e=[].concat((0,a.default)(e),[{key:"secondary-navigation-layout-toggle-navigation-panel",label:"Toggle Navigation Panel ".concat(U?"Closed":"Open"),icon:u.default,onSelect:function(){H((function(e){return!e}))}}])),{startActions:e,endActions:k.endActions}}),[k.startActions,k.endActions,V,q,U]);i.default.useEffect((function(){var e=W.map((function(e){return e.props.navigationKey}));Object.keys(F.current).filter((function(t){return!e.includes(t)})).forEach((function(e){delete F.current[e]}))}),[W,F]);var $,X=i.default.useRef(U);return i.default.useEffect((function(){U&&!X.current?(0,b.default)((function(){A.current.focus()})):!U&&X.current&&(0,b.default)((function(){var e=document.querySelector("main");e&&e.focus()})),X.current=U}),[U]),i.default.useEffect((function(){if(U)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){e.keyCode===s.KEY_ESCAPE&&(e.target===D.current||D.current.contains(e.target))&&H(!1)}}),[U,H]),$=w?i.default.createElement(m.default,null,w()):E?E():W.length?i.default.createElement(i.default.Fragment,null,W.map((function(e){var t,r=null===(t=F.current[e.props.navigationKey])||void 0===t?void 0:t.element;return r||((r=document.createElement("div")).style.position="relative",r.style.height="100%",r.style.width="100%",r.id="side-nav-".concat(e.props.navigationKey),F.current[e.props.navigationKey]={element:r}),i.default.createElement(i.default.Fragment,{key:e.props.navigationKey},i.default.cloneElement(e,{isActive:e.props.navigationKey===L,portalElement:r}))})),!G&&P?P():void 0):l,i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:x("side-nav-container",j.className),ref:D},i.default.createElement("div",{ref:A,className:x("side-nav-sidebar",{visible:V&&K,overlay:q}),tabIndex:"-1"},V&&i.default.createElement("div",{className:x("sidebar-container")},i.default.createElement("div",{className:x("header-container")},i.default.createElement(_.default,{label:r,onRequestClose:U?function(){H(!1)}:void 0})),i.default.createElement("div",{className:x("content")},i.default.createElement(y.default,{id:"".concat(t,"-side-nav"),selectedPath:n,onSelect:function(e){var t;t=e,H(!1),t!==n&&c(t)},menuItems:[{childItems:function e(t){return i.default.Children.map(t,(function(t){return t.type===h.default?{key:t.props.navigationKey,label:t.props.label}:t.type===v.default?{key:t.props.label,label:t.props.label,childItems:e(t.props.children)}:null}))}(l).map(S)}]})))),i.default.createElement("div",{ref:T,className:x("side-nav-body")},i.default.createElement("div",{ref:R,className:x("page-body"),inert:U?"true":null},i.default.createElement(g.default.Provider,{value:Y},$)),U?i.default.createElement("div",{ref:M,className:x("side-nav-overlay"),onClick:function(){H(!1)}}):null)))};P.propTypes=E;t.default=P},69198:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(41132)),o=n(r(96540)),i=n(r(40961)),l=n(r(5556)),c=n(r(94027)),s=n(r(63635)),u={navigationKey:l.default.string.isRequired,label:l.default.string.isRequired,renderLayout:l.default.func,renderPage:l.default.func,children:l.default.node,isActive:l.default.bool,portalElement:l.default.instanceOf(HTMLElement)},d=function(e){var t,r=e.navigationKey,n=e.children,l=e.renderLayout,u=e.renderPage,d=e.isActive,f=e.portalElement,p=o.default.useContext(c.default),h=o.default.useMemo((function(){return{isActive:d&&p.isActive,navigationKeys:[].concat((0,a.default)(p.navigationKeys),[r])}}),[d,r,p.isActive,p.navigationKeys]);return t=l?l({isActive:d}):u?o.default.createElement(s.default,null,u({isActive:d})):n,i.default.createPortal(o.default.createElement(c.default.Provider,{value:h},t),f)};d.propTypes=u;t.default=d},94027:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.contextShape=void 0;var a=r(96540),o=n(r(5556)),i=(0,a.createContext)({isActive:!0,navigationKeys:[]});t.contextShape={isActive:o.default.bool,navigationKeys:o.default.arrayOf(o.default.string)},t.default=i},85055:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NavigationItemContext",{enumerable:!0,get:function(){return i.default}}),t.default=void 0,Object.defineProperty(t,"navigationItemContextShape",{enumerable:!0,get:function(){return i.contextShape}});var o=n(r(69198)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var c=o?Object.getOwnPropertyDescriptor(e,i):null;c&&(c.get||c.set)?Object.defineProperty(n,i,c):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(94027));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}t.default=o.default},12371:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(43693)),i=n(r(85715)),l=m(r(96540)),c=n(r(5556)),s=n(r(67967)),u=m(r(25966)),d=r(92912),f=n(r(95088)),p=n(r(85599));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t0&&(n=o.concat([t.path]),!0)})),n},w=function(e,t){return _(e,t).reduce((function(e,t){return e[t]=!0,e}),{})},x=function(e){var t=e.id,r=e.selectedPath,n=void 0===r?void 0:r,a=e.menuItems,c=e.onSelect,s=l.default.useRef(),p=(0,l.useState)(w(a[0],n)),h=(0,i.default)(p,2),m=h[0],b=h[1],y=(0,l.useRef)(),_=(0,l.useRef)(0),x=(0,l.useRef)(),O=(0,l.useRef)(n),E=[],S=l.default.useContext(d.ThemeContext),P=function(e){var t=y.current&&s.current?s.current.querySelector("#".concat(y.current)):null;t&&t.setAttribute("tabIndex",e)},C=function(){var e=y.current&&s.current?s.current.querySelector("#".concat(y.current)):null;e&&e.focus()};(0,l.useEffect)((function(){var e,t,r=null===(e=x.current)||void 0===e?void 0:e.getAttribute("id");(t=r?E.findIndex((function(e){return e.id===r})):0)>=0&&(_.current=t,y.current=E[_.current].id,P("0")),x&&x.current&&x.current.scrollIntoView()}),[]),(0,l.useEffect)((function(){var e,t=null===(e=x.current)||void 0===e?void 0:e.getAttribute("id"),r=E.findIndex((function(e){return e.id===t}));r>=0&&(_.current=r,y.current=E[_.current].id)}),[n]),(0,l.useEffect)((function(){if(y.current&&(_.current=E.findIndex((function(e){return e.id===y.current}))),O.current!==n){var e=null!=x&&x.current?x.current.getBoundingClientRect():null,t=s.current.getBoundingClientRect();e&&t&&(e.bottom>t.bottom||e.top=1&&(P("-1"),_.current-=1,y.current=E[_.current].id,P("0"),C());break;case u.KEY_RIGHT:e.preventDefault(),y.current&&(r=s.current.querySelector("#".concat(y.current)).getAttribute("aria-expanded"))&&("true"===r?j():k(e,t));break;case u.KEY_LEFT:e.preventDefault(),y.current&&((r=s.current.querySelector("#".concat(y.current)).getAttribute("aria-expanded"))&&"true"===r?k(e,t):function(){if(y.current){var e=E.find((function(e){return e.id===y.current})).parent;e&&(P("-1"),_.current=E.findIndex((function(t){return t.id===e})),y.current=E[_.current].id,P("0"),C())}}());break;case u.KEY_HOME:e.preventDefault(),P("-1"),_.current=0,y.current=E[_.current].id,P("0"),C();break;case u.KEY_END:e.preventDefault(),P("-1"),_.current=E.length-1,y.current=E[_.current].id,P("0"),C();break;default:if(e.nativeEvent.keyCode>=u.KEY_A&&e.nativeEvent.keyCode<=u.KEY_Z)e.preventDefault(),function(e){var t=E.slice(_.current+1,E.length),r=(t=t.concat(E.slice(0,_.current))).find((function(t){return t.id[0].toUpperCase()===e}));r&&(P("-1"),_.current=E.findIndex((function(e){return e.id===r.id})),y.current=r.id,P("0"),C())}(String.fromCharCode(e.nativeEvent.keyCode))}};return l.default.createElement("div",{ref:s,className:v("collapsing-navigation-menu",S.className),id:"terra-dev-site-nav-menu",role:"tree"},a?function e(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(r)return r.map((function(r,c){var s;s=i?"".concat(i,"-").concat(c):"idxPath-".concat(c);var u="".concat(t,"-").concat(s),d=!!m[r.path],p=n===r.path;return E.push({id:u,parentId:a}),l.default.createElement(f.default,{id:u,key:u,item:r,itemIsOpen:d,isSelected:p,childItems:d?e(r.childItems,u,!1,s):null,firstLevel:o,handleKeyDown:D,handleOnClick:k,ref:p?x:null})}))}(a[0].childItems,"",!0):void 0)};x.propTypes=y;t.default=x},95088:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(94634)),o=n(r(96540)),i=n(r(5556)),l=n(r(67967)),c=n(r(33969)),s=n(r(66815)),u=n(r(85599)),d=l.default.bind(u.default),f={item:i.default.shape({text:i.default.string,path:i.default.string,childItems:i.default.arrayOf(i.default.object),name:i.default.string}).isRequired,id:i.default.string.isRequired,itemIsOpen:i.default.bool,isSelected:i.default.bool,childItems:i.default.arrayOf(i.default.element),firstLevel:i.default.bool,handleKeyDown:i.default.func.isRequired,handleOnClick:i.default.func.isRequired},p=function(e){e.currentTarget.setAttribute("data-focus-styles-enabled","true")},h=function(e){e.currentTarget.setAttribute("data-focus-styles-enabled","false")},m=o.default.forwardRef((function(e,t){var r=e.item,n=e.id,i=e.itemIsOpen,u=e.isSelected,f=e.childItems,m=e.firstLevel,b=e.handleKeyDown,g=e.handleOnClick,v=void 0!==r.childItems,y=(0,l.default)(d(["item",{"is-selected":u}])),_=v?{"aria-expanded":i}:{};return o.default.createElement(o.default.Fragment,{key:r.path},o.default.createElement("div",{className:m?null:d("indent")},o.default.createElement("div",(0,a.default)({className:y,tabIndex:"-1",role:"treeitem","aria-selected":u,id:n,onKeyDown:function(e){return b(e,r)},onClick:function(e){return g(e,r)},onBlur:p,onMouseDown:h,"data-focus-styles-enabled":!0,ref:t},_),v?o.default.createElement("span",{className:d("disclosure")},i?o.default.createElement(s.default,{className:d("caret")}):o.default.createElement(c.default,{className:d("caret")})):null,r.name),f))}));m.propTypes=f;t.default=m},70669:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(96540)),i=n(r(5556)),l=n(r(67967)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(40890)),s=n(r(36131)),u=r(92912),d=r(70817),f=n(r(85419));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}var h=l.default.bind(f.default),m={onRequestClose:i.default.func,label:i.default.string},b=function(e){var t=e.onRequestClose,r=e.label,n=o.default.useContext(u.ThemeContext),a=o.default.useContext(d.ApplicationIntlContext);return o.default.createElement("div",{className:h("page-header-container",n.className)},o.default.createElement("div",{className:h("page-layout-header")},t?o.default.createElement("div",{className:h("back-button-container")},o.default.createElement(c.default,{className:h(["header-button","back-button"]),icon:o.default.createElement(s.default,null),text:a.formatMessage({id:"terraDevSite.pageHeader.back"}),onClick:t,variant:c.ButtonVariants.UTILITY})):null,o.default.createElement("div",{className:h("label-container")},r)))};b.propTypes=m;t.default=b},28801:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(94634)),i=n(r(96540)),l=n(r(5556)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(24541)),s=n(r(67967)),u=n(r(65343));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}var f=s.default.bind(u.default),p={children:l.default.node,className:l.default.string},h=function(e){var t=e.children,r=(e.className||"").replace(/language-/,"");return i.default.createElement(c.default,(0,o.default)({},c.defaultProps,{code:t,language:r,theme:void 0}),(function(e){var t=e.className,r=e.tokens,n=e.getLineProps,a=e.getTokenProps;return i.default.createElement("code",{className:f("code",t)},r.slice(0,-1).map((function(e,t){return i.default.createElement("div",n({line:e,key:t}),e.map((function(e,t){return i.default.createElement("span",a({token:e,key:t}))})))})))}))};h.propTypes=p;t.default=h},95240:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(94634)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(96540)),l=n(r(5556)),c=n(r(67967)),s=n(r(52103)),u=n(r(65343));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}var f=c.default.bind(u.default),p={Tag:l.default.string,props:l.default.shape({className:l.default.string.isRequired,children:l.default.node,id:l.default.string})},h=function(e){var t=e.Tag,r=e.props,n=(0,i.useRef)(null),a=i.default.useContext(s.default);return(0,i.useEffect)((function(){if(window.location&&!(window.location.length<2)){var e=window.location.hash.slice(1);r.id===e&&n.current.scrollIntoView()}}),[r.id]),i.default.createElement(t,(0,o.default)({},r,{className:[f(t),r.className].join(" ")}),i.default.createElement("a",{ref:n,"aria-hidden":"true",href:"#".concat(r.id),tabIndex:"-1",className:f("a","anchor")},i.default.createElement("span",{className:f("icon","icon-link",a.className)})),r.children)};h.propTypes=p;t.default=h},29598:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(94634)),o=n(r(96540)),i=n(r(5556)),l=n(r(67967)),c=r(92912),s=n(r(65343)),u=l.default.bind(s.default),d={Tag:i.default.string,props:i.default.shape({className:i.default.string,children:i.default.node})},f=function(e){var t=e.Tag,r=e.props,n=o.default.useContext(c.ThemeContext),i=(0,l.default)(u(t,n.className),r.className);return o.default.createElement(t,(0,a.default)({},r,{className:i}),r.children)};f.propTypes=d;t.default=f},61488:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o=r(36665),i=n(r(5556)),l=n(r(29598)),c=n(r(95240)),s=n(r(28801)),u={children:i.default.node},d={a:function(e){return(0,l.default)({Tag:"a",props:e})},blockquote:function(e){return(0,l.default)({Tag:"blockquote",props:e})},code:function(e){return(0,s.default)(e)},dd:function(e){return(0,l.default)({Tag:"dd",props:e})},dl:function(e){return(0,l.default)({Tag:"dl",props:e})},dt:function(e){return(0,l.default)({Tag:"dt",props:e})},h1:function(e){return(0,c.default)({Tag:"h1",props:e})},h2:function(e){return(0,c.default)({Tag:"h2",props:e})},h3:function(e){return(0,c.default)({Tag:"h3",props:e})},h4:function(e){return(0,c.default)({Tag:"h4",props:e})},h5:function(e){return(0,c.default)({Tag:"h5",props:e})},h6:function(e){return(0,c.default)({Tag:"h6",props:e})},hr:function(e){return(0,l.default)({Tag:"hr",props:e})},img:function(e){return(0,l.default)({Tag:"img",props:e})},input:function(e){return(0,l.default)({Tag:"input",props:e})},kbd:function(e){return(0,l.default)({Tag:"kbd",props:e})},li:function(e){return(0,l.default)({Tag:"li",props:e})},ol:function(e){return(0,l.default)({Tag:"ol",props:e})},p:function(e){return(0,l.default)({Tag:"p",props:e})},pre:function(e){return(0,l.default)({Tag:"pre",props:e})},strong:function(e){return(0,l.default)({Tag:"strong",props:e})},table:function(e){return(0,l.default)({Tag:"table",props:e})},td:function(e){return(0,l.default)({Tag:"td",props:e})},th:function(e){return(0,l.default)({Tag:"th",props:e})},tr:function(e){return(0,l.default)({Tag:"tr",props:e})},ul:function(e){return(0,l.default)({Tag:"ul",props:e})}},f=function(e){var t=e.children;return a.default.createElement(o.MDXProvider,{components:d},t)};f.propTypes=u;t.default=f},64055:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(96540)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(79436)),l=n(r(78144)),c=r(53480),s=n(r(50247)),u=n(r(22629));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}var f={sites:r(87038).sitesShape.isRequired},p=function(e){var t=e.sites,r=o.default.useContext(c.DisclosureManagerContext);return o.default.createElement(s.default,{header:o.default.createElement(u.default,{title:"Application Switcher",onBack:r.goBack,onClose:r.closeDisclosure}),fill:!0},o.default.createElement(i.default,{dividerStyle:"bottom-only",paddingStyle:"standard"},t.map((function(e){return o.default.createElement(i.Item,{key:e.url},o.default.createElement(l.default,{"data-app-switcher-link":!0,href:e.url},e.title))}))))};p.propTypes=f;t.default=p},51500:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(85715)),i=_(r(96540)),l=r(28651),c=r(53480),s=n(r(50247)),u=n(r(22629)),d=n(r(67967)),f=_(r(79436)),p=n(r(43165)),h=r(92912),m=n(r(38354)),b=n(r(90225)),g=r(87038),v=n(r(30547));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function _(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var w=d.default.bind(v.default),x={pageConfig:g.pageConfigShape.isRequired},O=function(e,t,r){var n=t.searchItems;n&&r({results:new m.default(n,{shouldSort:!0,tokenize:!0,includeMatches:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:2,keys:["title","tags"]}).search(e),searchString:e,searchItems:n})},E=function(e,t){var r=t.matches.filter((function(t){return t.key===e})).map((function(e){var t=0,r=e.indices.reduce((function(r,n){return r.push(e.value.slice(t,n[0])),r.push(i.default.createElement("span",{key:n[0]},e.value.slice(n[0],n[1]+1))),t=n[1]+1,r}),[]);return r.push(e.value.slice(t)),r}));return 1===r.length?r[0]:t.item[e]},S=function(e){var t=e.pageConfig,r=(0,i.useState)({results:[]}),n=(0,o.default)(r,2),a=n[0],d=n[1],m=(0,l.useHistory)();!function(e,t,r){if(!t.searchItems){var n=Object.entries(e).map((function(e){var t=(0,o.default)(e,2),r=t[0];return{title:t[1].label,path:r,tags:r.split("/")}})),a=t.results,i=t.searchString;r({results:a,searchString:i,searchItems:n}),O(i,t,r)}}(t,a,d);var g=a.searchItems,v=a.searchString,y=a.results,_=i.default.useContext(h.ThemeContext),x=i.default.useContext(c.DisclosureManagerContext),S=(0,i.useRef)(null);return(0,i.useEffect)((function(){S.focus()}),[]),i.default.createElement(s.default,{header:i.default.createElement(i.default.Fragment,null,i.default.createElement(u.default,{title:"Site Search",onBack:x.goBack,onClose:x.closeDisclosure}),i.default.createElement(p.default,{className:w("search-field",_.className),isBlock:!0,placeholder:"Search",onSearch:function(e){return O(e,a,d)},onInvalidSearch:function(){return function(e){return e({results:[]})}(d)},inputRefCallback:function(e){S=e}})),fill:!0},g&&v&&y.length<=0&&i.default.createElement(b.default,{variant:"no-matching-results"}),y.length>0&&i.default.createElement(f.default,{dividerStyle:"standard",role:"listbox","aria-label":"Search Results",className:w(_.className)},a.results.slice(0,25).map((function(e){return i.default.createElement(f.Item,{key:e.item.path,id:e.item.path.replace(/\//g,"-"),isSelectable:!0,metaData:e,onSelect:function(e,t){x.dismiss(),m.push(t.item.path)}},function(e){return i.default.createElement("div",{className:w("item")},i.default.createElement("div",{className:w("title")},E("title",e)),i.default.createElement("div",{className:w("path")},E("path",e)))}(e))}))))};S.propTypes=x;t.default=S},4595:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(85715)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=g(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(96540)),l=n(r(40890)),c=n(r(37953)),s=n(r(50247)),u=n(r(22629)),d=n(r(853)),f=n(r(9047)),p=n(r(67967)),h=r(53480),m=n(r(62673)),b=n(r(46354));function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}var v=p.default.bind(b.default);t.default=function(){var e=i.default.useContext(m.default),t=(0,i.useState)({locale:e.currentLocale,theme:e.currentTheme,density:e.currentDensity,direction:e.currentDirection}),r=(0,o.default)(t,2),n=r[0],a=r[1],p=n.locale,b=n.theme,g=n.density,y=n.direction,_=e.locales,w=e.themes,x=e.directions,O=i.default.useContext(h.DisclosureManagerContext);return i.default.createElement(s.default,{fill:!0,header:i.default.createElement(u.default,{title:"Settings",onBack:O.goBack,onClose:O.closeDisclosure}),footer:i.default.createElement(c.default,{end:i.default.createElement(i.default.Fragment,null,i.default.createElement(l.default,{text:"Submit",id:"submit",variant:l.default.Opts.Variants.EMPHASIS,className:v("button"),onClick:function(){e.onUpdate({locale:p,theme:b,density:g,direction:y}),O.dismiss()}}),i.default.createElement(l.default,{text:"Cancel",id:"cancel",className:v("button"),onClick:function(){O.dismiss()}}))})},i.default.createElement("div",{className:v("container")},_.length>1?i.default.createElement(f.default,{label:"Locale",htmlFor:"terra-dev-site-locale-select"},i.default.createElement(d.default,{isFilterStyle:!0,ariaLabel:"Locale",id:"terra-dev-site-locale-select",value:p,onChange:function(e){a({locale:e.currentTarget.value,theme:b,density:g,direction:y})},options:_.map((function(e){return{value:e,display:e}}))})):void 0,w.length>1?i.default.createElement(f.default,{label:"Theme",htmlFor:"terra-dev-site-theme-select"},i.default.createElement(d.default,{isFilterStyle:!0,ariaLabel:"Theme",id:"terra-dev-site-theme-select",value:b,onChange:function(e){a({locale:p,theme:e.currentTarget.value,density:g,direction:y})},options:w.map((function(e){return{value:e,display:e}}))})):void 0,i.default.createElement(f.default,{label:"Density",htmlFor:"terra-dev-site-density-select"},i.default.createElement(d.default,{isFilterStyle:!0,ariaLabel:"Density",id:"terra-dev-site-density-select",value:g,onChange:function(e){a({locale:p,theme:b,density:e.currentTarget.value,direction:y})},options:[{value:"compact",display:"compact"},{value:"comfortable",display:"comfortable"},{value:"spacious",display:"spacious"}]})),x.length>1?i.default.createElement(f.default,{label:"Direction",htmlFor:"terra-dev-site-direction-select"},i.default.createElement(d.default,{isFilterStyle:!0,ariaLabel:"Direction",id:"terra-dev-site-direction-select",value:y,onChange:function(e){a({locale:p,theme:b,direction:e.currentTarget.value})},options:x.map((function(e){return{value:e,display:e}}))})):void 0))}},19752:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(85715)),i=n(r(96540)),l=n(r(71889)),c=n(r(60587)),s=r(28651),u=n(r(40890)),d=r(53480),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(30248)),p=n(r(73171)),h=r(87038),m=n(r(17604)),b=n(r(41379)),g=r(85055),v=n(r(4595));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}var _={pageContentConfig:h.pageContentConfigShape.isRequired,contentImports:h.contentImportsShape.isRequired},w=function(e){var t=e.pageContentConfig,r=e.contentImports,n=(0,s.useLocation)(),a=(0,s.useHistory)(),h=i.default.useContext(g.NavigationItemContext).isActive,y=i.default.useContext(d.DisclosureManagerContext),_=i.default.useState(),w=(0,o.default)(_,2),x=w[0],O=w[1],E=i.default.useState(),S=(0,o.default)(E,2),P=S[0],C=S[1];if(!h)return null;if(!t)return b.default;var k=r[t.path];if(!k)return b.default;var j,D,T=i.default.createElement(f.default.Actions,null,i.default.createElement(f.default.Action,{actionKey:"raw",label:"Raw",icon:i.default.createElement(l.default,null),onSelect:function(){a.push("/raw".concat(t.path))}}),i.default.createElement(f.default.Action,{actionKey:"settings",label:"Settings",icon:i.default.createElement(c.default,null),onSelect:function(){y.disclose({preferredType:"modal",size:"small",content:{key:"terra-dev-site.settings",component:i.default.createElement(v.default,null)}})}}));return x&&(j=i.default.createElement(f.PageActivityOverlay,{variant:"loading"})),P&&(D=i.default.createElement(m.default,{type:t.type},i.default.createElement(f.StatusLayout,{message:"Chunk failed to load.",variant:"error"},i.default.createElement(u.default,{text:"Reload Site",onClick:function(){n.reload()}})))),i.default.createElement(f.default,{label:t.label,pageKey:t.path,actions:T,activityOverlay:j,statusOverlay:D},i.default.createElement(p.default,{onLoadStart:function(){O(!0)},onLoadEnd:function(){O(!1)},onError:function(){C(!0),O(!1)}},i.default.createElement(f.CardLayout,null,i.default.createElement(f.Card,{minHeightFill:!0},i.default.createElement(m.default,{type:t.type},i.default.createElement(k,{key:t.path}))))))};w.propTypes=_;t.default=w},41379:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(96540)),i=n(r(82232)),l=r(85055),c=n(r(75980)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(30248));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}t.default=function(){return o.default.useContext(l.NavigationItemContext).isActive?o.default.createElement(s.default,{pageKey:"Not Found Page",label:"Page not found"},o.default.createElement(s.CardLayout,null,o.default.createElement(s.Card,{minHeightFill:!0},o.default.createElement(i.default,{src:c.default,width:"100%",alt:"404",variant:"rounded"})))):null}},80121:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o=n(r(5556)),i=n(r(67967)),l=n(r(52103)),c=n(r(27366)),s=n(r(42580)),u=n(r(4454)),d=n(r(23427)),f=n(r(73509)),p=i.default.bind(f.default),h={label:o.default.string.isRequired,actions:o.default.element,onRequestClose:o.default.func,activityOverlay:o.default.element,statusOverlay:o.default.element,children:o.default.node},m=function(e){var t=e.label,r=e.actions,n=e.onRequestClose,o=e.children,i=e.statusOverlay,d=e.activityOverlay;if(r&&r.type!==u.default)throw new Error("[terra-application] Page.Actions must be used to define actions for ".concat(t,"."));var f=a.default.useContext(l.default),h=n?function(){n()}:void 0,m=p("page",f.className),b=a.default.useMemo((function(){var e=[];return i&&e.push({key:"status-overlay",component:i}),d&&e.push({key:"activity-overlay",component:d}),e}),[i,d]);return a.default.createElement("div",{className:m},a.default.createElement("div",{className:p("header")},a.default.createElement(s.default,{onSelectBack:h,label:t,actions:r})),a.default.createElement("div",{className:p("content")},a.default.createElement(c.default,{overlays:b},o)))};m.propTypes=h,m.Actions=u.default,m.Action=d.default;t.default=m},23427:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o=n(r(5556)),i={icon:o.default.element,label:o.default.string.isRequired,onSelect:o.default.func,refCallback:o.default.func},l=function(){return a.default.createElement(a.default.Fragment,null)};l.propTypes=i;t.default=l},4454:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o={children:n(r(5556)).default.node},i=function(){return a.default.createElement(a.default.Fragment,null)};i.propTypes=o;t.default=i},42580:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(91847)),i=n(r(85715)),l=n(r(96540)),c=n(r(5556)),s=n(r(67967)),u=n(r(36131)),d=n(r(24076)),f=n(r(62216)),p=n(r(52103)),h=x(r(41323)),m=r(70817),b=x(r(89099)),g=n(r(45722)),v=n(r(58012)),y=n(r(97842)),_=["icon"];function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(w=function(e){return e?r:t})(e)}function x(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=w(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var O=s.default.bind(y.default),E={actions:c.default.element,label:c.default.string,onSelectBack:c.default.func},S=function(e){var t=e.actions,r=e.label,n=e.onSelectBack,a=l.default.useContext(m.ApplicationIntlContext),c=l.default.useContext(g.default),s=l.default.useContext(p.default),y=l.default.useRef(),w=l.default.useRef(),x=l.default.useState(!1),E=(0,i.default)(x,2),S=E[0],P=E[1],C=(0,b.default)(y,b.breakpointFilter).activeBreakpoint,k=[];if(t&&(k=l.default.Children.toArray(t.props.children).filter((function(e){return e}))),k.length>3)throw new Error("[terra-application] ".concat(r," cannot render more than three actions."));var j="tiny"===C&&k.length>1,D=n?l.default.createElement(v.default,{icon:l.default.createElement(u.default,null),ariaLabel:a.formatMessage({id:"terraDevSite.pageHeader.back"}),onSelect:n}):void 0,T=j?l.default.createElement(v.default,{refCallback:function(e){w.current=e,k.forEach((function(t){t.props.refCallback&&t.props.refCallback(e)}))},className:O("header-button"),icon:l.default.createElement(d.default,null),ariaLabel:a.formatMessage({id:"terraDevSite.pageHeader.moreActions"}),onSelect:function(){P(!0)}}):k.map((function(e){return l.default.createElement(v.default,{key:e.key,refCallback:e.props.refCallback,icon:e.props.icon,ariaLabel:e.props.label,onSelect:e.props.onSelect})})),A=l.default.createElement(l.default.Fragment,null,T,null!=c&&c.containerActions.length?l.default.createElement(l.default.Fragment,null,k.length?l.default.createElement("div",{className:O("actions-divider")}):void 0,c.containerActions.map((function(e){return l.default.createElement(v.default,{key:e.key,ariaLabel:e.label,icon:e.icon,onSelect:e.onSelect,isDisabled:!e.onSelect})}))):void 0),M=l.default.createElement(l.default.Fragment,null,null!=c&&c.startActions.length?l.default.createElement(l.default.Fragment,null,c.startActions.map((function(e){var t=e.icon,r=(0,o.default)(e,_);return l.default.createElement(v.default,{key:r.key,ariaLabel:r.label,icon:l.default.createElement(t,null),onSelect:r.onSelect,isDisabled:!r.onSelect})})),l.default.createElement("div",{className:O("actions-divider")})):void 0),N=S?l.default.createElement(f.default,{isOpen:!0,targetRef:function(){return w.current},onRequestClose:function(){P(!1)},contentHeight:"auto",contentWidth:"auto",contentAttachment:"top right",isContentFocusDisabled:!0,isHeaderDisabled:!0,popupContentRole:"none"},l.default.createElement(h.default,{label:a.formatMessage({id:"terraDevSite.pageHeader.actionsMenu"},{label:r}),onRequestClose:function(){P(!1)}},k.map((function(e){return l.default.createElement(h.ActionMenuItem,{key:e.key,actionKey:e.key,label:e.props.label,isDisabled:!e.props.onSelect,icon:e.props.icon,onAction:function(){P(!1),e.props.onSelect()}})})))):void 0,I=O("page-header-container",s.className);return l.default.createElement("div",{ref:y,className:I},l.default.createElement("div",{className:O("page-header")},l.default.createElement("div",{className:O("start-actions-container")},M,D),l.default.createElement("div",{className:O("label-container"),role:"heading","aria-level":1},r),l.default.createElement("div",{className:O("end-actions-container")},A)),N)};S.propTypes=E;t.default=S},58012:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o=n(r(5556)),i=n(r(67967)),l=n(r(52103)),c=n(r(69906)),s=i.default.bind(c.default),u={ariaLabel:o.default.string.isRequired,icon:o.default.element.isRequired,onSelect:o.default.func,refCallback:o.default.func},d=function(e){var t=e.ariaLabel,r=e.icon,n=e.onSelect,o=e.refCallback,i=a.default.useContext(l.default),c=s("page-header-button",i.className);return a.default.createElement("button",{type:"button",className:c,onClick:n?function(e){e.preventDefault(),n()}:void 0,onBlur:function(e){e.currentTarget.setAttribute("data-focus-styles-enabled","true")},onMouseDown:function(e){e.currentTarget.setAttribute("data-focus-styles-enabled","false")},"aria-label":t,disabled:!n,"data-focus-styles-enabled":!0,ref:o},a.default.createElement("div",{"aria-hidden":!0,className:s("button-inner")},a.default.createElement("div",{className:s("button-image"),title:t},r)))};d.propTypes=u;t.default=d},30248:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Card",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"CardLayout",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"PageActivityOverlay",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"StatusLayout",{enumerable:!0,get:function(){return i.default}}),t.default=void 0;var a=n(r(67770)),o=n(r(56640)),i=n(r(71306)),l=n(r(91842)),c=n(r(80121));t.default=c.default},56640:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o=n(r(5556)),i=n(r(67967)),l=n(r(52103)),c=n(r(82038)),s=i.default.bind(c.default),u={children:o.default.node},d=function(e){var t=e.children,r=a.default.useContext(l.default);return a.default.createElement("div",{className:s("card",r.className)},a.default.createElement("div",{className:s("card-body")},t))};d.propTypes=u;t.default=d},67770:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o=n(r(67967)),i=n(r(5556)),l=n(r(54928)),c=o.default.bind(l.default),s={children:i.default.node},u=function(e){var t,r=e.children;return t=1===a.default.Children.count(r)?r:a.default.Children.map(r,(function(e){return a.default.createElement("div",{className:c("card-container")},e)})),a.default.createElement("div",{className:c("card-layout"),"data-application-overflow-container":!0,tabIndex:"0"},t)};u.propTypes=s;t.default=u},71306:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.StatusViewVariants=void 0;var a=n(r(96540)),o=n(r(5556)),i=n(r(40890)),l=n(r(67967)),c=n(r(60822)),s=n(r(67770)),u=n(r(56640)),d=n(r(56364)),f=l.default.bind(d.default),p=(t.StatusViewVariants={NODATA:"no-data",NOMATCHINGRESULTS:"no-matching-results",NOTAUTHORIZED:"not-authorized",ERROR:"error"},{buttonAttrs:o.default.arrayOf(o.default.shape(i.default.propTypes)),customGlyph:o.default.node,isAlignedTop:o.default.bool,isGlyphHidden:o.default.bool,message:o.default.string,title:o.default.string,variant:o.default.oneOf(["no-data","no-matching-results","not-authorized","error"])}),h={buttonAttrs:[],customGlyph:void 0,isAlignedTop:!1,isGlyphHidden:!1,message:void 0,title:void 0,variant:void 0},m=function(e){return a.default.createElement(s.default,null,a.default.createElement(u.default,null,a.default.createElement("div",{classnames:f("outer-view")},a.default.createElement("div",{classnames:f("inner-view")},a.default.createElement(c.default,e)))))};m.propTypes=p,m.defaultProps=h;t.default=m},91842:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o=n(r(5556)),i=n(r(67967)),l=r(8604),c=n(r(4549)),s=n(r(52103)),u=n(r(24944)),d=i.default.bind(u.default),f={variant:o.default.oneOf(["default","loading"])},p=function(e){var t=e.variant,r=a.default.useContext(s.default);return a.default.createElement("div",{className:d("activity-overlay",r.className),"aria-live":"polite"},a.default.createElement("div",{className:d("content")},a.default.createElement(c.default,{className:d("icon"),isSpin:!0,height:"36",width:"36"}),"loading"===t?a.default.createElement(l.FormattedMessage,{id:"terraDevSite.pageActivityOverlayContainer.loading"},(function(e){return a.default.createElement("div",{className:d("message")},e)})):void 0))};p.propTypes=f,p.defaultProps={variant:"default"};t.default=p},59203:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(17383)),o=n(r(34579)),i=n(r(28452)),l=n(r(63072)),c=n(r(29511)),s=n(r(96540)),u=n(r(5556)),d=n(r(33341));function f(e,t,r){return t=(0,l.default)(t),(0,i.default)(e,p()?Reflect.construct(t,r||[],(0,l.default)(e).constructor):t.apply(e,r))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var h={onCatchError:u.default.func,children:u.default.node},m=function(e){function t(e){var r;return(0,a.default)(this,t),(r=f(this,t,[e])).state={error:void 0},r}return(0,c.default)(t,e),(0,o.default)(t,[{key:"componentDidCatch",value:function(e){if(d.default.error(e),!this.props.onCatchError)throw e;this.props.onCatchError(e)}},{key:"render",value:function(){return this.state.error?null:this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}]),t}(s.default.Component);m.propTypes=h;t.default=m},73171:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(85715)),o=n(r(96540)),i=n(r(5556)),l=n(r(59203)),c=function(e){var t=e.children,r=e.onMount;return o.default.useLayoutEffect((function(){return r(!0),function(){return r(!1)}}),[r]),t||o.default.createElement("div",null)};c.propTypes={onMount:i.default.func,children:i.default.node};var s=function(e){var t=e.onLoadStart,r=e.onLoadEnd,n=e.onError,i=e.fallback,s=e.children,u=o.default.useState(!1),d=(0,a.default)(u,2),f=d[0],p=d[1],h=o.default.useRef(!1);return o.default.useEffect((function(){t&&f&&!h.current&&(h.current=!0,t())}),[t,f]),o.default.useEffect((function(){r&&!f&&h.current&&r()}),[r,f]),o.default.createElement(l.default,{onCatchError:function(e){n&&n(e)}},o.default.createElement(o.default.Suspense,{fallback:o.default.createElement(c,{onMount:p},i)},s))};s.propTypes={onLoadStart:i.default.func,onLoadEnd:i.default.func,onError:i.default.func,fallback:i.default.node,children:i.default.node};t.default=s},89099:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.breakpointFilter=void 0;var a=n(r(85715)),o=n(r(96540)),i=n(r(7829)),l=r(53757),c=function(e){var t=e.width,r=e.height;return{activeBreakpoint:(0,l.activeBreakpointForSize)(t),width:t,height:r}};t.breakpointFilter=function(e,t){return e.activeBreakpoint!==t.activeBreakpoint},t.default=function(e,t){var r=o.default.useRef(t),n=o.default.useRef(),l=o.default.useRef(),s=o.default.useState({}),u=(0,a.default)(s,2),d=u[0],f=u[1];return o.default.useLayoutEffect((function(){var t=e.current,a=new i.default((function(e){n.current=window.requestAnimationFrame((function(){if(n.current=null,document.contains(e[0].target)){var t=c(e[0].target.getBoundingClientRect());r.current&&!r.current(t,l.current)||(l.current=t,f(t))}}))}));a.observe(e.current);var o=c(e.current.getBoundingClientRect());return l.current=o,f(o),function(){window.cancelAnimationFrame(n.current),a.disconnect(t)}}),[e,r]),d}},58175:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.getPortalElement=t.default=void 0;var a=n(r(85715)),o=n(r(96540)),i=r(20812);t.getPortalElement=function(){var e=document.createElement("div");return e.style.position="relative",e.style.height="100%",e.style.width="100%",e},t.default=function(e,t,r){var n=o.default.useRef(),l=o.default.useRef({}),c=o.default.useRef(),s=o.default.useState(),u=(0,a.default)(s,2),d=u[0],f=u[1];return o.default.useLayoutEffect((function(){if(n.current){var a=l.current[e];if(!n.current.contains(null==a?void 0:a.element)){if(c.current){var o=l.current[c.current].element;l.current[c.current].scrollData=(0,i.getPersistentScrollMap)(o),n.current.removeChild(o),r&&r(c.current,o)}null!=a&&a.element?(n.current.appendChild(a.element),a.scrollData&&(0,i.applyScrollData)(a.scrollData,a.element),c.current=e,f(e),t&&t(e,a.element)):c.current=void 0}}}),[e,t,r]),[n,l,d]}},89746:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o=r(28651),i=n(r(5556)),l=n(r(35066)),c=n(r(52976)),s=n(r(94745)),u=n(r(87038)),d=n(r(61488)),f=n(r(58739)),p=n(r(31407)),h={siteConfig:u.default.isRequired,Providers:i.default.func,ApplicationBase:i.default.func,ApplicationNavigation:i.default.func},m=function(e){var t=e.siteConfig,r=e.Providers,n=e.ApplicationBase,i=e.ApplicationNavigation;return a.default.createElement(s.default,{settingsConfig:t.settingsConfig},a.default.createElement(o.BrowserRouter,{basename:t.basename},a.default.createElement(f.default,{sites:t.sites,routesMap:t.routesMap},a.default.createElement(p.default,{ApplicationBase:n},a.default.createElement(d.default,null,a.default.createElement(l.default,null,r?a.default.createElement(r,null,a.default.createElement(c.default,{siteConfig:t,ApplicationNavigation:i})):a.default.createElement(c.default,{siteConfig:t,ApplicationNavigation:i})))))))};m.propTypes=h;t.default=m},62673:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)).default.createContext({});t.default=a},94745:function(e,t,r){"use strict";var n=r(24994),a=r(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(85715)),i=n(r(43693)),l=n(r(73738)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(96540)),s=n(r(5556)),u=n(r(62673)),d=r(87038);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;tn?1:0})),w=function(e){var t=e.settingsConfig,r=e.children,n=t.defaultLocale,a=void 0===n?"en":n,i=t.defaultTheme,l=void 0===i?v:i,s=t.defaultDensity,d=void 0===s?g.density:s,f=t.defaultDirection,p=void 0===f?"ltr":f,h=(0,c.useState)(a),m=(0,o.default)(h,2),w=m[0],x=m[1],O=(0,c.useState)(p),E=(0,o.default)(O,2),S=E[0],P=E[1],C=(0,c.useState)(l),k=(0,o.default)(C,2),j=k[0],D=k[1],T=(0,c.useState)(d),A=(0,o.default)(T,2),M=A[0],N=A[1];(0,c.useEffect)((function(){var e=document.getElementsByTagName("html")[0];e.getAttribute("lang")!==w&&e.setAttribute("lang",w),e.getAttribute("dir")!==S&&e.setAttribute("dir",S)}),[w,S]);var I=(0,c.useMemo)((function(){return{locales:b,currentLocale:w,currentTheme:j,currentDensity:M,currentDirection:S,directions:["ltr","rtl"],themes:_,currentThemeClassName:y[j],onUpdate:function(e){var t=e.locale,r=e.theme,n=e.density,a=e.direction;t&&x(t),r&&D(r),n&&N(n),a&&P(a)}}}),[w,j,M,S]);return c.default.createElement(u.default.Provider,{value:I},r)};w.propTypes=m;t.default=w},31407:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o=r(28651),i=n(r(5556)),l=n(r(90308)),c=n(r(62673)),s={children:i.default.node,ApplicationBase:i.default.func},u=function(e){var t=e.children,r=e.ApplicationBase,n=(0,o.useRouteMatch)("/raw"),i=a.default.useContext(c.default),s=i.currentLocale,u=i.currentThemeClassName,d=i.currentDensity,f=r||l.default;return a.default.createElement(f,{locale:s,themeName:u,themeDensity:d,themeIsGlobal:!0,unloadPromptIsDisabled:!!n},t)};u.propTypes=s;t.default=u},58739:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(96540)),o=r(28651),i=n(r(5556)),l=r(87038),c=n(r(19883)),s={sites:l.sitesShape.isRequired,routesMap:l.routesMapShape.isRequired,children:i.default.node.isRequired},u=function(e){var t=e.sites,r=e.routesMap,n=e.children,i=(0,o.useRouteMatch)("/"),l=(0,o.useLocation)();if(i&&l.hash.startsWith("#/"))return a.default.createElement(o.Redirect,{to:"/".concat(l.hash.slice(2))});var s=l.pathname.toLocaleLowerCase(),u=t.find((function(e){return s.startsWith("/".concat(e.path))}));if(u)return void 0!==(0,c.default)()&&(window.sessionStorage.redirect=window.location.href),window.location.pathname=u.url,null;var d=r[1!==s.length&&s.endsWith("/")?s.slice(0,-1):s];return d?a.default.createElement(o.Redirect,{to:d}):n};u.propTypes=s;t.default=u},40553:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return a.default}});var a=n(r(89746)),o=n(r(87038))},87038:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.titleConfigShape=t.sitesShape=t.settingsConfigShape=t.routesMapShape=t.pageContentConfigShape=t.pageConfigShape=t.navigationConfigShape=t.default=t.contentImportsShape=void 0;var a=n(r(5556)),o=t.settingsConfigShape=a.default.shape({defaultTheme:a.default.string,defaultLocale:a.default.string,defaultDirection:a.default.string}),i=t.sitesShape=a.default.arrayOf(a.default.shape({path:a.default.string,title:a.default.string,url:a.default.string})),l=a.default.arrayOf(a.default.shape({key:a.default.string,text:a.default.string,icon:a.default.elementType,modal:a.default.elementType})),c=t.pageContentConfigShape=a.default.shape({path:a.default.string,label:a.default.string.isRequired,type:a.default.string.isRequired}),s=t.navigationConfigShape=a.default.arrayOf(a.default.shape({label:a.default.string.isRequired,pageConfig:c,children:a.default.array})),u=t.contentImportsShape=a.default.object,d=t.pageConfigShape=a.default.object,f=t.routesMapShape=a.default.object,p=t.titleConfigShape=a.default.shape({title:a.default.string.isRequired,subline:a.default.string,headline:a.default.string}),h=a.default.shape({basename:a.default.string.isRequired,contentImports:u.isRequired,extensionItems:l.isRequired,navigationConfig:s,pageConfig:d.isRequired,routesMap:f.isRequired,settingsConfig:o.isRequired,sites:i.isRequired,titleConfig:p.isRequired,additionalConfig:a.default.object});t.default=h},97448:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){return setTimeout(e,0)}},20812:function(e,t,r){"use strict";var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.applyScrollData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;Object.entries(e).forEach((function(e){var r=(0,a.default)(e,2),n=r[0],o=r[1],i=t.querySelector('[data-persistent-overflow-id="'.concat(n,'"]'));i&&(i.scrollTop=o.scrollTop,i.scrollLeft=o.scrollLeft)}))},t.getOverflowDataForElement=s,t.getPersistentScrollMap=function(e){var t=e.querySelectorAll("[data-application-overflow-container]");return Array.prototype.slice.call(t).reduce((function(e,t){return c(c({},e),s(t))}),{})};var a=n(r(85715)),o=n(r(43693)),i=r(68414);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;j(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},49948:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new WeakMap;t.default=function(e){var t=r.get(e);return t||(t=Object.create(null),r.set(e,t)),t}},15912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(31635),a=r(67916),o=n.__importDefault(r(49948)),i=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'");return a.InitializeRelativeTimeFormat(this,t,r,{getInternalSlots:o.default,availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale})}return e.prototype.format=function(e,t){if("object"!=typeof this)throw new TypeError("format was called on a non-object");if(!o.default(this).initializedRelativeTimeFormat)throw new TypeError("format was called on a invalid context");return a.PartitionRelativeTimePattern(this,Number(e),a.ToString(t),{getInternalSlots:o.default}).map((function(e){return e.value})).join("")},e.prototype.formatToParts=function(e,t){if("object"!=typeof this)throw new TypeError("formatToParts was called on a non-object");if(!o.default(this).initializedRelativeTimeFormat)throw new TypeError("formatToParts was called on a invalid context");return a.PartitionRelativeTimePattern(this,Number(e),a.ToString(t),{getInternalSlots:o.default})},e.prototype.resolvedOptions=function(){if("object"!=typeof this)throw new TypeError("resolvedOptions was called on a non-object");var e=o.default(this);if(!e.initializedRelativeTimeFormat)throw new TypeError("resolvedOptions was called on a invalid context");return{locale:e.locale,style:e.style,numeric:e.numeric,numberingSystem:e.numberingSystem}},e.supportedLocalesOf=function(t,r){return a.SupportedLocales(e.availableLocales,a.CanonicalizeLocaleList(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r8640000000000001?NaN:function(e){var t=r(e);if(isNaN(t)||n(t,-0))return 0;if(isFinite(t))return t;var a=Math.floor(Math.abs(t));return t<0&&(a=-a),n(a,-0)?0:a}(e):NaN},t.ToObject=function(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)},t.SameValue=n,t.ArrayCreate=function(e){return new Array(e)},t.HasOwnProperty=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.Type=function(e){return null===e?"Null":"undefined"==typeof e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":void 0};var a=864e5;function o(e,t){return e-Math.floor(e/t)*t}function i(e){return Math.floor(e/a)}function l(e){return Date.UTC(e,0)/a}function c(e){return new Date(e).getUTCFullYear()}function s(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function u(e){return i(e)-l(c(e))}function d(e){return 365===s(c(e))?0:1}function f(e){var t=u(e),r=d(e);if(t>=0&&t<31)return 0;if(t<59+r)return 1;if(t<90+r)return 2;if(t<120+r)return 3;if(t<151+r)return 4;if(t<181+r)return 5;if(t<212+r)return 6;if(t<243+r)return 7;if(t<273+r)return 8;if(t<304+r)return 9;if(t<334+r)return 10;if(t<365+r)return 11;throw new Error("Invalid time")}t.Day=i,t.WeekDay=function(e){return o(i(e)+4,7)},t.DayFromYear=l,t.TimeFromYear=function(e){return Date.UTC(e,0)},t.YearFromTime=c,t.DaysInYear=s,t.DayWithinYear=u,t.InLeapYear=d,t.MonthFromTime=f,t.DateFromTime=function(e){var t=u(e),r=f(e),n=d(e);if(0===r)return t+1;if(1===r)return t-30;if(2===r)return t-58-n;if(3===r)return t-89-n;if(4===r)return t-119-n;if(5===r)return t-150-n;if(6===r)return t-180-n;if(7===r)return t-211-n;if(8===r)return t-242-n;if(9===r)return t-272-n;if(10===r)return t-303-n;if(11===r)return t-333-n;throw new Error("Invalid time")};var p=1e3;t.HourFromTime=function(e){return o(Math.floor(e/36e5),24)},t.MinFromTime=function(e){return o(Math.floor(e/6e4),60)},t.SecFromTime=function(e){return o(Math.floor(e/p),60)},t.OrdinaryHasInstance=function(e,t,r){if("function"!=typeof e)return!1;if(null==r?void 0:r.boundTargetFunction)return t instanceof(null==r?void 0:r.boundTargetFunction);if("object"!=typeof t)return!1;var n=e.prototype;if("object"!=typeof n)throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(n,t)},t.msFromTime=function(e){return o(e,p)}},49059:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestAvailableLocale=void 0,t.BestAvailableLocale=function(e,t){for(var r=t;;){if(e.has(r))return r;var n=r.lastIndexOf("-");if(!~n)return;n>=2&&"-"===r[n-2]&&(n-=2),r=r.slice(0,n)}}},4111:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestFitMatcher=void 0;var n=r(49059),a=r(29861);t.BestFitMatcher=function(e,t,r){var o,i={},l=new Set;e.forEach((function(e){var t=new Intl.Locale(e).minimize().toString();i[t]=e,l.add(t)}));for(var c=0,s=t;cr&&(r=u,i=s)}return n.__assign({},i)}},49743:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestFitFormatMatcher=t.bestFitFormatMatcherScore=void 0;var n=r(31635),a=r(29861),o=r(97110),i=r(3340);function l(e){return"numeric"===e||"2-digit"===e}function c(e,t){var r=0;e.hour12&&!t.hour12?r-=o.removalPenalty:!e.hour12&&t.hour12&&(r-=o.additionPenalty);for(var n=0,a=o.DATE_TIME_PROPS;nr&&(r=f,o=d)}var p=n.__assign({},o),h={rawPattern:o.rawPattern};for(var m in i.processDateTimePattern(o.rawPattern,h),p){var b=p[m],g=h[m],v=e[m];"minute"!==m&&"second"!==m&&(v&&(l(g)&&!l(v)||b!==v&&(h[m]=v)))}return h.pattern=p.pattern,h.pattern12=p.pattern12,h.skeleton=p.skeleton,h.rangePatterns=p.rangePatterns,h.rangePatterns12=p.rangePatterns12,h}},95102:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeStyleFormat=void 0;var n=r(29861);t.DateTimeStyleFormat=function(e,t,r){var a,o;if(void 0!==t&&(n.invariant("full"===t||"long"===t||"medium"===t||"short"===t,"invalid timeStyle"),o=r.timeFormat[t]),void 0!==e&&(n.invariant("full"===e||"long"===e||"medium"===e||"short"===e,"invalid dateStyle"),a=r.dateFormat[e]),void 0!==e&&void 0!==t){var i={};for(var l in a)"pattern"!==l&&(i[l]=a[l]);for(var l in o)"pattern"!==l&&"pattern12"!==l&&(i[l]=o[l]);var c=r.dateTimeFormat[e],s=c.replace("{0}",o.pattern).replace("{1}",a.pattern);if(i.pattern=s,"pattern12"in o){var u=c.replace("{0}",o.pattern12).replace("{1}",a.pattern);i.pattern12=u}return i}return void 0!==t?o:(n.invariant(void 0!==e,"dateStyle should not be undefined"),a)}},8969:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatDateTime=void 0;var n=r(82056);t.FormatDateTime=function(e,t,r){for(var a="",o=0,i=n.PartitionDateTimePattern(e,t,r);o-1){var j="",D=f[C];k=x[C];"year"===C&&k<=0&&(k=1-k),"month"===C&&k++;var T=f.hourCycle;if("hour"!==C||"h11"!==T&&"h12"!==T||0===(k%=12)&&"h12"===T&&(k=12),"hour"===C&&"h24"===T&&0===k&&(k=24),"numeric"===D)j=b.format(k);else if("2-digit"===D)(j=y.format(k)).length>2&&(j=j.slice(j.length-2,j.length));else if("narrow"===D||"short"===D||"long"===D)if("era"===C)j=p[C][D][k];else if("timeZoneName"===C){var A=p.timeZoneName,M=p.gmtFormat,N=p.hourFormat,I=A[f.timeZone||u()];j=I&&I[D]?I[D][+x.inDST]:l(M,N,x.timeZoneOffset,D)}else j="month"===C?p.month[D][k-1]:p[C][D][k];O.push({type:C,value:j})}else if("ampm"===C){j=void 0;j=(k=x.hour)>11?p.pm:p.am,O.push({type:"dayPeriod",value:j})}else if("relatedYear"===C){k=x.relatedYear,j=b.format(k);O.push({type:"relatedYear",value:j})}else if("yearName"===C){k=x.yearName,j=b.format(k);O.push({type:"yearName",value:j})}}return O}},93360:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatDateTimeRange=void 0;var n=r(80477);t.FormatDateTimeRange=function(e,t,r,a){for(var o="",i=0,l=n.PartitionDateTimeRangePattern(e,t,r,a);i11&&S<11||E<11&&S>11)&&(v=!1),u=O}}else if("fractionalSecondDigits"===x){var P=p.fractionalSecondDigits;void 0===P&&(P=3),(E=Math.floor(h.millisecond*Math.pow(10,P-3)))!==(S=Math.floor(m.millisecond*Math.pow(10,P-3)))&&(v=!1)}else{O=g[x];if(void 0!==u&&void 0===O)y=!0;else{E=h[x],S=m[x];a.SameValue(E,S)||(v=!1),u=O}}}if(v){for(var C=i.FormatDateTimePattern(e,l.PartitionPattern(b),t,s),k=0,j=C;ke){i=(n=a[o-1])[2],l=n[3];break}return[1e3*i,l]}(e,r,i),c=l[0],s=l[1],u=e+c,d=a.YearFromTime(u);return{weekday:a.WeekDay(u),era:d<0?"BC":"AD",year:d,relatedYear:void 0,yearName:void 0,month:a.MonthFromTime(u),day:a.DateFromTime(u),hour:a.HourFromTime(u),minute:a.MinFromTime(u),second:a.SecFromTime(u),millisecond:a.msFromTime(u),inDST:s,timeZoneOffset:c}}},3340:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitRangePattern=t.splitFallbackRangePattern=t.parseDateTimeSkeleton=t.processDateTimePattern=void 0;var n=r(31635),a=r(41204),o=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,i=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function l(e,t){var r=e.length;switch(e[0]){case"G":return t.era=4===r?"long":5===r?"narrow":"short","{era}";case"y":case"Y":case"u":case"U":case"r":return t.year=2===r?"2-digit":"numeric","{year}";case"q":case"Q":throw new RangeError("`w/Q` (quarter) patterns are not supported");case"M":case"L":return t.month=["numeric","2-digit","short","long","narrow"][r-1],"{month}";case"w":case"W":throw new RangeError("`w/W` (week of year) patterns are not supported");case"d":return t.day=["numeric","2-digit"][r-1],"{day}";case"D":case"F":case"g":return t.day="numeric","{day}";case"E":return t.weekday=4===r?"long":5===r?"narrow":"short","{weekday}";case"e":case"c":return t.weekday=[void 0,void 0,"short","long","narrow","short"][r-1],"{weekday}";case"a":case"b":case"B":return t.hour12=!0,"{ampm}";case"h":case"K":return t.hour=["numeric","2-digit"][r-1],t.hour12=!0,"{hour}";case"H":case"k":return t.hour=["numeric","2-digit"][r-1],"{hour}";case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":return t.minute=["numeric","2-digit"][r-1],"{minute}";case"s":return t.second=["numeric","2-digit"][r-1],"{second}";case"S":case"A":return t.second="numeric","{second}";case"z":case"Z":case"O":case"v":case"V":case"X":case"x":return t.timeZoneName=r<4?"short":"long","{timeZoneName}"}return""}function c(e){switch(e){case"G":return"era";case"y":case"Y":case"u":case"U":case"r":return"year";case"M":case"L":return"month";case"d":case"D":case"F":case"g":return"day";case"a":case"b":case"B":return"ampm";case"h":case"H":case"K":case"k":return"hour";case"m":return"minute";case"s":case"S":case"A":return"second";default:throw new RangeError("Invalid range pattern token")}}function s(e,t){var r=[],n=e.replace(/'{2}/g,"{apostrophe}").replace(/'(.*?)'/g,(function(e,t){return r.push(t),"$$"+(r.length-1)+"$$"})).replace(o,(function(e){return l(e,t||{})}));return r.length&&(n=n.replace(/\$\$(\d+)\$\$/g,(function(e,t){return r[+t]})).replace(/\{apostrophe\}/g,"'")),[n.replace(/([\s\uFEFF\xA0])\{ampm\}([\s\uFEFF\xA0])/,"$1").replace("{ampm}","").replace(i,""),n]}function u(e){return e.split(/(\{[0|1]\})/g).filter(Boolean).map((function(e){switch(e){case"{0}":return{source:a.RangePatternType.startRange,pattern:e};case"{1}":return{source:a.RangePatternType.endRange,pattern:e};default:return{source:a.RangePatternType.shared,pattern:e}}}))}function d(e){for(var t,r=/\{(.*?)\}/g,n={},o=0;t=r.exec(e);){if(t[0]in n){o=t.index;break}n[t[0]]=t.index}return o?[{source:a.RangePatternType.startRange,pattern:e.slice(0,o)},{source:a.RangePatternType.endRange,pattern:e.slice(o)}]:[{source:a.RangePatternType.startRange,pattern:e}]}t.processDateTimePattern=s,t.parseDateTimeSkeleton=function(e,t,r,a){void 0===t&&(t=e);var i={pattern:"",pattern12:"",skeleton:e,rawPattern:t,rangePatterns:{},rangePatterns12:{}};if(r)for(var f in r){var p=c(f),h={patternParts:[]},m=s(r[f],h),b=m[0],g=m[1];i.rangePatterns[p]=n.__assign(n.__assign({},h),{patternParts:d(b)}),i.rangePatterns12[p]=n.__assign(n.__assign({},h),{patternParts:d(g)})}else if(a){var v=u(a);i.rangePatterns.default={patternParts:v},i.rangePatterns12.default={patternParts:v}}e.replace(o,(function(e){return l(e,i)}));var y=s(t),_=y[0],w=y[1];return i.pattern=_,i.pattern12=w,i},t.splitFallbackRangePattern=u,t.splitRangePattern=d},97110:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shortMorePenalty=t.shortLessPenalty=t.longMorePenalty=t.longLessPenalty=t.differentNumericTypePenalty=t.additionPenalty=t.removalPenalty=t.DATE_TIME_PROPS=void 0,t.DATE_TIME_PROPS=["weekday","era","year","month","day","hour","minute","second","timeZoneName"],t.removalPenalty=120,t.additionPenalty=20,t.differentNumericTypePenalty=15,t.longLessPenalty=8,t.longMorePenalty=6,t.shortLessPenalty=6,t.shortMorePenalty=3},76509:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultNumberOption=void 0,t.DefaultNumberOption=function(e,t,r,n){if(void 0!==e){if(e=Number(e),isNaN(e)||er)throw new RangeError(e+" is outside of range ["+t+", "+r+"]");return Math.floor(e)}return n}},7451:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanonicalCodeForDisplayNames=void 0;var n=r(14304),a=r(29861),o=r(47347),i=/^([a-z]{2}|[0-9]{3})$/i,l=/^[a-z]{4}$/i;t.CanonicalCodeForDisplayNames=function(e,t){if("language"===e)return n.CanonicalizeLocaleList([t])[0];if("region"===e){if(r=t,!i.test(r))throw RangeError("invalid region");return t.toUpperCase()}var r,c;if("script"===e){if(c=t,!l.test(c))throw RangeError("invalid script");return""+t[0].toUpperCase()+t.slice(1).toLowerCase()}if(a.invariant("currency"===e,"invalid type"),!o.IsWellFormedCurrencyCode(t))throw RangeError("invalid currency");return t.toUpperCase()}},60572:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetNumberOption=void 0;var n=r(76509);t.GetNumberOption=function(e,t,r,a,o){var i=e[t];return n.DefaultNumberOption(i,r,a,o)}},19249:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetOption=void 0;var n=r(14486);t.GetOption=function(e,t,r,a,o){if("object"!=typeof e)throw new TypeError("Options must be an object");var i=e[t];if(void 0!==i){if("boolean"!==r&&"string"!==r)throw new TypeError("invalid type");if("boolean"===r&&(i=Boolean(i)),"string"===r&&(i=n.ToString(i)),void 0!==a&&!a.filter((function(e){return e==i})).length)throw new RangeError(i+" is not within "+a.join(", "));return i}return o}},19923:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetOptionsObject=void 0,t.GetOptionsObject=function(e){if("undefined"==typeof e)return Object.create(null);if("object"==typeof e)return e;throw new TypeError("Options must be an object")}},68309:function(e,t){"use strict";function r(e){return e.slice(e.indexOf("-")+1)}Object.defineProperty(t,"__esModule",{value:!0}),t.IsSanctionedSimpleUnitIdentifier=t.SIMPLE_UNITS=t.removeUnitNamespace=t.SANCTIONED_UNITS=void 0,t.SANCTIONED_UNITS=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"],t.removeUnitNamespace=r,t.SIMPLE_UNITS=t.SANCTIONED_UNITS.map(r),t.IsSanctionedSimpleUnitIdentifier=function(e){return t.SIMPLE_UNITS.indexOf(e)>-1}},87002:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IsValidTimeZoneName=void 0,t.IsValidTimeZoneName=function(e,t){var r=t.tzData,n=t.uppercaseLinks,a=e.toUpperCase(),o=new Set;return Object.keys(r).map((function(e){return e.toUpperCase()})).forEach((function(e){return o.add(e)})),o.has(a)||a in n}},47347:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IsWellFormedCurrencyCode=void 0;var r=/[^A-Z]/;t.IsWellFormedCurrencyCode=function(e){return 3===(e=e.replace(/([a-z])/g,(function(e,t){return t.toUpperCase()}))).length&&!r.test(e)}},61600:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IsWellFormedUnitIdentifier=void 0;var n=r(68309);t.IsWellFormedUnitIdentifier=function(e){if(e=e.replace(/([A-Z])/g,(function(e,t){return t.toLowerCase()})),n.IsSanctionedSimpleUnitIdentifier(e))return!0;var t=e.split("-per-");if(2!==t.length)return!1;var r=t[0],a=t[1];return!(!n.IsSanctionedSimpleUnitIdentifier(r)||!n.IsSanctionedSimpleUnitIdentifier(a))}},8348:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LookupMatcher=void 0;var n=r(29861),a=r(49059);t.LookupMatcher=function(e,t,r){for(var o={locale:""},i=0,l=t;ip[p.length-1])return p[p.length-1].length-1;var h=p.indexOf(f);if(-1===h)return 0;var m=p[h];return"0"===u[m].other?0:m.length-u[m].other.match(/0+/)[0].length}}},41614:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CurrencyDigits=void 0;var n=r(14486);t.CurrencyDigits=function(e,t){var r=t.currencyDigitsData;return n.HasOwnProperty(r,e)?r[e]:2}},4708:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatNumericToParts=void 0;var n=r(74792),a=r(14486);t.FormatNumericToParts=function(e,t,r){for(var o=n.PartitionNumberPattern(e,t,r),i=a.ArrayCreate(0),l=0,c=o;l1&&(r=i.ToRawFixed(t,0,0))}t=r.roundedNumber;var c=r.formattedString,s=r.integerDigitsCount,u=e.minimumIntegerDigits;return s0||isNaN(t)?0:-1;break;case"always":s=o.SameValue(t,0)||t>0||isNaN(t)?1:-1;break;default:s=0===t||isNaN(t)?0:t>0?1:-1}return l.default({roundedNumber:t,formattedString:c,exponent:g,magnitude:b,sign:s},d.dataLocaleData,f,d)}},70324:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetNumberFormatDigitOptions=void 0;var n=r(60572),a=r(76509);t.SetNumberFormatDigitOptions=function(e,t,r,o,i){var l=n.GetNumberOption(t,"minimumIntegerDigits",1,21,1),c=t.minimumFractionDigits,s=t.maximumFractionDigits,u=t.minimumSignificantDigits,d=t.maximumSignificantDigits;if(e.minimumIntegerDigits=l,void 0!==u||void 0!==d)e.roundingType="significantDigits",u=a.DefaultNumberOption(u,1,21,1),d=a.DefaultNumberOption(d,u,21,21),e.minimumSignificantDigits=u,e.maximumSignificantDigits=d;else if(void 0!==c||void 0!==s){e.roundingType="fractionDigits",c=a.DefaultNumberOption(c,0,20,r);var f=Math.max(c,o);s=a.DefaultNumberOption(s,c,20,f),e.minimumFractionDigits=c,e.maximumFractionDigits=s}else"compact"===i?e.roundingType="compactRounding":(e.roundingType="fractionDigits",e.minimumFractionDigits=r,e.maximumFractionDigits=o)}},36193:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetNumberFormatUnitOptions=void 0;var n=r(19249),a=r(47347),o=r(61600);t.SetNumberFormatUnitOptions=function(e,t,r){void 0===t&&(t=Object.create(null));var i=(0,r.getInternalSlots)(e),l=n.GetOption(t,"style","string",["decimal","percent","currency","unit"],"decimal");i.style=l;var c=n.GetOption(t,"currency","string",void 0,void 0);if(void 0!==c&&!a.IsWellFormedCurrencyCode(c))throw RangeError("Malformed currency code");if("currency"===l&&void 0===c)throw TypeError("currency cannot be undefined");var s=n.GetOption(t,"currencyDisplay","string",["code","symbol","narrowSymbol","name"],"symbol"),u=n.GetOption(t,"currencySign","string",["standard","accounting"],"standard"),d=n.GetOption(t,"unit","string",void 0,void 0);if(void 0!==d&&!o.IsWellFormedUnitIdentifier(d))throw RangeError("Invalid unit argument for Intl.NumberFormat()");if("unit"===l&&void 0===d)throw TypeError("unit cannot be undefined");var f=n.GetOption(t,"unitDisplay","string",["short","narrow","long"],"short");"currency"===l&&(i.currency=c.toUpperCase(),i.currencyDisplay=s,i.currencySign=u),"unit"===l&&(i.unit=d,i.unitDisplay=f)}},84106:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToRawFixed=void 0;var n=r(29861);t.ToRawFixed=function(e,t,r){var a,o,i=r,l=Math.round(e*Math.pow(10,i)),c=l/Math.pow(10,i);if(l<1e21)a=l.toString();else{var s=(a=l.toString()).split("e"),u=s[0],d=s[1];a=u.replace(".",""),a+=n.repeat("0",Math.max(+d-a.length+1,0))}if(0!==i){var f=a.length;if(f<=i)a=n.repeat("0",i+1-f)+a,f=i+1;var p=a.slice(0,f-i),h=a.slice(f-i);a=p+"."+h,o=p.length}else o=a.length;for(var m=r-t;m>0&&"0"===a[a.length-1];)a=a.slice(0,-1),m--;return"."===a[a.length-1]&&(a=a.slice(0,-1)),{formattedString:a,roundedNumber:c,integerDigitsCount:o}}},73580:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToRawPrecision=void 0;var n=r(29861);t.ToRawPrecision=function(e,t,r){var a,o,i,l,c=r;if(0===e)a=n.repeat("0",c),o=0,i=0;else{var s=e.toString(),u=s.indexOf("e"),d=s.split("e"),f=d[0],p=d[1],h=f.replace(".","");if(u>=0&&h.length<=c)o=+p,a=h+n.repeat("0",c-h.length),i=e;else{var m=(o=n.getMagnitude(e))-c+1,b=Math.round(v(e,m));v(b,c-1)>=10&&(o+=1,b=Math.floor(b/10)),a=b.toString(),i=v(b,c-1-o)}}if(o>=c-1?(a+=n.repeat("0",o-c+1),l=o+1):o>=0?(a=a.slice(0,o+1)+"."+a.slice(o+1),l=o+1):(a="0."+n.repeat("0",-o-1)+a,l=1),a.indexOf(".")>=0&&r>t){for(var g=r-t;g>0&&"0"===a[a.length-1];)a=a.slice(0,-1),g--;"."===a[a.length-1]&&(a=a.slice(0,-1))}return{formattedString:a,roundedNumber:i,integerDigitsCount:l};function v(e,t){return t<0?e*Math.pow(10,-t):e/Math.pow(10,t)}}},6595:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(31635),a=r(84106),o=n.__importStar(r(65650)),i=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B98-\u2BFF\u2CE5-\u2CEA\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9B\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD10-\uDD6C\uDD70-\uDDAC\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED5\uDEE0-\uDEEC\uDEF0-\uDEFA\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDD00-\uDD0B\uDD0D-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95]/,l=new RegExp("^"+i.source),c=new RegExp(i.source+"$"),s=/[#0](?:[\.,][#0]+)*/g;function u(e,t,r,n,i,l,c){var s=[],u=t.formattedString,d=t.roundedNumber;if(isNaN(d))return[{type:"nan",value:u}];if(!isFinite(d))return[{type:"infinity",value:u}];var f=o[i];f&&(u=u.replace(/\d/g,(function(e){return f[+e]||e})));var p,h,m=u.indexOf(".");if(m>0?(p=u.slice(0,m),h=u.slice(m+1)):p=u,l&&("compact"!==r||d>=1e4)){var b=e.group,g=[],v=c.split(".")[0].split(","),y=3,_=3;v.length>1&&(y=v[v.length-1].length),v.length>2&&(_=v[v.length-2].length);var w=p.length-y;if(w>0){for(g.push(p.slice(w,w+y)),w-=_;w>0;w-=_)g.push(p.slice(w,w+_));g.push(p.slice(0,w+_))}else g.push(p);for(;g.length>0;){var x=g.pop();s.push({type:"integer",value:x}),g.length>0&&s.push({type:"group",value:b})}}else s.push({type:"integer",value:p});if(void 0!==h&&s.push({type:"decimal",value:e.decimal},{type:"fraction",value:h}),("scientific"===r||"engineering"===r)&&isFinite(d)){s.push({type:"exponentSeparator",value:e.exponential}),n<0&&(s.push({type:"exponentMinusSign",value:e.minusSign}),n=-n);var O=a.ToRawFixed(n,0,0);s.push({type:"exponentInteger",value:O.formattedString})}return s}function d(e,t){e.indexOf(";")<0&&(e=e+";-"+e);var r=e.split(";"),n=r[0],a=r[1];switch(t){case 0:return n;case-1:return a;default:return a.indexOf("-")>=0?a.replace(/-/g,"+"):"+"+n}}function f(e,t,r){return r[e.select(t)]||r.other}t.default=function(e,t,r,n){var a,o,i=e.sign,p=e.exponent,h=e.magnitude,m=n.notation,b=n.style,g=n.numberingSystem,v=t.numbers.nu[0],y=null;if("compact"===m&&h&&(y=function(e,t,r,n,a,o,i){var l,c,s=e.roundedNumber,u=e.sign,p=e.magnitude,h=String(Math.pow(10,p)),m=r.numbers.nu[0];if("currency"===n&&"name"!==o){var b=null===(l=((g=r.numbers.currency)[i]||g[m]).short)||void 0===l?void 0:l[h];if(!b)return null;c=f(t,s,b)}else{var g,v=((g=r.numbers.decimal)[i]||g[m])[a][h];if(!v)return null;c=f(t,s,v)}if("0"===c)return null;return c=d(c,u).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0"),c}(e,r,t,b,n.compactDisplay,n.currencyDisplay,g)),"currency"===b&&"name"!==n.currencyDisplay){var _=t.currencies[n.currency];if(_)switch(n.currencyDisplay){case"code":a=n.currency;break;case"symbol":a=_.symbol;break;default:a=_.narrow}else a=n.currency}if(y)o=y;else if("decimal"===b||"unit"===b||"currency"===b&&"name"===n.currencyDisplay)o=d((t.numbers.decimal[g]||t.numbers.decimal[v]).standard,i);else if("currency"===b){o=d((x=t.numbers.currency[g]||t.numbers.currency[v])[n.currencySign],i)}else{o=d(t.numbers.percent[g]||t.numbers.percent[v],i)}var w=s.exec(o)[0];if(o=o.replace(s,"{0}").replace(/'(.)'/g,"$1"),"currency"===b&&"name"!==n.currencyDisplay){var x,O=(x=t.numbers.currency[g]||t.numbers.currency[v]).currencySpacing.afterInsertBetween;O&&!c.test(a)&&(o=o.replace("¤{0}","¤"+O+"{0}"));var E=x.currencySpacing.beforeInsertBetween;E&&!l.test(a)&&(o=o.replace("{0}¤","{0}"+E+"¤"))}for(var S=o.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),P=[],C=t.numbers.symbols[g]||t.numbers.symbols[v],k=0,j=S;k-1;)a=e.indexOf("}",r),n.invariant(a>r,"Invalid pattern "+e),r>o&&t.push({type:"literal",value:e.substring(o,r)}),t.push({type:e.substring(r+1,a),value:void 0}),o=a+1,r=e.indexOf("{",o);return o2){var O=d.indexOf("-x-");if(-1===O)d+=p;else{var E=d.slice(0,O),S=d.slice(O,d.length);d=E+p+S}d=Intl.getCanonicalLocales(d)[0]}return f.locale=d,f}},75827:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SupportedLocales=void 0;var n=r(14486),a=r(19249),o=r(88933);t.SupportedLocales=function(e,t,r){return void 0!==r&&(r=n.ToObject(r),a.GetOption(r,"localeMatcher","string",["lookup","best fit"],"best fit")),o.LookupSupportedLocales(e,t)}},27585:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeExtensionValue=void 0;var n=r(29861);t.UnicodeExtensionValue=function(e,t){n.invariant(2===t.length,"key must have 2 elements");var r=e.length,a="-"+t+"-",o=e.indexOf(a);if(-1!==o){for(var i=o+4,l=i,c=i,s=!1;!s;){var u=e.indexOf("-",c);2===(-1===u?r-c:u-c)?s=!0:-1===u?(l=r,s=!0):(l=u,c=u+1)}return e.slice(i,l)}if(a="-"+t,-1!==(o=e.indexOf(a))&&o+3===r)return""}},65810:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMissingLocaleDataError=void 0;var n=r(31635);!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}n.__extends(t,e)}(Error);t.isMissingLocaleDataError=function(e){return"MISSING_LOCALE_DATA"===e.type}},67916:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=t.isMissingLocaleDataError=t.defineProperty=t.getMagnitude=t.setMultiInternalSlots=t.setInternalSlot=t.isLiteralPart=t.getMultiInternalSlots=t.getInternalSlot=t.parseDateTimeSkeleton=t.DATE_TIME_PROPS=t._formatToParts=t.BestFitFormatMatcher=void 0;var n=r(31635),a=r(49743);Object.defineProperty(t,"BestFitFormatMatcher",{enumerable:!0,get:function(){return a.BestFitFormatMatcher}}),n.__exportStar(r(14304),t),n.__exportStar(r(37990),t),n.__exportStar(r(7307),t),n.__exportStar(r(13082),t),n.__exportStar(r(95102),t),n.__exportStar(r(8969),t),n.__exportStar(r(93360),t),n.__exportStar(r(58395),t),n.__exportStar(r(85652),t),n.__exportStar(r(7099),t),n.__exportStar(r(82056),t),n.__exportStar(r(81645),t),n.__exportStar(r(7451),t),n.__exportStar(r(60572),t),n.__exportStar(r(19249),t),n.__exportStar(r(19923),t),n.__exportStar(r(68309),t),n.__exportStar(r(87002),t),n.__exportStar(r(47347),t),n.__exportStar(r(61600),t),n.__exportStar(r(87045),t),n.__exportStar(r(66),t),n.__exportStar(r(41614),t),n.__exportStar(r(4708),t),n.__exportStar(r(50345),t),n.__exportStar(r(30139),t),n.__exportStar(r(74792),t),n.__exportStar(r(70324),t),n.__exportStar(r(36193),t),n.__exportStar(r(84106),t),n.__exportStar(r(73580),t),n.__exportStar(r(95746),t),n.__exportStar(r(13888),t),n.__exportStar(r(4873),t),n.__exportStar(r(14680),t),n.__exportStar(r(34257),t),n.__exportStar(r(38012),t),n.__exportStar(r(20507),t),n.__exportStar(r(64715),t),n.__exportStar(r(53504),t),n.__exportStar(r(62713),t),n.__exportStar(r(43362),t),n.__exportStar(r(75827),t);var o=r(6595);Object.defineProperty(t,"_formatToParts",{enumerable:!0,get:function(){return n.__importDefault(o).default}});var i=r(97110);Object.defineProperty(t,"DATE_TIME_PROPS",{enumerable:!0,get:function(){return i.DATE_TIME_PROPS}});var l=r(3340);Object.defineProperty(t,"parseDateTimeSkeleton",{enumerable:!0,get:function(){return l.parseDateTimeSkeleton}});var c=r(29861);Object.defineProperty(t,"getInternalSlot",{enumerable:!0,get:function(){return c.getInternalSlot}}),Object.defineProperty(t,"getMultiInternalSlots",{enumerable:!0,get:function(){return c.getMultiInternalSlots}}),Object.defineProperty(t,"isLiteralPart",{enumerable:!0,get:function(){return c.isLiteralPart}}),Object.defineProperty(t,"setInternalSlot",{enumerable:!0,get:function(){return c.setInternalSlot}}),Object.defineProperty(t,"setMultiInternalSlots",{enumerable:!0,get:function(){return c.setMultiInternalSlots}}),Object.defineProperty(t,"getMagnitude",{enumerable:!0,get:function(){return c.getMagnitude}}),Object.defineProperty(t,"defineProperty",{enumerable:!0,get:function(){return c.defineProperty}});var s=r(65810);Object.defineProperty(t,"isMissingLocaleDataError",{enumerable:!0,get:function(){return s.isMissingLocaleDataError}}),n.__exportStar(r(55768),t),n.__exportStar(r(41204),t),n.__exportStar(r(23040),t),n.__exportStar(r(86944),t),n.__exportStar(r(59781),t),n.__exportStar(r(26642),t);var u=r(29861);Object.defineProperty(t,"invariant",{enumerable:!0,get:function(){return u.invariant}}),n.__exportStar(r(14486),t)},41204:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RangePatternType=void 0,function(e){e.startRange="startRange",e.shared="shared",e.endRange="endRange"}(t.RangePatternType||(t.RangePatternType={}))},26642:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},23040:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},59781:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},86944:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},55768:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},29861:function(e,t){"use strict";function r(e,t,r,n){e.get(t)||e.set(t,Object.create(null)),e.get(t)[r]=n}function n(e,t){for(var r=[],n=2;n=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var u=a.default.createContext({}),d=function(e){var t=a.default.useContext(u),r=t;return e&&(r="function"==typeof e?e(t):c(c({},t),e)),r},f={inlineCode:"code",wrapper:function(e){var t=e.children;return a.default.createElement(a.default.Fragment,{},t)}},p=a.default.forwardRef((function(e,t){var r=e.components,n=e.mdxType,o=e.originalType,i=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),u=d(r),p=n,h=u["".concat(i,".").concat(p)]||u[p]||f[p]||o;return r?a.default.createElement(h,c(c({ref:t},l),{},{components:r})):a.default.createElement(h,c({ref:t},l))}));p.displayName="MDXCreateElement",t.MDXContext=u,t.MDXProvider=function(e){var t=d(e.components);return a.default.createElement(u.Provider,{value:t},e.children)},t.mdx=function(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var o=r.length,i=new Array(o);i[0]=p;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l.mdxType="string"==typeof e?e:n,i[1]=l;for(var s=2;s=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var f=o.default.bind(l.default),p={start:a.default.node,end:a.default.node},h={start:void 0,end:void 0},m=function(e){var t=e.start,r=e.end,a=d(e,c),o=f([{"action-footer":t},{"action-footer-end":!t},a.className]);return n.default.createElement(i.default,u({},a,{className:o}),t&&n.default.createElement("div",{className:f("start-actions")},t),r&&n.default.createElement("div",{className:f("end-actions")},r))};m.propTypes=p,m.defaultProps=h;t.default=m},42058:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(96540)),a=u(r(5556)),o=u(r(46942)),i=u(r(67967)),l=u(r(52103)),c=u(r(10407)),s=["children"];function u(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=i.default.bind(c.default),h={children:a.default.node},m={children:void 0},b=function(e){var t=e.children,r=f(e,s),a=n.default.useContext(l.default),i=!n.default.Children.toArray(t).length,c=(0,o.default)(p(["block-action-footer",{"with-actions":!i},a.className]),r.className);return n.default.createElement("div",d({},r,{className:c}),t)};b.propTypes=h,b.defaultProps=m;t.default=b},22629:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=m(r(96540)),o=m(r(5556)),i=m(r(67967)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(r(40890)),c=r(8604),s=m(r(52103)),u=m(r(72704)),d=m(r(40351)),f=m(r(38294)),p=["text","title","intl","level","onClose","onBack","onMaximize","onMinimize","onPrevious","onNext","children","backButtonA11yLabel","prevButtonA11yLabel","nextButtonA11yLabel"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function m(e){return e&&e.__esModule?e:{default:e}}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var v=i.default.bind(f.default),y={children:o.default.element,intl:o.default.shape({formatMessage:o.default.func}),level:o.default.oneOf([1,2,3,4,5,6]),onClose:o.default.func,onBack:o.default.func,backButtonA11yLabel:o.default.string,onMaximize:o.default.func,onMinimize:o.default.func,onNext:o.default.func,nextButtonA11yLabel:o.default.string,onPrevious:o.default.func,prevButtonA11yLabel:o.default.string,text:o.default.string,title:o.default.string},_={text:void 0,onClose:void 0,onBack:void 0,onMaximize:void 0,onMinimize:void 0,onNext:void 0,onPrevious:void 0,children:void 0,backButtonA11yLabel:void 0,prevButtonA11yLabel:void 0,nextButtonA11yLabel:void 0},w=function(e){var t,r=e.text,n=e.title,o=e.intl,i=e.level,c=e.onClose,f=e.onBack,h=e.onMaximize,m=e.onMinimize,y=e.onPrevious,_=e.onNext,w=e.children,x=e.backButtonA11yLabel,O=e.prevButtonA11yLabel,E=e.nextButtonA11yLabel,S=g(e,p),P=a.default.useContext(s.default),C=(0,u.default)(),k="terra-action-header-close-button-".concat(C),j="terra-action-header-maximize-button-".concat(C),D="terra-action-header-minimize-button-".concat(C),T=c?a.default.createElement(l.default,{className:v(["header-button","close-button"]),"data-terra-action-header":"close-button",isIconOnly:!0,icon:a.default.createElement("span",{className:v(["header-icon","close"])}),text:o.formatMessage({id:"Terra.actionHeader.close"}),onClick:c,variant:l.ButtonVariants.UTILITY,"aria-describedby":k}):null,A=f?a.default.createElement(l.default,{className:v(["header-button","back-button"]),"data-terra-action-header":"back-button",isIconOnly:!0,icon:a.default.createElement("span",{className:v(["header-icon","back"])}),text:x||o.formatMessage({id:"Terra.actionHeader.back"}),onClick:f,variant:l.ButtonVariants.UTILITY}):null;A||(h?t=a.default.createElement(l.default,{className:v(["header-button","maximize-button"]),"data-terra-action-header":"maximize-button",isIconOnly:!0,icon:a.default.createElement("span",{className:v(["header-icon","maximize"])}),text:o.formatMessage({id:"Terra.actionHeader.maximize"}),onClick:h,variant:l.ButtonVariants.UTILITY,"aria-describedby":j}):m&&(t=a.default.createElement(l.default,{className:v(["header-button","minimize-button"]),"data-terra-action-header":"minimize-button",isIconOnly:!0,icon:a.default.createElement("span",{className:v(["header-icon","minimize"])}),text:o.formatMessage({id:"Terra.actionHeader.minimize"}),onClick:m,variant:l.ButtonVariants.UTILITY,"aria-describedby":D})));var M=y||_?a.default.createElement("div",{className:v("previous-next-button-group")},a.default.createElement(l.default,{className:v(["header-button","previous-button"]),"data-terra-action-header":"previous-button",isIconOnly:!0,icon:a.default.createElement("span",{className:v(["header-icon","previous"])}),text:O||o.formatMessage({id:"Terra.actionHeader.previous"}),onClick:y,isDisabled:void 0===y,variant:l.ButtonVariants.UTILITY}),a.default.createElement(l.default,{className:v(["header-button","next-button"]),"data-terra-action-header":"next-button",isIconOnly:!0,icon:a.default.createElement("span",{className:v(["header-icon","next"])}),text:E||o.formatMessage({id:"Terra.actionHeader.next"}),onClick:_,isDisabled:void 0===_,variant:l.ButtonVariants.UTILITY})):null,N=A||t||M?a.default.createElement("div",{className:v("left-buttons",P.className)},A,t,M):null,I=T?a.default.createElement("div",{className:v("right-buttons",P.className)},T):null;return n&&console.warn("`title` prop has been renamed to `text`. please update all the refernces of `title` prop to use prop `text`."),i||console.warn("Default heading level may not appropriate has it would fail to convey context of heading in a site / application where it is used. Heading level should be set explicitly depending on the position of header in site / application to allow screen readers to identify headers consistently."),a.default.createElement(d.default,b({},S,{startContent:N,text:r||n,endContent:I,level:i||1,id:C}),w)};w.propTypes=y,w.defaultProps=_;t.default=(0,c.injectIntl)(w)},40351:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=f(r(96540)),a=f(r(5556)),o=f(r(46942)),i=f(r(67967)),l=f(r(52103)),c=f(r(56500)),s=r(8604),u=f(r(27375)),d=["children","text","startContent","endContent","level","intl"];function f(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var m=i.default.bind(u.default),b={children:a.default.element,startContent:a.default.element,text:a.default.string,endContent:a.default.element,level:a.default.oneOf([1,2,3,4,5,6]).isRequired,intl:a.default.shape({formatMessage:a.default.func})},g={text:void 0,startContent:void 0,endContent:void 0},v=function(e){var t=e.children,r=e.text,a=e.startContent,i=e.endContent,s=e.level,u=e.intl,f=h(e,d),b=n.default.useContext(l.default),g="h".concat(s),v=n.default.Children.map(t,(function(e){return n.default.cloneElement(e,{className:m(["flex-collapse",t.props.className])})})),y="terra-action-header-close-button-".concat(f.id),_="terra-action-header-maximize-button-".concat(f.id),w="terra-action-header-minimize-button-".concat(f.id),x=n.default.createElement(n.default.Fragment,null,n.default.createElement(c.default,{"aria-hidden":!0,id:y,text:u.formatMessage({id:"Terra.actionHeader.close.description"},{text:r})}),n.default.createElement(c.default,{"aria-hidden":!0,id:_,text:u.formatMessage({id:"Terra.actionHeader.maximize.description"},{text:r})}),n.default.createElement(c.default,{"aria-hidden":!0,id:w,text:u.formatMessage({id:"Terra.actionHeader.minimize.description"},{text:r})})),O=r?n.default.createElement("div",{className:m("title-container")},n.default.createElement(g,{className:m("title")},r)):void 0;return n.default.createElement("div",p({},f,{className:(0,o.default)(m(["flex-header",b.className]),f.className)}),a&&n.default.createElement("div",{className:m("flex-end")},a),n.default.createElement("div",{className:m("flex-fill")},O),v,i&&n.default.createElement("div",{className:m("flex-end")},i),n.default.createElement("div",{className:m("hidden-label")},x))};v.propTypes=b,v.defaultProps=g;t.default=(0,s.injectIntl)(v)},57849:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateColor=t.setColor=t.getColorVariant=t.generateInitials=t.generateImagePlaceholder=t.generateImage=t.calculateHash=t.COLOR_VARIANTS=t.AVATAR_VARIANTS=void 0;var n=l(r(96540)),a=l(r(67967)),o=l(r(82232)),i=l(r(17523));function l(e){return e&&e.__esModule?e:{default:e}}var c=a.default.bind(i.default),s=t.AVATAR_VARIANTS={USER:"user",FACILITY:"facility",GENERIC:"generic"},u=t.COLOR_VARIANTS=["one","two","three","four","five","six","seven","eight","nine","ten"],d=t.calculateHash=function(e){var t=0;if(0===e.trim().length)return t;for(var r=0;r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function y(e,t){for(var r=0;r2?c.slice(0,2):c};e=l?(0,d.generateImage)(_):(0,d.generateInitials)(_);var w=b({},g),x=p?b({fontSize:p},w.style):w.style,O=(0,i.default)(S("avatar",(0,d.setColor)(r,n,o),{"fallback-icon":this.state.fallback},{image:Boolean(l)},{"is-deceased":u},y.className),w.className);return a.default.createElement("div",h({},w,{className:O,style:x}),e)}}])&&y(r.prototype,n),o&&y(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(a.default.Component);k.propTypes=P,k.defaultProps=C,k.contextType=c.default;t.default=(0,s.injectIntl)(k)},21495:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=f(r(96540)),o=f(r(5556)),i=f(r(46942)),l=f(r(67967)),c=f(r(52103)),s=f(r(17523)),u=r(57849),d=["alt","color","hashValue","image","isAriaHidden","size"];function f(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function v(e,t){for(var r=0;r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var v=l.default.bind(s.default),y=t.GENERIC_VARIANTS={SINGLE_USER:"single-user",SHARED_USER:"shared-user",PROVIDER:"provider"},_={alt:o.default.string.isRequired,color:o.default.oneOf(["auto","neutral","one","two","three","four","five","six","seven","eight","nine","ten"]),hashValue:o.default.string,isAriaHidden:o.default.bool,size:o.default.string,variant:o.default.oneOf([y.SINGLE_USER,y.SHARED_USER,y.PROVIDER])},w={color:"auto",hashValue:void 0,isAriaHidden:!1,size:void 0,variant:y.SINGLE_USER},x=function(e){var t=e.alt,r=e.color,n=e.hashValue,o=e.isAriaHidden,l=e.size,s=e.variant,f=g(e,d),h=a.default.useContext(c.default),b=(0,u.setColor)(t,r,n),_=m({},f),w=l?m({fontSize:l},_.style):_.style,x=(0,i.default)(v("avatar","".concat(b),h.className),_.className),O=v(["icon","user"]);return s===y.SHARED_USER?O=v(["icon",y.SHARED_USER]):s===y.PROVIDER&&(O=v(["icon",y.PROVIDER])),a.default.createElement("div",p({},_,{className:x,style:w}),a.default.createElement("span",{className:O,role:"img","aria-label":t,alt:t,"aria-hidden":o}))};x.propTypes=_,x.defaultProps=w;t.default=x},6352:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=l(r(96540)),o=l(r(5556)),i=r(53850);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t=0;t-=1){var a=n[t];if(e>=r[a])return a}};t.breakpointIsActiveForSize=function(e,t){var r=n.indexOf(e),o=n.indexOf(a(t));return-1!==o&&-1!==r&&o>=r},t.default=r},0:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ActiveBreakpointContext",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"ActiveBreakpointProvider",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"activeBreakpointForSize",{enumerable:!0,get:function(){return a.activeBreakpointForSize}}),Object.defineProperty(t,"breakpointIsActiveForSize",{enumerable:!0,get:function(){return a.breakpointIsActiveForSize}}),t.default=void 0,Object.defineProperty(t,"withActiveBreakpoint",{enumerable:!0,get:function(){return l.default}});var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(r(15308)),o=c(r(62060)),i=c(r(2562)),l=c(r(44183));function c(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}t.default=a.default},44183:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(96540)),a=o(r(62060));function o(e){return e&&e.__esModule?e:{default:e}}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function b(e,t){for(var r=0;r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p=o.default.bind(c.default),h={header:a.default.node,footer:a.default.node,children:a.default.node,fill:a.default.bool,scrollRefCallback:a.default.func,setFocusOnContainer:a.default.bool,backgroundColor:a.default.oneOf(["dark","light"])},m={header:void 0,footer:void 0,children:void 0,fill:!1,scrollRefCallback:void 0,setFocusOnContainer:!1,backgroundColor:void 0},b=function(e){var t=e.header,r=e.footer,a=e.children,o=e.fill,c=e.scrollRefCallback,u=e.setFocusOnContainer,h=e.backgroundColor,m=f(e,s),b=n.default.useContext(l.default),g=p(["content-container-".concat(o?"fill":"static"),m.className]),v=u?{tabIndex:0}:"",y=u&&(h||"light"),_=p("normalizer",b.className,{"content-container-focused-padding":u},y);return n.default.createElement("div",d({},m,{className:g}),t&&n.default.createElement("div",{className:p("header",{"content-container-focused-padding":u})},t),n.default.createElement("div",{className:p("main")},n.default.createElement(i.default,d({className:_,refCallback:c},v),a)),r&&n.default.createElement("div",{className:p("footer",{"content-container-focused-padding":u})},r))};b.propTypes=h,b.defaultProps=m;t.default=b},29940:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=d(r(96540)),a=d(r(46942)),o=d(r(67967)),i=d(r(52103)),l=d(r(5556)),c=d(r(1373)),s=d(r(32940)),u=["text","level","id"];function d(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var h={text:l.default.string,level:l.default.oneOf([1,2,3,4,5,6]),id:l.default.string},m=o.default.bind(c.default),b=function(e){var t=e.text,r=e.level,o=e.id,l=p(e,u),c=n.default.useContext(i.default),d=(0,a.default)(m([{divider:!t},{"divider-container":t},c.className]),l.className);return t?r?n.default.createElement(s.default,f({level:r,text:t,id:o},l,{className:d})):n.default.createElement("div",f({},l,{className:d,id:o}),n.default.createElement("span",{className:m(["divider-text"])},t)):n.default.createElement("hr",f({},l,{className:d}))};b.propTypes=h;t.default=b},32940:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(r(96540)),o=d(r(46942)),i=d(r(67967)),l=d(r(52103)),c=d(r(5556)),s=d(r(1373)),u=["text","level","id"];function d(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var m={text:c.default.string.isRequired,level:c.default.oneOf([1,2,3,4,5,6]).isRequired,id:c.default.string},b=i.default.bind(s.default),g=function(e){var t,r=e.text,n=e.level,i=e.id,c=h(e,u),s=(0,a.useContext)(l.default),d=(0,o.default)(b(["divider-container",s.className]),c.className);if(r&&n){var f="h".concat(n);t=a.default.createElement(f,{id:i,className:b(["divider-text"])},r)}return a.default.createElement("div",p({},c,{className:d}),t)};g.propTypes=m;t.default=g},9047:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=p(r(96540)),o=p(r(5556)),i=r(8604),l=p(r(46942)),c=p(r(67967)),s=p(r(52103)),u=p(r(18782)),d=p(r(64588)),f=["children","error","errorIcon","help","hideRequired","htmlFor","isInvalid","isInline","isLabelHidden","label","labelAttrs","maxWidth","required","showOptional","style"];function p(e){return e&&e.__esModule?e:{default:e}}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var y=c.default.bind(d.default),_={children:o.default.node,error:o.default.node,errorIcon:o.default.element,help:o.default.node,hideRequired:o.default.bool,htmlFor:o.default.string,isInvalid:o.default.bool,isInline:o.default.bool,isLabelHidden:o.default.bool,label:o.default.string.isRequired,labelAttrs:o.default.object,maxWidth:o.default.string,required:o.default.bool,showOptional:o.default.bool,style:o.default.object},w={children:null,error:null,errorIcon:a.default.createElement(u.default,null),help:null,hideRequired:!1,htmlFor:void 0,isInvalid:!1,isInline:!1,isLabelHidden:!1,labelAttrs:{},maxWidth:void 0,required:!1,showOptional:!1},x=function(e){var t=e.children,r=e.error,n=e.errorIcon,o=e.help,c=e.hideRequired,u=e.htmlFor,d=e.isInvalid,p=e.isInline,m=e.isLabelHidden,g=e.label,_=e.labelAttrs,w=e.maxWidth,x=e.required,O=e.showOptional,E=e.style,S=v(e,f),P=a.default.useContext(s.default),C=w?b({maxWidth:w},E):E,k=(0,l.default)(y(["field",{"field-inline":p},P.className]),S.className),j=y(["label",_.className]);var D=window.navigator.userAgent.indexOf("Trident/6.0")>-1||window.navigator.userAgent.indexOf("Trident/7.0")>-1?a.default.createElement("div",{className:y("visually-hidden-text")},d&&r?r:null,o):null,T=a.default.Children.map(t,(function(e){return(x||d)&&e&&(e.type.isInput||e.type.isSelect||e.type.isTextarea)?a.default.cloneElement(e,b(b({},x&&{required:!0}),d&&{isInvalid:!0,"aria-invalid":!0})):e})),A=a.default.createElement("div",{className:y(["label-group",{"label-group-hidden":m}])},d&&a.default.createElement("div",{className:y("error-icon")},n),a.default.createElement("label",h({htmlFor:u},_,{className:j}),x&&(d||!c)&&a.default.createElement("div",{className:y("required"),"aria-hidden":"true"},"*"),g,x&&!d&&c&&a.default.createElement("div",{className:y("required-hidden"),"aria-hidden":"true"},"*"),O&&!x&&a.default.createElement(i.FormattedMessage,{id:"Terra.form.field.optional"},(function(e){return a.default.createElement("span",{className:y("optional")},e)})),D),!d&&a.default.createElement("div",{className:y("error-icon-hidden")},n));return a.default.createElement("div",h({style:C},S,{className:k}),A,T,d&&r&&a.default.createElement("div",{id:u?"".concat(u,"-error"):void 0,className:y("error-text")},r),o&&a.default.createElement("div",{id:u?"".concat(u,"-help"):void 0,className:y("help-text")},o))};x.propTypes=_,x.defaultProps=w;t.default=x},853:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(r(96540)),o=h(r(5556)),i=h(r(46942)),l=h(r(67967)),c=r(8604),s=h(r(52103)),u=r(45029),d=r(46142),f=h(r(63246)),p=["ariaDescribedBy","ariaLabel","attrs","disabled","defaultValue","id","intl","isFilterStyle","isInvalid","isIncomplete","onBlur","onChange","onFocus","onMouseDown","options","refCallback","required","value"];function h(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];if(!n)return r;if(t&&t.length)for(var a=0;a1&&void 0!==arguments[1]&&arguments[1])&&e===r},i=t.isValuePresent=function(e){return null!=e},l=t.getOptGroupKey=function(e,t){return"".concat(e,"-").concat(t)},c=t.getOptGroupKeyIndex=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return r.indexOf(l(t,n))>=0?e(t,r,n+1):n};t.default={defaultPlaceholderValue:r,isCurrentPlaceholder:o,isValuePresent:i,getDisplay:n,getFirstValue:a,getOptGroupKey:l,getOptGroupKeyIndex:c}},78144:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.HyperlinkVariants=void 0;var a=y(r(96540)),o=y(r(5556)),i=y(r(50281)),l=y(r(88982)),c=y(r(23428)),s=y(r(74209)),u=y(r(61658)),d=r(8604),f=y(r(46942)),p=y(r(67967)),h=y(r(52103)),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(r(25966)),b=y(r(20569)),g=["children","text","isDisabled","isUnderlineHidden","intl","variant","href","onClick","onBlur","onFocus","onKeyDown","onKeyUp","onMouseDown","title"];function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function x(e,t){for(var r=0;r1&&e.split("-")[0];try{(0,a.default)([e],l())||n.default[e]()}catch(i){if(t)try{(0,a.default)([t],l())||n.default[t]()}catch(n){var r="".concat(e," or ").concat(t," locales");c(r)}else{var o="".concat(e," locale");c(o)}}};t.default=s},95488:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(45379))&&n.__esModule?n:{default:n};var o=function(e,t,r){try{a.default.en(t,r)}catch(t){throw new Error("Translations were not supplied for the ".concat(e,", or the en fallback locale."))}};t.default=function(e,t,r){var n=e.split("-").length>1&&e.split("-")[0];try{a.default[e](t,r)}catch(c){if(n)try{a.default[n](t,r)}catch(a){var i="".concat(e," or ").concat(n," locales");o(i,t,r)}else{var l="".concat(e," locale");o(l,t,r)}}}},56445:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=u(r(96540)),o=u(r(5556)),i=u(r(46942)),l=u(r(67967)),c=u(r(20501)),s=["isBidi","isSpin","children","height","width","ariaLabel","a11yLabel","focusable"];function u(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var m=l.default.bind(c.default),b={isBidi:o.default.bool,isSpin:o.default.bool,children:o.default.node,height:o.default.string,width:o.default.string,a11yLabel:o.default.string,ariaLabel:o.default.string,focusable:o.default.string},g=function(e){var t,r=e.isBidi,n=e.isSpin,o=e.children,l=e.height,c=e.width,u=e.ariaLabel,b=e.a11yLabel,g=e.focusable,v=function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var E=l.default.bind(f.default),S={ariaDescribedBy:o.default.string,ariaDescription:o.default.string,ariaDetails:o.default.string,children:o.default.node,intl:o.default.shape({formatMessage:o.default.func}),dividerStyle:o.default.oneOf(["none","standard","bottom-only"]),paddingStyle:o.default.oneOf(["none","standard","compact"]),refCallback:o.default.func,role:o.default.string,ariaSelectionStyle:o.default.oneOf(["none","single-select","multi-select"]),isDraggable:o.default.bool,isTabFocusDisabled:o.default.bool,onDragEnd:o.default.func,zIndex:o.default.number},P=function(e){var t=e.ariaDescribedBy,r=e.ariaDescription,n=e.ariaDetails,o=e.children,l=e.intl,c=e.dividerStyle,f=e.paddingStyle,h=e.refCallback,m=e.role,b=e.ariaSelectionStyle,v=e.isDraggable,_=e.isTabFocusDisabled,x=e.onDragEnd,S=e.zIndex,P=O(e,p),C=(0,a.useContext)(s.default),k=w((0,a.useState)([]),2),j=k[0],D=k[1],T=(0,a.useRef)(),A=(0,a.useRef)(),M=(0,a.useRef)();(0,a.useEffect)((function(){Array.isArray(o)?D(o):o&&D([o])}),[o]),(0,a.useEffect)((function(){if(A.current){var e=T&&T.querySelectorAll("[data-item-show-focus]");e[M.current]&&e[M.current].focus(),A.current=!1}}),[j]);var N=(0,i.default)(E("list",{"padding-standard":"standard"===f},{"padding-compact":"compact"===f},{"divider-standard":"standard"===c},{"divider-bottom-only":"bottom-only"===c},C.className),P.className),I=function(e){h&&h(e),T=e},R=function(e){var t=T.querySelectorAll("[data-item-show-focus]"),r=Array.from(t).indexOf(e.target),n=t.length-1;switch(e.nativeEvent.keyCode){case u.KEY_END:e.preventDefault(),t[t.length-1].focus();break;case u.KEY_HOME:e.preventDefault(),t[0].focus();break;case u.KEY_UP:e.preventDefault();var a=r>0?r-1:n;t[a]&&t[a].focus();break;case u.KEY_DOWN:e.preventDefault();var o=r0&&"none"!==m&&(F.role=m),"single-select"===b&&(F.role="listbox",F["aria-label"]=l.formatMessage({id:"Terra.list.singleSelect"})),"multi-select"===b&&(F.role="listbox",F["aria-multiselectable"]=!0,F["aria-label"]=l.formatMessage({id:"Terra.list.multiSelect"}));var L=function(e,t){if(e.destination){var r=function(e,t,r){var n=Array.from(e),a=w(n.splice(t,1),1)[0];return n.splice(r,0,a),n}(j,e.source.index,e.destination.index);D(r),M.current=e.destination.index,t.announce(l.formatMessage({id:"Terra.list.drop"},{startPosition:e.source.index+1,endPosition:e.destination.index+1})),x&&x(e,t)}else t.announce(l.formatMessage({id:"Terra.list.cancelDrag"},{startPosition:e.source.index+1}))},z=function(e,t){A.current=!0,t.announce(l.formatMessage({id:"Terra.list.lift"},{startPosition:e.source.index+1}))},B=function(e,t){e.destination&&t.announce(l.formatMessage({id:"Terra.list.drag"},{startPosition:e.source.index+1,endPosition:e.destination.index+1}))},U=function(e,t,r){var n,a=null==r||null===(n=r.draggableProps)||void 0===n?void 0:n.style;return a&&t&&t.isDragging&&a.zIndex&&a.zIndex!==S&&(a.zIndex=S),a},H=function(e,t,r){var n;return a.default.cloneElement(e,y(y(y({isDraggable:null==e||null===(n=e.props)||void 0===n?void 0:n.isSelectable,isTabFocusDisabled:_,refCallback:t.innerRef},t.draggableProps),t.dragHandleProps),{},{style:U(0,r,t)}))};window["__react-beautiful-dnd-disable-dev-warnings"]=!0;var W;return v?a.default.createElement(d.DragDropContext,{onDragEnd:L,onDragStart:z,onDragUpdate:B},a.default.createElement(d.Droppable,{droppableId:"ListItem",renderClone:function(e,t,r){return H(j[r.source.index],e,t)}},(function(e){return a.default.createElement("ul",g({},e.droppableProps,P,F,{"aria-describedby":t,"aria-description":r,"aria-details":n,className:N,ref:function(t){e.innerRef(t),I(t)},onKeyDown:R}),j.map((function(e,t){var r;return a.default.createElement(d.Draggable,{isDragDisabled:!(null!=e&&null!==(r=e.props)&&void 0!==r&&r.isSelectable),key:e.key,draggableId:e.key,index:t},(function(t,r){return H(e,t,r)}))})),e.placeholder)}))):a.default.createElement("ul",g({},P,F,{"aria-describedby":t,"aria-description":r,"aria-details":n,className:N,ref:I,onKeyDown:R}),(W=o,a.default.Children.map(W,(function(e){return a.default.isValidElement(e)?a.default.cloneElement(e,{isTabFocusDisabled:_}):null}))))};P.propTypes=S,P.defaultProps={ariaSelectionStyle:"none",children:[],dividerStyle:"none",isTabFocusDisabled:!1,paddingStyle:"none",role:"none",zIndex:6001};t.default=(0,c.injectIntl)(P)},16809:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=m(r(96540)),a=m(r(5556)),o=m(r(46942)),i=m(r(67967)),l=m(r(52103)),c=m(r(62441)),s=r(8604),u=m(r(56500)),d=m(r(39124)),f=m(r(35385)),p=m(r(9787)),h=["children","hasChevron","isSelected","isSelectable","metaData","onBlur","onClick","onKeyDown","onMouseDown","onSelect","refCallback","intl"];function m(e){return e&&e.__esModule?e:{default:e}}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var v=i.default.bind(p.default),y={children:a.default.node,hasChevron:a.default.bool,isSelected:a.default.bool,isSelectable:a.default.bool,metaData:a.default.object,onSelect:a.default.func,refCallback:a.default.func,onBlur:a.default.func,onClick:a.default.func,onKeyDown:a.default.func,onMouseDown:a.default.func,intl:a.default.shape({formatMessage:a.default.func})},_=function(e){var t=e.children,r=e.hasChevron,a=e.isSelected,i=e.isSelectable,s=e.metaData,p=e.onBlur,m=e.onClick,y=e.onKeyDown,_=e.onMouseDown,w=e.onSelect,x=e.refCallback,O=e.intl,E=g(e,h),S=n.default.useContext(l.default),P=(0,o.default)(v("list-item",{selected:a&&i},{"is-selectable":i},S.className),E.className),C=E.isDraggable,k=E.isTabFocusDisabled,j={},D=O.formatMessage({id:"Terra.list.focus"}),T="terra-hidden-tab-pane-response=".concat(Math.random());return i&&(j.onClick=f.default.wrappedOnClickForItem(m,w,s),j.onKeyDown=f.default.wrappedOnKeyDownForItem(y,w,s),j.tabIndex=k?"-1":"0",j.role="option",j["aria-selected"]=a,j["data-item-show-focus"]="true",j.onBlur=f.default.wrappedEventCallback(p,(function(e){return e.currentTarget.setAttribute("data-item-show-focus","true")})),j.onMouseDown=f.default.wrappedEventCallback(_,(function(e){return e.currentTarget.setAttribute("data-item-show-focus","false")}))),C&&(w||(j.onClick=function(e){var t;return null==e||null===(t=e.currentTarget)||void 0===t||t.focus(),m}),j["aria-describedby"]=T),null==E||delete E.isTabFocusDisabled,null==E||delete E.isDraggable,n.default.createElement("li",b({},E,j,{className:P,ref:x}),C&&n.default.createElement("div",{key:"knurling-icon"},n.default.createElement(d.default,null),n.default.createElement(u.default,{"aria-hidden":!0,id:T,text:D})),n.default.createElement("div",{className:v("item-fill"),key:"item-fill"},t),r&&n.default.createElement("div",{className:v("item-end"),key:"item-end"},n.default.createElement("span",{className:v("chevron")},n.default.createElement(c.default,{height:"1em",width:"1em"}))))};_.propTypes=y,_.defaultProps={children:[],hasChevron:!1,isSelected:!1,isSelectable:!1};t.default=(0,s.injectIntl)(_)},12123:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=g(r(96540)),o=m(r(5556)),i=m(r(46942)),l=m(r(67967)),c=m(r(52103)),s=r(90420),u=r(8604),d=g(r(25966)),f=m(r(99522)),p=m(r(9787)),h=["children","isCollapsed","isCollapsible","isDraggable","onDragEnd","intl","zIndex"];function m(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var S=l.default.bind(p.default),P={children:o.default.node,isCollapsed:o.default.bool,isCollapsible:o.default.bool,level:o.default.oneOf([1,2,3,4,5,6]),metaData:o.default.object,onSelect:o.default.func,refCallback:o.default.func,title:o.default.string.isRequired,isDraggable:o.default.bool,onDragEnd:o.default.func,intl:o.default.shape({formatMessage:o.default.func}),zIndex:o.default.number},C=function(e){var t=e.children,r=e.isCollapsed,n=e.isCollapsible,o=e.isDraggable,l=e.onDragEnd,u=e.intl,p=e.zIndex,m=E(e,h),b=x((0,a.useState)(t),2),g=b[0],y=b[1],w=(0,a.useRef)(),O=(0,a.useRef)(),P=(0,a.useRef)();(0,a.useEffect)((function(){n&&r?y([]):Array.isArray(t)?y(t):t&&y([t])}),[t,n,r]),(0,a.useEffect)((function(){if(O.current){var e=w&&w.querySelectorAll("[data-item-show-focus]");e[P.current]&&e[P.current].focus(),O.current=!1}}),[g]);var C=(0,a.useContext)(c.default),k=(0,i.default)(S("list","list-fill",C.className)),j=function(e){w=e},D=function(e){var t=w.querySelectorAll("[data-item-show-focus]"),r=Array.from(t).indexOf(e.target),n=t.length-1;switch(e.nativeEvent.keyCode){case d.KEY_END:e.preventDefault(),t[t.length-1].focus();break;case d.KEY_HOME:e.preventDefault(),t[0].focus();break;case d.KEY_UP:e.preventDefault(),t[r>0?r-1:n].focus();break;case d.KEY_DOWN:e.preventDefault(),t[r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var h=i.default.bind(s.default),m={isCollapsed:a.default.bool,isCollapsible:a.default.bool,level:a.default.oneOf([1,2,3,4,5,6]),metaData:a.default.object,onSelect:a.default.func,refCallback:a.default.func,title:a.default.string.isRequired,onBlur:a.default.func,onClick:a.default.func,onKeyDown:a.default.func,onMouseDown:a.default.func},b=function(e){var t,r=e.isCollapsed,a=e.isCollapsible,i=e.level,s=e.metaData,d=e.onBlur,m=e.onClick,b=e.onKeyDown,g=e.onMouseDown,v=e.onSelect,y=e.refCallback,_=e.title,w=p(e,u),x=n.default.useContext(l.default),O=(0,o.default)(h("section-header",{"is-collapsible":a}),w.className),E={},S=1===i?"h2":"h".concat(i),P=n.default.createElement("div",{className:h("fill")},_);return a&&(t=n.default.createElement("div",{className:h("start")},n.default.createElement("span",{className:h(["accordion-icon",{"is-open":!r}])})),E.onClick=c.default.wrappedOnClickForItem(m,v,s),E.onKeyDown=c.default.wrappedOnKeyDownForItem(b,v,s),E.tabIndex="0",E.role="button",E["aria-expanded"]=!r,E["data-item-show-focus"]="true",E.onBlur=c.default.wrappedEventCallback(d,(function(e){return e.currentTarget.setAttribute("data-item-show-focus","true")})),E.onMouseDown=c.default.wrappedEventCallback(g,(function(e){return e.currentTarget.setAttribute("data-item-show-focus","false")}))),null==w||delete w.isTabFocusDisabled,n.default.createElement("li",f({},w,{className:h("list-item",x.className),ref:y}),n.default.createElement(S,{className:h("title")},n.default.createElement("div",f({},E,{className:O}),t,P)))};b.propTypes=m,b.defaultProps={isCollapsed:!1,isCollapsible:!1,level:2};t.default=b},22491:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=g(r(96540)),o=m(r(5556)),i=m(r(46942)),l=m(r(67967)),c=m(r(52103)),s=r(90420),u=r(8604),d=g(r(25966)),f=m(r(77538)),p=m(r(9787)),h=["children","isCollapsed","isCollapsible","isDraggable","onDragEnd","intl","zIndex"];function m(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var S=l.default.bind(p.default),P={children:o.default.node,isCollapsed:o.default.bool,isCollapsible:o.default.bool,level:o.default.oneOf([2,3,4,5,6]),metaData:o.default.object,onSelect:o.default.func,refCallback:o.default.func,title:o.default.string.isRequired,isDraggable:o.default.bool,onDragEnd:o.default.func,intl:o.default.shape({formatMessage:o.default.func}),zIndex:o.default.number},C=function(e){var t=e.children,r=e.isCollapsed,n=e.isCollapsible,o=e.isDraggable,l=e.onDragEnd,u=e.intl,p=e.zIndex,m=E(e,h),b=x((0,a.useState)(t),2),g=b[0],y=b[1],w=(0,a.useRef)(),O=(0,a.useRef)(),P=(0,a.useRef)();null==m||delete m.isTabFocusDisabled,(0,a.useEffect)((function(){n&&r?y([]):Array.isArray(t)?y(t):t&&y([t])}),[t,n,r]),(0,a.useEffect)((function(){if(O.current){var e=w&&w.querySelectorAll("[data-item-show-focus]");e[P.current]&&e[P.current].focus(),O.current=!1}}),[g]);var C=(0,a.useContext)(c.default),k=(0,i.default)(S("list","list-fill",C.className)),j=function(e){w=e},D=function(e){var t=w.querySelectorAll("[data-item-show-focus]"),r=Array.from(t).indexOf(e.target),n=t.length-1;switch(e.nativeEvent.keyCode){case d.KEY_END:e.preventDefault(),t[t.length-1].focus();break;case d.KEY_HOME:e.preventDefault(),t[0].focus();break;case d.KEY_UP:e.preventDefault(),t[r>0?r-1:n].focus();break;case d.KEY_DOWN:e.preventDefault(),t[r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var h=i.default.bind(s.default),m={isCollapsed:a.default.bool,isCollapsible:a.default.bool,level:a.default.oneOf([2,3,4,5,6]),metaData:a.default.object,onSelect:a.default.func,refCallback:a.default.func,title:a.default.string.isRequired,onBlur:a.default.func,onClick:a.default.func,onKeyDown:a.default.func,onMouseDown:a.default.func},b=function(e){var t,r=e.isCollapsed,a=e.isCollapsible,i=e.level,s=e.metaData,d=e.onBlur,m=e.onClick,b=e.onKeyDown,g=e.onMouseDown,v=e.onSelect,y=e.refCallback,_=e.title,w=p(e,u),x=n.default.useContext(l.default),O=(0,o.default)(h("subsection-header",{"is-collapsible":a}),w.className),E={},S="h".concat(i),P=n.default.createElement("div",{className:h("fill")},_);return a&&(t=n.default.createElement("div",{className:h("start")},n.default.createElement("span",{className:h(["accordion-icon",{"is-open":!r}])})),E.onClick=c.default.wrappedOnClickForItem(m,v,s),E.onKeyDown=c.default.wrappedOnKeyDownForItem(b,v,s),E.tabIndex="0",E.role="button",E["aria-expanded"]=!r,E["data-item-show-focus"]="true",E.onBlur=c.default.wrappedEventCallback(d,(function(e){return e.currentTarget.setAttribute("data-item-show-focus","true")})),E.onMouseDown=c.default.wrappedEventCallback(g,(function(e){return e.currentTarget.setAttribute("data-item-show-focus","false")}))),null==w||delete w.isTabFocusDisabled,n.default.createElement("li",f({},w,{className:h("list-item",x.className),ref:y}),n.default.createElement(S,{className:h("title")},n.default.createElement("div",f({},E,{className:O}),t,P)))};b.propTypes=m,b.defaultProps={isCollapsed:!1,isCollapsible:!1,level:2};t.default=b},35385:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var c=i?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(a,l,c):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(r(25966));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}var i={updatedMultiSelectedKeys:function(e,t){var r=[];return e.length?e.indexOf(t)>=0?(r=e.slice()).splice(r.indexOf(t),1):r=e.concat([t]):r.push(t),r},shouldBeMultiSelectable:function(e,t,r){return e<0||t.indexOf(r)>=0||t.length=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var h=o.default.bind(s.default),m=c.default.Opts.BackgroundStyles,b={backgroundStyle:a.default.oneOf(["light","dark","clear"]),isAnimated:a.default.bool,isOpen:a.default.bool,isRelativeToContainer:a.default.bool,message:a.default.string,rootSelector:a.default.string,zIndex:a.default.oneOf(["100","6000","7000","8000","9000"])},g={isAnimated:!1,isOpen:!1,backgroundStyle:m.LIGHT,isRelativeToContainer:!1,rootSelector:"#root"},v=function(e){var t=e.isAnimated,r=e.message,a=e.rootSelector,o=p(e,u);return delete o.onRequestClose,n.default.createElement(c.default,f({},o,{className:h("loading-overlay",o.className),rootSelector:a,"aria-live":"polite"}),n.default.createElement(i.default,{className:h("icon"),isSpin:t,height:"36",width:"36"}),void 0!==r?n.default.createElement("div",{className:h("message")},r):n.default.createElement(l.FormattedMessage,{id:"Terra.Overlay.loading"},(function(e){return n.default.createElement("div",{className:h("message")},e)})))};v.propTypes=b,v.defaultProps=g,v.Opts=c.default.Opts;t.default=v},12996:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=b(r(96540)),o=b(r(5556)),i=b(r(46942)),l=b(r(67967)),c=b(r(52103)),s=b(r(94708)),u=r(569),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(r(25966));r(22708),r(37002),r(32478);var f=b(r(76525)),p=b(r(49605)),h=["children","isOpen","backgroundStyle","isScrollable","isRelativeToContainer","onRequestClose","rootSelector","zIndex"];function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function b(e){return e&&e.__esModule?e:{default:e}}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function y(e,t){for(var r=0;r1&&document.querySelector(e).setAttribute("data-overlay-count","".concat(t-1))}document.documentElement.style.overflow=this.overflow}}},{key:"shouldHandleESCKeydown",value:function(e){this.props.isOpen&&e.keyCode===d.KEY_ESCAPE&&(this.handleCloseEvent(e),e.preventDefault())}},{key:"shouldHandleClick",value:function(e){this.props.isOpen&&this.handleCloseEvent(e)}},{key:"render",value:function(){var e=this.props,t=e.children,r=e.isOpen,n=e.backgroundStyle,o=e.isScrollable,l=e.isRelativeToContainer,c=(e.onRequestClose,e.rootSelector,e.zIndex),d=v(e,h),f=this.context,p=l?"container":"fullscreen";if(!r)return null;var m="100";C.indexOf(c)>=0&&(m=c);var b=(0,i.default)(S(["overlay",p,n,{scrollable:o},"layer-".concat(m),f.className]),d.className),y=a.default.createElement("div",g({},d,{ref:this.setContainer,onClick:this.shouldHandleClick,className:b,tabIndex:"0"}),a.default.createElement("div",{className:S("content")},t));if(l)return y;var _=a.default.createElement("div",{className:S("background-scroll-content")},a.default.createElement("div",{className:S("inner")}));return a.default.createElement(u.Portal,null,_,a.default.createElement(s.default,null,a.default.createElement("div",null,y)))}}])&&y(n.prototype,o),l&&y(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,l}(a.default.Component),T={BackgroundStyles:P,zIndexes:C};D.propTypes=k,D.defaultProps=j,D.contextType=c.default,D.Opts=T,D.Container=p.default;t.default=D},49605:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(r(96540)),a=c(r(5556)),o=c(r(67967)),i=c(r(76525)),l=["overlay","children"];function c(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var d=o.default.bind(i.default),f={overlay:a.default.node,children:a.default.node},p=function(e){var t=e.overlay,r=e.children,a=u(e,l),o=d(["overlay-container",a.className]);return n.default.createElement("div",s({},a,{className:o}),t,n.default.createElement("div",{"data-terra-overlay-container-content":!0,className:d("container-content")},r))};p.propTypes=f,p.defaultProps={overlay:null,children:null};t.default=p},37002:function(){"use strict";Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})},32478:function(){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)},22576:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=c(r(96540)),a=c(r(5556)),o=c(r(67967)),i=c(r(97001)),l=["children","refCallback"];function c(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var d=o.default.bind(i.default),f={children:a.default.node,refCallback:a.default.func},p=function(e){var t=e.children,r=e.refCallback,a=u(e,l);return n.default.createElement("div",s({},a,{className:d(["scroll",a.className]),ref:r}),t)};p.propTypes=f;t.default=p},43165:function(e,t,r){"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=b(r(96540)),o=b(r(5556)),i=b(r(46942)),l=b(r(67967)),c=b(r(52103)),s=b(r(40890)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(r(25966)),d=b(r(88582)),f=r(8604),p=b(r(66942)),h=["defaultValue","disableAutoSearch","groupName","inputRefCallback","inputAttributes","intl","isBlock","isDisabled","isLabelVisible","minimumSearchTextLength","onChange","onInput","onInvalidSearch","onSearch","placeholder","searchDelay","value"];function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function b(e){return e&&e.__esModule?e:{default:e}}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function w(e,t){for(var r=0;r=this.props.minimumSearchTextLength&&this.props.onSearch?this.props.onSearch(e):this.props.onInvalidSearch&&this.props.onInvalidSearch(e)}},{key:"setInputRef",value:function(e){this.inputRef=e,this.props.inputRefCallback&&this.props.inputRefCallback(e)}},{key:"updateSearchText",value:function(e){"undefined"!=typeof e&&e!==this.searchText&&(this.searchText=e,this.forceUpdate())}},{key:"clearSearchTimeout",value:function(){this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=null)}},{key:"render",value:function(){var e=this,t=this.props,r=t.defaultValue,n=(t.disableAutoSearch,t.groupName),o=(t.inputRefCallback,t.inputAttributes),l=t.intl,c=t.isBlock,u=t.isDisabled,d=t.isLabelVisible,f=(t.minimumSearchTextLength,t.onChange,t.onInput,t.onInvalidSearch,t.onSearch,t.placeholder),p=(t.searchDelay,t.value),m=_(t,h),b=this.context,w=C(["search-container",b.className]),x=(0,i.default)(C("search-field",{block:c}),m.className),O="Search"===n?l.formatMessage({id:"Terra.searchField.search"}):n,E=o&&Object.prototype.hasOwnProperty.call(o,"aria-label")?o["aria-label"]:O,S=l.formatMessage({id:"Terra.searchField.submit-search"}),P=l.formatMessage({id:"Terra.searchField.clear"}),j=function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var d=o.default.bind(i.default),f={refCallback:a.default.func,text:a.default.string},p={text:void 0,refCallback:void 0},h=function(e){var t=e.refCallback,r=e.text,a=u(e,l),o=d(["visually-hidden-text",a.className]);return n.default.createElement("span",s({ref:t},a,{className:o}),r)};h.propTypes=f,h.defaultProps=p;t.default=h},46952:function(){"document"in window.self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(e){"use strict";if("Element"in e){var t="classList",r="prototype",n=e.Element[r],a=Object,o=String[r].trim||function(){return this.replace(/^\s+|\s+$/g,"")},i=Array[r].indexOf||function(e){for(var t=0,r=this.length;t0?document:(0,i.getFirst)(e).ownerDocument),d=(0,o.getAllAffectedNodes)(e).filter(s.isNotAGuard),f=(0,u.getTopCommonParent)(r||e,e,d),p=new Map,h=(0,a.getFocusableNodes)(d,p),m=h.filter((function(e){var t=e.node;return(0,s.isNotAGuard)(t)}));if(m[0]){var b,g,v,y=(0,a.getFocusableNodes)([f],p).map((function(e){return e.node})),_=(b=y,g=m,v=new Map,g.forEach((function(e){return v.set(e.node,e)})),b.map((function(e){return v.get(e)})).filter(s.isDefined)),w=_.map((function(e){return e.node})),x=_.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),O=(0,n.newFocus)(w,x,y,r,t);if(O===n.NEW_FOCUS){var E=(0,l.pickAutofocus)(h,x,(0,u.allParentAutofocusables)(d,p))||(0,l.pickAutofocus)(h,w,(0,u.allParentAutofocusables)(d,p));return E?{node:E}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===O?O:_[O]}}},29837:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expandFocusableNodes=void 0;var n=r(19404),a=r(26066),o=r(28852),i=r(66375),l=r(98414);t.expandFocusableNodes=function(e){var t=(0,n.getAllAffectedNodes)(e).filter(a.isNotAGuard),r=(0,o.getTopCommonParent)(e,e,t),c=(0,i.orderByTabIndex)((0,l.getFocusables)([r],!0),!0,!0),s=(0,l.getFocusables)(t,!1);return c.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:s.indexOf(t)>=0,guard:(0,a.isGuard)(t)}}))}},99122:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureFocusRestore=t.getRelativeFocusable=t.focusLastElement=t.focusFirstElement=t.focusPrevElement=t.focusNextElement=t.getTabbableNodes=t.getFocusableNodes=t.expandFocusableNodes=t.focusSolver=t.moveFocusInside=t.focusIsHidden=t.focusInside=t.constants=void 0;var n=(0,r(31635).__importStar)(r(10403)),a=r(58102);Object.defineProperty(t,"focusInside",{enumerable:!0,get:function(){return a.focusInside}});var o=r(10066);Object.defineProperty(t,"focusIsHidden",{enumerable:!0,get:function(){return o.focusIsHidden}});var i=r(49793);Object.defineProperty(t,"focusSolver",{enumerable:!0,get:function(){return i.focusSolver}});var l=r(29837);Object.defineProperty(t,"expandFocusableNodes",{enumerable:!0,get:function(){return l.expandFocusableNodes}});var c=r(69365);Object.defineProperty(t,"moveFocusInside",{enumerable:!0,get:function(){return c.moveFocusInside}});var s=r(67907);Object.defineProperty(t,"captureFocusRestore",{enumerable:!0,get:function(){return s.captureFocusRestore}});var u=r(32400);Object.defineProperty(t,"focusNextElement",{enumerable:!0,get:function(){return u.focusNextElement}}),Object.defineProperty(t,"focusPrevElement",{enumerable:!0,get:function(){return u.focusPrevElement}}),Object.defineProperty(t,"getRelativeFocusable",{enumerable:!0,get:function(){return u.getRelativeFocusable}}),Object.defineProperty(t,"focusFirstElement",{enumerable:!0,get:function(){return u.focusFirstElement}}),Object.defineProperty(t,"focusLastElement",{enumerable:!0,get:function(){return u.focusLastElement}});var d=r(79623);Object.defineProperty(t,"getFocusableNodes",{enumerable:!0,get:function(){return d.getFocusableNodes}}),Object.defineProperty(t,"getTabbableNodes",{enumerable:!0,get:function(){return d.getTabbableNodes}});var f=n;t.constants=f;var p=c.moveFocusInside;t.default=p},69365:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moveFocusInside=void 0;var n=r(27210),a=r(49793),o=0,i=!1;t.moveFocusInside=function(e,t,r){void 0===r&&(r={});var l=(0,a.focusSolver)(e,t);if(!i&&l){if(o>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),i=!0,void setTimeout((function(){i=!1}),1);o++,(0,n.focusOn)(l.node,r.focusOptions),o--}}},67907:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureFocusRestore=t.recordElementLocation=void 0;var n=r(79623);function a(e){if(!e)return null;var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}t.recordElementLocation=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:a(r),parent:a(r.parentElement),left:a(r.previousElementSibling),right:a(r.nextElementSibling)}),r=r.parentElement;return{element:a(e),stack:t,ownerDocument:e.ownerDocument}};t.captureFocusRestore=function(e){var r=(0,t.recordElementLocation)(e);return function(){return function(e){var t,r,a,o,i;if(e)for(var l=e.stack,c=e.ownerDocument,s=new Map,u=0,d=l;u=0)){var p=void 0!==l?i.indexOf(l):-1,h=c?i.indexOf(c):p,m=c?e.indexOf(c):-1;if(-1===p)return-1!==m?m:t.NEW_FOCUS;if(-1===m)return t.NEW_FOCUS;var b=p-h,g=i.indexOf(u),v=i.indexOf(d),y=(0,n.correctNodes)(i),_=(void 0!==l?y.indexOf(l):-1)-(c?y.indexOf(c):p);if(!b&&m>=0)return m;if(0===r.length)return m;var w=(0,a.pickFocusable)(e,r[0]),x=(0,a.pickFocusable)(e,r[r.length-1]);return p<=g&&f&&Math.abs(b)>1?x:p>=v&&f&&Math.abs(b)>1?w:b&&Math.abs(_)>1?m:p<=g?x:p>v?w:b?Math.abs(b)>1?m:(s+m+b)%s:void 0}}},79623:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contains=t.parentAutofocusables=t.getFocusableNodes=t.getTabbableNodes=t.filterAutoFocusable=t.filterFocusable=void 0;var n=r(26733),a=r(26066),o=r(66375),i=r(98414);t.filterFocusable=function(e,t){return(0,n.toArray)(e).filter((function(e){return(0,a.isVisibleCached)(t,e)})).filter((function(e){return(0,a.notHiddenInput)(e)}))};t.filterAutoFocusable=function(e,t){return void 0===t&&(t=new Map),(0,n.toArray)(e).filter((function(e){return(0,a.isAutoFocusAllowedCached)(t,e)}))};t.getTabbableNodes=function(e,r,n){return(0,o.orderByTabIndex)((0,t.filterFocusable)((0,i.getFocusables)(e,n),r),!0,n)};t.getFocusableNodes=function(e,r){return(0,o.orderByTabIndex)((0,t.filterFocusable)((0,i.getFocusables)(e),r),!1)};t.parentAutofocusables=function(e,r){return(0,t.filterFocusable)((0,i.getParentAutofocusables)(e),r)};t.contains=function(e,r){return e.shadowRoot?(0,t.contains)(e.shadowRoot,r):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,r))||(0,n.toArray)(e.children).some((function(e){var n;if(e instanceof HTMLIFrameElement){var a=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!a&&(0,t.contains)(a,r)}return(0,t.contains)(e,r)}))}},19404:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllAffectedNodes=void 0;var n=r(10403),a=r(26733),o=function(e){return e.parentNode?o(e.parentNode):e};t.getAllAffectedNodes=function(e){return(0,a.asArray)(e).filter(Boolean).reduce((function(e,t){var r=t.getAttribute(n.FOCUS_GROUP);return e.push.apply(e,r?function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(a),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter((function(e,r){return!t.has(r)}))}((0,a.toArray)(o(t).querySelectorAll("[".concat(n.FOCUS_GROUP,'="').concat(r,'"]:not([').concat(n.FOCUS_DISABLED,'="disabled"])')))):[t]),e}),[])}},26733:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFirst=t.asArray=t.toArray=void 0;t.toArray=function(e){for(var t=Array(e.length),r=0;r=0})));return c&&c.length?(0,a.pickFirstFocus)(c):(0,a.pickFirstFocus)((0,n.filterAutoFocusable)(t))}},44840:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.correctNodes=t.correctNode=void 0;var n=r(26066);t.correctNode=function(e,t){return(0,n.isRadioElement)(e)&&e.name?function(e,t){return t.filter(n.isRadioElement).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e};t.correctNodes=function(e){var r=new Set;return e.forEach((function(n){return r.add((0,t.correctNode)(n,e))})),e.filter((function(e){return r.has(e)}))}},85144:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pickFocusable=t.pickFirstFocus=void 0;var n=r(44840);t.pickFirstFocus=function(e){return e[0]&&e.length>1?(0,n.correctNode)(e[0],e):e[0]};t.pickFocusable=function(e,t){return e.indexOf((0,n.correctNode)(t,e))}},51708:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getActiveElement=void 0;var n=r(65347);t.getActiveElement=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var r=e.activeElement;return r.shadowRoot?(0,t.getActiveElement)(r.shadowRoot):r instanceof HTMLIFrameElement&&(0,n.safeProbe)((function(){return r.contentWindow.document}))?(0,t.getActiveElement)(r.contentWindow.document):r}}},26066:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDefined=t.isNotAGuard=t.isGuard=t.isAutoFocusAllowed=t.notHiddenInput=t.isRadioElement=t.isHTMLInputElement=t.isHTMLButtonElement=t.getDataset=t.isAutoFocusAllowedCached=t.isVisibleCached=void 0;var n=r(10403),a=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},o=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},i=function(e,t){return!e||o(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&t(a(e))};t.isVisibleCached=function(e,r){var n=e.get(r);if(void 0!==n)return n;var a=i(r,t.isVisibleCached.bind(void 0,e));return e.set(r,a),a};t.isAutoFocusAllowedCached=function(e,r){var n=e.get(r);if(void 0!==n)return n;var i=function(e,r){return!(e&&!o(e))||!!(0,t.isAutoFocusAllowed)(e)&&r(a(e))}(r,t.isAutoFocusAllowedCached.bind(void 0,e));return e.set(r,i),i};t.getDataset=function(e){return e.dataset};t.isHTMLButtonElement=function(e){return"BUTTON"===e.tagName};t.isHTMLInputElement=function(e){return"INPUT"===e.tagName};t.isRadioElement=function(e){return(0,t.isHTMLInputElement)(e)&&"radio"===e.type};t.notHiddenInput=function(e){return!(((0,t.isHTMLInputElement)(e)||(0,t.isHTMLButtonElement)(e))&&("hidden"===e.type||e.disabled))};t.isAutoFocusAllowed=function(e){var t=e.getAttribute(n.FOCUS_NO_AUTOFOCUS);return![!0,"true",""].includes(t)};t.isGuard=function(e){var r;return Boolean(e&&(null===(r=(0,t.getDataset)(e))||void 0===r?void 0:r.focusGuard))};t.isNotAGuard=function(e){return!(0,t.isGuard)(e)};t.isDefined=function(e){return Boolean(e)}},28852:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allParentAutofocusables=t.getTopCommonParent=t.getCommonParent=void 0;var n=r(79623),a=r(79623),o=r(26733),i=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&i(e.parentNode.host||e.parentNode,t),t};t.getCommonParent=function(e,t){for(var r=i(e),n=i(t),a=0;a=0)return o}return!1};t.getTopCommonParent=function(e,r,n){var i=(0,o.asArray)(e),l=(0,o.asArray)(r),c=i[0],s=!1;return l.filter(Boolean).forEach((function(e){s=(0,t.getCommonParent)(s||e,e)||s,n.filter(Boolean).forEach((function(e){var r=(0,t.getCommonParent)(c,e);r&&(s=!s||(0,a.contains)(r,s)?r:(0,t.getCommonParent)(r,s))}))})),s};t.allParentAutofocusables=function(e,t){return e.reduce((function(e,r){return e.concat((0,n.parentAutofocusables)(r,t))}),[])}},65347:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.safeProbe=void 0;t.safeProbe=function(e){try{return e()}catch(e){return}}},66375:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.orderByTabIndex=t.tabSort=void 0;var n=r(26733);t.tabSort=function(e,t){var r=Math.max(0,e.tabIndex),n=Math.max(0,t.tabIndex),a=r-n,o=e.index-t.index;if(a){if(!r)return 1;if(!n)return-1}return a||o};t.orderByTabIndex=function(e,r,a){return(0,n.toArray)(e).map((function(e,t){var r=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:a&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}})).filter((function(e){return!r||e.tabIndex>=0})).sort(t.tabSort)}},98414:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParentAutofocusables=t.getFocusables=void 0;var n=r(10403),a=r(26733),o=r(50208).tabbables.join(","),i="".concat(o,", [data-focus-guard]"),l=function(e,t){return(0,a.toArray)((e.shadowRoot||e).children).reduce((function(e,r){return e.concat(r.matches(t?i:o)?[r]:[],l(r))}),[])};t.getFocusables=function(e,r){return e.reduce((function(e,n){var i,c=l(n,r),s=(i=[]).concat.apply(i,c.map((function(e){return function(e,r){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?(0,t.getFocusables)([e.contentDocument.body],r):[e]}(e,r)})));return e.concat(s,n.parentNode?(0,a.toArray)(n.parentNode.querySelectorAll(o)).filter((function(e){return e===n})):[])}),[])};t.getParentAutofocusables=function(e){var r=e.querySelectorAll("[".concat(n.FOCUS_AUTO,"]"));return(0,a.toArray)(r).map((function(e){return(0,t.getFocusables)([e])})).reduce((function(e,t){return e.concat(t)}),[])}},50208:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tabbables=void 0,t.tabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"]},94708:function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r0){var t=n[n.length-1];t!==e&&t.pause()}var r=n.indexOf(e);-1===r||n.splice(r,1),n.push(e)},deactivateTrap:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),n.length>0&&n[n.length-1].unpause()}});function l(e){return setTimeout(e,0)}e.exports=function(e,t){var r=document,n="string"==typeof e?r.querySelector(e):e,c=o({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),s={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},u={activate:function(e){if(s.active)return;_(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=r.activeElement;var t=e&&e.onActivate?e.onActivate:c.onActivate;t&&t();return f(),u},deactivate:d,pause:function(){if(s.paused||!s.active)return;s.paused=!0,p()},unpause:function(){if(!s.paused||!s.active)return;s.paused=!1,f()}};return u;function d(e){if(s.active){p(),s.active=!1,s.paused=!1,i.deactivateTrap(u);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:c.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:c.returnFocusOnDeactivate)&&l((function(){w(s.nodeFocusedBeforeActivation)})),u}}function f(){if(s.active)return i.activateTrap(u),_(),l((function(){w(m())})),r.addEventListener("focusin",g,!0),r.addEventListener("mousedown",b,!0),r.addEventListener("touchstart",b,!0),r.addEventListener("click",y,!0),r.addEventListener("keydown",v,!0),u}function p(){if(s.active)return r.removeEventListener("focusin",g,!0),r.removeEventListener("mousedown",b,!0),r.removeEventListener("touchstart",b,!0),r.removeEventListener("click",y,!0),r.removeEventListener("keydown",v,!0),u}function h(e){var t=c[e],n=t;if(!t)return null;if("string"==typeof t&&!(n=r.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(n=t()))throw new Error("`"+e+"` did not return a node");return n}function m(){var e;if(!(e=null!==h("initialFocus")?h("initialFocus"):n.contains(r.activeElement)?r.activeElement:s.firstTabbableNode||h("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return e}function b(e){n.contains(e.target)||(c.clickOutsideDeactivates?d({returnFocus:!a.isFocusable(e.target)}):e.preventDefault())}function g(e){n.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),w(s.mostRecentlyFocusedNode||m()))}function v(e){if(!1!==c.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void d();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(_(),e.shiftKey&&e.target===s.firstTabbableNode)return e.preventDefault(),void w(s.lastTabbableNode);if(!e.shiftKey&&e.target===s.lastTabbableNode)e.preventDefault(),w(s.firstTabbableNode)}(e)}function y(e){c.clickOutsideDeactivates||n.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function _(){var e=a(n);s.firstTabbableNode=e[0]||m(),s.lastTabbableNode=e[e.length-1]||m()}function w(e){e!==r.activeElement&&(e&&e.focus?(e.focus(),s.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):w(m()))}}},38354:function(e){"use strict";function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},r=t.getFn,n=void 0===r?M.getFn:r,o=t.fieldNormWeight,i=void 0===o?M.fieldNormWeight:o;a(this,e),this.norm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=new Map,n=Math.pow(10,t);return{get:function(t){var a=t.match(N).length;if(r.has(a))return r.get(a);var o=1/Math.pow(a,.5*e),i=parseFloat(Math.round(o*n)/n);return r.set(a,i),i},clear:function(){r.clear()}}}(i,3),this.getFn=n,this.isCreated=!1,this.setIndexRecords()}return i(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,r){e._keysMap[t.id]=r}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,v(this.docs[0])?this.docs.forEach((function(t,r){e._addString(t,r)})):this.docs.forEach((function(t,r){e._addObject(t,r)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();v(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,r=this.size();t2&&void 0!==arguments[2]?arguments[2]:{},n=r.getFn,a=void 0===n?M.getFn:n,o=r.fieldNormWeight,i=void 0===o?M.fieldNormWeight:o,l=new I({getFn:a,fieldNormWeight:i});return l.setKeys(e.map(j)),l.setSources(t),l.create(),l}function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.errors,n=void 0===r?0:r,a=t.currentLocation,o=void 0===a?0:a,i=t.expectedLocation,l=void 0===i?0:i,c=t.distance,s=void 0===c?M.distance:c,u=t.ignoreLocation,d=void 0===u?M.ignoreLocation:u,f=n/e.length;if(d)return f;var p=Math.abs(l-o);return s?f+p/s:p?1:f}var L=32;function z(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=n.location,o=void 0===a?M.location:a,i=n.distance,l=void 0===i?M.distance:i,c=n.threshold,s=void 0===c?M.threshold:c,u=n.findAllMatches,d=void 0===u?M.findAllMatches:u,f=n.minMatchCharLength,p=void 0===f?M.minMatchCharLength:f,h=n.includeMatches,m=void 0===h?M.includeMatches:h,b=n.ignoreLocation,g=void 0===b?M.ignoreLocation:b;if(t.length>L)throw new Error("Pattern length exceeds max of ".concat(L,"."));for(var v,y=t.length,_=e.length,w=Math.max(0,Math.min(o,_)),x=s,O=w,E=p>1||m,S=E?Array(_):[];(v=e.indexOf(t,O))>-1;){var P=F(t,{currentLocation:v,expectedLocation:w,distance:l,ignoreLocation:g});if(x=Math.min(P,x),O=v+y,E)for(var C=0;C=R;U-=1){var H=U-1,W=r[e.charAt(H)];if(E&&(S[H]=+!!W),B[U]=(B[U+1]<<1|1)&W,A&&(B[U]|=(k[U+1]|k[U])<<1|1|k[U+1]),B[U]&T&&(j=F(t,{errors:A,currentLocation:H,expectedLocation:w,distance:l,ignoreLocation:g}))<=x){if(x=j,(O=H)<=w)break;R=Math.max(1,2*w-O)}}if(F(t,{errors:A+1,currentLocation:w,expectedLocation:w,distance:l,ignoreLocation:g})>x)break;k=B}var G={isMatch:O>=0,score:Math.max(.001,j)};if(E){var V=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.minMatchCharLength,r=[],n=-1,a=-1,o=0,i=e.length;o=t&&r.push([n,a]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}(S,p);V.length?m&&(G.indices=V):G.isMatch=!1}return G}function B(e){for(var t={},r=0,n=e.length;r1&&void 0!==arguments[1]?arguments[1]:{},o=n.location,i=void 0===o?M.location:o,l=n.threshold,c=void 0===l?M.threshold:l,s=n.distance,u=void 0===s?M.distance:s,d=n.includeMatches,f=void 0===d?M.includeMatches:d,p=n.findAllMatches,h=void 0===p?M.findAllMatches:p,m=n.minMatchCharLength,b=void 0===m?M.minMatchCharLength:m,g=n.isCaseSensitive,v=void 0===g?M.isCaseSensitive:g,y=n.ignoreLocation,_=void 0===y?M.ignoreLocation:y;if(a(this,e),this.options={location:i,threshold:c,distance:u,includeMatches:f,findAllMatches:h,minMatchCharLength:b,isCaseSensitive:v,ignoreLocation:_},this.pattern=v?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var w=function(e,t){r.chunks.push({pattern:e,alphabet:B(e),startIndex:t})},x=this.pattern.length;if(x>L){for(var O=0,E=x%L,S=x-E;O1&&void 0!==arguments[1]?arguments[1]:{},i=o.location,l=void 0===i?M.location:i,c=o.threshold,s=void 0===c?M.threshold:c,u=o.distance,d=void 0===u?M.distance:u,f=o.includeMatches,p=void 0===f?M.includeMatches:f,h=o.findAllMatches,m=void 0===h?M.findAllMatches:h,b=o.minMatchCharLength,g=void 0===b?M.minMatchCharLength:b,v=o.isCaseSensitive,y=void 0===v?M.isCaseSensitive:v,_=o.ignoreLocation,w=void 0===_?M.ignoreLocation:_;return a(this,r),(n=t.call(this,e))._bitapSearch=new U(e,{location:l,threshold:s,distance:d,includeMatches:p,findAllMatches:m,minMatchCharLength:g,isCaseSensitive:y,ignoreLocation:w}),n}return i(r,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),r}(H),Z=function(e){c(r,e);var t=f(r);function r(e){return a(this,r),t.call(this,e)}return i(r,[{key:"search",value:function(e){for(var t,r=0,n=[],a=this.pattern.length;(t=e.indexOf(this.pattern,r))>-1;)r=t+a,n.push([t,r-1]);var o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),r}(H),Q=[G,Z,q,K,$,Y,V,X],J=Q.length,ee=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/;var te=new Set([X.type,Z.type]),re=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.isCaseSensitive,o=void 0===n?M.isCaseSensitive:n,i=r.includeMatches,l=void 0===i?M.includeMatches:i,c=r.minMatchCharLength,s=void 0===c?M.minMatchCharLength:c,u=r.ignoreLocation,d=void 0===u?M.ignoreLocation:u,f=r.findAllMatches,p=void 0===f?M.findAllMatches:f,h=r.location,m=void 0===h?M.location:h,b=r.threshold,g=void 0===b?M.threshold:b,v=r.distance,y=void 0===v?M.distance:v;a(this,e),this.query=null,this.options={isCaseSensitive:o,includeMatches:l,minMatchCharLength:s,findAllMatches:p,ignoreLocation:d,location:m,threshold:g,distance:y},this.pattern=o?t:t.toLowerCase(),this.query=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var r=e.trim().split(ee).filter((function(e){return e&&!!e.trim()})),n=[],a=0,o=r.length;a2&&void 0!==arguments[2]?arguments[2]:{}).auto,n=void 0===r||r;return se(e)||(e=ue(e)),function e(r){var a=Object.keys(r),o=function(e){return!!e[le]}(r);if(!o&&a.length>1&&!se(r))return e(ue(r));if(function(e){return!m(e)&&w(e)&&!se(e)}(r)){var i=o?r[le]:a[0],l=o?r[ce]:r[i];if(!v(l))throw new Error(function(e){return"Invalid value for key ".concat(e)}(i));var c={keyId:T(i),pattern:l};return n&&(c.searcher=ae(l,t)),c}var s={children:[],operator:a[0]};return a.forEach((function(t){var n=r[t];m(n)&&n.forEach((function(t){s.children.push(e(t))}))})),s}(e)}function fe(e,t){var r=e.matches;t.matches=[],x(r)&&r.forEach((function(e){if(x(e.indices)&&e.indices.length){var r={indices:e.indices,value:e.value};e.key&&(r.key=e.key.src),e.idx>-1&&(r.refIndex=e.idx),t.matches.push(r)}}))}function pe(e,t){t.score=e.score}var he=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;a(this,e),this.options=r(r({},M),n),this.options.useExtendedSearch,this._keyStore=new k(this.options.keys),this.setCollection(t,o)}return i(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof I))throw new Error("Incorrect 'index' type");this._myIndex=t||R(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){x(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],r=0,n=this._docs.length;r1&&void 0!==arguments[1]?arguments[1]:{}).limit,r=void 0===t?-1:t,n=this.options,a=n.includeMatches,o=n.includeScore,i=n.shouldSort,l=n.sortFn,c=n.ignoreFieldNorm,s=v(e)?v(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,t){var r=t.ignoreFieldNorm,n=void 0===r?M.ignoreFieldNorm:r;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var r=e.key,a=e.norm,o=e.score,i=r?r.weight:null;t*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(n?1:a))})),e.score=t}))}(s,{ignoreFieldNorm:c}),i&&s.sort(l),y(r)&&r>-1&&(s=s.slice(0,r)),function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.includeMatches,a=void 0===n?M.includeMatches:n,o=r.includeScore,i=void 0===o?M.includeScore:o,l=[];return a&&l.push(fe),i&&l.push(pe),e.map((function(e){var r=e.idx,n={item:t[r],refIndex:r};return l.length&&l.forEach((function(t){t(e,n)})),n}))}(s,this._docs,{includeMatches:a,includeScore:o})}},{key:"_searchStringList",value:function(e){var t=ae(e,this.options),r=this._myIndex.records,n=[];return r.forEach((function(e){var r=e.v,a=e.i,o=e.n;if(x(r)){var i=t.searchIn(r),l=i.isMatch,c=i.score,s=i.indices;l&&n.push({item:r,idx:a,matches:[{score:c,value:r,norm:o,indices:s}]})}})),n}},{key:"_searchLogical",value:function(e){var t=this,r=de(e,this.options),n=function e(r,n,a){if(!r.children){var o=r.keyId,i=r.searcher,l=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(n,o),searcher:i});return l&&l.length?[{idx:a,item:n,matches:l}]:[]}for(var c=[],s=0,u=r.children.length;s1&&void 0!==arguments[1]?arguments[1]:{},r=t.getFn,n=void 0===r?M.getFn:r,a=t.fieldNormWeight,o=void 0===a?M.fieldNormWeight:a,i=e.keys,l=e.records,c=new I({getFn:n,fieldNormWeight:o});return c.setKeys(i),c.setIndexRecords(l),c},he.config=M,he.parseQuery=de,function(){ne.push.apply(ne,arguments)}(re);var me=he;e.exports=me},17638:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.setNonce=function(e){n=e},t.getNonce=function(){return n||r.nc}},76288:function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(r(10550)),o=n(r(70739));r(52796);var i=n(r(17676));function l(){return(l=Object.assign||function(e){for(var t=1;tt?r.splice(t,r.length-t,n):r.push(n),d({action:"PUSH",location:n,index:t,entries:r})}}))},replace:function(e,t){var n="REPLACE",a=h(e,t,f(),_.location);u.confirmTransitionTo(a,n,r,(function(e){e&&(_.entries[_.index]=a,d({action:n,location:a}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=_.index+e;return 0<=t&&t<_.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return _},t.createLocation=h,t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&o(e.state,t.state)},t.parsePath=f,t.createPath=p},57971:function(e,t,r){"use strict";e.exports=r(76288)},4146:function(e,t,r){"use strict";var n=r(44363),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!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={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return n.isMemo(e)?i:l[e.$$typeof]||a}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=i;var s=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var a=p(r);a&&a!==h&&e(t,a,n)}var i=u(r);d&&(i=i.concat(d(r)));for(var l=c(t),m=c(r),b=0;b1?arguments[1]:{},a={},o={start:De},i=De,l=function(e){return{type:"messageFormatPattern",elements:e,location:Se()}},c=function(e){var t,r,n,a,o,i="";for(t=0,n=e.length;txe&&(xe=ye,Oe=[]),Oe.push(e))}function je(t,r,n,a){return null!==r&&function(e){var t=1;for(e.sort((function(e,t){return e.descriptiont.description?1:0}));t1?n.slice(0,-1).join(", ")+" or "+n[e.length-1]:n[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0100-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1000-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(r,n),r,n,a)}function De(){return Te()}function Te(){var e,t,r;for(e=ye,t=[],r=Ae();r!==a;)t.push(r),r=Ae();return t!==a&&(_e=e,t=l(t)),e=t}function Ae(){var e;return(e=function(){var e,r;e=ye,r=function(){var e,r,n,o,i,l;e=ye,r=[],n=ye,(o=Re())!==a&&(i=Ue())!==a&&(l=Re())!==a?n=o=[o,i,l]:(ye=n,n=a);if(n!==a)for(;n!==a;)r.push(n),n=ye,(o=Re())!==a&&(i=Ue())!==a&&(l=Re())!==a?n=o=[o,i,l]:(ye=n,n=a);else r=a;r!==a&&(_e=e,r=c(r));e=r,e===a&&(e=ye,e=(r=Ie())!==a?t.substring(e,ye):r);return e}(),r!==a&&(_e=e,r=s(r));return e=r,e}())===a&&(e=function(){var e,r,n,o,i,l,c;e=ye,123===t.charCodeAt(ye)?(r=f,ye++):(r=a,0===Ee&&ke(p));r!==a&&Re()!==a?(n=function(){var e,r,n;if(e=ze(),e===a){if(e=ye,r=[],u.test(t.charAt(ye))?(n=t.charAt(ye),ye++):(n=a,0===Ee&&ke(d)),n!==a)for(;n!==a;)r.push(n),u.test(t.charAt(ye))?(n=t.charAt(ye),ye++):(n=a,0===Ee&&ke(d));else r=a;e=r!==a?t.substring(e,ye):r}return e}(),n!==a&&Re()!==a?(o=ye,44===t.charCodeAt(ye)?(i=h,ye++):(i=a,0===Ee&&ke(m)),i!==a&&(l=Re())!==a?(c=function(){var e;e=function(){var e,r,n,o,i,l;e=ye,t.substr(ye,6)===y?(r=y,ye+=6):(r=a,0===Ee&&ke(_));r===a&&(t.substr(ye,4)===w?(r=w,ye+=4):(r=a,0===Ee&&ke(x)),r===a&&(t.substr(ye,4)===O?(r=O,ye+=4):(r=a,0===Ee&&ke(E))));r!==a&&Re()!==a?(n=ye,44===t.charCodeAt(ye)?(o=h,ye++):(o=a,0===Ee&&ke(m)),o!==a&&(i=Re())!==a&&(l=Ue())!==a?n=o=[o,i,l]:(ye=n,n=a),n===a&&(n=null),n!==a?(_e=e,e=r=S(r,n)):(ye=e,e=a)):(ye=e,e=a);return e}(),e===a&&(e=function(){var e,r,n,o;e=ye,t.substr(ye,6)===P?(r=P,ye+=6):(r=a,0===Ee&&ke(C));r!==a&&Re()!==a?(44===t.charCodeAt(ye)?(n=h,ye++):(n=a,0===Ee&&ke(m)),n!==a&&Re()!==a&&(o=Ne())!==a?(_e=e,e=r=k(o)):(ye=e,e=a)):(ye=e,e=a);return e}(),e===a&&(e=function(){var e,r,n,o;e=ye,t.substr(ye,13)===j?(r=j,ye+=13):(r=a,0===Ee&&ke(D));r!==a&&Re()!==a?(44===t.charCodeAt(ye)?(n=h,ye++):(n=a,0===Ee&&ke(m)),n!==a&&Re()!==a&&(o=Ne())!==a?(_e=e,e=r=T(o)):(ye=e,e=a)):(ye=e,e=a);return e}(),e===a&&(e=function(){var e,r,n,o,i;e=ye,t.substr(ye,6)===A?(r=A,ye+=6):(r=a,0===Ee&&ke(M));if(r!==a)if(Re()!==a)if(44===t.charCodeAt(ye)?(n=h,ye++):(n=a,0===Ee&&ke(m)),n!==a)if(Re()!==a){if(o=[],(i=Me())!==a)for(;i!==a;)o.push(i),i=Me();else o=a;o!==a?(_e=e,e=r=N(o)):(ye=e,e=a)}else ye=e,e=a;else ye=e,e=a;else ye=e,e=a;else ye=e,e=a;return e}())));return e}(),c!==a?o=i=[i,l,c]:(ye=o,o=a)):(ye=o,o=a),o===a&&(o=null),o!==a&&(i=Re())!==a?(125===t.charCodeAt(ye)?(l=b,ye++):(l=a,0===Ee&&ke(g)),l!==a?(_e=e,e=r=v(n,o)):(ye=e,e=a)):(ye=e,e=a)):(ye=e,e=a)):(ye=e,e=a);return e}()),e}function Me(){var e,r,n,o,i;return e=ye,Re()!==a?(r=function(){var e,r,n,o;return e=ye,r=ye,61===t.charCodeAt(ye)?(n=I,ye++):(n=a,0===Ee&&ke(R)),n!==a&&(o=ze())!==a?r=n=[n,o]:(ye=r,r=a),(e=r!==a?t.substring(e,ye):r)===a&&(e=Ue()),e}(),r!==a&&Re()!==a?(123===t.charCodeAt(ye)?(n=f,ye++):(n=a,0===Ee&&ke(p)),n!==a&&Re()!==a&&(o=Te())!==a&&Re()!==a?(125===t.charCodeAt(ye)?(i=b,ye++):(i=a,0===Ee&&ke(g)),i!==a?(_e=e,e=F(r,o)):(ye=e,e=a)):(ye=e,e=a)):(ye=e,e=a)):(ye=e,e=a),e}function Ne(){var e,r,n,o;if(e=ye,r=function(){var e,r,n;return e=ye,t.substr(ye,7)===L?(r=L,ye+=7):(r=a,0===Ee&&ke(z)),r!==a&&Re()!==a&&(n=ze())!==a?(_e=e,e=r=B(n)):(ye=e,e=a),e}(),r===a&&(r=null),r!==a)if(Re()!==a){if(n=[],(o=Me())!==a)for(;o!==a;)n.push(o),o=Me();else n=a;n!==a?(_e=e,e=r=U(r,n)):(ye=e,e=a)}else ye=e,e=a;else ye=e,e=a;return e}function Ie(){var e,r;if(Ee++,e=[],W.test(t.charAt(ye))?(r=t.charAt(ye),ye++):(r=a,0===Ee&&ke(G)),r!==a)for(;r!==a;)e.push(r),W.test(t.charAt(ye))?(r=t.charAt(ye),ye++):(r=a,0===Ee&&ke(G));else e=a;return Ee--,e===a&&(r=a,0===Ee&&ke(H)),e}function Re(){var e,r,n;for(Ee++,e=ye,r=[],n=Ie();n!==a;)r.push(n),n=Ie();return e=r!==a?t.substring(e,ye):r,Ee--,e===a&&(r=a,0===Ee&&ke(V)),e}function Fe(){var e;return q.test(t.charAt(ye))?(e=t.charAt(ye),ye++):(e=a,0===Ee&&ke(K)),e}function Le(){var e;return Y.test(t.charAt(ye))?(e=t.charAt(ye),ye++):(e=a,0===Ee&&ke($)),e}function ze(){var e,r,n,o,i,l;if(e=ye,48===t.charCodeAt(ye)?(r=X,ye++):(r=a,0===Ee&&ke(Z)),r===a){if(r=ye,n=ye,Q.test(t.charAt(ye))?(o=t.charAt(ye),ye++):(o=a,0===Ee&&ke(J)),o!==a){for(i=[],l=Fe();l!==a;)i.push(l),l=Fe();i!==a?n=o=[o,i]:(ye=n,n=a)}else ye=n,n=a;r=n!==a?t.substring(r,ye):n}return r!==a&&(_e=e,r=ee(r)),e=r}function Be(){var e,r,n,o,i,l,c,s;return te.test(t.charAt(ye))?(e=t.charAt(ye),ye++):(e=a,0===Ee&&ke(re)),e===a&&(e=ye,t.substr(ye,2)===ne?(r=ne,ye+=2):(r=a,0===Ee&&ke(ae)),r!==a&&(_e=e,r=oe()),(e=r)===a&&(e=ye,t.substr(ye,2)===ie?(r=ie,ye+=2):(r=a,0===Ee&&ke(le)),r!==a&&(_e=e,r=ce()),(e=r)===a&&(e=ye,t.substr(ye,2)===se?(r=se,ye+=2):(r=a,0===Ee&&ke(ue)),r!==a&&(_e=e,r=de()),(e=r)===a&&(e=ye,t.substr(ye,2)===fe?(r=fe,ye+=2):(r=a,0===Ee&&ke(pe)),r!==a&&(_e=e,r=he()),(e=r)===a&&(e=ye,t.substr(ye,2)===me?(r=me,ye+=2):(r=a,0===Ee&&ke(be)),r!==a?(n=ye,o=ye,(i=Le())!==a&&(l=Le())!==a&&(c=Le())!==a&&(s=Le())!==a?o=i=[i,l,c,s]:(ye=o,o=a),(n=o!==a?t.substring(n,ye):o)!==a?(_e=e,e=r=ge(n)):(ye=e,e=a)):(ye=e,e=a)))))),e}function Ue(){var e,t,r;if(e=ye,t=[],(r=Be())!==a)for(;r!==a;)t.push(r),r=Be();else t=a;return t!==a&&(_e=e,t=ve(t)),e=t}if((r=i())!==a&&ye===t.length)return r;throw r!==a&&ye=0)return!0;if("string"==typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&o.arrIndexOf.call(i,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+i.join('", "')+'"')},c.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(c.defaultLocale);var t,r,n,a,o=c.__localeData__;for(t=0,r=e.length;t=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+l.join('", "')+'"')},c.prototype._selectUnits=function(e){var t,r,n,a=i.filter((function(e){return e.indexOf("-short")<1}));for(t=0,r=a.length;t1){for(var c=Array(i),s=0;s=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},possibleConstructorReturn: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},selfGlobal:s,set:function e(t,r,n,a){var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);null!==i&&e(i,r,n,a)}else if("value"in o&&o.writable)o.value=n;else{var l=o.set;void 0!==l&&l.call(a,n)}return n},slicedToArray:u,slicedToArrayLoose:function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){for(var r,n=[],a=e[Symbol.iterator]();!(r=a.next()).done&&(n.push(r.value),!t||n.length!==t););return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")},taggedTemplateLiteral:function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},taggedTemplateLiteralLoose:function(e,t){return e.raw=t,e},temporalRef:function(e,t,r){if(e===r)throw new ReferenceError(t+" is not defined - temporal dead zone");return e},temporalUndefined:{},toArray:function(e){return Array.isArray(e)?e:Array.from(e)},toConsumableArray:function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t="a"&&r<="z"&&(e=e.slice(0,t)+r.toUpperCase()+e.slice(t+1))}return e}function G(e){return!!F.test(e)&&(!L.test(e)&&!z.test(e))}function V(e){for(var t=void 0,r=void 0,n=1,a=(r=(e=e.toLowerCase()).split("-")).length;n1&&(t.sort(),e=e.replace(RegExp("(?:"+B.source+")+","i"),w.call(t,""))),h.call(H.tags,e)&&(e=H.tags[e]);for(var o=1,i=(r=e.split("-")).length;o-1)return r;var n=r.lastIndexOf("-");if(n<0)return;n>=2&&"-"===r.charAt(n-2)&&(n-=2),r=r.substring(0,n)}}function X(e,t){for(var r=0,n=t.length,a=void 0,o=void 0,i=void 0;r2){var x=l[w+1];-1!==_.call(g,x)&&(y="-"+m+"-"+(v=x))}else{-1!==_(g,"true")&&(v="true")}}if(h.call(r,"[["+m+"]]")){var O=r["[["+m+"]]"];-1!==_.call(g,O)&&O!==v&&(v=O,y="")}u["[["+m+"]]"]=v,d+=y,f++}if(d.length>2){var E=i.indexOf("-x-");if(-1===E)i+=d;else{var S=i.substring(0,E),C=i.substring(E);i=S+d+C}i=V(i)}return u["[[locale]]"]=i,u}function Q(e,t){for(var r=t.length,n=new C,a=0;an)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(o)}return a}var re={};Object.defineProperty(re,"getCanonicalLocales",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=Y(e),r=[],n=t.length,a=0;a-1&&sd){var p=l.substring(d,s);_.call(c,{"[[type]]":"literal","[[value]]":p})}var m=l.substring(s+1,u);if("number"===m)if(isNaN(t)){var b=i.nan;_.call(c,{"[[type]]":"nan","[[value]]":b})}else if(isFinite(t)){"percent"===r["[[style]]"]&&isFinite(t)&&(t*=100);var g=void 0;g=h.call(r,"[[minimumSignificantDigits]]")&&h.call(r,"[[maximumSignificantDigits]]")?ce(t,r["[[minimumSignificantDigits]]"],r["[[maximumSignificantDigits]]"]):se(t,r["[[minimumIntegerDigits]]"],r["[[minimumFractionDigits]]"],r["[[maximumFractionDigits]]"]),ue[a]?function(){var e=ue[a];g=String(g).replace(/\d/g,(function(t){return e[t]}))}():g=String(g);var v=void 0,y=void 0,w=g.indexOf(".",0);if(w>0?(v=g.substring(0,w),y=g.substring(w+1,w.length)):(v=g,y=void 0),!0===r["[[useGrouping]]"]){var O=i.group,S=[],P=o.patterns.primaryGroupSize||3,k=o.patterns.secondaryGroupSize||P;if(v.length>P){var j=v.length-P,D=j%k,T=v.slice(0,D);for(T.length&&_.call(S,T);Da;a++){n+=r[a]["[[value]]"]}return n}function ce(e,t,r){var n=r,a=void 0,o=void 0;if(0===e)a=w.call(Array(n+1),"0"),o=0;else{o=function(e){if("function"==typeof Math.log10)return Math.floor(Math.log10(e));var t=Math.round(Math.log(e)*Math.LOG10E);return t-(Number("1e"+t)>e)}(Math.abs(e));var i=Math.round(Math.exp(Math.abs(o-n+1)*Math.LN10));a=String(Math.round(o-n+1<0?e*i:e/i))}if(o>=n)return a+w.call(Array(o-n+1+1),"0");if(o===n-1)return a;if(o>=0?a=a.slice(0,o+1)+"."+a.slice(o+1):o<0&&(a="0."+w.call(Array(1-(o+1)),"0")+a),a.indexOf(".")>=0&&r>t){for(var l=r-t;l>0&&"0"===a.charAt(a.length-1);)a=a.slice(0,-1),l--;"."===a.charAt(a.length-1)&&(a=a.slice(0,-1))}return a}function se(e,t,r,n){var a,o=n,i=Math.pow(10,o)*e,l=0===i?"0":i.toFixed(0),c=(a=l.indexOf("e"))>-1?l.slice(a+1):0;c&&(l=l.slice(0,a).replace(".",""),l+=w.call(Array(c-(l.length-1)+1),"0"));var s=void 0;if(0!==o){var u=l.length;if(u<=o)l=w.call(Array(o+1-u+1),"0")+l,u=o+1;var d=l.substring(0,u-o),f=l.substring(u-o,l.length);l=d+"."+f,s=d.length}else s=l.length;for(var p=n-r;p>0&&"0"===l.slice(-1);)l=l.slice(0,-1),p--;("."===l.slice(-1)&&(l=l.slice(0,-1)),so;o++){var i=r[o],l={};l.type=i["[[type]]"],l.value=i["[[value]]"],n[a]=l,a+=1}return n}(this,Number(e))}});var ue={arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],deva:["०","१","२","३","४","५","६","७","८","९"],fullwide:["0","1","2","3","4","5","6","7","8","9"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],latn:["0","1","2","3","4","5","6","7","8","9"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"]};m(re.NumberFormat.prototype,"resolvedOptions",{configurable:!0,writable:!0,value:function(){var e=void 0,t=new P,r=["locale","numberingSystem","style","currency","currencyDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping"],n=null!==this&&"object"===d.typeof(this)&&A(this);if(!n||!n["[[initializedNumberFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.");for(var a=0,o=r.length;ac&&(c=p,s=f),u++}return s}(i,x);else{var O=ee(r,"hour12","boolean");i.hour12=void 0===O?w.hour12:O,_=function(e,t){var r=[];for(var n in Pe)h.call(Pe,n)&&void 0!==e["[["+n+"]]"]&&r.push(n);if(1===r.length){var a=function(e,t){var r;if(xe[e]&&xe[e][t])return r={originalPattern:xe[e][t],_:l({},e,t),extendedPattern:"{"+e+"}"},l(r,e,t),l(r,"pattern12","{"+e+"}"),l(r,"pattern","{"+e+"}"),r}(r[0],e["[["+r[0]+"]]"]);if(a)return a}var o=120,i=20,c=8,s=6,u=6,d=3,f=2,p=1,m=-1/0,g=void 0,v=0,y=t.length;for(;v=2||C>=2&&P<=1?k>0?w-=s:k<0&&(w-=c):k>1?w-=d:k<-1&&(w-=u)}}_._.hour12!==e.hour12&&(w-=p),w>m&&(m=w,g=_),v++}return g}(i,x)}for(var j in Pe)if(h.call(Pe,j)&&h.call(_,j)){var D=_[j];D=_._&&h.call(_._,j)?_._[j]:D,n["[["+j+"]]"]=D}var T=void 0,M=ee(r,"hour12","boolean");if(n["[[hour]]"])if(M=void 0===M?w.hour12:M,n["[[hour12]]"]=M,!0===M){var N=w.hourNo0;n["[[hourNo0]]"]=N,T=_.pattern12}else T=_.pattern;else T=_.pattern;n["[[pattern]]"]=T,n["[[boundFormat]]"]=void 0,n["[[initializedDateTimeFormat]]"]=!0,p&&(e.format=ke.call(e));return a(),e}(j(this),e,t):new re.DateTimeFormat(e,t)}m(re,"DateTimeFormat",{configurable:!0,writable:!0,value:Se}),m(Se,"prototype",{writable:!1});var Pe={weekday:["narrow","short","long"],era:["narrow","short","long"],year:["2-digit","numeric"],month:["2-digit","numeric","narrow","short","long"],day:["2-digit","numeric"],hour:["2-digit","numeric"],minute:["2-digit","numeric"],second:["2-digit","numeric"],timeZoneName:["short","long"]};function Ce(e,t,r){if(void 0===e)e=null;else{var n=j(e);for(var a in e=new P,n)e[a]=n[a]}e=g(e);var o=!0;return"date"!==t&&"any"!==t||void 0===e.weekday&&void 0===e.year&&void 0===e.month&&void 0===e.day||(o=!1),"time"!==t&&"any"!==t||void 0===e.hour&&void 0===e.minute&&void 0===e.second||(o=!1),!o||"date"!==r&&"all"!==r||(e.year=e.month=e.day="numeric"),!o||"time"!==r&&"all"!==r||(e.hour=e.minute=e.second="numeric"),e}function ke(){var e=null!==this&&"object"===d.typeof(this)&&A(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===e["[[boundFormat]]"]){var t=O.call((function(){var e=arguments.length<=0||void 0===arguments[0]?void 0:arguments[0];return De(this,void 0===e?Date.now():D(e))}),this);e["[[boundFormat]]"]=t}return e["[[boundFormat]]"]}function je(e,t){if(!isFinite(t))throw new RangeError("Invalid valid date passed to format");var r=e.__getInternalProperties(S);k();for(var n,a,o,i,l=r["[[locale]]"],c=new re.NumberFormat([l],{useGrouping:!1}),s=new re.NumberFormat([l],{minimumIntegerDigits:2,useGrouping:!1}),u=(n=t,r["[[calendar]]"],a=r["[[timeZone]]"],new P({"[[weekday]]":(o=new Date(n))[(i="get"+(a||""))+"Day"](),"[[era]]":+(o[i+"FullYear"]()>=0),"[[year]]":o[i+"FullYear"](),"[[month]]":o[i+"Month"](),"[[day]]":o[i+"Date"](),"[[hour]]":o[i+"Hours"](),"[[minute]]":o[i+"Minutes"](),"[[second]]":o[i+"Seconds"](),"[[inDST]]":!1})),d=r["[[pattern]]"],f=new C,p=0,h=d.indexOf("{"),m=0,b=r["[[dataLocale]]"],g=E.DateTimeFormat["[[localeData]]"][b].calendars,v=r["[[calendar]]"];-1!==h;){var y=void 0;if(-1===(m=d.indexOf("}",h)))throw new Error("Unclosed pattern");h>p&&_.call(f,{type:"literal",value:d.substring(p,h)});var w=d.substring(h+1,m);if(Pe.hasOwnProperty(w)){var x=r["[["+w+"]]"],O=u["[["+w+"]]"];if("year"===w&&O<=0?O=1-O:"month"===w?O++:"hour"===w&&!0===r["[[hour12]]"]&&0===(O%=12)&&!0===r["[[hourNo0]]"]&&(O=12),"numeric"===x)y=le(c,O);else if("2-digit"===x)(y=le(s,O)).length>2&&(y=y.slice(-2));else if(x in Oe)switch(w){case"month":y=Ee(g,v,"months",x,u["[["+w+"]]"]);break;case"weekday":try{y=Ee(g,v,"days",x,u["[["+w+"]]"])}catch(e){throw new Error("Could not find weekday data for locale "+l)}break;case"timeZoneName":y="";break;case"era":try{y=Ee(g,v,"eras",x,u["[["+w+"]]"])}catch(e){throw new Error("Could not find era data for locale "+l)}break;default:y=u["[["+w+"]]"]}_.call(f,{type:w,value:y})}else if("ampm"===w){y=Ee(g,v,"dayPeriods",u["[[hour]]"]>11?"pm":"am",null),_.call(f,{type:"dayPeriod",value:y})}else _.call(f,{type:"literal",value:d.substring(h,m+1)});p=m+1,h=d.indexOf("{",p)}return ma;a++){n+=r[a].value}return n}E.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},m(re.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:O.call((function(e){if(!h.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=k(),r=arguments[1],n=this["[[availableLocales]]"],a=Y(e);return t(),J(n,a,r)}),E.NumberFormat)}),m(re.DateTimeFormat.prototype,"format",{configurable:!0,get:ke}),Object.defineProperty(re.DateTimeFormat.prototype,"formatToParts",{enumerable:!1,writable:!0,configurable:!0,value:function(){var e=arguments.length<=0||void 0===arguments[0]?void 0:arguments[0],t=null!==this&&"object"===d.typeof(this)&&A(this);if(!t||!t["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");return function(e,t){for(var r=je(e,t),n=[],a=0;r.length>a;a++){var o=r[a];n.push({type:o.type,value:o.value})}return n}(this,void 0===e?Date.now():D(e))}}),m(re.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var e=void 0,t=new P,r=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],n=null!==this&&"object"===d.typeof(this)&&A(this);if(!n||!n["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var a=0,o=r.length;a2&&4===a[1].length&&_.call(n,a[0]+"-"+a[2]);for(;r=x.call(n);)_.call(E.NumberFormat["[[availableLocales]]"],r),E.NumberFormat["[[localeData]]"][r]=e.number,e.date&&(e.date.nu=e.number.nu,_.call(E.DateTimeFormat["[[availableLocales]]"],r),E.DateTimeFormat["[[localeData]]"][r]=e.date);void 0===U&&function(e){U=e}(t)}(e,e.locale)}}),m(re,"__disableRegExpRestore",{value:function(){E.disableRegExpRestore=!0}}),e.exports=re},20311:function(e){"use strict";e.exports=function(e,t,r,n,a,o,i,l){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[r,n,a,o,i,l],u=0;(c=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},25966:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CODE_0="Digit0",t.CODE_1="Digit1",t.CODE_2="Digit2",t.CODE_3="Digit3",t.CODE_4="Digit4",t.CODE_5="Digit5",t.CODE_6="Digit6",t.CODE_7="Digit7",t.CODE_8="Digit8",t.CODE_9="Digit9",t.CODE_A="KeyA",t.CODE_ALT_LEFT="AltLeft",t.CODE_ALT_RIGHT="AltRight",t.CODE_B="KeyB",t.CODE_BACK_QUOTE="Backquote",t.CODE_BACK_SLASH="Backslash",t.CODE_BACK_SPACE="Backspace",t.CODE_C="KeyC",t.CODE_CAPS_LOCK="CapsLock",t.CODE_CLOSE_BRACKET="BracketRight",t.CODE_COMMA="Comma",t.CODE_CONTEXT_MENU="ContextMenu",t.CODE_CONTROL_LEFT="ControlLeft",t.CODE_CONTROL_RIGHT="ControlRight",t.CODE_D="KeyD",t.CODE_DASH="Minus",t.CODE_DELETE="Delete",t.CODE_DOWN="ArrowDown",t.CODE_E="KeyE",t.CODE_END="End",t.CODE_ENTER="Enter",t.CODE_EQUALS="Equal",t.CODE_ESCAPE="Escape",t.CODE_F="KeyF",t.CODE_F1="F1",t.CODE_F10="F10",t.CODE_F11="F11",t.CODE_F12="F12",t.CODE_F13="F13",t.CODE_F14="F14",t.CODE_F15="F15",t.CODE_F16="F16",t.CODE_F17="F17",t.CODE_F18="F18",t.CODE_F19="F19",t.CODE_F2="F2",t.CODE_F20="F20",t.CODE_F21="F21",t.CODE_F22="F22",t.CODE_F23="F23",t.CODE_F24="F24",t.CODE_F3="F3",t.CODE_F4="F4",t.CODE_F5="F5",t.CODE_F6="F6",t.CODE_F7="F7",t.CODE_F8="F8",t.CODE_F9="F9",t.CODE_G="KeyG",t.CODE_H="KeyH",t.CODE_HOME="Home",t.CODE_I="KeyI",t.CODE_INSERT="Insert",t.CODE_J="KeyJ",t.CODE_K="KeyK",t.CODE_L="KeyL",t.CODE_LEFT="ArrowLeft",t.CODE_M="KeyM",t.CODE_META_LEFT="MetaLeft",t.CODE_META_RIGHT="MetaRight",t.CODE_MINUS="Minus",t.CODE_N="KeyN",t.CODE_NUMPAD0="Numpad0",t.CODE_NUMPAD1="Numpad1",t.CODE_NUMPAD2="Numpad2",t.CODE_NUMPAD3="Numpad3",t.CODE_NUMPAD4="Numpad4",t.CODE_NUMPAD5="Numpad5",t.CODE_NUMPAD6="Numpad6",t.CODE_NUMPAD7="Numpad7",t.CODE_NUMPAD8="Numpad8",t.CODE_NUMPAD9="Numpad9",t.CODE_NUMPAD_ADD="NumpadAdd",t.CODE_NUMPAD_DECIMAL="NumpadDecimal",t.CODE_NUMPAD_DIVIDE="NumpadDivide",t.CODE_NUMPAD_ENTER="NumpadEnter",t.CODE_NUMPAD_MULTIPLY="NumpadMultiply",t.CODE_NUMPAD_SUBTRACT="NumpadSubtract",t.CODE_NUM_LOCK="NumLock",t.CODE_O="KeyO",t.CODE_OPEN_BRACKET="BracketLeft",t.CODE_OS_LEFT="OSLeft",t.CODE_OS_RIGHT="OSRight",t.CODE_P="KeyP",t.CODE_PAGE_DOWN="PageDown",t.CODE_PAGE_UP="PageUp",t.CODE_PAUSE="Pause",t.CODE_PERIOD="Period",t.CODE_PRINTSCREEN="PrintScreen",t.CODE_Q="KeyQ",t.CODE_QUOTE="Quote",t.CODE_R="KeyR",t.CODE_RETURN="Enter",t.CODE_RIGHT="ArrowRight",t.CODE_S="KeyS",t.CODE_SCROLL_LOCK="ScrollLock",t.CODE_SEMICOLON="Semicolon",t.CODE_SHIFT_LEFT="ShiftLeft",t.CODE_SHIFT_RIGHT="ShiftRight",t.CODE_SLASH="Slash",t.CODE_SPACE="Space",t.CODE_T="KeyT",t.CODE_TAB="Tab",t.CODE_U="KeyU",t.CODE_UNIDENTIFIED="Unidentified",t.CODE_UP="ArrowUp",t.CODE_V="KeyV",t.CODE_W="KeyW",t.CODE_X="KeyX",t.CODE_Y="KeyY",t.CODE_Z="KeyZ",t.KEY_0=48,t.KEY_1=49,t.KEY_2=50,t.KEY_3=51,t.KEY_4=52,t.KEY_5=53,t.KEY_6=54,t.KEY_7=55,t.KEY_8=56,t.KEY_9=57,t.KEY_A=65,t.KEY_ADD=107,t.KEY_ALT=18,t.KEY_B=66,t.KEY_BACK_QUOTE=192,t.KEY_BACK_SLASH=220,t.KEY_BACK_SPACE=8,t.KEY_C=67,t.KEY_CANCEL=3,t.KEY_CAPS_LOCK=20,t.KEY_CLEAR=12,t.KEY_CLOSE_BRACKET=221,t.KEY_COMMA=188,t.KEY_CONTEXT_MENU=93,t.KEY_CONTROL=17,t.KEY_D=68,t.KEY_DASH=189,t.KEY_DECIMAL=110,t.KEY_DELETE=46,t.KEY_DIVIDE=111,t.KEY_DOWN=40,t.KEY_E=69,t.KEY_END=35,t.KEY_EQUALS=187,t.KEY_ESCAPE=27,t.KEY_F=70,t.KEY_F1=112,t.KEY_F10=121,t.KEY_F11=122,t.KEY_F12=123,t.KEY_F13=124,t.KEY_F14=125,t.KEY_F15=126,t.KEY_F16=127,t.KEY_F17=128,t.KEY_F18=129,t.KEY_F19=130,t.KEY_F2=113,t.KEY_F20=131,t.KEY_F21=132,t.KEY_F22=133,t.KEY_F23=134,t.KEY_F24=135,t.KEY_F3=114,t.KEY_F4=115,t.KEY_F5=116,t.KEY_F6=117,t.KEY_F7=118,t.KEY_F8=119,t.KEY_F9=120,t.KEY_FIREFOX_ENTER=14,t.KEY_FIREFOX_EQUALS=61,t.KEY_FIREFOX_META=224,t.KEY_FIREFOX_SEMICOLON=59,t.KEY_FIREFOX_SEPARATOR=108,t.KEY_G=71,t.KEY_H=72,t.KEY_HELP=6,t.KEY_HOME=36,t.KEY_I=73,t.KEY_INSERT=45,t.KEY_J=74,t.KEY_K=75,t.KEY_L=76,t.KEY_LEFT=37,t.KEY_LEFT_CMD=91,t.KEY_M=77,t.KEY_MULTIPLY=106,t.KEY_N=78,t.KEY_NUMPAD0=96,t.KEY_NUMPAD1=97,t.KEY_NUMPAD2=98,t.KEY_NUMPAD3=99,t.KEY_NUMPAD4=100,t.KEY_NUMPAD5=101,t.KEY_NUMPAD6=102,t.KEY_NUMPAD7=103,t.KEY_NUMPAD8=104,t.KEY_NUMPAD9=105,t.KEY_NUM_LOCK=144,t.KEY_O=79,t.KEY_OPEN_BRACKET=219,t.KEY_P=80,t.KEY_PAGE_DOWN=34,t.KEY_PAGE_UP=33,t.KEY_PAUSE=19,t.KEY_PERIOD=190,t.KEY_PRINTSCREEN=44,t.KEY_Q=81,t.KEY_QUOTE=222,t.KEY_R=82,t.KEY_RETURN=13,t.KEY_RIGHT=39,t.KEY_RIGHT_CMD=92,t.KEY_S=83,t.KEY_SCROLL_LOCK=145,t.KEY_SEMICOLON=186,t.KEY_SHIFT=16,t.KEY_SLASH=191,t.KEY_SPACE=32,t.KEY_SUBTRACT=109,t.KEY_T=84,t.KEY_TAB=9,t.KEY_U=85,t.KEY_UP=38,t.KEY_V=86,t.KEY_W=87,t.KEY_X=88,t.KEY_Y=89,t.KEY_Z=90,t.VALUE_0="0",t.VALUE_1="1",t.VALUE_2="2",t.VALUE_3="3",t.VALUE_4="4",t.VALUE_5="5",t.VALUE_6="6",t.VALUE_7="7",t.VALUE_8="8",t.VALUE_9="9",t.VALUE_A="a",t.VALUE_ADD="+",t.VALUE_ALT="Alt",t.VALUE_B="b",t.VALUE_BACK_QUOTE="`",t.VALUE_BACK_SLASH="\\",t.VALUE_BACK_SPACE="Backspace",t.VALUE_C="c",t.VALUE_CANCEL="Cancel",t.VALUE_CAPS_LOCK="CapsLock",t.VALUE_CLEAR="Clear",t.VALUE_CLOSE_BRACKET="]",t.VALUE_COMMA=",",t.VALUE_CONTEXT_MENU="ContextMenu",t.VALUE_CONTROL="Control",t.VALUE_D="d",t.VALUE_DASH="-",t.VALUE_DECIMAL=".",t.VALUE_DELETE="Delete",t.VALUE_DIVIDE="/",t.VALUE_DOWN="ArrowDown",t.VALUE_E="e",t.VALUE_END="End",t.VALUE_ENTER="Enter",t.VALUE_EQUALS="=",t.VALUE_ESCAPE="Escape",t.VALUE_F="f",t.VALUE_F1="F1",t.VALUE_F10="F10",t.VALUE_F11="F11",t.VALUE_F12="F12",t.VALUE_F13="F13",t.VALUE_F14="F14",t.VALUE_F15="F15",t.VALUE_F16="F16",t.VALUE_F17="F17",t.VALUE_F18="F18",t.VALUE_F19="F19",t.VALUE_F2="F2",t.VALUE_F20="F20",t.VALUE_F21="F21",t.VALUE_F22="F22",t.VALUE_F23="F23",t.VALUE_F24="F24",t.VALUE_F3="F3",t.VALUE_F4="F4",t.VALUE_F5="F5",t.VALUE_F6="F6",t.VALUE_F7="F7",t.VALUE_F8="F8",t.VALUE_F9="F9",t.VALUE_G="g",t.VALUE_H="h",t.VALUE_HELP="Help",t.VALUE_HOME="Home",t.VALUE_I="i",t.VALUE_INSERT="Insert",t.VALUE_J="j",t.VALUE_K="k",t.VALUE_L="l",t.VALUE_LEFT="ArrowLeft",t.VALUE_LEFT_CMD="Meta",t.VALUE_M="m",t.VALUE_META="Meta",t.VALUE_MULTIPLY="*",t.VALUE_N="n",t.VALUE_NUMPAD0="0",t.VALUE_NUMPAD1="1",t.VALUE_NUMPAD2="2",t.VALUE_NUMPAD3="3",t.VALUE_NUMPAD4="4",t.VALUE_NUMPAD5="5",t.VALUE_NUMPAD6="6",t.VALUE_NUMPAD7="7",t.VALUE_NUMPAD8="8",t.VALUE_NUMPAD9="9",t.VALUE_NUM_LOCK="NumLock",t.VALUE_O="o",t.VALUE_OPEN_BRACKET="[",t.VALUE_P="p",t.VALUE_PAGE_DOWN="PageDown",t.VALUE_PAGE_UP="PageUp",t.VALUE_PAUSE="Pause",t.VALUE_PERIOD=".",t.VALUE_PRINTSCREEN="PrintScreen",t.VALUE_Q="q",t.VALUE_QUOTE="'",t.VALUE_R="r",t.VALUE_RETURN="Enter",t.VALUE_RIGHT="ArrowRight",t.VALUE_RIGHT_CMD="Meta",t.VALUE_S="s",t.VALUE_SCROLL_LOCK="ScrollLock",t.VALUE_SEMICOLON=";",t.VALUE_SHIFT="Shift",t.VALUE_SLASH="/",t.VALUE_SPACE=" ",t.VALUE_SUBTRACT="-",t.VALUE_T="t",t.VALUE_TAB="Tab",t.VALUE_U="u",t.VALUE_UP="ArrowUp",t.VALUE_V="v",t.VALUE_W="w",t.VALUE_X="x",t.VALUE_Y="y",t.VALUE_Z="z"},20181:function(e,t,r){var n=NaN,a="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt,u="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,f=u||d||Function("return this")(),p=Object.prototype.toString,h=Math.max,m=Math.min,b=function(){return f.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==a}(e))return n;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var r=l.test(e);return r||c.test(e)?s(e.slice(2),r?2:8):i.test(e)?n:+e}e.exports=function(e,t,r){var n,a,o,i,l,c,s=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,o=a;return n=a=void 0,s=t,i=e.apply(o,r)}function y(e){var r=e-c;return void 0===c||r>=t||r<0||d&&e-s>=o}function _(){var e=b();if(y(e))return w(e);l=setTimeout(_,function(e){var r=t-(e-c);return d?m(r,o-(e-s)):r}(e))}function w(e){return l=void 0,f&&n?p(e):(n=a=void 0,i)}function x(){var e=b(),r=y(e);if(n=arguments,a=this,c=e,r){if(void 0===l)return function(e){return s=e,l=setTimeout(_,t),u?p(e):i}(c);if(d)return l=setTimeout(_,t),p(c)}return void 0===l&&(l=setTimeout(_,t)),i}return t=v(t)||0,g(r)&&(u=!!r.leading,o=(d="maxWait"in r)?h(v(r.maxWait)||0,t):o,f="trailing"in r?!!r.trailing:f),x.cancel=function(){void 0!==l&&clearTimeout(l),s=0,n=c=a=l=void 0},x.flush=function(){return void 0===l?i:w(b())},x}},72704:function(e,t,r){var n=1/0,a="[object Symbol]",o="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,i="object"==typeof self&&self&&self.Object===Object&&self,l=o||i||Function("return this")(),c=Object.prototype,s=0,u=c.toString,d=l.Symbol,f=d?d.prototype:void 0,p=f?f.toString:void 0;function h(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&u.call(e)==a}(e))return p?p.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}e.exports=function(e){var t,r=++s;return(null==(t=e)?"":h(t))+r}},8250:function(e){"use strict";var t=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function r(e,r){if(e.length!==r.length)return!1;for(var n=0;n=p&&(t.push(r({type:"childList",target:n,addedNodes:[s],removedNodes:[s],nextSibling:s.nextSibling,previousSibling:s.previousSibling})),c--),l.b&&d.b&&a(t,s,d.b,l.f),l.a&&3===s.nodeType&&s.nodeValue!==d.a&&t.push(r({type:"characterData",target:s,oldValue:d.a})),l.g&&u(s,d)}function u(n,o){for(var f,p,h,m,b,g=n.childNodes,v=o.c,y=g.length,_=v?v.length:0,w=0,x=0,O=0;xe.width||o.img.naturalHeight>e.height?e.style.backgroundSize="contain":e.style.backgroundSize="auto"})):e.style.backgroundSize=n["object-fit"].replace("none","auto").replace("fill","100% 100%"),f(o.img,(function(t){d(e,t.naturalWidth,t.naturalHeight)}))}function h(e,r){var n=!u&&!e;if(r=r||{},e=e||"img",o&&!r.skipTest||!i)return!1;"img"===e?e=document.getElementsByTagName("img"):"string"==typeof e?e=document.querySelectorAll(e):"length"in e||(e=[e]);for(var a=0;a0&&e[r-1]===t?e:e.concat(t)};function p(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===t.indexOf(n)&&(r[n]=e[n]);return r}var h=function(e){function t(){for(var t=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];e.apply(this,r),c(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var r=e.theme?function(e,t){var r=e.plain,n=Object.create(null),a=e.styles.reduce((function(e,r){var n=r.languages,a=r.style;return n&&!n.includes(t)||r.types.forEach((function(t){var r=s({},e[t],a);e[t]=r})),e}),n);return a.root=r,a.plain=s({},r,{backgroundColor:null}),a}(e.theme,e.language):void 0;return t.themeDict=r})),c(this,"getLineProps",(function(e){var r=e.key,n=e.className,a=e.style,o=s({},p(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),i=t.getThemeDict(t.props);return void 0!==i&&(o.style=i.plain),void 0!==a&&(o.style=void 0!==o.style?s({},o.style,a):a),void 0!==r&&(o.key=r),n&&(o.className+=" "+n),o})),c(this,"getStyleForToken",(function(e){var r=e.types,n=e.empty,a=r.length,o=t.getThemeDict(t.props);if(void 0!==o){if(1===a&&"plain"===r[0])return n?{display:"inline-block"}:void 0;if(1===a&&!n)return o[r[0]];var i=n?{display:"inline-block"}:{},l=r.map((function(e){return o[e]}));return Object.assign.apply(Object,[i].concat(l))}})),c(this,"getTokenProps",(function(e){var r=e.key,n=e.className,a=e.style,o=e.token,i=s({},p(e,["key","className","style","token"]),{className:"token "+o.types.join(" "),children:o.content,style:t.getStyleForToken(o),key:void 0});return void 0!==a&&(i.style=void 0!==i.style?s({},i.style,a):a),void 0!==r&&(i.key=r),n&&(i.className+=" "+n),i})),c(this,"tokenize",(function(e,t,r,n){var a={code:t,grammar:r,language:n,tokens:[]};e.hooks.run("before-tokenize",a);var o=a.tokens=e.tokenize(a.code,a.grammar,a.language);return e.hooks.run("after-tokenize",a),o}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,r=e.language,n=e.code,a=e.children,o=this.getThemeDict(this.props),i=t.languages[r];return a({tokens:function(e){for(var t=[[]],r=[e],n=[0],a=[e.length],o=0,i=0,l=[],c=[l];i>-1;){for(;(o=n[i]++)0?p:["plain"],s=h):(p=f(p,h.type),h.alias&&(p=f(p,h.alias)),s=h.content),"string"==typeof s){var m=s.split(u),b=m.length;l.push({types:p,content:m[0]});for(var g=1;g=d.reach);O+=x.value.length,x=x.next){var E=x.value;if(t.length>e.length)return;if(!(E instanceof a)){var S,P=1;if(v){if(!(S=o(w,O,e,g))||S.index>=e.length)break;var C=S.index,k=S.index+S[0].length,j=O;for(j+=x.value.length;C>=j;)j+=(x=x.next).value.length;if(O=j-=x.value.length,x.value instanceof a)continue;for(var D=x;D!==t.tail&&(jd.reach&&(d.reach=N);var I=x.prev;if(A&&(I=c(t,I,A),O+=A.length),s(t,I,P),x=c(t,I,new a(f,b?n.tokenize(T,b):T,y,T)),M&&c(t,x,M),P>1){var R={cause:f+","+h,reach:N};i(e,t,r,x.prev,O,R),d&&R.reach>d.reach&&(d.reach=R.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,r){var n=t.next,a={value:r,prev:t,next:n};return t.next=a,n.prev=a,e.length++,a}function s(e,t,r){for(var n=t.next,a=0;a"+o.content+""},n}(),r=t;t.default=t,r.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:a},r.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=n.variable[1].inside,i=0;i]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.c=r.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),r.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),r.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},r.languages.c.string],char:r.languages.c.char,comment:r.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:r.languages.c}}}}),r.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete r.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,(function(){return r}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(r),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var r=e.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}(r),function(e){var t,r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+r.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[r,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var n={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,number:a})}(r),r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(e){var t=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:r}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(r),function(e){var t=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,n="(?:"+r.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var r=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return n})).replace(/<>/g,(function(){return e}));return RegExp(r,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return n}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return n})).replace(/<>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(r),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(e){return e=e.replace(//g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return n})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(n),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(r){t!==r&&(e.languages.markdown[t].inside.content.inside[r]=e.languages.markdown[r])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var r=0,n=t.length;r",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(r),r.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:r.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},r.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),r=0;r0)){var l=f(/^\{$/,/^\}$/);if(-1===l)continue;for(var c=r;c=0&&p(s,"variable-input")}}}}function u(e){return t[r+e]}function d(e,t){t=t||0;for(var r=0;r?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],r=t.pattern.source,n=t.inside.interpolation,a=n.inside["interpolation-punctuation"],o=n.pattern.source;function i(t,n){if(e.languages[t])return{pattern:RegExp("((?:"+n+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function l(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function c(t,r,n){var a={code:t,grammar:r,language:n};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(a.code,a.grammar),e.hooks.run("after-tokenize",a),a.tokens}function s(t){var r={};r["interpolation-punctuation"]=a;var o=e.tokenize(t,r);if(3===o.length){var i=[1,1];i.push.apply(i,c(o[1],e.languages.javascript,"javascript")),o.splice.apply(o,i)}return new e.Token("interpolation",o,n.alias,t)}function u(t,r,n){var a=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),i=0,u={},d=c(a.map((function(e){if("string"==typeof e)return e;for(var r,a=e.content;-1!==t.indexOf(r=l(i++,n)););return u[r]=a,r})).join(""),r,n),f=Object.keys(u);return i=0,function e(t){for(var r=0;r=f.length)return;var n=t[r];if("string"==typeof n||"string"==typeof n.content){var a=f[i],o="string"==typeof n?n:n.content,l=o.indexOf(a);if(-1!==l){++i;var c=o.substring(0,l),d=s(u[a]),p=o.substring(l+a.length),h=[];if(c&&h.push(c),h.push(d),p){var m=[p];e(m),h.push.apply(h,m)}"string"==typeof n?(t.splice.apply(t,[r,1].concat(h)),r+=h.length-1):n.content=h}}else{var b=n.content;Array.isArray(b)?e(b):e([b])}}}(d),new e.Token(n,d,"language-"+n,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function f(e){return"string"==typeof e?e:Array.isArray(e)?e.map(f).join(""):f(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in d&&function t(r){for(var n=0,a=r.length;n]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(r),function(e){function t(e,t){return RegExp(e.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],n=0;n*\.{3}(?:[^{}]|)*\})/.source;function o(e,t){return e=e.replace(//g,(function(){return r})).replace(//g,(function(){return n})).replace(//g,(function(){return a})),RegExp(e,t)}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(i).join(""):""},l=function(t){for(var r=[],n=0;n0&&r[r.length-1].tagName===i(a.content[0].content[1])&&r.pop():"/>"===a.content[a.content.length-1].content||r.push({tagName:i(a.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===a.type&&"{"===a.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?r[r.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&r.length>0&&0===r[r.length-1].openedBraces){var c=i(a);n0&&("string"==typeof t[n-1]||"plain-text"===t[n-1].type)&&(c=i(t[n-1])+c,t.splice(n-1,1),n--),t[n]=new e.Token("plain-text",c,null,c)}a.content&&"string"!=typeof a.content&&l(a.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||l(e.tokens)}))}(r),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(r){var n=t[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),"diff"===r&&a.push("bold"),e.languages.diff[r]={pattern:RegExp("^(?:["+n+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(r),r.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},r.languages.go=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),r.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete r.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,n,a,o){if(r.language===n){var i=r.tokenStack=[];r.code=r.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,l=i.length;-1!==r.code.indexOf(a=t(n,l));)++l;return i[l]=e,a})),r.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(r,n){if(r.language===n&&r.tokenStack){r.grammar=e.languages[n];var a=0,o=Object.keys(r.tokenStack);!function i(l){for(var c=0;c=o.length);c++){var s=l[c];if("string"==typeof s||s.content&&"string"==typeof s.content){var u=o[a],d=r.tokenStack[u],f="string"==typeof s?s:s.content,p=t(n,u),h=f.indexOf(p);if(h>-1){++a;var m=f.substring(0,h),b=new e.Token(n,e.tokenize(d,r.grammar),"language-"+n,d),g=f.substring(h+p.length),v=[];m&&v.push.apply(v,i([m])),v.push(b),g&&v.push.apply(v,i([g])),"string"==typeof s?l.splice.apply(l,[c,1].concat(v)):s.content=v}}else s.content&&i(s.content)}return l}(r.tokens)}}}})}(r),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(r),r.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},r.languages.webmanifest=r.languages.json,r.languages.less=r.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),r.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),r.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},r.languages.objectivec=r.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete r.languages.objectivec["class-name"],r.languages.objc=r.languages.objectivec,r.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},r.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},r.languages.python["string-interpolation"].inside.interpolation.inside.rest=r.languages.python,r.languages.py=r.languages.python,r.languages.reason=r.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),r.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete r.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:r,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(r),r.languages.scss=r.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),r.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),r.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),r.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),r.languages.scss.atrule.inside.rest=r.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},n={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};n.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:n}},n.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:n}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:n}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:n}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:n}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:n.interpolation}},rest:n}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:n.interpolation,comment:n.comment,punctuation:/[{},]/}},func:n.func,string:n.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:n.interpolation,punctuation:/[{}()\[\];:.]/}}(r),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var r=e.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(r),r.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/},e.exports=r},83728:function(e){"use strict";e.exports={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]}},86158:function(e,t,r){!function(){"use strict";function e(e){var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){return t.reject(r)}))}))}function t(e){return new this((function(t,r){function n(e,r){if(r&&("object"==typeof r||"function"==typeof r)){var i=r.then;if("function"==typeof i)return void i.call(r,(function(t){n(e,t)}),(function(r){a[e]={status:"rejected",reason:r},0==--o&&t(a)}))}a[e]={status:"fulfilled",value:r},0==--o&&t(a)}if(!e||"undefined"==typeof e.length)return r(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);for(var o=a.length,i=0;a.length>i;i++)n(i,a[i])}))}function n(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}function a(e){var t=this;return new t((function(r,a){if(!e||"undefined"==typeof e.length)return a(new TypeError("Promise.any accepts an array"));var o=Array.prototype.slice.call(e);if(0===o.length)return a();for(var i=[],l=0;o.length>l;l++)try{t.resolve(o[l]).then(r).catch((function(e){i.push(e),i.length===o.length&&a(new n(i,"All promises were rejected"))}))}catch(e){a(e)}}))}function o(e){return!(!e||"undefined"==typeof e.length)}function i(){}function l(e){if(!(this instanceof l))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function c(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,l._immediateFn((function(){var r=1===e._state?t.onFulfilled:t.onRejected;if(null!==r){var n;try{n=r(e._value)}catch(e){return void u(t.promise,e)}s(t.promise,n)}else(1===e._state?s:u)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof l)return e._state=3,e._value=t,void d(e);if("function"==typeof r)return void f(function(e,t){return function(){e.apply(t,arguments)}}(r,t),e)}e._state=1,e._value=t,d(e)}catch(t){u(e,t)}}function u(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&l._immediateFn((function(){e._handled||l._unhandledRejectionFn(e._value)}));for(var t=0,r=e._deferreds.length;r>t;t++)c(e,e._deferreds[t]);e._deferreds=null}function f(e,t){var r=!1;try{e((function(e){r||(r=!0,s(t,e))}),(function(e){r||(r=!0,u(t,e))}))}catch(e){if(r)return;r=!0,u(t,e)}}n.prototype=Error.prototype;var p=setTimeout;l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){var r=new this.constructor(i);return c(this,new function(e,t,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=r}(e,t,r)),r},l.prototype.finally=e,l.all=function(e){return new l((function(t,r){function n(e,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var l=o.then;if("function"==typeof l)return void l.call(o,(function(t){n(e,t)}),r)}a[e]=o,0==--i&&t(a)}catch(e){r(e)}}if(!o(e))return r(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);for(var i=a.length,l=0;a.length>l;l++)n(l,a[l])}))},l.any=a,l.allSettled=t,l.resolve=function(e){return e&&"object"==typeof e&&e.constructor===l?e:new l((function(t){t(e)}))},l.reject=function(e){return new l((function(t,r){r(e)}))},l.race=function(e){return new l((function(t,r){if(!o(e))return r(new TypeError("Promise.race accepts an array"));for(var n=0,a=e.length;a>n;n++)l.resolve(e[n]).then(t,r)}))},l._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){p(e,0)},l._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var h=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof r.g)return r.g;throw Error("unable to locate global object")}();"function"!=typeof h.Promise?h.Promise=l:(h.Promise.prototype.finally||(h.Promise.prototype.finally=e),h.Promise.allSettled||(h.Promise.allSettled=t),h.Promise.any||(h.Promise.any=a))}()},2694:function(e,t,r){"use strict";var n=r(6925);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,i){if(i!==n){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint: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:o,resetWarningCache:a};return r.PropTypes=r,r}},5556:function(e,t,r){e.exports=r(2694)()},6925:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},36444:function(e){"use strict";e.exports=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,a=new Array(n),o=0;o");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}i(t,e);var r=t.prototype;return r.componentDidMount=function(){this.unbind=g(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(e){if(!(e instanceof _))throw e;this.setState({})},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t}(o.Component),O=function(e){return e+1},E=function(e,t){var r=e.droppableId===t.droppableId,n=O(e.index),a=O(t.index);return r?"\n You have moved the item from position "+n+"\n to position "+a+"\n ":"\n You have moved the item from position "+n+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+a+"\n "},S=function(e,t,r){return t.droppableId===r.droppableId?"\n The item "+e+"\n has been combined with "+r.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+r.draggableId+"\n in list "+r.droppableId+"\n "},P=function(e){return"\n The item has returned to its starting position\n of "+O(e.index)+"\n"},C="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",k=function(e){return"\n You have lifted an item in position "+O(e.source.index)+"\n"},j=function(e){var t=e.destination;if(t)return E(e.source,t);var r=e.combine;return r?S(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},D=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+P(e.source)+"\n ";var t=e.destination,r=e.combine;return t?"\n You have dropped the item.\n "+E(e.source,t)+"\n ":r?"\n You have dropped the item.\n "+S(e.draggableId,e.source,r)+"\n ":"\n The item has been dropped while not over a drop area.\n "+P(e.source)+"\n "},T={x:0,y:0},A=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},M=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},N=function(e,t){return e.x===t.x&&e.y===t.y},I=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},R=function(e,t,r){var n;return void 0===r&&(r=0),(n={})[e]=t,n["x"===e?"y":"x"]=r,n},F=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},L=function(e,t){return Math.min.apply(Math,t.map((function(t){return F(e,t)})))},z=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},B=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},U=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},H=function(e,t){return t&&t.shouldClipSubject?function(e,t){var r=d.getRect({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}(t.pageMarginBox,e):d.getRect(e)},W=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,a=e.frame,o=function(e,t){return t?B(e,t.scroll.diff.displacement):e}(t.marginBox,a),i=function(e,t,r){var n;return r&&r.increasedBy?l({},e,((n={})[t.end]=e[t.end]+r.increasedBy[t.line],n)):e}(o,n,r);return{page:t,withPlaceholder:r,active:H(i,a)}},G=function(e,t){e.frame||w(!1);var r=e.frame,n=M(t,r.scroll.initial),a=I(n),o=l({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:a},max:r.scroll.max}}),i=W({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return l({},e,{frame:o,subject:i})};function V(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function q(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;re.bottom,l=n.lefte.right;return!(!i||!l)||(i&&o||l&&a)}},se=function(e){var t=le(e.top,e.bottom),r=le(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)}},ue={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},de={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},fe=function(e){var t=e.target,r=e.destination,n=e.viewport,a=e.withDroppableDisplacement,o=e.isVisibleThroughFrameFn,i=a?function(e,t){var r=t.frame?t.frame.scroll.diff.displacement:T;return B(e,r)}(t,r):t;return function(e,t,r){return!!t.subject.active&&r(t.subject.active)(e)}(i,r,o)&&function(e,t,r){return r(t)(e)}(i,n,o)},pe=function(e){return fe(l({},e,{isVisibleThroughFrameFn:ce}))},he=function(e){return fe(l({},e,{isVisibleThroughFrameFn:se}))},me=function(e,t,r){if("boolean"==typeof r)return r;if(!t)return!0;var n=t.invisible,a=t.visible;if(n[e])return!1;var o=a[e];return!o||o.shouldAnimate};function be(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,a=e.viewport,o=e.forceShouldAnimate,i=e.last;return t.reduce((function(e,t){var l=function(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return d.getRect(d.expand(r,n))}(t,n),c=t.descriptor.id;if(e.all.push(c),!pe({target:l,destination:r,viewport:a,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var s={draggableId:c,shouldAnimate:me(c,i,o)};return e.visible[c]=s,e}),{all:[],visible:{},invisible:{}})}function ge(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,a=e.destination,o=function(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:oe,displacedBy:n,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:o}}}}function ve(e){var t=e.draggable,r=e.insideDestination,n=e.destination,a=e.viewport,o=e.displacedBy,i=e.last,l=e.index,c=e.forceShouldAnimate,s=ne(t,n);if(null==l)return ge({insideDestination:r,inHomeList:s,displacedBy:o,destination:n});var u=K(r,(function(e){return e.descriptor.index===l}));if(!u)return ge({insideDestination:r,inHomeList:s,displacedBy:o,destination:n});var d=re(t,r),f=r.indexOf(u);return{displaced:be({afterDragging:d.slice(f),destination:n,displacedBy:o,last:i,viewport:a.frame,forceShouldAnimate:c}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function ye(e,t){return Boolean(t.effected[e])}var _e=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,a=e.draggables,o=e.destination,i=e.insideDestination,l=e.previousImpact,c=e.viewport,s=e.afterCritical,u=l.at;if(u||w(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,a=e.location;if(!n.length)return null;var o=a.index,i=t?o+1:o-1,l=n[0].descriptor.index,c=n[n.length-1].descriptor.index;return i(r?c:c+1)?null:i}({isMovingForward:t,isInHomeList:r,location:u.destination,insideDestination:i});return null==d?null:ve({draggable:n,insideDestination:i,destination:o,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,r=e.destination,n=e.draggables,a=e.combine,o=e.afterCritical;if(!r.isCombineEnabled)return null;var i=a.draggableId,l=n[i].descriptor.index;return ye(i,o)?t?l:l-1:t?l+1:l}({isMovingForward:t,destination:o,displaced:l.displaced,draggables:a,combine:u.combine,afterCritical:s});return null==f?null:ve({draggable:n,insideDestination:i,destination:o,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:f})},we=function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,a=te(r);a||w(!1);var o=a.draggableId,i=n[o].page.borderBox.center,l=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,a=e.displacedBy,o=Boolean(t.visible[n]||t.invisible[n]);return ye(n,r)?o?T:I(a.point):o?a.point:T}({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return A(i,l)},xe=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Oe=function(e,t,r){return t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2},Ee=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return R(t.line,r.marginBox[t.end]+xe(t,n),Oe(t,r.marginBox,n))},Se=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return R(t.line,r.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,n),Oe(t,r.marginBox,n))},Pe=function(e){var t=e.impact,r=e.draggable,n=e.draggables,a=e.droppable,o=e.afterCritical,i=J(a.descriptor.id,n),l=r.page,c=a.axis;if(!i.length)return function(e){var t=e.axis,r=e.moveInto,n=e.isMoving;return R(t.line,r.contentBox[t.start]+xe(t,n),Oe(t,r.contentBox,n))}({axis:c,moveInto:a.page,isMoving:l});var s=t.displaced,u=t.displacedBy,f=s.all[0];if(f){var p=n[f];if(ye(f,o))return Se({axis:c,moveRelativeTo:p.page,isMoving:l});var h=d.offset(p.page,u.point);return Se({axis:c,moveRelativeTo:h,isMoving:l})}var m=i[i.length-1];if(m.descriptor.id===r.descriptor.id)return l.borderBox.center;if(ye(m.descriptor.id,o)){var b=d.offset(m.page,I(o.displacedBy.point));return Ee({axis:c,moveRelativeTo:b,isMoving:l})}return Ee({axis:c,moveRelativeTo:m.page,isMoving:l})},Ce=function(e,t){var r=e.frame;return r?A(t,r.scroll.diff.displacement):t},ke=function(e){var t=function(e){var t=e.impact,r=e.draggable,n=e.droppable,a=e.draggables,o=e.afterCritical,i=r.page.borderBox.center,l=t.at;return n&&l?"REORDER"===l.type?Pe({impact:t,draggable:r,draggables:a,droppable:n,afterCritical:o}):we({impact:t,draggables:a,afterCritical:o}):i}(e),r=e.droppable;return r?Ce(r,t):t},je=function(e,t){var r=M(t,e.scroll.initial),n=I(r);return{frame:d.getRect({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function De(e,t){return e.map((function(e){return t[e]}))}var Te=function(e){var t=e.pageBorderBoxCenter,r=e.draggable,n=function(e,t){return A(e.scroll.diff.displacement,t)}(e.viewport,t),a=M(n,r.page.borderBox.center);return A(r.client.borderBox.center,a)},Ae=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,a=e.viewport,o=e.withDroppableDisplacement,i=e.onlyOnMainAxis,c=void 0!==i&&i,s=M(n,t.page.borderBox.center),u={target:B(t.page.borderBox,s),destination:r,withDroppableDisplacement:o,viewport:a};return c?function(e){return fe(l({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var r=le(e.top,e.bottom),n=le(e.left,e.right);return function(e){return t===ue?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)}})}));var t}(u):he(u)},Me=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,a=e.draggables,o=e.previousImpact,i=e.viewport,c=e.previousPageBorderBoxCenter,s=e.previousClientSelection,u=e.afterCritical;if(!n.isEnabled)return null;var d=J(n.descriptor.id,a),f=ne(r,n),p=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,a=e.insideDestination,o=e.previousImpact;if(!n.isCombineEnabled)return null;if(!ee(o))return null;function i(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return l({},o,{at:t})}var c=o.displaced.all,s=c.length?c[0]:null;if(t)return s?i(s):null;var u=re(r,a);if(!s)return u.length?i(u[u.length-1].descriptor.id):null;var d=q(u,(function(e){return e.descriptor.id===s}));-1===d&&w(!1);var f=d-1;return f<0?null:i(u[f].descriptor.id)}({isMovingForward:t,draggable:r,destination:n,insideDestination:d,previousImpact:o})||_e({isMovingForward:t,isInHomeList:f,draggable:r,draggables:a,destination:n,insideDestination:d,previousImpact:o,viewport:i,afterCritical:u});if(!p)return null;var h=ke({impact:p,draggable:r,droppable:n,draggables:a,afterCritical:u});if(Ae({draggable:r,destination:n,newPageBorderBoxCenter:h,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Te({pageBorderBoxCenter:h,draggable:r,viewport:i}),impact:p,scrollJumpRequest:null};var m=M(h,c),b=function(e){var t=e.impact,r=e.viewport,n=e.destination,a=e.draggables,o=e.maxScrollChange,i=je(r,A(r.scroll.current,o)),c=n.frame?G(n,A(n.frame.scroll.current,o)):n,s=t.displaced,u=be({afterDragging:De(s.all,a),destination:n,displacedBy:t.displacedBy,viewport:i.frame,last:s,forceShouldAnimate:!1}),d=be({afterDragging:De(s.all,a),destination:c,displacedBy:t.displacedBy,viewport:r.frame,last:s,forceShouldAnimate:!1}),f={},p={},h=[s,u,d];return s.all.forEach((function(e){var t=function(e,t){for(var r=0;r1?u.sort((function(e,t){return Ne(e)[l.start]-Ne(t)[l.start]}))[0]:s.sort((function(e,t){var n=L(r,U(Ne(e))),a=L(r,U(Ne(t)));return n!==a?n-a:Ne(e)[l.start]-Ne(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:r,source:a,droppables:i,viewport:l});if(!s)return null;var u=J(s.descriptor.id,o),d=function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,a=e.insideDestination,o=e.afterCritical,i=a.filter((function(e){return he({target:Re(e,o),destination:n,viewport:r.frame,withDroppableDisplacement:!0})})).sort((function(e,r){var a=F(t,Ce(n,Ie(e,o))),i=F(t,Ce(n,Ie(r,o)));return an.left&&r.topn.top))return!1;if(Ge(a)(t.center))return!0;var o=e.axis,i=a.center[o.crossAxisLine],l=t[o.crossAxisStart],c=t[o.crossAxisEnd],s=le(a[o.crossAxisStart],a[o.crossAxisEnd]),u=s(l),d=s(c);return!u&&!d||(u?li)}));return a.length?1===a.length?a[0].descriptor.id:function(e){var t=e.pageBorderBox,r=e.draggable,n=e.candidates,a=r.page.borderBox.center,o=n.map((function(e){var r=e.axis,n=R(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:F(a,n)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:r,candidates:a}):null}var qe=function(e,t){return d.getRect(B(e,t))};function Ke(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}var Ye=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,a=e.droppables,o=e.previousImpact,i=e.viewport,l=e.afterCritical,c=qe(r.page.borderBox,t),s=Ve({pageBorderBox:c,draggable:r,droppables:a});if(!s)return ie;var u=a[s],d=J(u.descriptor.id,n),f=function(e,t){var r=e.frame;return r?qe(t,r.scroll.diff.value):t}(u,c);return function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,a=e.destination,o=e.insideDestination,i=e.afterCritical;if(!a.isCombineEnabled)return null;var l=a.axis,c=Fe(a.axis,t.displaceBy),s=c.value,u=r[l.start],d=r[l.end],f=K(re(t,o),(function(e){var t=e.descriptor.id,r=e.page.borderBox,a=r[l.size]/4,o=ye(t,i),c=Ke({displaced:n.displaced,id:t});return o?c?d>r[l.start]+a&&dr[l.start]-s+a&&ur[l.start]+s+a&&dr[l.start]+a&&ut.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:K(re(r,a),(function(e){var t=e.descriptor.id,r=e.page.borderBox.center[c.line],n=ye(t,l),a=Ke({displaced:o,id:t});return n?a?f<=r:d=1500)return Mt;var o=At+Nt*(a/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))}({current:a.current.client.offset,destination:g,reason:o});r(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:g,dropDuration:y,completed:v}))}else r(xt({completed:v}))}}else r(function(e){return{type:"DROP_PENDING",payload:e}}({reason:o}))}else e(n)}}},Rt=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ft(e){var t=e.onWindowScroll;var r=p((function(){t(Rt())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(r),a=b;function o(){return a!==b}return{start:function(){o()&&w(!1),a=g(window,[n])},stop:function(){o()||w(!1),r.cancel(),a(),a=b},isActive:o}}var Lt=function(e){var t=Ft({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(r){t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r)&&t.stop(),e(r)}}},zt=function(){var e=[];return{add:function(t){var r=setTimeout((function(){return function(t){var r=q(e,(function(e){return e.timerId===t}));-1===r&&w(!1),e.splice(r,1)[0].callback()}(r)})),n={timerId:r,callback:t};e.push(n)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Bt=function(e,t){rt(),t(),nt()},Ut=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Ht=function(e,t,r,n){if(e){var a=function(e){var t=!1,r=!1,n=setTimeout((function(){r=!0})),a=function(a){t||r||(t=!0,e(a),clearTimeout(n))};return a.wasCalled=function(){return t},a}(r);e(t,{announce:a}),a.wasCalled()||r(n(t))}else r(n(t))},Wt=function(e,t){var r=function(e,t){var r=zt(),n=null,a=function(r){n||w(!1),n=null,Bt(0,(function(){return Ht(e().onDragEnd,r,t,D)}))};return{beforeCapture:function(t,r){n&&w(!1),Bt(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:function(t,r){n&&w(!1),Bt(0,(function(){var n=e().onBeforeDragStart;n&&n(Ut(t,r))}))},start:function(a,o){n&&w(!1);var i=Ut(a,o);n={mode:o,lastCritical:a,lastLocation:i.source,lastCombine:null},r.add((function(){Bt(0,(function(){return Ht(e().onDragStart,i,t,k)}))}))},update:function(a,o){var i=ee(o),c=te(o);n||w(!1);var s=!function(e,t){if(e===t)return!0;var r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n}(a,n.lastCritical);s&&(n.lastCritical=a);var u,d,f=(d=i,!(null==(u=n.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));f&&(n.lastLocation=i);var p=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(n.lastCombine,c);if(p&&(n.lastCombine=c),s||f||p){var h=l({},Ut(a,n.mode),{combine:c,destination:i});r.add((function(){Bt(0,(function(){return Ht(e().onDragUpdate,h,t,j)}))}))}},flush:function(){n||w(!1),r.flush()},drop:a,abort:function(){if(n){var e=l({},Ut(n.lastCritical,n.mode),{combine:null,destination:null,reason:"CANCEL"});a(e)}}}}(e,t);return function(e){return function(t){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var a=n.payload.critical;return r.beforeStart(a,n.payload.movementMode),t(n),void r.start(a,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var o=n.payload.completed.result;return r.flush(),t(n),void r.drop(o)}if(t(n),"FLUSH"!==n.type){var i=e.getState();"DRAGGING"===i.phase&&r.update(i.critical,i.impact)}else r.abort()}else r.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Gt=function(e){return function(t){return function(r){if("DROP_ANIMATION_FINISHED"===r.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&w(!1),e.dispatch(xt({completed:n.completed}))}else t(r)}}},Vt=function(e){var t=null,r=null;return function(n){return function(a){if("FLUSH"!==a.type&&"DROP_COMPLETE"!==a.type&&"DROP_ANIMATION_FINISHED"!==a.type||(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(a),"DROP_ANIMATE"===a.type){var o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame((function(){r=null,t=g(window,[o])}))}}}},qt=function(e){return function(t){return function(r){if(t(r),"PUBLISH_WHILE_DRAGGING"===r.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(Ot({reason:n.reason})))}}}},Kt=c.compose,Yt=function(e){var t,r=e.dimensionMarshal,n=e.focusMarshal,a=e.styleMarshal,o=e.getResponders,i=e.announce,l=e.autoScroller;return c.createStore(st,Kt(c.applyMiddleware((t=a,function(){return function(e){return function(r){"INITIAL_PUBLISH"===r.type&&t.dragging(),"DROP_ANIMATE"===r.type&&t.dropping(r.payload.completed.result.reason),"FLUSH"!==r.type&&"DROP_COMPLETE"!==r.type||t.resting(),e(r)}}}),function(e){return function(){return function(t){return function(r){"DROP_COMPLETE"!==r.type&&"FLUSH"!==r.type&&"DROP_ANIMATE"!==r.type||e.stopPublishing(),t(r)}}}}(r),function(e){return function(t){var r=t.getState,n=t.dispatch;return function(t){return function(a){if("LIFT"===a.type){var o=a.payload,i=o.id,l=o.clientSelection,c=o.movementMode,s=r();"DROP_ANIMATING"===s.phase&&n(xt({completed:s.completed})),"IDLE"!==r().phase&&w(!1),n(wt()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:c}});var u={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===c}},d=e.startPublishing(u),f=d.critical,p=d.dimensions,h=d.viewport;n({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:p,clientSelection:l,movementMode:c,viewport:h}})}else t(a)}}}}(r),It,Gt,Vt,qt,function(e){return function(t){return function(r){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void r(n);if("INITIAL_PUBLISH"===n.type){r(n);var a=t.getState();return"DRAGGING"!==a.phase&&w(!1),void e.start(a)}r(n),e.scroll(t.getState())}}}}(l),Lt,function(e){var t=!1;return function(){return function(r){return function(n){if("INITIAL_PUBLISH"===n.type)return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if("FLUSH"===n.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){t=!1;var a=n.payload.completed.result;a.combine&&e.tryShiftRecord(a.draggableId,a.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),Wt(o,i))))};var $t=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,a=e.width,o=M({x:r,y:t},{x:a,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},Xt=function(){var e=document.documentElement;return e||w(!1),e},Zt=function(){var e=Xt();return $t({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Qt=function(e){var t=e.critical,r=e.scrollOptions,n=e.registry;rt();var a=function(){var e=Rt(),t=Zt(),r=e.y,n=e.x,a=Xt(),o=n+a.clientWidth,i=r+a.clientHeight;return{frame:d.getRect({top:r,left:n,right:o,bottom:i}),scroll:{initial:e,current:e,max:t,diff:{value:T,displacement:T}}}}(),o=a.scroll.current,i=t.droppable,l=n.droppable.getAllByType(i.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(o,r)})),c=n.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(o)})),s={draggables:X(c),droppables:$(l)};return nt(),{dimensions:s,critical:t,viewport:a}};function Jt(e,t,r){return r.descriptor.id!==t.id&&(r.descriptor.type===t.type&&"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode)}var er,tr,rr=function(e,t){var r=null,n=function(e){var t=e.registry,r=e.callbacks,n={additions:{},removals:{},modified:{}},a=null,o=function(){a||(r.collectionStarting(),a=requestAnimationFrame((function(){a=null,rt();var e=n,o=e.additions,i=e.removals,l=e.modified,c=Object.keys(o).map((function(e){return t.draggable.getById(e).getDimension(T)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),s=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:c,removals:Object.keys(i),modified:s};n={additions:{},removals:{},modified:{}},nt(),r.publish(u)})))};return{add:function(e){var t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],o()},remove:function(e){var t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],o()},stop:function(){a&&(cancelAnimationFrame(a),a=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),a=function(t){r||w(!1);var a=r.critical.draggable;"ADDITION"===t.type&&Jt(e,a,t.value)&&n.add(t.value),"REMOVAL"===t.type&&Jt(e,a,t.value)&&n.remove(t.value)},o={updateDroppableIsEnabled:function(n,a){e.droppable.exists(n)||w(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:a})},updateDroppableIsCombineEnabled:function(n,a){r&&(e.droppable.exists(n)||w(!1),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:a}))},scrollDroppable:function(t,n){r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:function(n,a){r&&(e.droppable.exists(n)||w(!1),t.updateDroppableScroll({id:n,newScroll:a}))},startPublishing:function(t){r&&w(!1);var n=e.draggable.getById(t.draggableId),o=e.droppable.getById(n.descriptor.droppableId),i={draggable:n.descriptor,droppable:o.descriptor},l=e.subscribe(a);return r={critical:i,unsubscribe:l},Qt({critical:i,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(r){n.stop();var t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),r.unsubscribe(),r=null}}};return o},nr=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},ar=function(e){window.scrollBy(e.x,e.y)},or=f((function(e){return Z(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),ir=function(e){var t=e.center,r=e.destination,n=e.droppables;if(r){var a=n[r];return a.frame?a:null}var o=function(e,t){var r=K(or(t),(function(t){return t.frame||w(!1),Ge(t.frame.pageMarginBox)(e)}));return r}(t,n);return o},lr=.25,cr=.05,sr=28,ur=function(e){return Math.pow(e,2)},dr={stopDampeningAt:1200,accelerateAt:360},fr=function(e){var t=e.startOfRange,r=e.endOfRange,n=e.current,a=r-t;return 0===a?0:(n-t)/a},pr=dr.accelerateAt,hr=dr.stopDampeningAt,mr=function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,a=e.shouldUseTimeDampening,o=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return sr;if(e===t.startScrollingFrom)return 1;var r=fr({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=sr*ur(1-r);return Math.ceil(n)}(t,r);return 0===o?0:a?Math.max(function(e,t){var r=t,n=hr,a=Date.now()-r;if(a>=hr)return e;if(at.height,o=r.width>t.width;return o||a?o&&a?null:{x:o?0:n.x,y:a?0:n.y}:n}({container:r,subject:n,proposedScroll:s});return u?N(u,T)?null:u:null},yr=z((function(e){return 0===e?0:e>0?1:-1})),_r=(er=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,r=e.max,n=e.change,a=A(t,n),o={x:er(a.x,r.x),y:er(a.y,r.y)};return N(o,T)?null:o}),wr=function(e){var t=e.max,r=e.current,n=e.change,a={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},o=yr(n),i=_r({max:a,current:r,change:o});return!i||(0!==o.x&&0===i.x||0!==o.y&&0===i.y)},xr=function(e,t){return wr({current:e.scroll.current,max:e.scroll.max,change:t})},Or=function(e,t){var r=e.frame;return!!r&&wr({current:r.scroll.current,max:r.scroll.max,change:t})},Er=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,a=e.scrollWindow,o=e.scrollDroppable,i=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var c=function(e){var t=e.viewport,r=e.subject,n=e.center,a=e.dragStartTime,o=e.shouldUseTimeDampening,i=vr({dragStartTime:a,container:t.frame,subject:r,center:n,shouldUseTimeDampening:o});return i&&xr(t,i)?i:null}({dragStartTime:r,viewport:t.viewport,subject:l,center:i,shouldUseTimeDampening:n});if(c)return void a(c)}var s=ir({center:i,destination:Ue(t.impact),droppables:t.dimensions.droppables});if(s){var u=function(e){var t=e.droppable,r=e.subject,n=e.center,a=e.dragStartTime,o=e.shouldUseTimeDampening,i=t.frame;if(!i)return null;var l=vr({dragStartTime:a,container:i.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:o});return l&&Or(t,l)?l:null}({dragStartTime:r,droppable:s,subject:l,center:i,shouldUseTimeDampening:n});u&&o(s.descriptor.id,u)}},Sr=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow,a=function(e,t){if(!Or(e,t))return t;var n=function(e,t){var r=e.frame;return r&&Or(e,t)?_r({current:r.scroll.current,max:r.scroll.max,change:t}):null}(e,t);if(!n)return r(e.descriptor.id,t),null;var a=M(t,n);return r(e.descriptor.id,a),M(t,a)},o=function(e,t,r){if(!e)return r;if(!xr(t,r))return r;var a=function(e,t){if(!xr(e,t))return null;var r=e.scroll.max,n=e.scroll.current;return _r({current:n,max:r,change:t})}(t,r);if(!a)return n(r),null;var o=M(r,a);return n(o),M(r,o)};return function(e){var r=e.scrollJumpRequest;if(r){var n=Ue(e.impact);n||w(!1);var i=a(e.dimensions.droppables[n],r);if(i){var l=e.viewport,c=o(e.isWindowScrollAllowed,l,i);c&&function(e,r){var n=A(e.current.client.selection,r);t({client:n})}(e,c)}}}},Pr=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,a=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=p(t),a=p(r),o=null,i=function(e){o||w(!1);var t=o,r=t.shouldUseTimeDampening,i=t.dragStartTime;Er({state:e,scrollWindow:n,scrollDroppable:a,dragStartTime:i,shouldUseTimeDampening:r})};return{start:function(e){rt(),o&&w(!1);var t=Date.now(),r=!1,n=function(){r=!0};Er({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),o={dragStartTime:t,shouldUseTimeDampening:r},nt(),r&&i(e)},stop:function(){o&&(n.cancel(),a.cancel(),o=null)},scroll:i}}({scrollWindow:r,scrollDroppable:t}),o=Sr({move:n,scrollWindow:r,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&o(e):a.scroll(e))},start:a.start,stop:a.stop}},Cr="data-rbd",kr={base:tr=Cr+"-drag-handle",draggableId:tr+"-draggable-id",contextId:tr+"-context-id"},jr=function(){var e=Cr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Dr=function(){var e=Cr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Tr={contextId:Cr+"-scroll-container-context-id"},Ar=function(e,t){return e.map((function(e){var r=e.styles[t];return r?e.selector+" { "+r+" }":""})).join(" ")},Mr=function(e){var t,r,n,a=(t=e,function(e){return"["+e+'="'+t+'"]'}),o=(r="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:a(kr.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:r,dragging:"pointer-events: none;",dropAnimating:r}}),i=[(n="\n transition: "+jt.outOfTheWay+";\n ",{selector:a(jr.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),o,{selector:a(Dr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Ar(i,"always"),resting:Ar(i,"resting"),dragging:Ar(i,"dragging"),dropAnimating:Ar(i,"dropAnimating"),userCancel:Ar(i,"userCancel")}},Nr="undefined"!=typeof window&&"undefined"!=typeof window.document&&"undefined"!=typeof window.document.createElement?a.useLayoutEffect:a.useEffect,Ir=function(){var e=document.querySelector("head");return e||w(!1),e},Rr=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Fr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Lr(e){return e instanceof Fr(e).HTMLElement}function zr(e,t){var r="["+kr.contextId+'="'+e+'"]',n=Y(document.querySelectorAll(r));if(!n.length)return null;var a=K(n,(function(e){return e.getAttribute(kr.draggableId)===t}));return a&&Lr(a)?a:null}function Br(){var e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach((function(t){return t(e)}))}function n(t){return e.draggables[t]||null}function a(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:function(t,r){var n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var a=t.descriptor.id,o=n(a);o&&t.uniqueId===o.uniqueId&&(delete e.draggables[a],r({type:"REMOVAL",value:t}))},getById:function(e){var t=n(e);return t||w(!1),t},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(t){return V(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var r=a(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=a(e);return t||w(!1),t},findById:a,exists:function(e){return Boolean(a(e))},getAllByType:function(t){return V(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Ur=o.createContext(null),Hr=function(){var e=document.body;return e||w(!1),e},Wr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Gr=function(e){return"rbd-announcement-"+e};var Vr=0,qr={separator:"::"};function Kr(e,t){return void 0===t&&(t=qr),u.useMemo((function(){return""+e+t.separator+Vr++}),[t.separator,e])}var Yr=o.createContext(null);function $r(e){0}function Xr(e,t){$r()}function Zr(e){var t=a.useRef(e);return a.useEffect((function(){t.current=e})),t}var Qr,Jr=27,en=32,tn=37,rn=38,nn=39,an=40,on=((Qr={})[13]=!0,Qr[9]=!0,Qr),ln=function(e){on[e.keyCode]&&e.preventDefault()},cn=function(){var e="visibilitychange";return"undefined"==typeof document?e:K([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),sn=0,un=5;var dn,fn={type:"IDLE"};function pn(e){var t=e.cancel,r=e.completed,n=e.getPhase,a=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,r=e.clientX,o=e.clientY;if(t===sn){var i={x:r,y:o},l=n();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(i);"PENDING"!==l.type&&w(!1);var c=l.point;if(s=c,u=i,Math.abs(u.x-s.x)>=un||Math.abs(u.y-s.y)>=un){var s,u;e.preventDefault();var d=l.actions.fluidLift(i);a({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var a=n();"DRAGGING"===a.type?(e.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return e.keyCode===Jr?(e.preventDefault(),void t()):void ln(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var r=n();"IDLE"===r.type&&w(!1),r.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:cn,fn:t}]}function hn(e){var t=a.useRef(fn),r=a.useRef(b),n=u.useMemo((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&t.button===sn&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var a=e.tryGetLock(n,l,{sourceEvent:t});if(a){t.preventDefault();var o={x:t.clientX,y:t.clientY};r.current(),d(a,o)}}}}}}),[e]),o=u.useMemo((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}}}}),[e]),i=u.useCallback((function(){r.current=g(window,[o,n],{passive:!1,capture:!0})}),[o,n]),l=u.useCallback((function(){"IDLE"!==t.current.type&&(t.current=fn,r.current(),i())}),[i]),c=u.useCallback((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),s=u.useCallback((function(){var e=pn({cancel:c,completed:l,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});r.current=g(window,e,{capture:!0,passive:!1})}),[c,l]),d=u.useCallback((function(e,r){"IDLE"!==t.current.type&&w(!1),t.current={type:"PENDING",point:r,actions:e},s()}),[s]);Nr((function(){return i(),function(){r.current()}}),[i])}function mn(){}var bn=((dn={})[34]=!0,dn[33]=!0,dn[36]=!0,dn[35]=!0,dn);function gn(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:function(n){return n.keyCode===Jr?(n.preventDefault(),void r()):n.keyCode===en?(n.preventDefault(),t(),void e.drop()):n.keyCode===an?(n.preventDefault(),void e.moveDown()):n.keyCode===rn?(n.preventDefault(),void e.moveUp()):n.keyCode===nn?(n.preventDefault(),void e.moveRight()):n.keyCode===tn?(n.preventDefault(),void e.moveLeft()):void(bn[n.keyCode]?n.preventDefault():ln(n))}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:cn,fn:r}]}function vn(e){var t=a.useRef(mn),r=u.useMemo((function(){return{eventName:"keydown",fn:function(r){if(!r.defaultPrevented&&r.keyCode===en){var a=e.findClosestDraggableId(r);if(a){var o=e.tryGetLock(a,c,{sourceEvent:r});if(o){r.preventDefault();var i=!0,l=o.snapLift();t.current(),t.current=g(window,gn(l,c),{capture:!0,passive:!1})}}}function c(){i||w(!1),i=!1,t.current(),n()}}}}),[e]),n=u.useCallback((function(){t.current=g(window,[r],{passive:!1,capture:!0})}),[r]);Nr((function(){return n(),function(){t.current()}}),[n])}var yn={type:"IDLE"},_n=.15;function wn(e){var t=a.useRef(yn),r=a.useRef(b),n=u.useCallback((function(){return t.current}),[]),o=u.useCallback((function(e){t.current=e}),[]),i=u.useMemo((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var a=e.tryGetLock(n,c,{sourceEvent:t});if(a){var o=t.touches[0],i={x:o.clientX,y:o.clientY};r.current(),p(a,i)}}}}}}),[e]),l=u.useCallback((function(){r.current=g(window,[i],{capture:!0,passive:!1})}),[i]),c=u.useCallback((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(yn),r.current(),l())}),[l,o]),s=u.useCallback((function(){var e=t.current;c(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[c]),d=u.useCallback((function(){var e={capture:!0,passive:!1},t={cancel:s,completed:c,getPhase:n},a=g(window,function(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var r=n();if("DRAGGING"===r.type){r.hasMoved=!0;var a=e.touches[0],o={x:a.clientX,y:a.clientY};e.preventDefault(),r.actions.move(o)}else t()}},{eventName:"touchend",fn:function(e){var a=n();"DRAGGING"===a.type?(e.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var r=n();"IDLE"===r.type&&w(!1);var a=e.touches[0];if(a&&a.force>=_n){var o=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return o?r.hasMoved?void e.preventDefault():void t():void e.preventDefault();o&&t()}}},{eventName:cn,fn:t}]}(t),e),o=g(window,function(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===r().type?(e.keyCode===Jr&&e.preventDefault(),t()):t()}},{eventName:cn,fn:t}]}(t),e);r.current=function(){a(),o()}}),[s,n,c]),f=u.useCallback((function(){var e=n();"PENDING"!==e.type&&w(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[n,o]),p=u.useCallback((function(e,t){"IDLE"!==n().type&&w(!1);var r=setTimeout(f,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:r}),d()}),[d,n,o,f]);Nr((function(){return l(),function(){r.current();var e=n();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(yn))}}),[n,l,o]),Nr((function(){return g(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}var xn={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function On(e,t){if(null==t)return!1;if(Boolean(xn[t.tagName.toLowerCase()]))return!0;var r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&On(e,t.parentElement)}function En(e,t){var r=t.target;return!!Lr(r)&&On(e,r)}var Sn=function(e){return d.getRect(e.getBoundingClientRect()).center};var Pn=function(){var e="matches";return"undefined"==typeof document?e:K([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function Cn(e,t){return null==e?null:e[Pn](t)?e:Cn(e.parentElement,t)}function kn(e,t){return e.closest?e.closest(t):Cn(e,t)}function jn(e,t){var r,n=t.target;if(!((r=n)instanceof Fr(r).Element))return null;var a=function(e){return"["+kr.contextId+'="'+e+'"]'}(e),o=kn(n,a);return o&&Lr(o)?o:null}function Dn(e){e.preventDefault()}function Tn(e){var t=e.expected,r=e.phase,n=e.isLockActive;e.shouldWarn;return!!n()&&t===r}function An(e){var t=e.lockAPI,r=e.store,n=e.registry,a=e.draggableId;if(t.isClaimed())return!1;var o=n.draggable.findById(a);return!!o&&(!!o.options.isEnabled&&!!nr(r.getState(),a))}function Mn(e){var t=e.lockAPI,r=e.contextId,n=e.store,a=e.registry,o=e.draggableId,i=e.forceSensorStop,c=e.sourceEvent;if(!An({lockAPI:t,store:n,registry:a,draggableId:o}))return null;var s=a.draggable.getById(o),u=function(e,t){var r="["+jr.contextId+'="'+e+'"]',n=K(Y(document.querySelectorAll(r)),(function(e){return e.getAttribute(jr.id)===t}));return n&&Lr(n)?n:null}(r,s.descriptor.id);if(!u)return null;if(c&&!s.options.canDragInteractiveElements&&En(u,c))return null;var d=t.claim(i||b),f="PRE_DRAG";function h(){return s.options.shouldRespectForcePress}function m(){return t.isActive(d)}var v=function(e,t){Tn({expected:e,phase:f,isLockActive:m,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function y(e){function r(){t.release(),f="COMPLETED"}function a(t,a){if(void 0===a&&(a={shouldBlockNextClick:!1}),e.cleanup(),a.shouldBlockNextClick){var o=g(window,[{eventName:"click",fn:Dn,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(o)}r(),n.dispatch(Ot({reason:t}))}return"PRE_DRAG"!==f&&(r(),"PRE_DRAG"!==f&&w(!1)),n.dispatch(ut(e.liftActionArgs)),f="DRAGGING",l({isActive:function(){return Tn({expected:"DRAGGING",phase:f,isLockActive:m,shouldWarn:!1})},shouldRespectForcePress:h,drop:function(e){return a("DROP",e)},cancel:function(e){return a("CANCEL",e)}},e.actions)}return{isActive:function(){return Tn({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!1})},shouldRespectForcePress:h,fluidLift:function(e){var t=p((function(e){v((function(){return bt({client:e})}))})),r=y({liftActionArgs:{id:o,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return l({},r,{move:t})},snapLift:function(){var e={moveUp:function(){return v(gt)},moveRight:function(){return v(yt)},moveDown:function(){return v(vt)},moveLeft:function(){return v(_t)}};return y({liftActionArgs:{id:o,clientSelection:Sn(u),movementMode:"SNAP"},cleanup:b,actions:e})},abort:function(){Tn({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!0})&&t.release()}}}var Nn=[hn,vn,wn];function In(e){var t=e.contextId,r=e.store,n=e.registry,o=e.customSensors,i=e.enableDefaultSensors,l=[].concat(i?Nn:[],o||[]),c=a.useState((function(){return function(){var e=null;function t(){e||w(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&w(!1);var r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],s=u.useCallback((function(e,t){e.isDragging&&!t.isDragging&&c.tryAbandon()}),[c]);Nr((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();s(e,t),e=t}))}),[c,r,s]),Nr((function(){return c.tryAbandon}),[c.tryAbandon]);var d=u.useCallback((function(e){return An({lockAPI:c,registry:n,store:r,draggableId:e})}),[c,n,r]),f=u.useCallback((function(e,a,o){return Mn({lockAPI:c,registry:n,contextId:t,store:r,draggableId:e,forceSensorStop:a,sourceEvent:o&&o.sourceEvent?o.sourceEvent:null})}),[t,c,n,r]),p=u.useCallback((function(e){return function(e,t){var r=jn(e,t);return r?r.getAttribute(kr.draggableId):null}(t,e)}),[t]),h=u.useCallback((function(e){var t=n.draggable.findById(e);return t?t.options:null}),[n.draggable]),m=u.useCallback((function(){c.isClaimed()&&(c.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(wt()))}),[c,r]),b=u.useCallback(c.isClaimed,[c]),g=u.useMemo((function(){return{canGetLock:d,tryGetLock:f,findClosestDraggableId:p,findOptionsForDraggable:h,tryReleaseLock:m,isLockClaimed:b}}),[d,f,p,h,m,b]);$r();for(var v=0;v