From 29d1805c2c577185d9e82ad9cbaa499b8504cb76 Mon Sep 17 00:00:00 2001 From: Ian Vexler Date: Mon, 4 Mar 2024 16:35:36 +0000 Subject: [PATCH] More feedback changes --- dist/components/header/Header.d.ts.map | 2 +- dist/components/nav/Nav.d.ts | 2 +- dist/components/nav/Nav.d.ts.map | 2 +- dist/components/nav/components/NavItem.d.ts | 3 +- .../nav/components/NavItem.d.ts.map | 2 +- .../components/SearchBarInput.d.ts.map | 2 +- dist/index.css | 92 ++- dist/index.es.css | 92 ++- dist/index.es.js | 14 +- dist/index.es.js.map | 2 +- dist/index.js | 662 +++++++++++++++++- dist/index.js.map | 2 +- dist/index.min.css | 92 ++- dist/index.min.js | 12 +- dist/index.min.js.map | 2 +- example/components/MainNav.tsx | 5 +- scss/App.scss | 24 +- src/components/breadcrumbs/Breadcrumbs.scss | 14 +- src/components/breadcrumbs/Breadcrumbs.tsx | 4 +- .../breadcrumbs/components/BreadcrumbItem.tsx | 4 +- src/components/header/Header.scss | 23 +- src/components/header/Header.tsx | 6 +- .../components/dropdown/DropdownToggle.tsx | 2 +- src/components/list/components/ListRow.tsx | 2 +- src/components/nav/Nav.scss | 29 + src/components/nav/Nav.tsx | 10 +- src/components/nav/components/NavItem.tsx | 39 +- src/components/searchBar/SearchBar.scss | 1 + .../searchBar/components/SearchBarInput.tsx | 6 +- src/components/sideNavbar/SideNavbar.scss | 1 - src/components/sideNavbar/SideNavbar.tsx | 2 +- src/components/title/Title.scss | 1 + src/components/title/Title.tsx | 2 +- 33 files changed, 1022 insertions(+), 136 deletions(-) diff --git a/dist/components/header/Header.d.ts.map b/dist/components/header/Header.d.ts.map index 0b38e5c..c2297b3 100644 --- a/dist/components/header/Header.d.ts.map +++ b/dist/components/header/Header.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAU,MAAM,iBAAiB,CAAC;AAEtD,MAAM,WAAW,WAAY,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,MAAM;4BAA2B,WAAW;;;;;;;;CAUjD,CAAC;AAKF,eAAe,MAAM,CAAC"} \ No newline at end of file +{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAU,MAAM,iBAAiB,CAAC;AAEtD,MAAM,WAAW,WAAY,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,MAAM;4BAA2B,WAAW;;;;;;;;CAYjD,CAAC;AAKF,eAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/dist/components/nav/Nav.d.ts b/dist/components/nav/Nav.d.ts index 99c9653..98b4817 100644 --- a/dist/components/nav/Nav.d.ts +++ b/dist/components/nav/Nav.d.ts @@ -6,7 +6,7 @@ export interface NavProps extends BootstrapNavProps { } declare const Nav: { ({ navLink, className, children, ...rest }: NavProps): React.JSX.Element; - Item: ({ route, icon, children }: import("./components/NavItem").NavItemProps) => React.JSX.Element; + Item: ({ route, icon, text, children }: import("./components/NavItem").NavItemProps) => React.JSX.Element; }; export default Nav; //# sourceMappingURL=Nav.d.ts.map \ No newline at end of file diff --git a/dist/components/nav/Nav.d.ts.map b/dist/components/nav/Nav.d.ts.map index da7dd4d..7a7e96a 100644 --- a/dist/components/nav/Nav.d.ts.map +++ b/dist/components/nav/Nav.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Nav.d.ts","sourceRoot":"","sources":["../../../src/components/nav/Nav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAEL,QAAQ,IAAI,iBAAiB,EAC9B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,QAAS,SAAQ,iBAAiB;IACjD,OAAO,EAAE,OAAO,OAAO,CAAC;CACzB;AAED,QAAA,MAAM,GAAG;gDAA+C,QAAQ;;CAW/D,CAAC;AAIF,eAAe,GAAG,CAAC"} \ No newline at end of file +{"version":3,"file":"Nav.d.ts","sourceRoot":"","sources":["../../../src/components/nav/Nav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAEL,QAAQ,IAAI,iBAAiB,EAC9B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,QAAS,SAAQ,iBAAiB;IACjD,OAAO,EAAE,OAAO,OAAO,CAAC;CACzB;AAED,QAAA,MAAM,GAAG;gDAA+C,QAAQ;;CAmB/D,CAAC;AAIF,eAAe,GAAG,CAAC"} \ No newline at end of file diff --git a/dist/components/nav/components/NavItem.d.ts b/dist/components/nav/components/NavItem.d.ts index 81fc5fc..d761a89 100644 --- a/dist/components/nav/components/NavItem.d.ts +++ b/dist/components/nav/components/NavItem.d.ts @@ -3,7 +3,8 @@ import { TexmoIcons } from 'types'; export interface NavItemProps extends React.HTMLProps { route: string; icon?: TexmoIcons; + text: string; } -declare const NavItem: ({ route, icon, children }: NavItemProps) => React.JSX.Element; +declare const NavItem: ({ route, icon, text, children }: NavItemProps) => React.JSX.Element; export default NavItem; //# sourceMappingURL=NavItem.d.ts.map \ No newline at end of file diff --git a/dist/components/nav/components/NavItem.d.ts.map b/dist/components/nav/components/NavItem.d.ts.map index 3621f7a..e74a128 100644 --- a/dist/components/nav/components/NavItem.d.ts.map +++ b/dist/components/nav/components/NavItem.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/nav/components/NavItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,QAAA,MAAM,OAAO,8BAA+B,YAAY,sBA0BvD,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file +{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/nav/components/NavItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,OAAO,oCAAqC,YAAY,sBA+B7D,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/components/searchBar/components/SearchBarInput.d.ts.map b/dist/components/searchBar/components/SearchBarInput.d.ts.map index b226de8..5e3ee90 100644 --- a/dist/components/searchBar/components/SearchBarInput.d.ts.map +++ b/dist/components/searchBar/components/SearchBarInput.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"SearchBarInput.d.ts","sourceRoot":"","sources":["../../../../src/components/searchBar/components/SearchBarInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAe,MAAM,iBAAiB,CAAC;AAEhE,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;CAAG;AAEhE,QAAA,MAAM,cAAc,2BAA4B,mBAAmB,sBAElE,CAAC;AAEF,eAAe,cAAc,CAAC"} \ No newline at end of file +{"version":3,"file":"SearchBarInput.d.ts","sourceRoot":"","sources":["../../../../src/components/searchBar/components/SearchBarInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAe,MAAM,iBAAiB,CAAC;AAEhE,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;CAAG;AAEhE,QAAA,MAAM,cAAc,2BAA4B,mBAAmB,sBAMlE,CAAC;AAEF,eAAe,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/index.css b/dist/index.css index f402144..ec6bd9d 100644 --- a/dist/index.css +++ b/dist/index.css @@ -974,11 +974,11 @@ h1, .h1 { max-height: 80px; max-width: 260px; width: auto; - margin: 20px 0 20px 10px; + margin: 1.5rem; } @media (min-width: 1024px) { .logo { - margin: 30px 0 30px 40px; + margin: 2.5rem; } } @@ -1018,6 +1018,12 @@ a.card-link { .page-header { width: 100%; + margin-top: 45px; +} +@media (max-width: 768px) { + .page-header { + margin-top: 26px; + } } .page-header-column { @@ -1028,10 +1034,6 @@ a.card-link { justify-content: flex-end; } -.topbar-item { - border-left: var(--texmo-bg-secondary-borders) 1px solid !important; -} - .Toastify__toast-container--top-center { top: 0; } @@ -1081,6 +1083,15 @@ a.card-link { background-color: var(--texmo-bg-primary); } +.tooltip-inner { + background-color: #424244 !important; + color: white; +} + +.tooltip.bs-tooltip-end .tooltip-arrow::before, .tooltip.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before { + border-right-color: #424244 !important; +} + :root { --texmo-primary-color: #6A955B; --texmo-text-color: #424244; @@ -13109,6 +13120,7 @@ textarea.form-control-lg { } .title { + font-size: 1.4rem; font-weight: 600; } @@ -13166,18 +13178,32 @@ textarea.form-control-lg { .header-container { background: var(--texmo-bg-primary); - border-top: var(--texmo-bg-secondary-borders) solid 1px; - border-left: var(--texmo-bg-secondary-borders) solid 1px; - min-height: 50px; + height: 54px; +} + +.header-container::before { + content: ""; + display: block; + position: absolute; + width: 4px; + height: 100%; + background: linear-gradient(to right, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0)); + top: 0; + pointer-events: none; } .user-toggle.dropdown-toggle::after { display: none !important; } +.topbar-item { + height: 100%; + font-size: 1.2rem; + border-left: var(--texmo-bg-secondary-borders) 1px solid !important; +} + .side-navbar { background-color: var(--texmo-bg-primary); - border-top: var(--texmo-bg-secondary-borders) solid 1px; width: 120px; } @@ -13256,12 +13282,26 @@ textarea.form-control-lg { .input-group .search-input { border-right: 0; + height: 46px; } .search-input-group { min-width: 120px; } +.topbar-item:hover { + background-color: #e0e0e0; +} + +.nav-item-menu-icon { + display: block; +} +@media (max-width: 768px) { + .nav-item-menu-icon { + display: none; + } +} + @media (max-width: 768px) { .nav-item-icon { font-size: calc(2.8rem + 1.5vw) !important; @@ -13272,16 +13312,44 @@ textarea.form-control-lg { box-shadow: none !important; } +.nav-menu { + height: 54px; +} + +.sidenav-item { + border-bottom: #ccc 1px solid; +} + +.sidenav-link { + padding-top: 15px; + padding-bottom: 15px; +} + +.nav-link { + border-radius: 0px !important; +} + +.breadcrumbs-container { + font-size: 1rem; +} @media (max-width: 768px) { .breadcrumbs-container { display: none !important; } } -a.breadcrumb-item { +.breadcrumb-item { color: var(--texmo-text-color); } a.breadcrumb-item:hover { - text-decoration: underline; + text-decoration: none; +} + +.breadcrumb-active { + font-weight: 600; +} + +.breadcrumb-inactive { + font-weight: 300; } \ No newline at end of file diff --git a/dist/index.es.css b/dist/index.es.css index f402144..ec6bd9d 100644 --- a/dist/index.es.css +++ b/dist/index.es.css @@ -974,11 +974,11 @@ h1, .h1 { max-height: 80px; max-width: 260px; width: auto; - margin: 20px 0 20px 10px; + margin: 1.5rem; } @media (min-width: 1024px) { .logo { - margin: 30px 0 30px 40px; + margin: 2.5rem; } } @@ -1018,6 +1018,12 @@ a.card-link { .page-header { width: 100%; + margin-top: 45px; +} +@media (max-width: 768px) { + .page-header { + margin-top: 26px; + } } .page-header-column { @@ -1028,10 +1034,6 @@ a.card-link { justify-content: flex-end; } -.topbar-item { - border-left: var(--texmo-bg-secondary-borders) 1px solid !important; -} - .Toastify__toast-container--top-center { top: 0; } @@ -1081,6 +1083,15 @@ a.card-link { background-color: var(--texmo-bg-primary); } +.tooltip-inner { + background-color: #424244 !important; + color: white; +} + +.tooltip.bs-tooltip-end .tooltip-arrow::before, .tooltip.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before { + border-right-color: #424244 !important; +} + :root { --texmo-primary-color: #6A955B; --texmo-text-color: #424244; @@ -13109,6 +13120,7 @@ textarea.form-control-lg { } .title { + font-size: 1.4rem; font-weight: 600; } @@ -13166,18 +13178,32 @@ textarea.form-control-lg { .header-container { background: var(--texmo-bg-primary); - border-top: var(--texmo-bg-secondary-borders) solid 1px; - border-left: var(--texmo-bg-secondary-borders) solid 1px; - min-height: 50px; + height: 54px; +} + +.header-container::before { + content: ""; + display: block; + position: absolute; + width: 4px; + height: 100%; + background: linear-gradient(to right, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0)); + top: 0; + pointer-events: none; } .user-toggle.dropdown-toggle::after { display: none !important; } +.topbar-item { + height: 100%; + font-size: 1.2rem; + border-left: var(--texmo-bg-secondary-borders) 1px solid !important; +} + .side-navbar { background-color: var(--texmo-bg-primary); - border-top: var(--texmo-bg-secondary-borders) solid 1px; width: 120px; } @@ -13256,12 +13282,26 @@ textarea.form-control-lg { .input-group .search-input { border-right: 0; + height: 46px; } .search-input-group { min-width: 120px; } +.topbar-item:hover { + background-color: #e0e0e0; +} + +.nav-item-menu-icon { + display: block; +} +@media (max-width: 768px) { + .nav-item-menu-icon { + display: none; + } +} + @media (max-width: 768px) { .nav-item-icon { font-size: calc(2.8rem + 1.5vw) !important; @@ -13272,16 +13312,44 @@ textarea.form-control-lg { box-shadow: none !important; } +.nav-menu { + height: 54px; +} + +.sidenav-item { + border-bottom: #ccc 1px solid; +} + +.sidenav-link { + padding-top: 15px; + padding-bottom: 15px; +} + +.nav-link { + border-radius: 0px !important; +} + +.breadcrumbs-container { + font-size: 1rem; +} @media (max-width: 768px) { .breadcrumbs-container { display: none !important; } } -a.breadcrumb-item { +.breadcrumb-item { color: var(--texmo-text-color); } a.breadcrumb-item:hover { - text-decoration: underline; + text-decoration: none; +} + +.breadcrumb-active { + font-weight: 600; +} + +.breadcrumb-inactive { + font-weight: 300; } \ No newline at end of file diff --git a/dist/index.es.js b/dist/index.es.js index 290d215..f341d7e 100644 --- a/dist/index.es.js +++ b/dist/index.es.js @@ -1,9 +1,9 @@ -import*as e from"react";import t,{useRef as n,useState as r,useCallback as o,useContext as i,useMemo as a,useEffect as l,useLayoutEffect as s,useReducer as c,createContext as u,cloneElement as f,forwardRef as d,useImperativeHandle as p,Children as h}from"react";import{jsx as v,Fragment as y,jsxs as m}from"react/jsx-runtime";import*as b from"react-dom";import g from"react-dom";var w=function(){return w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0||(o[n]=e[n]);return o}var S=process.env.NODE_ENV,C=function(e,t,n,r,o,i,a,l){if("production"!==S&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}},A=x(C);function T(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function L(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function R(e,t){return Object.keys(t).reduce((function(i,a){var l,s=i,c=s[T(a)],u=s[a],f=P(s,[T(a),a].map(L)),d=t[a],p=function(e,t,i){var a=n(void 0!==e),l=r(t),s=l[0],c=l[1],u=void 0!==e,f=a.current;return a.current=u,!u&&f&&s!==t&&c(t),[u?e:s,o((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(o[n]=e[n]);return o}var S=process.env.NODE_ENV,C=function(e,t,n,r,o,i,a,l){if("production"!==S&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}},A=_(C);function T(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function L(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function R(e,t,i){var a=n(void 0!==e),l=r(t),s=l[0],c=l[1],u=void 0!==e,f=a.current;return a.current=u,!u&&f&&s!==t&&c(t),[u?e:s,o((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return v((function(t,r,o,i,a){var l=t[r],s=g(l);if("object"!==s)return new h("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return m(o,i,a,c,w(u));var f=u(l,c,o,i,a+"."+c,n);if(f)return f}return null}))},exact:function(e){return v((function(o,i,a,l,s){var c=o[i],u=g(c);if("object"!==u)return new h("Invalid "+l+" `"+s+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var f=t({},o[i],e);for(var d in f){var p=e[d];if(r(e,d)&&"function"!=typeof p)return m(a,l,s,d,w(p));if(!p)return new h("Invalid "+l+" `"+s+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var v=p(c,d,a,l,s+"."+d,n);if(v)return v}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function v(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,l,c,u,d,p){if(c=c||f,d=d||l,p!==n){if(s){var v=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 v.name="Invariant Violation",v}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=c+":"+l;!t[y]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[y]=!0,r++)}}return null==a[l]?o?null===a[l]?new h("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+d+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,u,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function y(e){return v((function(t,n,r,o,i,a){var l=t[n];return g(l)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function m(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function O(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},le}()(ye.isElement,!0)}else Z.exports=function(){if(ue)return ce;ue=1;var e=he();function t(){}function n(){}return n.resetWarningCache=t,ce=function(){function r(t,n,r,o,i,a){if(a!==e){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 o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var me=x(Z.exports),be=!1,ge="production"!==process.env.NODE_ENV?me.oneOfType([me.number,me.shape({enter:me.number,exit:me.number,appear:me.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&me.oneOfType([me.string,me.shape({enter:me.string,exit:me.string,active:me.string}),me.shape({enter:me.string,enterDone:me.string,enterActive:me.string,exit:me.string,exitDone:me.string,exitActive:me.string})]);var we=t.createContext(null),Oe="unmounted",_e="exited",xe="entering",Ee="entered",Ne="exiting",ke=function(e){var n,r;function o(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=_e,r.appearStatus=xe):o=Ee:o=t.unmountOnExit||t.mountOnEnter?Oe:_e,r.state={status:o},r.nextCallback=null,r}r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,q(n,r),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Oe?{status:_e}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==xe&&n!==Ee&&(t=xe):n!==xe&&n!==Ee||(t=Ne)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xe){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:g.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_e&&this.setState({status:Oe})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[g.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||be?this.safeSetState({status:Ee},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:xe},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ee},(function(){t.props.onEntered(i,a)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:g.findDOMNode(this);t&&!be?(this.props.onExit(r),this.safeSetState({status:Ne},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:_e},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:_e},(function(){e.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:g.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===Oe)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=P(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(we.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},o}(t.Component);function je(){}ke.contextType=we,ke.propTypes="production"!==process.env.NODE_ENV?{nodeRef:me.shape({current:"undefined"==typeof Element?me.any:function(e,t,n,r,o,i){var a=e[t];return me.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:me.oneOfType([me.func.isRequired,me.element.isRequired]).isRequired,in:me.bool,mountOnEnter:me.bool,unmountOnExit:me.bool,appear:me.bool,enter:me.bool,exit:me.bool,timeout:function(e){var t=ge;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{n.target===e&&(o(),t(n))}),n+r)}function Ie(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)}function Be(e){e.offsetHeight}const Fe=e=>e&&"function"!=typeof e?t=>{e.current=t}:e;function Ue(e,t){return a((()=>function(e,t){const n=Fe(e),r=Fe(t);return e=>{n&&n(e),r&&r(e)}}(e,t)),[e,t])}const He=t.forwardRef((({onEnter:e,onEntering:r,onEntered:i,onExit:a,onExiting:l,onExited:s,addEndListener:c,children:u,childRef:f,...d},p)=>{const h=n(null),y=Ue(h,f),m=e=>{var t;y((t=e)&&"setState"in t?g.findDOMNode(t):null!=t?t:null)},b=e=>t=>{e&&h.current&&e(h.current,t)},w=o(b(e),[e]),O=o(b(r),[r]),_=o(b(i),[i]),x=o(b(a),[a]),E=o(b(l),[l]),N=o(b(s),[s]),k=o(b(c),[c]);return v(ke,{ref:p,...d,onEnter:w,onEntered:_,onEntering:O,onExit:x,onExited:N,onExiting:E,addEndListener:k,nodeRef:h,children:"function"==typeof u?(e,t)=>u(e,{...t,ref:m}):t.cloneElement(u,{ref:m})})}));var $e=He;const Ve={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Ke(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=Ve[e];return n+parseInt(z(t,r[0]),10)+parseInt(z(t,r[1]),10)}const ze={[_e]:"collapse",[Ne]:"collapsing",[xe]:"collapsing",[Ee]:"collapse show"};var We=t.forwardRef((({onEnter:e,onEntering:n,onEntered:r,onExit:o,onExiting:i,className:l,children:s,dimension:c="height",in:u=!1,timeout:f=300,mountOnEnter:d=!1,unmountOnExit:p=!1,appear:h=!1,getDimensionValue:y=Ke,...m},b)=>{const g="function"==typeof c?c():c,w=a((()=>Ie((e=>{e.style[g]="0"}),e)),[g,e]),O=a((()=>Ie((e=>{const t=`scroll${g[0].toUpperCase()}${g.slice(1)}`;e.style[g]=`${e[t]}px`}),n)),[g,n]),_=a((()=>Ie((e=>{e.style[g]=null}),r)),[g,r]),x=a((()=>Ie((e=>{e.style[g]=`${y(g,e)}px`,Be(e)}),o)),[o,y,g]),E=a((()=>Ie((e=>{e.style[g]=null}),i)),[g,i]);return v($e,{ref:b,addEndListener:De,...m,"aria-expanded":m.role?u:null,onEnter:w,onEntering:O,onEntered:_,onExit:x,onExiting:E,childRef:s.ref,in:u,timeout:f,mountOnEnter:d,unmountOnExit:p,appear:h,children:(e,n)=>t.cloneElement(s,{...n,className:k(l,s.props.className,ze[e],"width"===g&&"collapse-horizontal")})})}));function Ze(e){const t=function(e){const t=n(e);return l((()=>{t.current=e}),[e]),t}(e);return o((function(...e){return t.current&&t.current(...e)}),[t])}var Ge=t=>e.forwardRef(((e,n)=>v("div",{...e,ref:n,className:k(e.className,t)})));function Ye(){const e=n(!0),t=n((()=>e.current));return l((()=>(e.current=!0,()=>{e.current=!1})),[]),t.current}function Xe(e){const t=n(null);return l((()=>{t.current=e})),t.current}const Je="undefined"!=typeof global&&global.navigator&&"ReactNative"===global.navigator.product;var Qe="undefined"!=typeof document||Je?s:l;const et=["as","disabled"];function tt({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:a,tabIndex:l=0,type:s}){e||(e=null!=n||null!=r||null!=o?"a":"button");const c={tagName:e};if("button"===e)return[{type:s||"button",disabled:t},c];const u=r=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(n))&&r.preventDefault(),t?r.stopPropagation():null==a||a(r)};return"a"===e&&(n||(n="#"),t&&(n=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:"a"===e?r:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:u,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),u(e))}},c]}const nt=e.forwardRef(((e,t)=>{let{as:n,disabled:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,et);const[i,{tagName:a}]=tt(Object.assign({tagName:n,disabled:r},o));return v(a,Object.assign({},o,i,{ref:t}))}));nt.displayName="Button";const rt=["onKeyDown"];const ot=e.forwardRef(((e,t)=>{let{onKeyDown:n}=e,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,rt);const[o]=tt(Object.assign({tagName:"a"},r)),i=Ze((e=>{o.onKeyDown(e),null==n||n(e)}));return(a=r.href)&&"#"!==a.trim()&&"button"!==r.role?v("a",Object.assign({ref:t},r,{onKeyDown:n})):v("a",Object.assign({ref:t},r,o,{onKeyDown:i}));var a}));ot.displayName="Anchor";var it=ot;const at={[xe]:"show",[Ee]:"show"},lt=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:i,...a},l)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},c=o(((e,t)=>{Be(e),null==i||i(e,t)}),[i]);return v($e,{ref:l,addEndListener:De,...s,onEnter:c,childRef:n.ref,children:(o,i)=>e.cloneElement(n,{...i,className:k("fade",t,n.props.className,at[o],r[o])})})}));lt.displayName="Fade";var st=lt;const ct={"aria-label":me.string,onClick:me.func,variant:me.oneOf(["white"])},ut=e.forwardRef((({className:e,variant:t,"aria-label":n="Close",...r},o)=>v("button",{ref:o,type:"button",className:k("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r})));ut.displayName="CloseButton",ut.propTypes=ct;var ft=ut;const dt=e.forwardRef((({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:a,...l},s)=>{const c=D(t,"btn"),[u,{tagName:f}]=tt({tagName:e,disabled:i,...l});return v(f,{...u,...l,ref:s,disabled:i,className:k(a,c,o&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,l.href&&i&&"disabled")})}));dt.displayName="Button";var pt=dt;const ht=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=D(t,"card-body"),v(n,{ref:o,className:k(e,t),...r}))));ht.displayName="CardBody";var vt=ht;const yt=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=D(t,"card-footer"),v(n,{ref:o,className:k(e,t),...r}))));yt.displayName="CardFooter";var mt=yt;const bt=e.createContext(null);bt.displayName="CardHeaderContext";var gt=bt;const wt=e.forwardRef((({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=D(e,"card-header"),l=a((()=>({cardHeaderBsPrefix:i})),[i]);return v(gt.Provider,{value:l,children:v(n,{ref:o,...r,className:k(t,i)})})}));wt.displayName="CardHeader";var Ot=wt;const _t=e.forwardRef((({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const a=D(e,"card-img");return v(r,{ref:i,className:k(n?`${a}-${n}`:a,t),...o})}));_t.displayName="CardImg";var xt=_t;const Et=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=D(t,"card-img-overlay"),v(n,{ref:o,className:k(e,t),...r}))));Et.displayName="CardImgOverlay";var Nt=Et;const kt=e.forwardRef((({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=D(t,"card-link"),v(n,{ref:o,className:k(e,t),...r}))));kt.displayName="CardLink";var jt=kt;const Pt=Ge("h6"),St=e.forwardRef((({className:e,bsPrefix:t,as:n=Pt,...r},o)=>(t=D(t,"card-subtitle"),v(n,{ref:o,className:k(e,t),...r}))));St.displayName="CardSubtitle";var Ct=St;const At=e.forwardRef((({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=D(t,"card-text"),v(n,{ref:o,className:k(e,t),...r}))));At.displayName="CardText";var Tt=At;const Lt=Ge("h5"),Rt=e.forwardRef((({className:e,bsPrefix:t,as:n=Lt,...r},o)=>(t=D(t,"card-title"),v(n,{ref:o,className:k(e,t),...r}))));Rt.displayName="CardTitle";var qt=Rt;const Mt=e.forwardRef((({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:a,as:l="div",...s},c)=>{const u=D(e,"card");return v(l,{ref:c,...s,className:k(t,u,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?v(vt,{children:a}):a})}));Mt.displayName="Card";var Dt=Object.assign(Mt,{Img:xt,Title:qt,Subtitle:Ct,Body:vt,Link:jt,Text:Tt,Header:Ot,Footer:mt,ImgOverlay:Nt});function It(e){const t=function(e){const t=n(e);return t.current=e,t}(e);l((()=>()=>t.current()),[])}const Bt=e.forwardRef(((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:a}]=function({as:e,bsPrefix:t,className:n,...r}){t=D(t,"col");const o=I(),i=B(),a=[],l=[];return o.forEach((e=>{const n=r[e];let o,s,c;delete r[e],"object"==typeof n&&null!=n?({span:o,offset:s,order:c}=n):o=n;const u=e!==i?`-${e}`:"";o&&a.push(!0===o?`${t}${u}`:`${t}${u}-${o}`),null!=c&&l.push(`order${u}-${c}`),null!=s&&l.push(`offset${u}-${s}`)})),[{...r,className:k(n,...a,...l)},{as:e,bsPrefix:t,spans:a}]}(e);return v(o,{...r,ref:t,className:k(n,!a.length&&i)})}));Bt.displayName="Col";var Ft=Bt;const Ut=e.forwardRef((({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const a=D(e,"container");return v(n,{ref:i,...o,className:k(r,t?`${a}${"string"==typeof t?`-${t}`:"-fluid"}`:a)})}));Ut.displayName="Container";var Ht=Ut,$t=Function.prototype.bind.call(Function.prototype.call,[].slice);function Vt(e,t){return $t(e.querySelectorAll(t))}function Kt(){const[,e]=c((e=>!e),!1);return e}var zt=e.createContext(null),Wt=Object.prototype.hasOwnProperty;function Zt(e,t,n){for(n of e.keys())if(Gt(n,t))return n}function Gt(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Gt(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=Zt(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=Zt(t,o)))return!1;if(!Gt(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(Wt.call(e,n)&&++r&&!Wt.call(t,n))return!1;if(!(n in t)||!Gt(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}var Yt="top",Xt="bottom",Jt="right",Qt="left",en="auto",tn=[Yt,Xt,Jt,Qt],nn="start",rn="end",on="clippingParents",an="viewport",ln="popper",sn="reference",cn=tn.reduce((function(e,t){return e.concat([t+"-"+nn,t+"-"+rn])}),[]),un=[].concat(tn,[en]).reduce((function(e,t){return e.concat([t,t+"-"+nn,t+"-"+rn])}),[]),fn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function dn(e){return e.split("-")[0]}function pn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function hn(e){return e instanceof pn(e).Element||e instanceof Element}function vn(e){return e instanceof pn(e).HTMLElement||e instanceof HTMLElement}function yn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof pn(e).ShadowRoot||e instanceof ShadowRoot)}var mn=Math.max,bn=Math.min,gn=Math.round;function wn(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function On(){return!/^((?!chrome|android).)*safari/i.test(wn())}function _n(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&vn(e)&&(o=e.offsetWidth>0&&gn(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&gn(r.height)/e.offsetHeight||1);var a=(hn(e)?pn(e):window).visualViewport,l=!On()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,f=r.height/i;return{width:u,height:f,top:c,right:s+u,bottom:c+f,left:s,x:s,y:c}}function xn(e){var t=_n(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function En(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yn(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Nn(e){return e?(e.nodeName||"").toLowerCase():null}function kn(e){return pn(e).getComputedStyle(e)}function jn(e){return["table","td","th"].indexOf(Nn(e))>=0}function Pn(e){return((hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sn(e){return"html"===Nn(e)?e:e.assignedSlot||e.parentNode||(yn(e)?e.host:null)||Pn(e)}function Cn(e){return vn(e)&&"fixed"!==kn(e).position?e.offsetParent:null}function An(e){for(var t=pn(e),n=Cn(e);n&&jn(n)&&"static"===kn(n).position;)n=Cn(n);return n&&("html"===Nn(n)||"body"===Nn(n)&&"static"===kn(n).position)?t:n||function(e){var t=/firefox/i.test(wn());if(/Trident/i.test(wn())&&vn(e)&&"fixed"===kn(e).position)return null;var n=Sn(e);for(yn(n)&&(n=n.host);vn(n)&&["html","body"].indexOf(Nn(n))<0;){var r=kn(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Tn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ln(e,t,n){return mn(e,bn(t,n))}function Rn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function qn(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Mn={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=dn(n.placement),s=Tn(l),c=[Qt,Jt].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return Rn("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:qn(e,tn))}(o.padding,n),f=xn(i),d="y"===s?Yt:Qt,p="y"===s?Xt:Jt,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],v=a[s]-n.rects.reference[s],y=An(i),m=y?"y"===s?y.clientHeight||0:y.clientWidth||0:0,b=h/2-v/2,g=u[d],w=m-f[c]-u[p],O=m/2-f[c]/2+b,_=Ln(g,O,w),x=s;n.modifiersData[r]=((t={})[x]=_,t.centerOffset=_-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&En(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Dn(e){return e.split("-")[1]}var In={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bn(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=a.x,p=void 0===d?0:d,h=a.y,v=void 0===h?0:h,y="function"==typeof u?u({x:p,y:v}):{x:p,y:v};p=y.x,v=y.y;var m=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),g=Qt,w=Yt,O=window;if(c){var _=An(n),x="clientHeight",E="clientWidth";if(_===pn(n)&&"static"!==kn(_=Pn(n)).position&&"absolute"===l&&(x="scrollHeight",E="scrollWidth"),o===Yt||(o===Qt||o===Jt)&&i===rn)w=Xt,v-=(f&&_===O&&O.visualViewport?O.visualViewport.height:_[x])-r.height,v*=s?1:-1;if(o===Qt||(o===Yt||o===Xt)&&i===rn)g=Jt,p-=(f&&_===O&&O.visualViewport?O.visualViewport.width:_[E])-r.width,p*=s?1:-1}var N,k=Object.assign({position:l},c&&In),j=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:gn(n*o)/o||0,y:gn(r*o)/o||0}}({x:p,y:v},pn(n)):{x:p,y:v};return p=j.x,v=j.y,s?Object.assign({},k,((N={})[w]=b?"0":"",N[g]=m?"0":"",N.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",N)):Object.assign({},k,((t={})[w]=b?v+"px":"",t[g]=m?p+"px":"",t.transform="",t))}var Fn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,c={placement:dn(t.placement),variation:Dn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Bn(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Bn(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Un={passive:!0};var Hn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=pn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,Un)})),l&&s.addEventListener("resize",n.update,Un),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Un)})),l&&s.removeEventListener("resize",n.update,Un)}},data:{}},$n={left:"right",right:"left",bottom:"top",top:"bottom"};function Vn(e){return e.replace(/left|right|bottom|top/g,(function(e){return $n[e]}))}var Kn={start:"end",end:"start"};function zn(e){return e.replace(/start|end/g,(function(e){return Kn[e]}))}function Wn(e){var t=pn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Zn(e){return _n(Pn(e)).left+Wn(e).scrollLeft}function Gn(e){var t=kn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Yn(e){return["html","body","#document"].indexOf(Nn(e))>=0?e.ownerDocument.body:vn(e)&&Gn(e)?e:Yn(Sn(e))}function Xn(e,t){var n;void 0===t&&(t=[]);var r=Yn(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=pn(r),a=o?[i].concat(i.visualViewport||[],Gn(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Xn(Sn(a)))}function Jn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qn(e,t,n){return t===an?Jn(function(e,t){var n=pn(e),r=Pn(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=On();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Zn(e),y:s}}(e,n)):hn(t)?function(e,t){var n=_n(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Jn(function(e){var t,n=Pn(e),r=Wn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=mn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=mn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Zn(e),s=-r.scrollTop;return"rtl"===kn(o||n).direction&&(l+=mn(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Pn(e)))}function er(e,t,n,r){var o="clippingParents"===t?function(e){var t=Xn(Sn(e)),n=["absolute","fixed"].indexOf(kn(e).position)>=0&&vn(e)?An(e):e;return hn(n)?t.filter((function(e){return hn(e)&&En(e,n)&&"body"!==Nn(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=Qn(e,n,r);return t.top=mn(o.top,t.top),t.right=bn(o.right,t.right),t.bottom=bn(o.bottom,t.bottom),t.left=mn(o.left,t.left),t}),Qn(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function tr(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?dn(o):null,a=o?Dn(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Yt:t={x:l,y:n.y-r.height};break;case Xt:t={x:l,y:n.y+n.height};break;case Jt:t={x:n.x+n.width,y:s};break;case Qt:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?Tn(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case nn:t[c]=t[c]-(n[u]/2-r[u]/2);break;case rn:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function nr(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?on:l,c=n.rootBoundary,u=void 0===c?an:c,f=n.elementContext,d=void 0===f?ln:f,p=n.altBoundary,h=void 0!==p&&p,v=n.padding,y=void 0===v?0:v,m=Rn("number"!=typeof y?y:qn(y,tn)),b=d===ln?sn:ln,g=e.rects.popper,w=e.elements[h?b:d],O=er(hn(w)?w:w.contextElement||Pn(e.elements.popper),s,u,a),_=_n(e.elements.reference),x=tr({reference:_,element:g,strategy:"absolute",placement:o}),E=Jn(Object.assign({},g,x)),N=d===ln?E:_,k={top:O.top-N.top+m.top,bottom:N.bottom-O.bottom+m.bottom,left:O.left-N.left+m.left,right:N.right-O.right+m.right},j=e.modifiersData.offset;if(d===ln&&j){var P=j[o];Object.keys(k).forEach((function(e){var t=[Jt,Xt].indexOf(e)>=0?1:-1,n=[Yt,Xt].indexOf(e)>=0?"y":"x";k[e]+=P[n]*t}))}return k}function rr(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?un:s,u=Dn(r),f=u?l?cn:cn.filter((function(e){return Dn(e)===u})):tn,d=f.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=nr(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[dn(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var or={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,y=t.options.placement,m=dn(y),b=s||(m===y||!h?[Vn(y)]:function(e){if(dn(e)===en)return[];var t=Vn(e);return[zn(e),t,zn(t)]}(y)),g=[y].concat(b).reduce((function(e,n){return e.concat(dn(n)===en?rr(t,{placement:n,boundary:u,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),w=t.rects.reference,O=t.rects.popper,_=new Map,x=!0,E=g[0],N=0;N=0,C=S?"width":"height",A=nr(t,{placement:k,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),T=S?P?Jt:Qt:P?Xt:Yt;w[C]>O[C]&&(T=Vn(T));var L=Vn(T),R=[];if(i&&R.push(A[j]<=0),l&&R.push(A[T]<=0,A[L]<=0),R.every((function(e){return e}))){E=k,x=!1;break}_.set(k,R)}if(x)for(var q=function(e){var t=g.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},M=h?3:1;M>0;M--){if("break"===q(M))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ir(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ar(e){return[Yt,Jt,Xt,Qt].some((function(t){return e[t]>=0}))}var lr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=nr(t,{elementContext:"reference"}),l=nr(t,{altBoundary:!0}),s=ir(a,r),c=ir(l,o,i),u=ar(s),f=ar(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}};var sr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=un.reduce((function(e,n){return e[n]=function(e,t,n){var r=dn(e),o=[Qt,Yt].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Qt,Jt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var cr={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=tr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var ur={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,v=void 0===h?0:h,y=nr(t,{boundary:s,rootBoundary:c,padding:f,altBoundary:u}),m=dn(t.placement),b=Dn(t.placement),g=!b,w=Tn(m),O="x"===w?"y":"x",_=t.modifiersData.popperOffsets,x=t.rects.reference,E=t.rects.popper,N="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,k="number"==typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(_){if(i){var S,C="y"===w?Yt:Qt,A="y"===w?Xt:Jt,T="y"===w?"height":"width",L=_[w],R=L+y[C],q=L-y[A],M=p?-E[T]/2:0,D=b===nn?x[T]:E[T],I=b===nn?-E[T]:-x[T],B=t.elements.arrow,F=p&&B?xn(B):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=U[C],$=U[A],V=Ln(0,x[T],F[T]),K=g?x[T]/2-M-V-H-k.mainAxis:D-V-H-k.mainAxis,z=g?-x[T]/2+M+V+$+k.mainAxis:I+V+$+k.mainAxis,W=t.elements.arrow&&An(t.elements.arrow),Z=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,G=null!=(S=null==j?void 0:j[w])?S:0,Y=L+z-G,X=Ln(p?bn(R,L+K-G-Z):R,L,p?mn(q,Y):q);_[w]=X,P[w]=X-L}if(l){var J,Q="x"===w?Yt:Qt,ee="x"===w?Xt:Jt,te=_[O],ne="y"===O?"height":"width",re=te+y[Q],oe=te-y[ee],ie=-1!==[Yt,Qt].indexOf(m),ae=null!=(J=null==j?void 0:j[O])?J:0,le=ie?re:te-x[ne]-E[ne]-ae+k.altAxis,se=ie?te+x[ne]+E[ne]-ae-k.altAxis:oe,ce=p&&ie?function(e,t,n){var r=Ln(e,t,n);return r>n?n:r}(le,te,se):Ln(p?le:re,te,p?se:oe);_[O]=ce,P[O]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function fr(e,t,n){void 0===n&&(n=!1);var r,o,i=vn(t),a=vn(t)&&function(e){var t=e.getBoundingClientRect(),n=gn(t.width)/e.offsetWidth||1,r=gn(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=Pn(t),s=_n(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==Nn(t)||Gn(l))&&(c=(r=t)!==pn(r)&&vn(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Wn(r)),vn(t)?((u=_n(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=Zn(l))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function dr(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var pr={placement:"bottom",modifiers:[],strategy:"absolute"};function hr(){for(var e=arguments.length,t=new Array(e),n=0;n{}},gr={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},wr=[];function Or(e,t,i={}){let{enabled:s=!0,placement:c="bottom",strategy:u="absolute",modifiers:f=wr}=i,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(i,mr);const p=n(f),h=n(),v=o((()=>{var e;null==(e=h.current)||e.update()}),[]),y=o((()=>{var e;null==(e=h.current)||e.forceUpdate()}),[]),[m,b]=function(e){const t=Ye();return[e[0],o((n=>{if(t())return e[1](n)}),[t,e[1]])]}(r({placement:c,update:v,forceUpdate:y,attributes:{},styles:{popper:{},arrow:{}}})),g=a((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),b({state:e,styles:t,attributes:n,update:v,forceUpdate:y,placement:e.placement})}})),[v,y,b]),w=a((()=>(Gt(p.current,f)||(p.current=f),p.current)),[f]);return l((()=>{h.current&&s&&h.current.setOptions({placement:c,strategy:u,modifiers:[...w,g,br]})}),[u,c,g,s,w]),l((()=>{if(s&&null!=e&&null!=t)return h.current=yr(e,t,Object.assign({},d,{placement:c,strategy:u,modifiers:[...w,gr,g]})),()=>{null!=h.current&&(h.current.destroy(),h.current=void 0,b((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[s,e,t]),m}function _r(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var xr=function(){};if("production"!==process.env.NODE_ENV){var Er=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r2?r-2:0);for(var o=2;o{};const jr=e=>e&&("current"in e?e.current:e),Pr={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Sr(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}function Cr({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:a,arrowElement:l,popperConfig:s={}}){var c,u,f,d,p;const h=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(s.modifiers);return Object.assign({},s,{placement:n,enabled:e,strategy:i?"fixed":s.strategy,modifiers:Sr(Object.assign({},h,{eventListeners:{enabled:t,options:null==(c=h.eventListeners)?void 0:c.options},preventOverflow:Object.assign({},h.preventOverflow,{options:a?Object.assign({padding:a},null==(u=h.preventOverflow)?void 0:u.options):null==(f=h.preventOverflow)?void 0:f.options}),offset:{options:Object.assign({offset:o},null==(d=h.offset)?void 0:d.options)},arrow:Object.assign({},h.arrow,{enabled:!!l,options:Object.assign({},null==(p=h.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},h.flip)}))})}const Ar=["children"];const Tr=()=>{};function Lr(e={}){const t=i(zt),[a,s]=r(null),c=n(!1),{flip:u,offset:f,rootCloseEvent:d,fixed:p=!1,placement:h,popperConfig:v={},enableEventListeners:y=!0,usePopper:m=!!t}=e,b=null==(null==t?void 0:t.show)?!!e.show:t.show;b&&!c.current&&(c.current=!0);const{placement:g,setMenu:w,menuElement:O,toggleElement:_}=t||{},x=Or(_,O,Cr({placement:h||g||"bottom-start",enabled:m,enableEvents:null==y?b:y,offset:f,flip:u,fixed:p,arrowElement:a,popperConfig:v})),E=Object.assign({ref:w||Tr,"aria-labelledby":null==_?void 0:_.id},x.attributes.popper,{style:x.styles.popper}),N={show:b,placement:g,hasShown:c.current,toggle:null==t?void 0:t.toggle,popper:m?x:null,arrowProps:m?Object.assign({ref:s},x.attributes.arrow,{style:x.styles.arrow}):{}};return function(e,t=kr,{disabled:r,clickTrigger:i="click"}={}){const a=n(!1),s=n(!1),c=o((t=>{const n=jr(e);var r;Nr(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!n||!!((r=t).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(t)||!!_r(n,t.target)||s.current,s.current=!1}),[e]),u=Ze((t=>{const n=jr(e);n&&_r(n,t.target)&&(s.current=!0)})),f=Ze((e=>{a.current||t(e)}));l((()=>{var t,n;if(r||null==e)return;const o=F(jr(e)),a=o.defaultView||window;let l=null!=(t=a.event)?t:null==(n=a.parent)?void 0:n.event,s=null;Pr[i]&&(s=Le(o,Pr[i],u,!0));const d=Le(o,i,c,!0),p=Le(o,i,(e=>{e!==l?f(e):l=void 0}));let h=[];return"ontouchstart"in o.documentElement&&(h=[].slice.call(o.body.children).map((e=>Le(e,"mousemove",kr)))),()=>{null==s||s(),d(),p(),h.forEach((e=>e()))}}),[e,r,i,c,u,f])}(O,(e=>{null==t||t.toggle(!1,e)}),{clickTrigger:d,disabled:!b}),[E,N]}function Rr(e){let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,Ar);const[r,o]=Lr(n);return v(y,{children:t(r,o)})}Rr.displayName="DropdownMenu",Rr.defaultProps={usePopper:!0};const qr={prefix:String(Math.round(1e10*Math.random())),current:0},Mr=t.createContext(qr),Dr=t.createContext(!1);let Ir=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Br=new WeakMap;const Fr="function"==typeof t.useId?function(e){let n=t.useId(),[o]=r("function"==typeof t.useSyncExternalStore?t.useSyncExternalStore($r,Ur,Hr):i(Dr)),a=o||"test"===process.env.NODE_ENV?"react-aria":`react-aria${qr.prefix}`;return e||`${a}-${n}`}:function(e){let r=i(Mr);r!==qr||Ir||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let o=function(e=!1){let r=i(Mr),o=n(null);if(null===o.current&&!e){var a,l;let e=null===(l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===l||null===(a=l.ReactCurrentOwner)||void 0===a?void 0:a.current;if(e){let t=Br.get(e);null==t?Br.set(e,{id:r.current,state:e.memoizedState}):e.memoizedState!==t.state&&(r.current=t.id,Br.delete(e))}o.current=++r.current}return o.current}(!!e),a=r===qr&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${r.prefix}`;return e||`${a}-${o}`};function Ur(){return!1}function Hr(){return!0}function $r(e){return()=>{}}const Vr=e=>{var t;return"menu"===(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())},Kr=()=>{};function zr(){const e=Fr(),{show:t=!1,toggle:n=Kr,setToggle:r,menuElement:a}=i(zt)||{},l=o((e=>{n(!t,e)}),[t,n]),s={id:e,ref:r||Kr,onClick:l,"aria-expanded":!!t};return a&&Vr(a)&&(s["aria-haspopup"]=!0),[s,{show:t,toggle:n}]}function Wr({children:e}){const[t,n]=zr();return v(y,{children:e(t,n)})}Wr.displayName="DropdownToggle";const Zr=e.createContext(null),Gr=(e,t=null)=>null!=e?String(e):t||null,Yr=e.createContext(null);Yr.displayName="NavContext";var Xr=Yr;const Jr="data-rr-ui-";function Qr(e){return`${Jr}${e}`}const eo=["eventKey","disabled","onClick","active","as"];function to({key:e,href:t,active:n,disabled:r,onClick:o}){const a=i(Zr),l=i(Xr),{activeKey:s}=l||{},c=Gr(e,t),u=null==n&&null!=e?Gr(s)===c:n;return[{onClick:Ze((e=>{r||(null==o||o(e),a&&!e.isPropagationStopped()&&a(c,e))})),"aria-disabled":r||void 0,"aria-selected":u,[Qr("dropdown-item")]:""},{isActive:u}]}const no=e.forwardRef(((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:i,as:a=nt}=e,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,eo);const[s]=to({key:n,href:l.href,disabled:r,onClick:o,active:i});return v(a,Object.assign({},l,{ref:t},s))}));no.displayName="DropdownItem";const ro=u(Pe?window:void 0);function oo(){return i(ro)}function io(){const e=Kt(),t=n(null),r=o((n=>{t.current=n,e()}),[e]);return[t,r]}function ao({defaultShow:e,show:t,onSelect:s,onToggle:c,itemSelector:u=`* [${Qr("dropdown-item")}]`,focusFirstItemOnShow:f,placement:d="bottom-start",children:p}){const h=oo(),[y,m]=function(e,t,i){const a=n(void 0!==e),[l,s]=r(t),c=void 0!==e,u=a.current;return a.current=c,!c&&u&&l!==t&&s(t),[c?e:l,o(((...e)=>{const[t,...n]=e;let r=null==i?void 0:i(t,...n);return s(t),r}),[i])]}(t,e,c),[b,g]=io(),w=b.current,[O,_]=io(),x=O.current,E=Xe(y),N=n(null),k=n(!1),j=i(Zr),P=o(((e,t,n=(null==t?void 0:t.type))=>{m(e,{originalEvent:t,source:n})}),[m]),S=Ze(((e,t)=>{null==s||s(e,t),P(!1,t,"select"),t.isPropagationStopped()||null==j||j(e,t)})),C=a((()=>({toggle:P,placement:d,show:y,menuElement:w,toggleElement:x,setMenu:g,setToggle:_})),[P,d,y,w,x,g,_]);w&&E&&!y&&(k.current=w.contains(w.ownerDocument.activeElement));const A=Ze((()=>{x&&x.focus&&x.focus()})),T=Ze((()=>{const e=N.current;let t=f;if(null==t&&(t=!(!b.current||!Vr(b.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;const n=Vt(b.current,u)[0];n&&n.focus&&n.focus()}));l((()=>{y?T():k.current&&(k.current=!1,A())}),[y,k,A,T]),l((()=>{N.current=null}));const L=(e,t)=>{if(!b.current)return null;const n=Vt(b.current,u);let r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return function(e,t,n,r=!1){const o=Ze(n);l((()=>{const n="function"==typeof e?e():e;return n.addEventListener(t,o,r),()=>n.removeEventListener(t,o,r)}),[e])}(o((()=>h.document),[h]),"keydown",(e=>{var t,n;const{key:r}=e,o=e.target,i=null==(t=b.current)?void 0:t.contains(o),a=null==(n=O.current)?void 0:n.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===r||"Escape"!==r&&i||"Escape"===r&&"search"===o.type))return;if(!i&&!a)return;if(!("Tab"!==r||b.current&&y))return;N.current=e.type;const l={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{const t=L(o,-1);return t&&t.focus&&t.focus(),void e.preventDefault()}case"ArrowDown":if(e.preventDefault(),y){const e=L(o,1);e&&e.focus&&e.focus()}else m(!0,l);return;case"Tab":Te(o.ownerDocument,"keyup",(e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=b.current)&&t.contains(e.target)||m(!1,l)}),{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),m(!1,l)}})),v(Zr.Provider,{value:S,children:v(zt.Provider,{value:C,children:p})})}ro.Provider,ao.displayName="Dropdown",ao.Menu=Rr,ao.Toggle=Wr,ao.Item=no;const lo=e.createContext({});lo.displayName="DropdownContext";var so=lo;const co=e.forwardRef((({className:e,bsPrefix:t,as:n="hr",role:r="separator",...o},i)=>(t=D(t,"dropdown-divider"),v(n,{ref:i,className:k(e,t),role:r,...o}))));co.displayName="DropdownDivider";var uo=co;const fo=e.forwardRef((({className:e,bsPrefix:t,as:n="div",role:r="heading",...o},i)=>(t=D(t,"dropdown-header"),v(n,{ref:i,className:k(e,t),role:r,...o}))));fo.displayName="DropdownHeader";var po=fo;const ho=e.forwardRef((({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:o,active:i,as:a=it,...l},s)=>{const c=D(e,"dropdown-item"),[u,f]=to({key:n,href:l.href,disabled:r,onClick:o,active:i});return v(a,{...l,...u,ref:s,className:k(t,c,f.isActive&&"active",r&&"disabled")})}));ho.displayName="DropdownItem";var vo=ho;const yo=e.forwardRef((({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=D(t,"dropdown-item-text"),v(n,{ref:o,className:k(e,t),...r}))));yo.displayName="DropdownItemText";var mo=yo;const bo=e.createContext(null);bo.displayName="InputGroupContext";var go=bo;const wo=e.createContext(null);wo.displayName="NavbarContext";var Oo=wo;function _o(e,t){if("production"===process.env.NODE_ENV)return e;return Ue(o((e=>{null!=e&&e.isReactComponent&&("production"!==process.env.NODE_ENV?A(!1,`${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):A(!1))}),[t]),e)}function xo(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}const Eo=e.forwardRef((({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:o=!0,show:a,renderOnMount:l,as:s="div",popperConfig:c,variant:u,...f},d)=>{let p=!1;const h=i(Oo),y=D(e,"dropdown-menu"),{align:m,drop:b,isRTL:g}=i(so);n=n||m;const w=i(go),O=[];if(n)if("object"==typeof n){const e=Object.keys(n);if("production"!==process.env.NODE_ENV&&Nr(1===e.length,"There should only be 1 breakpoint when passing an object to `align`"),e.length){const t=e[0],r=n[t];p="start"===r,O.push(`${y}-${t}-${r}`)}}else"end"===n&&(p=!0);const _=xo(p,b,g),[x,{hasShown:E,popper:N,show:j,toggle:P}]=Lr({flip:o,rootCloseEvent:r,show:a,usePopper:!h&&0===O.length,offset:[0,2],popperConfig:c,placement:_});if(x.ref=Ue(_o(d,"DropdownMenu"),x.ref),Qe((()=>{j&&(null==N||N.update())}),[j]),!E&&!l&&!w)return null;"string"!=typeof s&&(x.show=j,x.close=()=>null==P?void 0:P(!1),x.align=n);let S=f.style;return null!=N&&N.placement&&(S={...f.style,...x.style},f["x-placement"]=N.placement),v(s,{...f,...x,style:S,...(O.length||h)&&{"data-bs-popper":"static"},className:k(t,y,j&&"show",p&&`${y}-end`,u&&`${y}-${u}`,...O)})}));Eo.displayName="DropdownMenu";var No=Eo;const ko=e.forwardRef((({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:o=pt,...a},l)=>{const s=D(e,"dropdown-toggle"),c=i(zt);void 0!==r&&(a.bsPrefix=r);const[u]=zr();return u.ref=Ue(u.ref,_o(l,"DropdownToggle")),v(o,{className:k(n,s,t&&`${s}-split`,(null==c?void 0:c.show)&&"show"),...u,...a})}));ko.displayName="DropdownToggle";var jo=ko;const Po=e.forwardRef(((e,t)=>{const{bsPrefix:n,drop:r="down",show:o,className:l,align:s="start",onSelect:c,onToggle:u,focusFirstItemOnShow:f,as:d="div",navbar:p,autoClose:h=!0,...y}=R(e,{show:"onToggle"}),m=i(go),b=D(n,"dropdown"),g=function(){const{dir:e}=i(M);return"rtl"===e}(),w=Ze(((e,t)=>{var n,r;var o;(null==(n=t.originalEvent)||null==(r=n.target)?void 0:r.classList.contains("dropdown-toggle"))&&"mousedown"===t.source||(t.originalEvent.currentTarget!==document||"keydown"===t.source&&"Escape"!==t.originalEvent.key||(t.source="rootClose"),o=t.source,(!1===h?"click"===o:"inside"===h?"rootClose"!==o:"outside"!==h||"select"!==o)&&(null==u||u(e,t)))})),O=xo("end"===s,r,g),_=a((()=>({align:s,drop:r,isRTL:g})),[s,r,g]),x={down:b,"down-centered":`${b}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return v(so.Provider,{value:_,children:v(ao,{placement:O,show:o,onSelect:c,onToggle:w,focusFirstItemOnShow:f,itemSelector:`.${b}-item:not(.disabled):not(:disabled)`,children:m?y.children:v(d,{...y,ref:t,className:k(l,o&&"show",x[r])})})})}));Po.displayName="Dropdown";var So=Object.assign(Po,{Toggle:jo,Menu:No,Item:vo,ItemText:mo,Divider:uo,Header:po});const Co={type:me.string,tooltip:me.bool,as:me.elementType},Ao=e.forwardRef((({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>v(e,{...o,ref:i,className:k(t,`${n}-${r?"tooltip":"feedback"}`)})));Ao.displayName="Feedback",Ao.propTypes=Co;var To=Ao;var Lo=e.createContext({});const Ro=e.forwardRef((({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:o=!1,isInvalid:a=!1,as:l="input",...s},c)=>{const{controlId:u}=i(Lo);return t=D(t,"form-check-input"),v(l,{...s,ref:c,type:r,id:e||u,className:k(n,t,o&&"is-valid",a&&"is-invalid")})}));Ro.displayName="FormCheckInput";var qo=Ro;const Mo=e.forwardRef((({bsPrefix:e,className:t,htmlFor:n,...r},o)=>{const{controlId:a}=i(Lo);return e=D(e,"form-check-label"),v("label",{...r,ref:o,htmlFor:n||a,className:k(t,e)})}));Mo.displayName="FormCheckLabel";var Do=Mo;const Io=e.forwardRef((({id:t,bsPrefix:n,bsSwitchPrefix:r,inline:o=!1,reverse:l=!1,disabled:s=!1,isValid:c=!1,isInvalid:u=!1,feedbackTooltip:f=!1,feedback:d,feedbackType:p,className:h,style:b,title:g="",type:w="checkbox",label:O,children:_,as:x="input",...E},N)=>{n=D(n,"form-check"),r=D(r,"form-switch");const{controlId:j}=i(Lo),P=a((()=>({controlId:t||j})),[j,t]),S=!_&&null!=O&&!1!==O||function(t,n){return e.Children.toArray(t).some((t=>e.isValidElement(t)&&t.type===n))}(_,Do),C=v(qo,{...E,type:"switch"===w?"checkbox":w,ref:N,isValid:c,isInvalid:u,disabled:s,as:x});return v(Lo.Provider,{value:P,children:v("div",{style:b,className:k(h,S&&n,o&&`${n}-inline`,l&&`${n}-reverse`,"switch"===w&&r),children:_||m(y,{children:[C,S&&v(Do,{title:g,children:O}),d&&v(To,{type:p,tooltip:f,children:d})]})})})}));Io.displayName="FormCheck";var Bo=Object.assign(Io,{Input:qo,Label:Do});const Fo=e.forwardRef((({bsPrefix:e,type:t,size:n,htmlSize:r,id:o,className:a,isValid:l=!1,isInvalid:s=!1,plaintext:c,readOnly:u,as:f="input",...d},p)=>{const{controlId:h}=i(Lo);return e=D(e,"form-control"),"production"!==process.env.NODE_ENV&&Nr(null==h||!o,"`controlId` is ignored on `` when `id` is specified."),v(f,{...d,type:t,size:r,ref:p,readOnly:u,id:o||h,className:k(a,c?`${e}-plaintext`:e,n&&`${e}-${n}`,"color"===t&&`${e}-color`,l&&"is-valid",s&&"is-invalid")})}));Fo.displayName="FormControl";var Uo=Object.assign(Fo,{Feedback:To});const Ho=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=D(t,"form-floating"),v(n,{ref:o,className:k(e,t),...r}))));Ho.displayName="FormFloating";var $o=Ho;const Vo=e.forwardRef((({controlId:e,as:t="div",...n},r)=>{const o=a((()=>({controlId:e})),[e]);return v(Lo.Provider,{value:o,children:v(t,{...n,ref:r})})}));Vo.displayName="FormGroup";var Ko=Vo;const zo=e.forwardRef((({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:o,htmlFor:a,...l},s)=>{const{controlId:c}=i(Lo);t=D(t,"form-label");let u="col-form-label";"string"==typeof n&&(u=`${u} ${u}-${n}`);const f=k(o,t,r&&"visually-hidden",n&&u);return"production"!==process.env.NODE_ENV&&Nr(null==c||!a,"`controlId` is ignored on `` when `htmlFor` is specified."),a=a||c,n?v(Ft,{ref:s,as:"label",className:f,htmlFor:a,...l}):v(e,{ref:s,className:f,htmlFor:a,...l})}));zo.displayName="FormLabel";var Wo=zo;const Zo=e.forwardRef((({bsPrefix:e,className:t,id:n,...r},o)=>{const{controlId:a}=i(Lo);return e=D(e,"form-range"),v("input",{...r,type:"range",ref:o,className:k(t,e),id:n||a})}));Zo.displayName="FormRange";var Go=Zo;const Yo=e.forwardRef((({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:o=!1,isInvalid:a=!1,id:l,...s},c)=>{const{controlId:u}=i(Lo);return e=D(e,"form-select"),v("select",{...s,size:n,ref:c,className:k(r,e,t&&`${e}-${t}`,o&&"is-valid",a&&"is-invalid"),id:l||u})}));Yo.displayName="FormSelect";var Xo=Yo;const Jo=e.forwardRef((({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=D(e,"form-text"),v(n,{...o,ref:i,className:k(t,e,r&&"text-muted")}))));Jo.displayName="FormText";var Qo=Jo;const ei=e.forwardRef(((e,t)=>v(Bo,{...e,ref:t,type:"switch"})));ei.displayName="Switch";var ti=Object.assign(ei,{Input:Bo.Input,Label:Bo.Label});const ni=e.forwardRef((({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},a)=>(e=D(e,"form-floating"),m(Ko,{ref:a,className:k(t,e),controlId:r,...i,children:[n,v("label",{htmlFor:r,children:o})]}))));ni.displayName="FloatingLabel";var ri=ni;const oi={_ref:me.any,validated:me.bool,as:me.elementType},ii=e.forwardRef((({className:e,validated:t,as:n="form",...r},o)=>v(n,{...r,ref:o,className:k(e,t&&"was-validated")})));ii.displayName="Form",ii.propTypes=oi;var ai=Object.assign(ii,{Group:Ko,Control:Uo,Floating:$o,Check:Bo,Switch:ti,Label:Wo,Text:Qo,Range:Go,Select:Xo,FloatingLabel:ri});const li=e.forwardRef((({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=D(t,"input-group-text"),v(n,{ref:o,className:k(e,t),...r}))));li.displayName="InputGroupText";var si=li;const ci=e.forwardRef((({bsPrefix:e,size:t,hasValidation:n,className:r,as:o="div",...i},l)=>{e=D(e,"input-group");const s=a((()=>({})),[]);return v(go.Provider,{value:s,children:v(o,{ref:l,...i,className:k(r,e,t&&`${e}-${t}`,n&&"has-validation")})})}));ci.displayName="InputGroup";var ui=Object.assign(ci,{Text:si,Radio:e=>v(si,{children:v(qo,{type:"radio",...e})}),Checkbox:e=>v(si,{children:v(qo,{type:"checkbox",...e})})});var fi=e.createContext(null);const di=["as","active","eventKey"];function pi({key:e,onClick:t,active:n,id:r,role:o,disabled:a}){const l=i(Zr),s=i(Xr),c=i(fi);let u=n;const f={role:o};if(s){o||"tablist"!==s.role||(f.role="tab");const t=s.getControllerId(null!=e?e:null),i=s.getControlledId(null!=e?e:null);f[Qr("event-key")]=e,f.id=t||r,u=null==n&&null!=e?s.activeKey===e:n,!u&&(null!=c&&c.unmountOnExit||null!=c&&c.mountOnEnter)||(f["aria-controls"]=i)}return"tab"===f.role&&(f["aria-selected"]=u,u||(f.tabIndex=-1),a&&(f.tabIndex=-1,f["aria-disabled"]=!0)),f.onClick=Ze((n=>{a||(null==t||t(n),null!=e&&l&&!n.isPropagationStopped()&&l(e,n))})),[f,{isActive:u}]}const hi=e.forwardRef(((e,t)=>{let{as:n=nt,active:r,eventKey:o}=e,i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,di);const[a,l]=pi(Object.assign({key:Gr(o,i.href),active:r},i));return a[Qr("active")]=l.isActive,v(n,Object.assign({},i,a,{ref:t}))}));hi.displayName="NavItem";var vi=hi;const yi=["as","onSelect","activeKey","role","onKeyDown"];const mi=()=>{},bi=Qr("event-key"),gi=e.forwardRef(((e,t)=>{let{as:r="div",onSelect:o,activeKey:a,role:s,onKeyDown:c}=e,u=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,yi);const f=Kt(),d=n(!1),p=i(Zr),h=i(fi);let y,m;h&&(s=s||"tablist",a=h.activeKey,y=h.getControlledId,m=h.getControllerId);const b=n(null),g=e=>{const t=b.current;if(!t)return null;const n=Vt(t,`[${bi}]:not([aria-disabled=true])`),r=t.querySelector("[aria-selected=true]");if(!r||r!==document.activeElement)return null;const o=n.indexOf(r);if(-1===o)return null;let i=o+e;return i>=n.length&&(i=0),i<0&&(i=n.length-1),n[i]},w=(e,t)=>{null!=e&&(null==o||o(e,t),null==p||p(e,t))};l((()=>{if(b.current&&d.current){const e=b.current.querySelector(`[${bi}][aria-selected=true]`);null==e||e.focus()}d.current=!1}));const O=Ue(t,b);return v(Zr.Provider,{value:w,children:v(Xr.Provider,{value:{role:s,activeKey:Gr(a),getControlledId:y||mi,getControllerId:m||mi},children:v(r,Object.assign({},u,{onKeyDown:e=>{if(null==c||c(e),!h)return;let t;switch(e.key){case"ArrowLeft":case"ArrowUp":t=g(-1);break;case"ArrowRight":case"ArrowDown":t=g(1);break;default:return}var n;t&&(e.preventDefault(),w(t.dataset[(n="EventKey",`rrUi${n}`)]||null,e),d.current=!0,f())},ref:O,role:s}))})})}));gi.displayName="Nav";var wi=Object.assign(gi,{Item:vi});function Oi(e){void 0===e&&(e=F());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}const _i=Qr("modal-open");var xi=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(z(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(_i,""),z(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(_i),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t?t:(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),t)}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}};const Ei=(e,t)=>Pe?null==e?(t||F()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Ni({children:e,in:t,onExited:r,mountOnEnter:o,unmountOnExit:i}){const a=n(null),s=n(t),c=Ze(r);l((()=>{t?s.current=!0:c(a.current)}),[t,c]);const u=Ue(a,e.ref),d=f(e,{ref:u});return t?d:i||!s.current&&o?null:d}function ki({children:e,in:t,onExited:o,onEntered:i,transition:a}){const[l,s]=r(!t);t&&l&&s(!1);const c=function({in:e,onTransition:t}){const r=n(null),o=n(!0),i=Ze(t);return Qe((()=>{if(!r.current)return;let t=!1;return i({in:e,element:r.current,initial:o.current,isStale:()=>t}),()=>{t=!0}}),[e,i]),Qe((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!t,onTransition:e=>{Promise.resolve(a(e)).then((()=>{e.isStale()||(e.in?null==i||i(e.element,e.initial):(s(!0),null==o||o(e.element)))}),(t=>{throw e.in||s(!0),t}))}}),u=Ue(c,e.ref);return l&&!t?null:f(e,{ref:u})}function ji(e,t,n){return e?v(e,Object.assign({},n)):t?v(ki,Object.assign({},n,{transition:t})):v(Ni,Object.assign({},n))}const Pi=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let Si;function Ci(e){const t=oo(),r=e||function(e){return Si||(Si=new xi({ownerDocument:null==e?void 0:e.document})),Si}(t),i=n({dialog:null,backdrop:null});return Object.assign(i.current,{add:()=>r.add(i.current),remove:()=>r.remove(i.current),isTopModal:()=>r.isTopModal(i.current),setDialogRef:o((e=>{i.current.dialog=e}),[]),setBackdropRef:o((e=>{i.current.backdrop=e}),[])})}const Ai=d(((t,o)=>{let{show:i=!1,role:a="dialog",className:s,style:c,children:u,backdrop:f=!0,keyboard:d=!0,onBackdropClick:h,onEscapeKeyDown:b,transition:w,runTransition:O,backdropTransition:_,runBackdropTransition:x,autoFocus:E=!0,enforceFocus:N=!0,restoreFocus:k=!0,restoreFocusOptions:j,renderDialog:P,renderBackdrop:S=(e=>v("div",Object.assign({},e))),manager:C,container:A,onShow:T,onHide:L=(()=>{}),onExit:R,onExited:q,onExiting:M,onEnter:D,onEntering:I,onEntered:B}=t,F=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,Pi);const U=oo(),H=function(e,t){const n=oo(),[o,i]=r((()=>Ei(e,null==n?void 0:n.document)));if(!o){const t=Ei(e);t&&i(t)}return l((()=>{t&&o&&t(o)}),[t,o]),l((()=>{const t=Ei(e);t!==o&&i(t)}),[e,o]),o}(A),$=Ci(C),V=Ye(),K=Xe(i),[z,W]=r(!i),Z=n(null);p(o,(()=>$),[$]),Pe&&!K&&i&&(Z.current=Oi(null==U?void 0:U.document)),i&&z&&W(!1);const G=Ze((()=>{if($.add(),te.current=Le(document,"keydown",Q),ee.current=Le(document,"focus",(()=>setTimeout(X)),!0),T&&T(),E){var e,t;const n=Oi(null!=(e=null==(t=$.dialog)?void 0:t.ownerDocument)?e:null==U?void 0:U.document);$.dialog&&n&&!_r($.dialog,n)&&(Z.current=n,$.dialog.focus())}})),Y=Ze((()=>{var e;($.remove(),null==te.current||te.current(),null==ee.current||ee.current(),k)&&(null==(e=Z.current)||null==e.focus||e.focus(j),Z.current=null)}));l((()=>{i&&H&&G()}),[i,H,G]),l((()=>{z&&Y()}),[z,Y]),It((()=>{Y()}));const X=Ze((()=>{if(!N||!V()||!$.isTopModal())return;const e=Oi(null==U?void 0:U.document);$.dialog&&e&&!_r($.dialog,e)&&$.dialog.focus()})),J=Ze((e=>{e.target===e.currentTarget&&(null==h||h(e),!0===f&&L())})),Q=Ze((e=>{d&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&$.isTopModal()&&(null==b||b(e),e.defaultPrevented||L())})),ee=n(),te=n();if(!H)return null;const ne=Object.assign({role:a,ref:$.setDialogRef,"aria-modal":"dialog"===a||void 0},F,{style:c,className:s,tabIndex:-1});let re=P?P(ne):v("div",Object.assign({},ne,{children:e.cloneElement(u,{role:"document"})}));re=ji(w,O,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:R,onExiting:M,onExited:(...e)=>{W(!0),null==q||q(...e)},onEnter:D,onEntering:I,onEntered:B,children:re});let oe=null;return f&&(oe=S({ref:$.setBackdropRef,onClick:J}),oe=ji(_,x,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:oe})),v(y,{children:g.createPortal(m(y,{children:[oe,re]}),H)})}));Ai.displayName="Modal";var Ti=Object.assign(Ai,{Manager:xi});function Li(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Ri=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",qi=".sticky-top",Mi=".navbar-toggler";class Di extends xi{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,z(t,{[e]:`${parseFloat(z(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],z(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Vt(t,Ri).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),Vt(t,qi).forEach((t=>this.adjustAndStore(i,t,-e.scrollBarWidth))),Vt(t,Mi).forEach((t=>this.adjustAndStore(i,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Li(n.className,r):n.setAttribute("class",Li(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Vt(t,Ri).forEach((e=>this.restore(o,e))),Vt(t,qi).forEach((e=>this.restore(i,e))),Vt(t,Mi).forEach((e=>this.restore(i,e)))}}let Ii;var Bi=Di;var Fi=e.createContext({onHide(){}});const Ui=e.forwardRef((({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...a},l)=>{const s=i(Fi),c=Ze((()=>{null==s||s.onHide(),null==r||r()}));return m("div",{ref:l,...a,children:[o,n&&v(ft,{"aria-label":e,variant:t,onClick:c})]})}));var Hi=Ui,$i={exports:{}},Vi={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,o,i,a){var l=o||"<>",s=a||r;if(null==n[r])return t?new Error("Required "+i+" `"+s+"` was not specified in `"+l+"`."):null;for(var c=arguments.length,u=Array(c>6?c-6:0),f=6;f(t=D(t,"nav-item"),v(n,{ref:o,className:k(e,t),...r}))));zi.displayName="NavItem";var Wi=zi;const Zi=e.forwardRef((({bsPrefix:e,className:t,as:n=it,active:r,eventKey:o,disabled:i=!1,...a},l)=>{e=D(e,"nav-link");const[s,c]=pi({key:Gr(o,a.href),active:r,disabled:i,...a});return v(n,{...a,...s,ref:l,disabled:i,className:k(t,e,i&&"disabled",c.isActive&&"active")})}));Zi.displayName="NavLink";var Gi=Zi;const Yi=e.forwardRef(((e,t)=>{const{as:n="div",bsPrefix:r,variant:o,fill:a=!1,justify:l=!1,navbar:s,navbarScroll:c,className:u,activeKey:f,...d}=R(e,{activeKey:"onSelect"}),p=D(r,"nav");let h,y,m=!1;const b=i(Oo),g=i(gt);return b?(h=b.bsPrefix,m=null==s||s):g&&({cardHeaderBsPrefix:y}=g),v(wi,{as:n,ref:t,activeKey:f,className:k(u,{[p]:!m,[`${h}-nav`]:m,[`${h}-nav-scroll`]:m&&c,[`${y}-${o}`]:!!y,[`${p}-${o}`]:!!o,[`${p}-fill`]:a,[`${p}-justified`]:l}),...d})}));Yi.displayName="Nav";var Xi=Object.assign(Yi,{Item:Wi,Link:Gi});const Ji=e.forwardRef((({bsPrefix:e,className:t,as:n,...r},o)=>{e=D(e,"navbar-brand");const i=n||(r.href?"a":"span");return v(i,{...r,ref:o,className:k(t,e)})}));Ji.displayName="NavbarBrand";var Qi=Ji;const ea=e.forwardRef((({children:e,bsPrefix:t,...n},r)=>{t=D(t,"navbar-collapse");const o=i(Oo);return v(We,{in:!(!o||!o.expanded),...n,children:v("div",{ref:r,className:t,children:e})})}));ea.displayName="NavbarCollapse";var ta=ea;const na=e.forwardRef((({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:o="button",onClick:a,...l},s)=>{e=D(e,"navbar-toggler");const{onToggle:c,expanded:u}=i(Oo)||{},f=Ze((e=>{a&&a(e),c&&c()}));return"button"===o&&(l.type="button"),v(o,{...l,ref:s,onClick:f,"aria-label":r,className:k(t,e,!u&&"collapsed"),children:n||v("span",{className:`${e}-icon`})})}));na.displayName="NavbarToggle";var ra=na;const oa=new WeakMap,ia=(e,t)=>{if(!e||!t)return;const n=oa.get(t)||new Map;oa.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function aa(e,t=("undefined"==typeof window?void 0:window)){const n=ia(e,t),[o,i]=r((()=>!!n&&n.matches));return Qe((()=>{let n=ia(e,t);if(!n)return i(!1);let r=oa.get(t);const o=()=>{i(n.matches)};return n.refCount++,n.addListener(o),o(),()=>{n.removeListener(o),n.refCount--,n.refCount<=0&&(null==r||r.delete(n.media)),n=void 0}}),[e]),o}const la=function(e){const t=Object.keys(e);function n(e,t){return e===t?t:e?`${e} and ${t}`:t}function r(n){const r=function(e){return t[Math.min(t.indexOf(e)+1,t.length-1)]}(n);let o=e[r];return o="number"==typeof o?o-.2+"px":`calc(${o} - 0.2px)`,`(max-width: ${o})`}return function(t,o,i){let l;return"object"==typeof t?(l=t,i=o,o=!0):l={[t]:o=o||!0},aa(a((()=>Object.entries(l).reduce(((t,[o,i])=>("up"!==i&&!0!==i||(t=n(t,function(t){let n=e[t];return"number"==typeof n&&(n=`${n}px`),`(min-width: ${n})`}(o))),"down"!==i&&!0!==i||(t=n(t,r(o))),t)),"")),[JSON.stringify(l)]),i)}}({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),sa=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=D(t,"offcanvas-body"),v(n,{ref:o,className:k(e,t),...r}))));sa.displayName="OffcanvasBody";var ca=sa;const ua={[xe]:"show",[Ee]:"show"},fa=e.forwardRef((({bsPrefix:t,className:n,children:r,in:o=!1,mountOnEnter:i=!1,unmountOnExit:a=!1,appear:l=!1,...s},c)=>(t=D(t,"offcanvas"),v($e,{ref:c,addEndListener:De,in:o,mountOnEnter:i,unmountOnExit:a,appear:l,...s,childRef:r.ref,children:(o,i)=>e.cloneElement(r,{...i,className:k(n,r.props.className,(o===xe||o===Ne)&&`${t}-toggling`,ua[o])})}))));fa.displayName="OffcanvasToggling";var da=fa;const pa=e.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=D(e,"offcanvas-header"),v(Hi,{ref:i,...o,className:k(t,e),closeLabel:n,closeButton:r}))));pa.displayName="OffcanvasHeader";var ha=pa;const va=Ge("h5"),ya=e.forwardRef((({className:e,bsPrefix:t,as:n=va,...r},o)=>(t=D(t,"offcanvas-title"),v(n,{ref:o,className:k(e,t),...r}))));ya.displayName="OffcanvasTitle";var ma=ya;function ba(e){return v(da,{...e})}function ga(e){return v(st,{...e})}const wa=e.forwardRef((({bsPrefix:e,className:t,children:s,"aria-labelledby":c,placement:u="start",responsive:f,show:d=!1,backdrop:p=!0,keyboard:h=!0,scroll:b=!1,onEscapeKeyDown:g,onShow:w,onHide:O,container:_,autoFocus:x=!0,enforceFocus:E=!0,restoreFocus:N=!0,restoreFocusOptions:j,onEntered:P,onExit:S,onExiting:C,onEnter:A,onEntering:T,onExited:L,backdropClassName:R,manager:q,renderStaticNode:M=!1,...I},B)=>{const F=n();e=D(e,"offcanvas");const{onToggle:U}=i(Oo)||{},[H,$]=r(!1),V=la(f||"xs","up");l((()=>{$(f?d&&!V:d)}),[d,f,V]);const K=Ze((()=>{null==U||U(),null==O||O()})),z=a((()=>({onHide:K})),[K]);const W=o((t=>v("div",{...t,className:k(`${e}-backdrop`,R)})),[R,e]),Z=n=>v("div",{...n,...I,className:k(t,f?`${e}-${f}`:e,`${e}-${u}`),"aria-labelledby":c,children:s});return m(y,{children:[!H&&(f||M)&&Z({}),v(Fi.Provider,{value:z,children:v(Ti,{show:H,ref:B,backdrop:p,container:_,keyboard:h,autoFocus:x,enforceFocus:E&&!b,restoreFocus:N,restoreFocusOptions:j,onEscapeKeyDown:g,onShow:w,onHide:K,onEnter:(e,...t)=>{e&&(e.style.visibility="visible"),null==A||A(e,...t)},onEntering:T,onEntered:P,onExit:S,onExiting:C,onExited:(e,...t)=>{e&&(e.style.visibility=""),null==L||L(...t)},manager:q||(b?(F.current||(F.current=new Bi({handleContainerOverflow:!1})),F.current):function(e){return Ii||(Ii=new Di(e)),Ii}()),transition:ba,backdropTransition:ga,renderBackdrop:W,renderDialog:Z})})]})}));wa.displayName="Offcanvas";var Oa=Object.assign(wa,{Body:ca,Header:ha,Title:ma});const _a=e.forwardRef(((e,t)=>{const n=i(Oo);return v(Oa,{ref:t,show:!(null==n||!n.expanded),...e,renderStaticNode:!0})}));_a.displayName="NavbarOffcanvas";var xa=_a;const Ea=e.forwardRef((({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=D(t,"navbar-text"),v(n,{ref:o,className:k(e,t),...r}))));Ea.displayName="NavbarText";var Na=Ea;const ka=e.forwardRef(((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:i="light",bg:l,fixed:s,sticky:c,className:u,as:f="nav",expanded:d,onToggle:p,onSelect:h,collapseOnSelect:y=!1,...m}=R(e,{expanded:"onToggle"}),b=D(n,"navbar"),g=o(((...e)=>{null==h||h(...e),y&&d&&(null==p||p(!1))}),[h,y,d,p]);void 0===m.role&&"nav"!==f&&(m.role="navigation");let w=`${b}-expand`;"string"==typeof r&&(w=`${w}-${r}`);const O=a((()=>({onToggle:()=>null==p?void 0:p(!d),bsPrefix:b,expanded:!!d,expand:r})),[b,d,r,p]);return v(Oo.Provider,{value:O,children:v(Zr.Provider,{value:g,children:v(f,{ref:t,...m,className:k(u,b,r&&w,i&&`${b}-${i}`,l&&`bg-${l}`,c&&`sticky-${c}`,s&&`fixed-${s}`)})})})}));ka.displayName="Navbar";var ja=Object.assign(ka,{Brand:Qi,Collapse:ta,Offcanvas:xa,Text:Na,Toggle:ra});const Pa=e.forwardRef((({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=D(e,"row"),a=I(),l=B(),s=`${i}-cols`,c=[];return a.forEach((e=>{const t=r[e];let n;delete r[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const o=e!==l?`-${e}`:"";null!=n&&c.push(`${s}${o}-${n}`)})),v(n,{ref:o,...r,className:k(t,i,...c)})}));Pa.displayName="Row";var Sa=Pa;var Ca,Aa=e.forwardRef((({bsPrefix:e,className:t,striped:n,bordered:r,borderless:o,hover:i,size:a,variant:l,responsive:s,...c},u)=>{const f=D(e,"table"),d=k(t,f,l&&`${f}-${l}`,a&&`${f}-${a}`,n&&`${f}-${"string"==typeof n?`striped-${n}`:"striped"}`,r&&`${f}-bordered`,o&&`${f}-borderless`,i&&`${f}-hover`),p=v("table",{...c,className:d,ref:u});if(s){let e=`${f}-responsive`;return"string"==typeof s&&(e=`${e}-${s}`),v("div",{className:e,children:p})}return p})),Ta=function(e){var n=e.label,r=e.icon,o=e.children,i=e.className,a=e.variant,l=O(e,["label","icon","children","className","variant"]);return t.createElement(pt,w({className:i,variant:a||"primary"},l),n||null,r?t.createElement("i",{className:"bi bi-".concat(r)}):null,o)};!function(e){e[e.NONE=0]="NONE",e[e.HEAD=1]="HEAD",e[e.BODY=2]="BODY"}(Ca||(Ca={}));var La=u(Ca.NONE),Ra=function(e){var n=e.className,r=e.children,o=O(e,["className","children"]);return t.createElement(Aa,w({className:"".concat(n," texmo-table")},o),r)};Ra.Head=function(e){var n=e.children,r=O(e,["children"]);return t.createElement(La.Provider,{value:Ca.HEAD},t.createElement("thead",w({},r),n))},Ra.Row=function(e){var n=e.borderColour,r=e.className,o=e.style,i=e.children,a=O(e,["borderColour","className","style","children"]);return t.createElement("tr",w({className:"table-responsive text-center h-100 mt-3 mx-0 ".concat(r),style:w({border:"2px solid ".concat(n)},o)},a),i)},Ra.Cell=function(e){var n=e.borderStart,r=e.className,o=e.children,a=O(e,["borderStart","className","children"]),l=n?"border-start":void 0;switch(i(La)){case Ca.HEAD:return t.createElement("th",w({scope:"col list-cell",className:r},a),o);case Ca.BODY:case Ca.NONE:default:return t.createElement("td",w({className:"px-0 pt-0 pb-3 texmo-table"},a),t.createElement("div",w({className:"h-100 d-flex align-items-center list-cell ".concat(r)},a),t.createElement(Dt,{className:"h-100 w-100 py-3"},t.createElement(Dt.Body,{className:"d-flex justify-content-center align-items-center py-0 ".concat(l)},t.createElement("div",{className:"w-100 h-100"},o)))))}},Ra.Body=function(e){var n=e.children,r=O(e,["children"]);return t.createElement("tbody",w({},r),t.createElement(La.Provider,{value:Ca.BODY},n))};var qa=function(e){var n=e.className,r=O(e,["className"]);return t.createElement(Uo,w({as:"input",className:n},r))};qa.Feedback=To;var Ma=function(e){var n=e.label,r=e.children,o=e.className;return t.createElement(Wo,{className:o},n?t.createElement("small",{className:"text-muted"},n):null,r)},Da=function(e){var n=e.className,r=e.children,o=O(e,["className","children"]);return t.createElement(Xo,w({className:n},o),r)};Da.Feedback=To;var Ia=function(e){var n=e.type,r=e.className,o=O(e,["type","className"]);return t.createElement(Bo,w({type:n},o,{className:r}))};Ia.Feedback=To;var Ba=function(){this.__data__=[],this.size=0};var Fa=function(e,t){return e===t||e!=e&&t!=t},Ua=Fa;var Ha=function(e,t){for(var n=e.length;n--;)if(Ua(e[n][0],t))return n;return-1},$a=Ha,Va=Array.prototype.splice;var Ka=Ha;var za=Ha;var Wa=Ha;var Za=Ba,Ga=function(e){var t=this.__data__,n=$a(t,e);return!(n<0)&&(n==t.length-1?t.pop():Va.call(t,n,1),--this.size,!0)},Ya=function(e){var t=this.__data__,n=Ka(t,e);return n<0?void 0:t[n][1]},Xa=function(e){return za(this.__data__,e)>-1},Ja=function(e,t){var n=this.__data__,r=Wa(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Qa(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tl))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,p=2&n?new Bs:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},Ec=Ol,Nc=xc,kc=cc,jc={};jc["[object Float32Array]"]=jc["[object Float64Array]"]=jc["[object Int8Array]"]=jc["[object Int16Array]"]=jc["[object Int32Array]"]=jc["[object Uint8Array]"]=jc["[object Uint8ClampedArray]"]=jc["[object Uint16Array]"]=jc["[object Uint32Array]"]=!0,jc["[object Arguments]"]=jc["[object Array]"]=jc["[object ArrayBuffer]"]=jc["[object Boolean]"]=jc["[object DataView]"]=jc["[object Date]"]=jc["[object Error]"]=jc["[object Function]"]=jc["[object Map]"]=jc["[object Number]"]=jc["[object Object]"]=jc["[object RegExp]"]=jc["[object Set]"]=jc["[object String]"]=jc["[object WeakMap]"]=!1;var Pc=function(e){return kc(e)&&Nc(e.length)&&!!jc[Ec(e)]};var Sc=function(e){return function(t){return e(t)}},Cc={exports:{}};!function(e,t){var n=al,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(Cc,Cc.exports);var Ac=Cc.exports,Tc=Pc,Lc=Sc,Rc=Ac&&Ac.isTypedArray,qc=Rc?Lc(Rc):Tc,Mc=sc,Dc=mc,Ic=Qs,Bc=wc,Fc=_c,Uc=qc,Hc=Object.prototype.hasOwnProperty;var $c=function(e,t){var n=Ic(e),r=!n&&Dc(e),o=!n&&!r&&Bc(e),i=!n&&!r&&!o&&Uc(e),a=n||r||o||i,l=a?Mc(e.length,String):[],s=l.length;for(var c in e)!t&&!Hc.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Fc(c,s))||l.push(c);return l},Vc=Object.prototype;var Kc=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Vc)};var zc=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Wc=Kc,Zc=zc,Gc=Object.prototype.hasOwnProperty;var Yc=kl,Xc=xc;var Jc=$c,Qc=function(e){if(!Wc(e))return Zc(e);var t=[];for(var n in Object(e))Gc.call(e,n)&&"constructor"!=n&&t.push(n);return t},eu=function(e){return null!=e&&Xc(e.length)&&!Yc(e)};var tu=nc,nu=lc,ru=function(e){return eu(e)?Jc(e):Qc(e)};var ou=function(e){return tu(e,ru,nu)},iu=Object.prototype.hasOwnProperty;var au=function(e,t,n,r,o,i){var a=1&n,l=ou(e),s=l.length;if(s!=ou(t).length&&!a)return!1;for(var c=s;c--;){var u=l[c];if(!(a?u in t:iu.call(t,u)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++c1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return u[r.blotName||r.attrName]=r,"string"==typeof r.keyName?l[r.keyName]=r:(null!=r.className&&(s[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(e){null!=c[e]&&null!=r.className||(c[e]=r)})))),r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),o=0;o0&&n.next(i.retain-l)}for(var c=new s(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())c.push(n.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),f=t.next(u),d=n.next(u);if("number"==typeof d.retain){var p={};"number"==typeof f.retain?p.retain=u:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"==typeof f.retain);if(h&&(p.attributes=h),c.push(p),!n.hasNext()&&o(c.ops[c.ops.length-1],p)){var v=new s(t.rest());return c.concat(v).chop()}}else"number"==typeof d.delete&&"number"==typeof f.retain&&c.push(d)}return c.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,c=r(n[0],n[1],t),u=a.iterator(this.ops),f=a.iterator(e.ops);return c.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),i.push(f.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),f.peekLength(),t);var l=u.next(n),s=f.next(n);o(l.insert,s.insert)?i.retain(n,a.attributes.diff(l.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),c="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&e(r,{},o)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),l=n.next(i),c=r.next(i);if(l.delete)continue;c.delete?o.push(c):o.retain(i,a.attributes.transform(l.attributes,c.attributes,t))}else o.retain(a.length(n.next()));return o.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r0&&(e1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:m(e.parent,t))}y.blotName="block",y.tagName="P",y.defaultChild="break",y.allowedChildren=[c.default,l.default.Embed,u.default],t.bubbleFormats=m,t.BlockEmbed=v,t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=w(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new d.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;O.call(n,(function(){return n.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("
"+o+"


");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=_(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],O.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return O.call(this,(function(){var r=n.getSelection(!0),o=new a.default;if(null==r)return o;if(u.default.query(e,u.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,m({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,m({},e,t))}return n.setSelection(r,s.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(e,t,n,r,i){var a,l=this,s=_(e,t,n,r,i),c=o(s,4);return e=c[0],t=c[1],a=c[2],i=c[3],O.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var a,l=this,s=_(e,t,n,r,i),c=o(s,4);return e=c[0],t=c[1],a=c[2],i=c[3],O.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=_(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=_(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return O.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,i){var a,l=this,s=_(e,0,n,r,i),c=o(s,4);return e=c[0],a=c[2],i=c[3],O.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=_(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],O.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return O.call(this,(function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=_(t,n,r),a=o(i,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(t,n),r),r!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return O.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function w(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==g.DEFAULTS.theme){if(t.theme=g.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=v.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=g.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},g.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function O(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=x(o,l,t):0!==r&&(o=x(o,n,r,t)),this.setSelection(o,s.default.sources.SILENT)),l.length()>0){var c,u,f=[s.default.events.TEXT_CHANGE,l,i,t];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(f)),t!==s.default.sources.SILENT&&(u=this.emitter).emit.apply(u,f)}return l}function _(e,t,n,o,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(a=n,i=o):"string"==typeof n&&(null!=o?a[n]=o:i=n),[e,t,a,i=i||s.default.sources.API]}function x(e,t,n,r){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var c=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==s.default.sources.USER)})),u=o(c,2);i=u[0],l=u[1]}else{var d=[e.index,e.index+e.length].map((function(e){return e=0?e+n:Math.max(t,e+n)})),p=o(d,2);i=p[0],l=p[1]}return new f.Range(i,l-i)}g.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},g.events=s.default.events,g.sources=s.default.sources,g.version="1.3.7",g.imports={delta:a.default,parchment:u.default,"core/module":c.default,"core/theme":v.default},t.expandConfig=w,t.overload=_,t.default=g},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a=0;c--)if(f[c]!=d[c])return!1;for(c=f.length-1;c>=0;c--)if(u=f[c],!a(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function l(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n=e+n)){var a=this.newlineIndex(e,!0)+1,s=i-a+1,c=this.isolate(a,s),u=c.next;c.format(r,o),u instanceof t&&u.formatAt(0,e-a+n-s,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(u.default,e),i=r(o,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);y.blotName="code-block",y.tagName="PRE",y.TAB=" ",t.Code=v,t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),v=o(h,2),m=v[0],b=v[1],g=(0,y.default)({},(0,f.bubbleFormats)(m));if(m instanceof d.default){var w=m.descendant(s.default.Leaf,b),O=o(w,1)[0];g=(0,y.default)(g,(0,f.bubbleFormats)(O))}u=l.default.attributes.diff(g,u)||{}}else if("object"===r(a.insert)){var _=Object.keys(a.insert)[0];if(null==_)return e;t.scroll.insertAt(e,_,a.insert[_])}i+=c}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,c,n,u[n])})),e+c}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof c.default){var l=e-t.offset(n.scroll),s=t.newlineIndex(l+a)-l+1;t.formatAt(l,s,o,r[o])}else t.format(o,r[o]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof d.default?n.push(t):t instanceof s.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=w((0,f.bubbleFormats)(n),t)}return t}));return y.default.apply(y.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===d.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),l=i[0],s=i[1],u=0,f=new a.default;null!=l&&(u=l instanceof c.default?l.newlineIndex(s)-s+1:l.length()-s,f=l.delta().slice(s,s+u-1).insert("\n"));var d=this.getContents(e,t+u).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(b)&&s.default.find(t[0].target)){var o=s.default.find(t[0].target),i=(0,f.bubbleFormats)(o),l=o.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),d=(new a.default).insert(c),p=(new a.default).insert(o.value());e=(new a.default).retain(l).concat(d.diff(p,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,v.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function w(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=g},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;f(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;f(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&r.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(o,i,a,l)}})),this.update(s.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),a=r(i,2),l=a[0],s=a[1];if(null==l)return null;var c=l.position(s,!0),u=r(c,2);o=u[0],s=u[1];var f=document.createRange();if(t>0){f.setStart(o,s);var d=this.scroll.leaf(e+t),p=r(d,2);if(l=p[0],s=p[1],null==l)return null;var h=l.position(s,!0),v=r(h,2);return o=v[0],s=v[1],f.setEnd(o,s),f.getBoundingClientRect()}var y="left",m=void 0;return o instanceof Text?(s0&&(y="right")),{bottom:m.top+m.height,height:m.height,left:m[y],right:m[y],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],a=n[1],l=i.default.find(o,!0),s=l.offset(t.scroll);return 0===a?s:l instanceof i.default.Container?s+l.length():s+l.index(o,a)})),a=Math.min(Math.max.apply(Math,u(o)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(u(o)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!v(this.root,e.startContainer)||!e.collapsed&&!v(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,l=t.scroll.leaf(e),s=r(l,2),c=s[0],u=s[1],f=c.position(u,0!==n),d=r(f,2);a=d[0],u=d[1],o.push(a,u)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=r(i,1)[0],l=a;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,o));l=r(s,1)[0]}if(null!=a&&null!=l){var c=e.getBoundingClientRect();n.topc.bottom&&(e.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,r),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),d.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,u(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],c=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[s.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(d)),e!==s.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),e}();function v(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function o(i,l,s,c,u){"object"==typeof l&&(s=l.depth,c=l.prototype,u=l.includeNonEnumerable,l=l.circular);var f=[],d=[],p="undefined"!=typeof Buffer;return void 0===l&&(l=!0),void 0===s&&(s=1/0),function i(s,h){if(null===s)return null;if(0===h)return s;var v,y;if("object"!=typeof s)return s;if(e(s,t))v=new t;else if(e(s,n))v=new n;else if(e(s,r))v=new r((function(e,t){s.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(o.__isArray(s))v=[];else if(o.__isRegExp(s))v=new RegExp(s.source,a(s)),s.lastIndex&&(v.lastIndex=s.lastIndex);else if(o.__isDate(s))v=new Date(s.getTime());else{if(p&&Buffer.isBuffer(s))return v=Buffer.allocUnsafe?Buffer.allocUnsafe(s.length):new Buffer(s.length),s.copy(v),v;e(s,Error)?v=Object.create(s):void 0===c?(y=Object.getPrototypeOf(s),v=Object.create(y)):(v=Object.create(c),y=c)}if(l){var m=f.indexOf(s);if(-1!=m)return d[m];f.push(s),d.push(v)}for(var b in e(s,t)&&s.forEach((function(e,t){var n=i(t,h-1),r=i(e,h-1);v.set(n,r)})),e(s,n)&&s.forEach((function(e){var t=i(e,h-1);v.add(t)})),s){var g;y&&(g=Object.getOwnPropertyDescriptor(y,b)),g&&null==g.set||(v[b]=i(s[b],h-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(s);for(b=0;b0){if(l instanceof s.BlockEmbed||p instanceof s.BlockEmbed)return void this.optimize();if(l instanceof f.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var v=p.newlineIndex(0);v>-1&&p.split(v+1)}var y=p.children.head instanceof u.default?null:p.children.head;l.moveChildren(p,y),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var l=a.default.create(n,r);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,(function(t,n,r){h(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,n,i))),i-=r})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[c.default,s.BlockEmbed,d.default],t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=j(e);if(null==r||null==r.key)return m.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,s.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var c=e.quill.getLine(s.index),u=o(c,2),d=u[0],p=u[1],h=e.quill.getLeaf(s.index),v=o(h,2),y=v[0],m=v[1],b=0===s.length?[y,m]:e.quill.getLeaf(s.index+s.length),g=o(b,2),w=g[0],O=g[1],_=y instanceof f.default.Text?y.value().slice(0,m):"",x=w instanceof f.default.Text?w.value().slice(O):"",E={collapsed:0===s.length,empty:0===s.length&&d.length()<=1,format:e.quill.getFormat(s),offset:p,prefix:_,suffix:x};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed)return!1;if(null!=t.empty&&t.empty!==E.empty)return!1;if(null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==E.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,l.default)(t.format[e],E.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix)||null!=t.suffix&&!t.suffix.test(E.suffix)||!0===t.handler.call(e,s,E))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function w(e,t){var n,r=e===g.keys.LEFT?"prefix":"suffix";return y(n={key:e,shiftKey:t,altKey:null},r,/^$/),y(n,"handler",(function(n){var r=n.index;e===g.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof f.default.Embed&&(e===g.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),1))})),n}function O(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=o(a,1)[0];if(null!=l&&l.length()>1){var s=r.formats(),c=this.quill.getFormat(e.index-1,1);i=u.default.attributes.diff(s,c)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,d.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-f,f,i,d.default.sources.USER),this.quill.focus()}}function _(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(e.index),l=o(a,1)[0];if(t.offset>=l.length()-1){var s=this.quill.getLine(e.index+1),c=o(s,1)[0];if(c){var f=l.formats(),p=this.quill.getFormat(e.index,1);r=u.default.attributes.diff(f,p)||{},i=c.length()}}this.quill.deleteText(e.index,n,d.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,d.default.sources.USER)}}function x(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=u.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,d.default.sources.USER),this.quill.setSelection(e.index,d.default.sources.SILENT),this.quill.focus()}function E(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],d.default.sources.USER))}))}function N(e){return{key:g.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=f.default.query("code-block"),r=t.index,i=t.length,a=this.quill.scroll.descendant(n,r),l=o(a,2),s=l[0],c=l[1];if(null!=s){var u=this.quill.getIndex(s),p=s.newlineIndex(c,!0)+1,h=s.newlineIndex(u+c+i),v=s.domNode.textContent.slice(p,h).split("\n");c=0,v.forEach((function(t,o){e?(s.insertAt(p+c,n.TAB),c+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(p+c,n.TAB.length),c-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),c+=t.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,i,d.default.sources.SILENT)}}}}function k(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],d.default.sources.USER)}}}function j(e){if("string"==typeof e||"number"==typeof e)return j({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=g.keys[e.key.toUpperCase()])e.key=g.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}g.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},g.DEFAULTS={bindings:{bold:k("bold"),italic:k("italic"),underline:k("underline"),indent:{key:g.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:g.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:g.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",d.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":N(!0),"outdent code-block":N(!1),"remove tab":{key:g.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,d.default.sources.USER)}},tab:{key:g.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,d.default.sources.SILENT)}},"list empty enter":{key:g.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,d.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:g.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(0,s.default)({},r.formats(),{list:"checked"}),l=(new c.default).retain(e.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:g.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],a=r[1],l=(new c.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),a=i[0],l=i[1];if(l>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",d.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:s});this.quill.updateContents(u,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,d.default.sources.SILENT)}},"code exit":{key:g.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(new c.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":w(g.keys.LEFT,!1),"embed left shift":w(g.keys.LEFT,!0),"embed right":w(g.keys.RIGHT,!1),"embed right shift":w(g.keys.RIGHT,!0)}},t.default=g,t.SHORTKEY=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=l,t.sanitize=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=m(n(0)),o=m(n(5)),i=n(4),a=m(i),l=m(n(16)),s=m(n(25)),c=m(n(24)),u=m(n(35)),f=m(n(6)),d=m(n(22)),p=m(n(7)),h=m(n(55)),v=m(n(42)),y=m(n(23));function m(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":s.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":v.default,"modules/keyboard":y.default}),r.default.register(a.default,l.default,c.default,f.default,d.default,p.default),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nr&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function s(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,l.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",l.default.sources.USER),this.quill.setSelection(i+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=E,t.default=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(ea?n(r,e-a,Math.min(t,a+s-e)):n(r,0,Math.min(s,e+t-a)),a+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,l),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},s=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(s),e.optimize(n))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(s),o=(c=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=s},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=l},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=a.query(r,a.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),i=a.create(n,r);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=l},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;it.length?e:t,f=e.length>t.length?t:e,d=u.indexOf(f);if(-1!=d)return c=[[r,u.substring(0,d)],[o,f],[r,u.substring(d+f.length)]],e.length>t.length&&(c[0][0]=c[2][0]=n),c;if(1==f.length)return[[n,e],[r,t]];var p=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,o,i,a,f]:null}var i,a,c,u,f,d=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;i=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(a=i[0],c=i[1],u=i[2],f=i[3]):(u=i[0],f=i[1],a=i[2],c=i[3]);var h=i[4];return[a,c,u,f,h]}(e,t);if(p){var h=p[0],v=p[1],y=p[2],m=p[3],b=p[4],g=i(h,y),w=i(v,m);return g.concat([[o,b]],w)}return function(e,t){for(var o=e.length,i=t.length,l=Math.ceil((o+i)/2),s=l,c=2*l,u=new Array(c),f=new Array(c),d=0;do)y+=2;else if(_>i)v+=2;else if(h&&(N=s+p-w)>=0&&N=(E=o-f[N]))return a(e,t,j,_)}for(var x=-g+m;x<=g-b;x+=2){for(var E,N=s+x,k=(E=x==-g||x!=g&&f[N-1]o)b+=2;else if(k>i)m+=2;else if(!h){var j;if((O=s+p-x)>=0&&O=(E=o-E)))return a(e,t,j,_)}}}return[[n,e],[r,t]]}(e,t)}(e=e.substring(0,e.length-d),t=t.substring(0,t.length-d));return p&&v.unshift([o,p]),h&&v.push([o,h]),c(v),null!=u&&(v=function(e,t){var r=function(e,t){if(0===t)return[o,e];for(var r=0,i=0;i0&&i.splice(a+2,0,[s[0],c]),f(i,a,3)}return e}(v,u)),v=function(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},l=2;l0&&s.push(e[l]);return s}(v)}function a(e,t,n,r){var o=e.substring(0,n),a=t.substring(0,r),l=e.substring(n),s=t.substring(r),c=i(o,a),u=i(l,s);return c.concat(u)}function l(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n1?(0!==a&&0!==u&&(0!==(t=l(d,f))&&(i-a-u>0&&e[i-a-u-1][0]==o?e[i-a-u-1][1]+=d.substring(0,t):(e.splice(0,0,[o,d.substring(0,t)]),i++),d=d.substring(t),f=f.substring(t)),0!==(t=s(d,f))&&(e[i][1]=d.substring(d.length-t)+e[i][1],d=d.substring(0,d.length-t),f=f.substring(0,f.length-t))),0===a?e.splice(i-u,a+u,[r,d]):0===u?e.splice(i-a,a+u,[n,f]):e.splice(i-a-u,a+u,[n,f],[r,d]),i=i-a-u+(a?1:0)+(u?1:0)+1):0!==i&&e[i-1][0]==o?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,u=0,a=0,f="",d=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(i=1;i=0&&r>=t-1;r--)if(r+1=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=j(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!S(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(s.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",T.bind(T,"bold")],["i",T.bind(T,"italic")],["style",function(){return new l.default}]],E=[d.AlignAttribute,y.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),N=[d.AlignStyle,p.BackgroundStyle,v.ColorStyle,y.DirectionStyle,m.FontStyle,b.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),k=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],x.concat(r.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],a=t[1];(n.matchVisual||a!==M)&&r.addMatcher(i,a)})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\<"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,w({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],s=i[1],c=A(this.container,a,s);return S(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new l.default).retain(c.length()-1).delete(1))),O.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new l.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,c.default.sources.USER),t.quill.setSelection(r.length()-n.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[_]=e[_]||[],e[_].push(l)}))}})),[t,n]}}]),t}(f.default);function j(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return j(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},w({},t,n),r.attributes))}),new l.default)}function P(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function S(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length-1}function A(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var i=A(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[_]||[]).reduce((function(e,t){return t(o,e)}),i)),r.concat(i)}),new l.default):new l.default}function T(e,t,n){return j(n,e,!0)}function L(e,t){var n=s.default.Attributor.Attribute.keys(e),r=s.default.Attributor.Class.keys(e),o=s.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=E[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=N[t])||n.attrName!==t&&n.keyName!==t||(n=N[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=j(t,i)),t}function R(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new l.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=j(t,n.blotName,n.formats(e)));return t}function q(e,t){return S(t,"\n")||(C(e)||t.length()>0&&e.nextSibling&&C(e.nextSibling))&&t.insert("\n"),t}function M(e,t){if(C(e)&&null!=e.nextElementSibling&&!S(t,"\n\n")){var n=e.offsetHeight+parseFloat(P(e).marginTop)+parseFloat(P(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function D(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!P(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&C(e.parentNode)||null!=e.previousSibling&&C(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&C(e.parentNode)||null!=e.nextSibling&&C(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}k.DEFAULTS={matchers:[],matchVisual:!0},t.default=k,t.matchAttributor=L,t.matchBlot=R,t.matchNewline=q,t.matchSpacing=M,t.matchText=D},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n '},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;nr.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.leftr.bottom){var a=o.bottom-o.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n','','',''].join(""),t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=q(n(29)),o=n(36),i=n(38),a=n(64),l=q(n(65)),s=q(n(66)),c=n(67),u=q(c),f=n(37),d=n(26),p=n(39),h=n(40),v=q(n(56)),y=q(n(68)),m=q(n(27)),b=q(n(69)),g=q(n(70)),w=q(n(71)),O=q(n(72)),_=q(n(73)),x=n(13),E=q(x),N=q(n(74)),k=q(n(75)),j=q(n(57)),P=q(n(41)),S=q(n(28)),C=q(n(59)),A=q(n(60)),T=q(n(61)),L=q(n(108)),R=q(n(62));function q(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":E.default,"formats/header":s.default,"formats/list":u.default,"formats/bold":v.default,"formats/code":x.Code,"formats/italic":y.default,"formats/link":m.default,"formats/script":b.default,"formats/strike":g.default,"formats/underline":w.default,"formats/image":O.default,"formats/video":_.default,"formats/list/item":c.ListItem,"modules/formula":N.default,"modules/syntax":k.default,"modules/toolbar":j.default,"themes/bubble":L.default,"themes/snow":R.default,"ui/icons":P.default,"ui/picker":S.default,"ui/icon-picker":A.default,"ui/color-picker":C.default,"ui/tooltip":T.default},!0),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof d)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],t.ListItem=d,t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="italic",i.tagName=["EM","I"],t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return c.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l.default.Embed);u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return c.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);d.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){c(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(d,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=p,t.default=h},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n0&&o===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var l=i[i.length-1],s=r.quill.getIndex(l),u=Math.min(l.length()-1,t.index+t.length-s),f=r.quill.getBounds(new c.Range(s,u));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);m.TEMPLATE=['','
','','',"
"].join(""),t.BubbleTooltip=m,t.default=y},function(e,t,n){e.exports=n(63)}]).default};var Vu,Ku=$u.exports=Uu(),zu=_&&_.__extends||(Vu=function(e,t){return Vu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Vu(e,t)},function(e,t){function n(){this.constructor=e}Vu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Wu=_&&_.__assign||function(){return Wu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1)throw new Error("The Quill editing area can only be composed of a single React element.");if(Yu.default.Children.count(e.children)&&"textarea"===(null===(t=Yu.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a