From f44d3124f2a46332c8a6cb3b5b3eff03374fc49b Mon Sep 17 00:00:00 2001 From: Ian Vexler <105754525+ianvexler@users.noreply.github.com> Date: Tue, 6 Feb 2024 12:07:29 +0000 Subject: [PATCH] Added Button, Form and Table skeleton (#1) * WIP * Tidy * Started adding table * Finished skeleton for Table component * Added CODEOWNERS * Added form skeleton * Added form Rich Text * Added form Date Time Picker * Use latest Node LTS * Include /dist * Updated dist * Working SCSS * Added examples * Changes * Added card * Classes to functional components --------- Co-authored-by: Kishan Jadav --- .eslintrc.js | 4 +- .github/CODEOWNERS | 1 + .gitignore | 2 - .npmignore | 1 + .nvmrc | 2 +- commitlint.config.js | 1 - dist/Text.d.ts | 3 + dist/Text.d.ts.map | 1 + dist/components/button/Button.d.ts | 10 + dist/components/button/Button.d.ts.map | 1 + dist/components/card/Card.d.ts | 7 + dist/components/card/Card.d.ts.map | 1 + dist/components/form/Form.d.ts | 17 + dist/components/form/Form.d.ts.map | 1 + dist/components/form/FormGroup.d.ts | 8 + dist/components/form/FormGroup.d.ts.map | 1 + .../components/form/components/FormCheck.d.ts | 7 + .../form/components/FormCheck.d.ts.map | 1 + .../form/components/FormControl.d.ts | 7 + .../form/components/FormControl.d.ts.map | 1 + .../form/components/FormDateTime.d.ts | 7 + .../form/components/FormDateTime.d.ts.map | 1 + .../components/form/components/FormLabel.d.ts | 8 + .../form/components/FormLabel.d.ts.map | 1 + .../form/components/FormRichText.d.ts | 8 + .../form/components/FormRichText.d.ts.map | 1 + .../form/components/FormSelect.d.ts | 7 + .../form/components/FormSelect.d.ts.map | 1 + dist/components/table/Table.d.ts | 13 + dist/components/table/Table.d.ts.map | 1 + .../components/table/TableSectionContext.d.ts | 9 + .../table/TableSectionContext.d.ts.map | 1 + .../table/components/TableBody.d.ts | 6 + .../table/components/TableBody.d.ts.map | 1 + .../table/components/TableCell.d.ts | 6 + .../table/components/TableCell.d.ts.map | 1 + .../table/components/TableHead.d.ts | 6 + .../table/components/TableHead.d.ts.map | 1 + .../components/table/components/TableRow.d.ts | 6 + .../table/components/TableRow.d.ts.map | 1 + dist/components/text/Text.d.ts | 6 + dist/components/text/Text.d.ts.map | 1 + dist/components/title/Text.d.ts | 6 + dist/components/title/Text.d.ts.map | 1 + dist/components/title/Title.d.ts | 7 + dist/components/title/Title.d.ts.map | 1 + dist/index.d.ts | 7 + dist/index.d.ts.map | 1 + dist/index.es.js | 127 + dist/index.es.js.map | 1 + dist/index.js | 54303 ++++++++++++++++ dist/index.js.map | 1 + dist/index.min.js | 127 + dist/index.min.js.map | 1 + dist/types.d.ts | 2 + dist/types.d.ts.map | 1 + example/.eslintrc.cjs | 18 + example/.gitignore | 24 + example/README.md | 30 + example/index.html | 13 + example/package-lock.json | 3435 + example/package.json | 30 + example/src/App.tsx | 99 + example/src/index.scss | 5 + example/src/main.tsx | 9 + example/src/vite-env.d.ts | 1 + example/tsconfig.json | 25 + example/tsconfig.node.json | 10 + example/vite.config.ts | 7 + package-lock.json | 1268 +- package.json | 14 +- rollup.config.js | 9 +- scss/App.scss | 52 + scss/_variables.scss | 12 + scss/fonts.scss | 33 + scss/texmo-react-components.scss | 12 + src/Globals.d.ts | 1 - src/components/button/Button.scss | 15 + src/components/button/Button.tsx | 22 + src/components/card/Card.scss | 14 + src/components/card/Card.tsx | 16 + src/components/form/Form.tsx | 24 + src/components/form/FormGroup.tsx | 18 + src/components/form/components/FormCheck.tsx | 10 + .../form/components/FormControl.tsx | 10 + .../form/components/FormDateTime.tsx | 26 + src/components/form/components/FormLabel.tsx | 15 + .../form/components/FormRichText.scss | 1 + .../form/components/FormRichText.tsx | 11 + src/components/form/components/FormSelect.tsx | 14 + src/components/table/Table.tsx | 23 + src/components/table/TableSectionContext.ts | 11 + src/components/table/components/TableBody.tsx | 17 + src/components/table/components/TableCell.tsx | 27 + src/components/table/components/TableHead.tsx | 15 + src/components/table/components/TableRow.tsx | 13 + src/components/title/Title.scss | 3 + src/components/title/Title.tsx | 15 + src/index.ts | 7 + src/index.tsx | 23 - src/styles.module.css | 3 - src/types.ts | 1 + 102 files changed, 59927 insertions(+), 290 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 .npmignore delete mode 100644 commitlint.config.js create mode 100644 dist/Text.d.ts create mode 100644 dist/Text.d.ts.map create mode 100644 dist/components/button/Button.d.ts create mode 100644 dist/components/button/Button.d.ts.map create mode 100644 dist/components/card/Card.d.ts create mode 100644 dist/components/card/Card.d.ts.map create mode 100644 dist/components/form/Form.d.ts create mode 100644 dist/components/form/Form.d.ts.map create mode 100644 dist/components/form/FormGroup.d.ts create mode 100644 dist/components/form/FormGroup.d.ts.map create mode 100644 dist/components/form/components/FormCheck.d.ts create mode 100644 dist/components/form/components/FormCheck.d.ts.map create mode 100644 dist/components/form/components/FormControl.d.ts create mode 100644 dist/components/form/components/FormControl.d.ts.map create mode 100644 dist/components/form/components/FormDateTime.d.ts create mode 100644 dist/components/form/components/FormDateTime.d.ts.map create mode 100644 dist/components/form/components/FormLabel.d.ts create mode 100644 dist/components/form/components/FormLabel.d.ts.map create mode 100644 dist/components/form/components/FormRichText.d.ts create mode 100644 dist/components/form/components/FormRichText.d.ts.map create mode 100644 dist/components/form/components/FormSelect.d.ts create mode 100644 dist/components/form/components/FormSelect.d.ts.map create mode 100644 dist/components/table/Table.d.ts create mode 100644 dist/components/table/Table.d.ts.map create mode 100644 dist/components/table/TableSectionContext.d.ts create mode 100644 dist/components/table/TableSectionContext.d.ts.map create mode 100644 dist/components/table/components/TableBody.d.ts create mode 100644 dist/components/table/components/TableBody.d.ts.map create mode 100644 dist/components/table/components/TableCell.d.ts create mode 100644 dist/components/table/components/TableCell.d.ts.map create mode 100644 dist/components/table/components/TableHead.d.ts create mode 100644 dist/components/table/components/TableHead.d.ts.map create mode 100644 dist/components/table/components/TableRow.d.ts create mode 100644 dist/components/table/components/TableRow.d.ts.map create mode 100644 dist/components/text/Text.d.ts create mode 100644 dist/components/text/Text.d.ts.map create mode 100644 dist/components/title/Text.d.ts create mode 100644 dist/components/title/Text.d.ts.map create mode 100644 dist/components/title/Title.d.ts create mode 100644 dist/components/title/Title.d.ts.map create mode 100644 dist/index.d.ts create mode 100644 dist/index.d.ts.map create mode 100644 dist/index.es.js create mode 100644 dist/index.es.js.map create mode 100644 dist/index.js create mode 100644 dist/index.js.map create mode 100644 dist/index.min.js create mode 100644 dist/index.min.js.map create mode 100644 dist/types.d.ts create mode 100644 dist/types.d.ts.map create mode 100644 example/.eslintrc.cjs create mode 100644 example/.gitignore create mode 100644 example/README.md create mode 100644 example/index.html create mode 100644 example/package-lock.json create mode 100644 example/package.json create mode 100644 example/src/App.tsx create mode 100644 example/src/index.scss create mode 100644 example/src/main.tsx create mode 100644 example/src/vite-env.d.ts create mode 100644 example/tsconfig.json create mode 100644 example/tsconfig.node.json create mode 100644 example/vite.config.ts create mode 100644 scss/App.scss create mode 100644 scss/_variables.scss create mode 100644 scss/fonts.scss create mode 100644 scss/texmo-react-components.scss delete mode 100644 src/Globals.d.ts create mode 100644 src/components/button/Button.scss create mode 100644 src/components/button/Button.tsx create mode 100644 src/components/card/Card.scss create mode 100644 src/components/card/Card.tsx create mode 100644 src/components/form/Form.tsx create mode 100644 src/components/form/FormGroup.tsx create mode 100644 src/components/form/components/FormCheck.tsx create mode 100644 src/components/form/components/FormControl.tsx create mode 100644 src/components/form/components/FormDateTime.tsx create mode 100644 src/components/form/components/FormLabel.tsx create mode 100644 src/components/form/components/FormRichText.scss create mode 100644 src/components/form/components/FormRichText.tsx create mode 100644 src/components/form/components/FormSelect.tsx create mode 100644 src/components/table/Table.tsx create mode 100644 src/components/table/TableSectionContext.ts create mode 100644 src/components/table/components/TableBody.tsx create mode 100644 src/components/table/components/TableCell.tsx create mode 100644 src/components/table/components/TableHead.tsx create mode 100644 src/components/table/components/TableRow.tsx create mode 100644 src/components/title/Title.scss create mode 100644 src/components/title/Title.tsx create mode 100644 src/index.ts delete mode 100644 src/index.tsx delete mode 100644 src/styles.module.css create mode 100644 src/types.ts diff --git a/.eslintrc.js b/.eslintrc.js index 290a0dc..a846a10 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -30,6 +30,8 @@ module.exports = { '@typescript-eslint/no-use-before-define': ['error'], 'react-hooks/rules-of-hooks': 'error', // Checks rules of Hooks 'react-hooks/exhaustive-deps': 'warn', // Checks effect dependencies - 'react/react-in-jsx-scope': 'off', // suppress errors for missing 'import React' in files + 'react/react-in-jsx-scope': 'off', // suppress errors for missing 'import React' in files, + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'error', }, }; diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..cab39a8 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +**/* @kishannareshpal @ianvexler @jsteeland @rich-williamson \ No newline at end of file diff --git a/.gitignore b/.gitignore index 73eb718..d566ba5 100644 --- a/.gitignore +++ b/.gitignore @@ -129,6 +129,4 @@ public/ # Ignore all local history of files .history -dist/ - # End of https://www.gitignore.io/api/node,macos,visualstudiocode diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..33a9488 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +example diff --git a/.nvmrc b/.nvmrc index fb457f3..7ea6a59 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16.19.0 +v20.11.0 diff --git a/commitlint.config.js b/commitlint.config.js deleted file mode 100644 index 422b194..0000000 --- a/commitlint.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = { extends: ['@commitlint/config-conventional'] }; diff --git a/dist/Text.d.ts b/dist/Text.d.ts new file mode 100644 index 0000000..9284006 --- /dev/null +++ b/dist/Text.d.ts @@ -0,0 +1,3 @@ +import React from 'react'; +export declare const Text: () => React.JSX.Element; +//# sourceMappingURL=Text.d.ts.map \ No newline at end of file diff --git a/dist/Text.d.ts.map b/dist/Text.d.ts.map new file mode 100644 index 0000000..1f2028f --- /dev/null +++ b/dist/Text.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../src/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,IAAI,yBAEhB,CAAC"} \ No newline at end of file diff --git a/dist/components/button/Button.d.ts b/dist/components/button/Button.d.ts new file mode 100644 index 0000000..800365e --- /dev/null +++ b/dist/components/button/Button.d.ts @@ -0,0 +1,10 @@ +import React from 'react'; +import * as Bootstrap from 'react-bootstrap'; +import { themes } from 'types'; +interface ButtonProps extends Bootstrap.ButtonProps { + label: string; + variant?: themes; +} +declare const Button: ({ label, className, variant, ...rest }: ButtonProps) => React.JSX.Element; +export default Button; +//# sourceMappingURL=Button.d.ts.map \ No newline at end of file diff --git a/dist/components/button/Button.d.ts.map b/dist/components/button/Button.d.ts.map new file mode 100644 index 0000000..6b315c1 --- /dev/null +++ b/dist/components/button/Button.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,UAAU,WAAY,SAAQ,SAAS,CAAC,WAAW;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,MAAM,2CAA4C,WAAW,sBAUlE,CAAC;AAEF,eAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/dist/components/card/Card.d.ts b/dist/components/card/Card.d.ts new file mode 100644 index 0000000..9762ae4 --- /dev/null +++ b/dist/components/card/Card.d.ts @@ -0,0 +1,7 @@ +import React from 'react'; +interface CardProps extends React.HTMLProps { + header?: string; +} +declare const Button: ({ header, children, className, ...rest }: CardProps) => React.JSX.Element; +export default Button; +//# sourceMappingURL=Card.d.ts.map \ No newline at end of file diff --git a/dist/components/card/Card.d.ts.map b/dist/components/card/Card.d.ts.map new file mode 100644 index 0000000..399552e --- /dev/null +++ b/dist/components/card/Card.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,SAAU,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,MAAM,6CAA8C,SAAS,sBAOlE,CAAC;AAEF,eAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/dist/components/form/Form.d.ts b/dist/components/form/Form.d.ts new file mode 100644 index 0000000..936b2b9 --- /dev/null +++ b/dist/components/form/Form.d.ts @@ -0,0 +1,17 @@ +import React from 'react'; +export interface FormProps extends React.HTMLProps { +} +declare const Form: { + ({ children, ...rest }: FormProps): React.JSX.Element; + Group: ({ label, className, children, ...rest }: import("./FormGroup").FormGroupProps) => React.JSX.Element; + Label: ({ label, className }: import("react-bootstrap").FormLabelProps & { + label: string; + }) => React.JSX.Element; + Control: ({ className, ...rest }: import("./components/FormControl").FormControlProps) => React.JSX.Element; + Select: ({ className, children, ...rest }: import("./components/FormSelect").FormSelectProps) => React.JSX.Element; + Check: ({ type, className, ...rest }: import("./components/FormCheck").FormCheckProps) => React.JSX.Element; + RichText: ({ style, ...rest }: import("./components/FormRichText").FormRichText) => React.JSX.Element; + DateTime: ({ ...rest }: import("./components/FormDateTime").FormDateTime) => React.JSX.Element; +}; +export default Form; +//# sourceMappingURL=Form.d.ts.map \ No newline at end of file diff --git a/dist/components/form/Form.d.ts.map b/dist/components/form/Form.d.ts.map new file mode 100644 index 0000000..ace00af --- /dev/null +++ b/dist/components/form/Form.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/form/Form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC;CAAG;AAEtE,QAAA,MAAM,IAAI;4BAA2B,SAAS;;;;;;;;;;CAE7C,CAAC;AAUF,eAAe,IAAI,CAAC"} \ No newline at end of file diff --git a/dist/components/form/FormGroup.d.ts b/dist/components/form/FormGroup.d.ts new file mode 100644 index 0000000..7b4292d --- /dev/null +++ b/dist/components/form/FormGroup.d.ts @@ -0,0 +1,8 @@ +import React from 'react'; +import * as Bootstrap from 'react-bootstrap'; +export interface FormGroupProps extends Bootstrap.FormGroupProps { + label?: string; +} +declare const FormGroup: ({ label, className, children, ...rest }: FormGroupProps) => React.JSX.Element; +export default FormGroup; +//# sourceMappingURL=FormGroup.d.ts.map \ No newline at end of file diff --git a/dist/components/form/FormGroup.d.ts.map b/dist/components/form/FormGroup.d.ts.map new file mode 100644 index 0000000..c12c28f --- /dev/null +++ b/dist/components/form/FormGroup.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FormGroup.d.ts","sourceRoot":"","sources":["../../../src/components/form/FormGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAG7C,MAAM,WAAW,cAAe,SAAQ,SAAS,CAAC,cAAc;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,SAAS,4CAA6C,cAAc,sBAOzE,CAAC;AAEF,eAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/components/form/components/FormCheck.d.ts b/dist/components/form/components/FormCheck.d.ts new file mode 100644 index 0000000..6079a46 --- /dev/null +++ b/dist/components/form/components/FormCheck.d.ts @@ -0,0 +1,7 @@ +import React from 'react'; +import * as Bootstrap from 'react-bootstrap'; +export interface FormCheckProps extends Bootstrap.FormCheckProps { +} +declare const FormCheck: ({ type, className, ...rest }: FormCheckProps) => React.JSX.Element; +export default FormCheck; +//# sourceMappingURL=FormCheck.d.ts.map \ No newline at end of file diff --git a/dist/components/form/components/FormCheck.d.ts.map b/dist/components/form/components/FormCheck.d.ts.map new file mode 100644 index 0000000..eef1b95 --- /dev/null +++ b/dist/components/form/components/FormCheck.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FormCheck.d.ts","sourceRoot":"","sources":["../../../../src/components/form/components/FormCheck.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAE7C,MAAM,WAAW,cAAe,SAAQ,SAAS,CAAC,cAAc;CAAG;AAEnE,QAAA,MAAM,SAAS,iCAAkC,cAAc,sBAE9D,CAAC;AAEF,eAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/components/form/components/FormControl.d.ts b/dist/components/form/components/FormControl.d.ts new file mode 100644 index 0000000..8e83b46 --- /dev/null +++ b/dist/components/form/components/FormControl.d.ts @@ -0,0 +1,7 @@ +import React from 'react'; +import * as Bootstrap from 'react-bootstrap'; +export interface FormControlProps extends Bootstrap.FormControlProps { +} +declare const FormControl: ({ className, ...rest }: FormControlProps) => React.JSX.Element; +export default FormControl; +//# sourceMappingURL=FormControl.d.ts.map \ No newline at end of file diff --git a/dist/components/form/components/FormControl.d.ts.map b/dist/components/form/components/FormControl.d.ts.map new file mode 100644 index 0000000..4ea26a3 --- /dev/null +++ b/dist/components/form/components/FormControl.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FormControl.d.ts","sourceRoot":"","sources":["../../../../src/components/form/components/FormControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAE7C,MAAM,WAAW,gBAAiB,SAAQ,SAAS,CAAC,gBAAgB;CAAG;AAEvE,QAAA,MAAM,WAAW,2BAA4B,gBAAgB,sBAE5D,CAAC;AAEF,eAAe,WAAW,CAAC"} \ No newline at end of file diff --git a/dist/components/form/components/FormDateTime.d.ts b/dist/components/form/components/FormDateTime.d.ts new file mode 100644 index 0000000..8173530 --- /dev/null +++ b/dist/components/form/components/FormDateTime.d.ts @@ -0,0 +1,7 @@ +import React from 'react'; +import { DateTimePickerProps } from '@mui/x-date-pickers/DateTimePicker'; +export interface FormDateTime extends DateTimePickerProps { +} +declare const FormDateTime: ({ ...rest }: FormDateTime) => React.JSX.Element; +export default FormDateTime; +//# sourceMappingURL=FormDateTime.d.ts.map \ No newline at end of file diff --git a/dist/components/form/components/FormDateTime.d.ts.map b/dist/components/form/components/FormDateTime.d.ts.map new file mode 100644 index 0000000..6c264de --- /dev/null +++ b/dist/components/form/components/FormDateTime.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FormDateTime.d.ts","sourceRoot":"","sources":["../../../../src/components/form/components/FormDateTime.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAEL,mBAAmB,EACpB,MAAM,oCAAoC,CAAC;AAE5C,MAAM,WAAW,YAAa,SAAQ,mBAAmB,CAAC,IAAI,CAAC;CAAG;AAElE,QAAA,MAAM,YAAY,gBAAiB,YAAY,sBAa9C,CAAC;AAEF,eAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/dist/components/form/components/FormLabel.d.ts b/dist/components/form/components/FormLabel.d.ts new file mode 100644 index 0000000..6b5efaa --- /dev/null +++ b/dist/components/form/components/FormLabel.d.ts @@ -0,0 +1,8 @@ +import React from 'react'; +import { FormLabelProps as BootstrapFormLabelProps } from 'react-bootstrap'; +type FormLabelProps = BootstrapFormLabelProps & { + label: string; +}; +declare const FormLabel: ({ label, className }: FormLabelProps) => React.JSX.Element; +export default FormLabel; +//# sourceMappingURL=FormLabel.d.ts.map \ No newline at end of file diff --git a/dist/components/form/components/FormLabel.d.ts.map b/dist/components/form/components/FormLabel.d.ts.map new file mode 100644 index 0000000..b091e9b --- /dev/null +++ b/dist/components/form/components/FormLabel.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FormLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/form/components/FormLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE5E,KAAK,cAAc,GAAG,uBAAuB,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,SAAS,yBAA0B,cAAc,sBAItD,CAAC;AAEF,eAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/components/form/components/FormRichText.d.ts b/dist/components/form/components/FormRichText.d.ts new file mode 100644 index 0000000..b324755 --- /dev/null +++ b/dist/components/form/components/FormRichText.d.ts @@ -0,0 +1,8 @@ +import React from 'react'; +import ReactQuill from 'react-quill'; +import 'react-quill/dist/quill.snow.css'; +export interface FormRichText extends ReactQuill.ReactQuillProps { +} +declare const FormRichText: ({ style, ...rest }: FormRichText) => React.JSX.Element; +export default FormRichText; +//# sourceMappingURL=FormRichText.d.ts.map \ No newline at end of file diff --git a/dist/components/form/components/FormRichText.d.ts.map b/dist/components/form/components/FormRichText.d.ts.map new file mode 100644 index 0000000..4891662 --- /dev/null +++ b/dist/components/form/components/FormRichText.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FormRichText.d.ts","sourceRoot":"","sources":["../../../../src/components/form/components/FormRichText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,iCAAiC,CAAC;AAEzC,MAAM,WAAW,YAAa,SAAQ,UAAU,CAAC,eAAe;CAAG;AAEnE,QAAA,MAAM,YAAY,uBAAwB,YAAY,sBAErD,CAAC;AAEF,eAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/dist/components/form/components/FormSelect.d.ts b/dist/components/form/components/FormSelect.d.ts new file mode 100644 index 0000000..637c7ce --- /dev/null +++ b/dist/components/form/components/FormSelect.d.ts @@ -0,0 +1,7 @@ +import React from 'react'; +import * as Bootstrap from 'react-bootstrap'; +export interface FormSelectProps extends Bootstrap.FormSelectProps { +} +declare const FormSelect: ({ className, children, ...rest }: FormSelectProps) => React.JSX.Element; +export default FormSelect; +//# sourceMappingURL=FormSelect.d.ts.map \ No newline at end of file diff --git a/dist/components/form/components/FormSelect.d.ts.map b/dist/components/form/components/FormSelect.d.ts.map new file mode 100644 index 0000000..54d4c90 --- /dev/null +++ b/dist/components/form/components/FormSelect.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FormSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/form/components/FormSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAE7C,MAAM,WAAW,eAAgB,SAAQ,SAAS,CAAC,eAAe;CAAG;AAErE,QAAA,MAAM,UAAU,qCAAsC,eAAe,sBAMpE,CAAC;AAEF,eAAe,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/components/table/Table.d.ts b/dist/components/table/Table.d.ts new file mode 100644 index 0000000..76d529d --- /dev/null +++ b/dist/components/table/Table.d.ts @@ -0,0 +1,13 @@ +import React from 'react'; +import * as Bootstrap from 'react-bootstrap'; +interface TableProps extends Bootstrap.TableProps { +} +declare const Table: { + ({ className, children, ...rest }: TableProps): React.JSX.Element; + Head: ({ children, ...rest }: import("./components/TableHead").TableHeadProps) => React.JSX.Element; + Row: ({ className, children, ...rest }: import("./components/TableRow").TableRowProps) => React.JSX.Element; + Cell: ({ className, children, ...rest }: import("./components/TableCell").TableCellProps) => React.JSX.Element; + Body: ({ children, ...rest }: import("./components/TableBody").TableBodyProps) => React.JSX.Element; +}; +export default Table; +//# sourceMappingURL=Table.d.ts.map \ No newline at end of file diff --git a/dist/components/table/Table.d.ts.map b/dist/components/table/Table.d.ts.map new file mode 100644 index 0000000..04a52ae --- /dev/null +++ b/dist/components/table/Table.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAM7C,UAAU,UAAW,SAAQ,SAAS,CAAC,UAAU;CAAG;AAEpD,QAAA,MAAM,KAAK;uCAAsC,UAAU;;;;;CAM1D,CAAC;AAOF,eAAe,KAAK,CAAC"} \ No newline at end of file diff --git a/dist/components/table/TableSectionContext.d.ts b/dist/components/table/TableSectionContext.d.ts new file mode 100644 index 0000000..bd5de24 --- /dev/null +++ b/dist/components/table/TableSectionContext.d.ts @@ -0,0 +1,9 @@ +/// +export declare enum TableSection { + NONE = 0, + HEAD = 1, + BODY = 2 +} +declare const TableSectionContext: import("react").Context; +export default TableSectionContext; +//# sourceMappingURL=TableSectionContext.d.ts.map \ No newline at end of file diff --git a/dist/components/table/TableSectionContext.d.ts.map b/dist/components/table/TableSectionContext.d.ts.map new file mode 100644 index 0000000..371b2fc --- /dev/null +++ b/dist/components/table/TableSectionContext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TableSectionContext.d.ts","sourceRoot":"","sources":["../../../src/components/table/TableSectionContext.ts"],"names":[],"mappings":";AAEA,oBAAY,YAAY;IACtB,IAAI,IAAA;IACJ,IAAI,IAAA;IACJ,IAAI,IAAA;CACL;AAED,QAAA,MAAM,mBAAmB,uCAAiD,CAAC;AAE3E,eAAe,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/components/table/components/TableBody.d.ts b/dist/components/table/components/TableBody.d.ts new file mode 100644 index 0000000..5bc77c6 --- /dev/null +++ b/dist/components/table/components/TableBody.d.ts @@ -0,0 +1,6 @@ +import React from 'react'; +export interface TableBodyProps extends React.HTMLProps { +} +declare const TableBody: ({ children, ...rest }: TableBodyProps) => React.JSX.Element; +export default TableBody; +//# sourceMappingURL=TableBody.d.ts.map \ No newline at end of file diff --git a/dist/components/table/components/TableBody.d.ts.map b/dist/components/table/components/TableBody.d.ts.map new file mode 100644 index 0000000..ea16bf5 --- /dev/null +++ b/dist/components/table/components/TableBody.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/TableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,cACf,SAAQ,KAAK,CAAC,SAAS,CAAC,uBAAuB,CAAC;CAAG;AAErD,QAAA,MAAM,SAAS,0BAA2B,cAAc,sBAQvD,CAAC;AAEF,eAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/components/table/components/TableCell.d.ts b/dist/components/table/components/TableCell.d.ts new file mode 100644 index 0000000..3d5a8cb --- /dev/null +++ b/dist/components/table/components/TableCell.d.ts @@ -0,0 +1,6 @@ +import React from 'react'; +export interface TableCellProps extends React.HTMLProps { +} +declare const TableCell: ({ className, children, ...rest }: TableCellProps) => React.JSX.Element; +export default TableCell; +//# sourceMappingURL=TableCell.d.ts.map \ No newline at end of file diff --git a/dist/components/table/components/TableCell.d.ts.map b/dist/components/table/components/TableCell.d.ts.map new file mode 100644 index 0000000..5d4a980 --- /dev/null +++ b/dist/components/table/components/TableCell.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC;CAAG;AAEhF,QAAA,MAAM,SAAS,qCAAsC,cAAc,sBAmBlE,CAAC;AAEF,eAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/components/table/components/TableHead.d.ts b/dist/components/table/components/TableHead.d.ts new file mode 100644 index 0000000..248645b --- /dev/null +++ b/dist/components/table/components/TableHead.d.ts @@ -0,0 +1,6 @@ +import React from 'react'; +export interface TableHeadProps extends React.HTMLProps { +} +declare const TableHead: ({ children, ...rest }: TableHeadProps) => React.JSX.Element; +export default TableHead; +//# sourceMappingURL=TableHead.d.ts.map \ No newline at end of file diff --git a/dist/components/table/components/TableHead.d.ts.map b/dist/components/table/components/TableHead.d.ts.map new file mode 100644 index 0000000..2bb18ce --- /dev/null +++ b/dist/components/table/components/TableHead.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TableHead.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/TableHead.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,cACf,SAAQ,KAAK,CAAC,SAAS,CAAC,uBAAuB,CAAC;CAAG;AAErD,QAAA,MAAM,SAAS,0BAA2B,cAAc,sBAMvD,CAAC;AAEF,eAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/dist/components/table/components/TableRow.d.ts b/dist/components/table/components/TableRow.d.ts new file mode 100644 index 0000000..c91edef --- /dev/null +++ b/dist/components/table/components/TableRow.d.ts @@ -0,0 +1,6 @@ +import React from 'react'; +export interface TableRowProps extends React.HTMLProps { +} +declare const TableRow: ({ className, children, ...rest }: TableRowProps) => React.JSX.Element; +export default TableRow; +//# sourceMappingURL=TableRow.d.ts.map \ No newline at end of file diff --git a/dist/components/table/components/TableRow.d.ts.map b/dist/components/table/components/TableRow.d.ts.map new file mode 100644 index 0000000..d784579 --- /dev/null +++ b/dist/components/table/components/TableRow.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC;CAAG;AAE9E,QAAA,MAAM,QAAQ,qCAAsC,aAAa,sBAMhE,CAAC;AAEF,eAAe,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/components/text/Text.d.ts b/dist/components/text/Text.d.ts new file mode 100644 index 0000000..5cdcb1e --- /dev/null +++ b/dist/components/text/Text.d.ts @@ -0,0 +1,6 @@ +import React from 'react'; +export interface TitleProps extends React.HTMLProps { + text: string; +} +export declare const Title: ({ text, ...rest }: TitleProps) => React.JSX.Element; +//# sourceMappingURL=Text.d.ts.map \ No newline at end of file diff --git a/dist/components/text/Text.d.ts.map b/dist/components/text/Text.d.ts.map new file mode 100644 index 0000000..efe3eb0 --- /dev/null +++ b/dist/components/text/Text.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/text/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC;IACrE,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,KAAK,sBAAuB,UAAU,sBAMlD,CAAC"} \ No newline at end of file diff --git a/dist/components/title/Text.d.ts b/dist/components/title/Text.d.ts new file mode 100644 index 0000000..5cdcb1e --- /dev/null +++ b/dist/components/title/Text.d.ts @@ -0,0 +1,6 @@ +import React from 'react'; +export interface TitleProps extends React.HTMLProps { + text: string; +} +export declare const Title: ({ text, ...rest }: TitleProps) => React.JSX.Element; +//# sourceMappingURL=Text.d.ts.map \ No newline at end of file diff --git a/dist/components/title/Text.d.ts.map b/dist/components/title/Text.d.ts.map new file mode 100644 index 0000000..fb2d71c --- /dev/null +++ b/dist/components/title/Text.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/title/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC;IACrE,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,KAAK,sBAAuB,UAAU,sBAMlD,CAAC"} \ No newline at end of file diff --git a/dist/components/title/Title.d.ts b/dist/components/title/Title.d.ts new file mode 100644 index 0000000..648c4c8 --- /dev/null +++ b/dist/components/title/Title.d.ts @@ -0,0 +1,7 @@ +import React from 'react'; +export interface TitleProps extends React.HTMLProps { + text: string; +} +declare const Title: ({ text, ...rest }: TitleProps) => React.JSX.Element; +export default Title; +//# sourceMappingURL=Title.d.ts.map \ No newline at end of file diff --git a/dist/components/title/Title.d.ts.map b/dist/components/title/Title.d.ts.map new file mode 100644 index 0000000..40d940a --- /dev/null +++ b/dist/components/title/Title.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC;IACrE,IAAI,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,KAAK,sBAAuB,UAAU,sBAM3C,CAAC;AAEF,eAAe,KAAK,CAAC"} \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..d52866a --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,7 @@ +import Button from './components/button/Button'; +import Table from 'components/table/Table'; +import Form from 'components/form/Form'; +import Title from './components/title/Title'; +import Card from './components/card/Card'; +export { Button, Table, Form, Title, Card }; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map new file mode 100644 index 0000000..a33e93b --- /dev/null +++ b/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,IAAI,MAAM,sBAAsB,CAAC;AACxC,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAC7C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/index.es.js b/dist/index.es.js new file mode 100644 index 0000000..4182c69 --- /dev/null +++ b/dist/index.es.js @@ -0,0 +1,127 @@ +import*as e from"react";import t,{useContext as n,useMemo as o,createContext as r,forwardRef as i,Children as a,isValidElement as l,cloneElement as s}from"react";import{jsx as u,jsxs as c,Fragment as d}from"react/jsx-runtime";import*as p from"react-dom";import f from"react-dom";var h=function(){return h=Object.assign||function(e){for(var t,n=1,o=arguments.length;n=0||(r[n]=e[n]);return r}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}function O(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,q(e,t)}const k=e.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"});function C(e,t){const{prefixes:o}=n(k);return e||o[t]||t}var S,E={exports:{}},T={exports:{}},N={};var D,M,P,A,R,j,I,L,V,$,F,B,z,W,H={}; +/** @license React v16.13.1 + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function U(){return M||(M=1,"production"===process.env.NODE_ENV?T.exports=function(){if(S)return N;S=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case u:case o:case i:case r:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case h:case f:case a:return e;default:return p}}case n:return p}}}function _(e){return g(e)===u}return N.AsyncMode=s,N.ConcurrentMode=u,N.ContextConsumer=l,N.ContextProvider=a,N.Element=t,N.ForwardRef=c,N.Fragment=o,N.Lazy=h,N.Memo=f,N.Portal=n,N.Profiler=i,N.StrictMode=r,N.Suspense=d,N.isAsyncMode=function(e){return _(e)||g(e)===s},N.isConcurrentMode=_,N.isContextConsumer=function(e){return g(e)===l},N.isContextProvider=function(e){return g(e)===a},N.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},N.isForwardRef=function(e){return g(e)===c},N.isFragment=function(e){return g(e)===o},N.isLazy=function(e){return g(e)===h},N.isMemo=function(e){return g(e)===f},N.isPortal=function(e){return g(e)===n},N.isProfiler=function(e){return g(e)===i},N.isStrictMode=function(e){return g(e)===r},N.isSuspense=function(e){return g(e)===d},N.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===i||e===r||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===b||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},N.typeOf=g,N}():T.exports=(D||(D=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function g(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case s:case u:case o:case i:case r:case d:return m;default:var b=m&&m.$$typeof;switch(b){case l:case c:case h:case f:case a:return b;default:return p}}case n:return p}}}var _=s,w=u,x=l,q=a,O=t,k=c,C=o,S=h,E=f,T=n,N=i,D=r,M=d,P=!1;function A(e){return g(e)===u}H.AsyncMode=_,H.ConcurrentMode=w,H.ContextConsumer=x,H.ContextProvider=q,H.Element=O,H.ForwardRef=k,H.Fragment=C,H.Lazy=S,H.Memo=E,H.Portal=T,H.Profiler=N,H.StrictMode=D,H.Suspense=M,H.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(e)||g(e)===s},H.isConcurrentMode=A,H.isContextConsumer=function(e){return g(e)===l},H.isContextProvider=function(e){return g(e)===a},H.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},H.isForwardRef=function(e){return g(e)===c},H.isFragment=function(e){return g(e)===o},H.isLazy=function(e){return g(e)===h},H.isMemo=function(e){return g(e)===f},H.isPortal=function(e){return g(e)===n},H.isProfiler=function(e){return g(e)===i},H.isStrictMode=function(e){return g(e)===r},H.isSuspense=function(e){return g(e)===d},H.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===i||e===r||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===l||e.$$typeof===c||e.$$typeof===b||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},H.typeOf=g}()),H)),T.exports} +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/function Y(){if(A)return P;A=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return P=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(o,r){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(o),s=1;s1?"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 m((function(t,o,r,i,a){var l=t[o],s=g(l);if("object"!==s)return new h("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!=typeof c)return y(r,i,a,u,_(c));var d=c(l,u,r,i,a+"."+u,n);if(d)return d}return null}))},exact:function(e){return m((function(r,i,a,l,s){var u=r[i],c=g(u);if("object"!==c)return new h("Invalid "+l+" `"+s+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var d=t({},r[i],e);for(var p in d){var f=e[p];if(o(e,p)&&"function"!=typeof f)return y(a,l,s,p,_(f));if(!f)return new h("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(r[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(u,p,a,l,s+"."+p,n);if(m)return m}return null}))}};function f(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 m(e){if("production"!==process.env.NODE_ENV)var t={},o=0;function r(r,a,l,u,c,p,f){if(u=u||d,p=p||l,f!==n){if(s){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var b=u+":"+l;!t[b]&&o<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. 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[b]=!0,o++)}}return null==a[l]?r?null===a[l]?new h("The "+c+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+c+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,l,u,c,p)}var a=r.bind(null,!1);return a.isRequired=r.bind(null,!0),a}function b(e){return m((function(t,n,o,r,i,a){var l=t[n];return g(l)!==e?new h("Invalid "+r+" `"+i+"` of type `"+_(l)+"` supplied to `"+o+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,o,r){return new h((e||"React class")+": "+t+" type `"+n+"."+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function v(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(v);if(null===e||l(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[c]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,o=t.call(e);if(t!==e.entries){for(;!(n=o.next()).done;)if(!v(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!v(r[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 _(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 w(e){var t=_(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,p.checkPropTypes=r,p.resetWarningCache=r.resetWarningCache,p.PropTypes=p,p},F}()(Q.isElement,!0)}else E.exports=function(){if(W)return z;W=1;var e=K();function t(){}function n(){}return n.resetWarningCache=t,z=function(){function o(t,n,o,r,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 r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var Z=y(E.exports),G=!1,X="production"!==process.env.NODE_ENV?Z.oneOfType([Z.number,Z.shape({enter:Z.number,exit:Z.number,appear:Z.number}).isRequired]):null,ee="production"!==process.env.NODE_ENV?Z.oneOfType([Z.string,Z.shape({enter:Z.string,exit:Z.string,active:Z.string}),Z.shape({enter:Z.string,enterDone:Z.string,enterActive:Z.string,exit:Z.string,exitDone:Z.string,exitActive:Z.string})]):null,te=t.createContext(null),ne=function(e){return e.scrollTop},oe="unmounted",re="exited",ie="entering",ae="entered",le="exiting",se=function(e){function n(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=re,o.appearStatus=ie):r=ae:r=t.unmountOnExit||t.mountOnEnter?oe:re,o.state={status:r},o.nextCallback=null,o}O(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===oe?{status:re}:null};var o=n.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ie&&n!==ae&&(t=ie):n!==ie&&n!==ae||(t=le)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ie){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:f.findDOMNode(this);n&&ne(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===re&&this.setState({status:oe})},o.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[f.findDOMNode(this),o],i=r[0],a=r[1],l=this.getTimeouts(),s=o?l.appear:l.enter;!e&&!n||G?this.safeSetState({status:ae},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:ie},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:ae},(function(){t.props.onEntered(i,a)}))}))})))},o.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:f.findDOMNode(this);t&&!G?(this.props.onExit(o),this.safeSetState({status:le},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:re},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:re},(function(){e.props.onExited(o)}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:f.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],a=r[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},o.render=function(){var e=this.state.status;if(e===oe)return null;var n=this.props,o=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 r=x(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(te.Provider,{value:null},"function"==typeof o?o(e,r):t.cloneElement(t.Children.only(o),r))},n}(t.Component);function ue(){}se.contextType=te,se.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Z.shape({current:"undefined"==typeof Element?Z.any:function(e,t,n,o,r,i){var a=e[t];return Z.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,i)}}),children:Z.oneOfType([Z.func.isRequired,Z.element.isRequired]).isRequired,in:Z.bool,mountOnEnter:Z.bool,unmountOnExit:Z.bool,appear:Z.bool,enter:Z.bool,exit:Z.bool,timeout:function(e){var t=X;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(n))&&o.preventDefault(),t?o.stopPropagation():null==a||a(o)};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?o:void 0,"aria-disabled":t||void 0,rel:"a"===e?r:void 0,onClick:c,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e))}},u]}e.forwardRef(((e,t)=>{let{as:n,disabled:o}=e,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o=0||(r[n]=e[n]);return r}(e,ce);const[i,{tagName:a}]=de(Object.assign({tagName:n,disabled:o},r));return u(a,Object.assign({},r,i,{ref:t}))})).displayName="Button";const pe=e.forwardRef((({as:e,bsPrefix:t,variant:n="primary",size:o,active:r=!1,disabled:i=!1,className:a,...l},s)=>{const c=C(t,"btn"),[d,{tagName:p}]=de({tagName:e,disabled:i,...l});return u(p,{...d,...l,ref:s,disabled:i,className:_(a,c,r&&"active",n&&`${c}-${n}`,o&&`${c}-${o}`,l.href&&i&&"disabled")})}));pe.displayName="Button";var fe=pe;function he({as:e,bsPrefix:t,className:o,...r}){t=C(t,"col");const i=function(){const{breakpoints:e}=n(k);return e}(),a=function(){const{minBreakpoint:e}=n(k);return e}(),l=[],s=[];return i.forEach((e=>{const n=r[e];let o,i,u;delete r[e],"object"==typeof n&&null!=n?({span:o,offset:i,order:u}=n):o=n;const c=e!==a?`-${e}`:"";o&&l.push(!0===o?`${t}${c}`:`${t}${c}-${o}`),null!=u&&s.push(`order${c}-${u}`),null!=i&&s.push(`offset${c}-${i}`)})),[{...r,className:_(o,...l,...s)},{as:e,bsPrefix:t,spans:l}]}const me=e.forwardRef(((e,t)=>{const[{className:n,...o},{as:r="div",bsPrefix:i,spans:a}]=he(e);return u(r,{...o,ref:t,className:_(n,!a.length&&i)})}));me.displayName="Col";var be=me,ye="top",ve="bottom",ge="right",_e="left",we="auto",xe=[ye,ve,ge,_e],qe="start",Oe="end",ke="clippingParents",Ce="viewport",Se="popper",Ee="reference",Te=xe.reduce((function(e,t){return e.concat([t+"-"+qe,t+"-"+Oe])}),[]),Ne=[].concat(xe,[we]).reduce((function(e,t){return e.concat([t,t+"-"+qe,t+"-"+Oe])}),[]),De=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Me(e){return e.split("-")[0]}function Pe(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ae(e){return e instanceof Pe(e).Element||e instanceof Element}function Re(e){return e instanceof Pe(e).HTMLElement||e instanceof HTMLElement}function je(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Pe(e).ShadowRoot||e instanceof ShadowRoot)}var Ie=Math.max,Le=Math.min,Ve=Math.round;function $e(){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 Fe(){return!/^((?!chrome|android).)*safari/i.test($e())}function Be(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Re(e)&&(r=e.offsetWidth>0&&Ve(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ve(o.height)/e.offsetHeight||1);var a=(Ae(e)?Pe(e):window).visualViewport,l=!Fe()&&n,s=(o.left+(l&&a?a.offsetLeft:0))/r,u=(o.top+(l&&a?a.offsetTop:0))/i,c=o.width/r,d=o.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function ze(e){var t=Be(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function We(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&je(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function He(e){return e?(e.nodeName||"").toLowerCase():null}function Ue(e){return Pe(e).getComputedStyle(e)}function Ye(e){return["table","td","th"].indexOf(He(e))>=0}function Ke(e){return((Ae(e)?e.ownerDocument:e.document)||window.document).documentElement}function Je(e){return"html"===He(e)?e:e.assignedSlot||e.parentNode||(je(e)?e.host:null)||Ke(e)}function Qe(e){return Re(e)&&"fixed"!==Ue(e).position?e.offsetParent:null}function Ze(e){for(var t=Pe(e),n=Qe(e);n&&Ye(n)&&"static"===Ue(n).position;)n=Qe(n);return n&&("html"===He(n)||"body"===He(n)&&"static"===Ue(n).position)?t:n||function(e){var t=/firefox/i.test($e());if(/Trident/i.test($e())&&Re(e)&&"fixed"===Ue(e).position)return null;var n=Je(e);for(je(n)&&(n=n.host);Re(n)&&["html","body"].indexOf(He(n))<0;){var o=Ue(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Ge(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xe(e,t,n){return Ie(e,Le(t,n))}function et(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function tt(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var nt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Me(n.placement),s=Ge(l),u=[_e,ge].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return et("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:tt(e,xe))}(r.padding,n),d=ze(i),p="y"===s?ye:_e,f="y"===s?ve:ge,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],m=a[s]-n.rects.reference[s],b=Ze(i),y=b?"y"===s?b.clientHeight||0:b.clientWidth||0:0,v=h/2-m/2,g=c[p],_=y-d[u]-c[f],w=y/2-d[u]/2+v,x=Xe(g,w,_),q=s;n.modifiersData[o]=((t={})[q]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&We(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ot(e){return e.split("-")[1]}var rt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function it(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,b="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=b.x,m=b.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),g=_e,_=ye,w=window;if(u){var x=Ze(n),q="clientHeight",O="clientWidth";if(x===Pe(n)&&"static"!==Ue(x=Ke(n)).position&&"absolute"===l&&(q="scrollHeight",O="scrollWidth"),r===ye||(r===_e||r===ge)&&i===Oe)_=ve,m-=(d&&x===w&&w.visualViewport?w.visualViewport.height:x[q])-o.height,m*=s?1:-1;if(r===_e||(r===ye||r===ve)&&i===Oe)g=ge,f-=(d&&x===w&&w.visualViewport?w.visualViewport.width:x[O])-o.width,f*=s?1:-1}var k,C=Object.assign({position:l},u&&rt),S=!0===c?function(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Ve(n*r)/r||0,y:Ve(o*r)/r||0}}({x:f,y:m},Pe(n)):{x:f,y:m};return f=S.x,m=S.y,s?Object.assign({},C,((k={})[_]=v?"0":"",k[g]=y?"0":"",k.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",k)):Object.assign({},C,((t={})[_]=v?m+"px":"",t[g]=y?f+"px":"",t.transform="",t))}var at={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,u={placement:Me(t.placement),variation:ot(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,it(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,it(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},lt={passive:!0};var st={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,a=o.resize,l=void 0===a||a,s=Pe(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,lt)})),l&&s.addEventListener("resize",n.update,lt),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,lt)})),l&&s.removeEventListener("resize",n.update,lt)}},data:{}},ut={left:"right",right:"left",bottom:"top",top:"bottom"};function ct(e){return e.replace(/left|right|bottom|top/g,(function(e){return ut[e]}))}var dt={start:"end",end:"start"};function pt(e){return e.replace(/start|end/g,(function(e){return dt[e]}))}function ft(e){var t=Pe(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ht(e){return Be(Ke(e)).left+ft(e).scrollLeft}function mt(e){var t=Ue(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function bt(e){return["html","body","#document"].indexOf(He(e))>=0?e.ownerDocument.body:Re(e)&&mt(e)?e:bt(Je(e))}function yt(e,t){var n;void 0===t&&(t=[]);var o=bt(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=Pe(o),a=r?[i].concat(i.visualViewport||[],mt(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(yt(Je(a)))}function vt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gt(e,t,n){return t===Ce?vt(function(e,t){var n=Pe(e),o=Ke(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;var u=Fe();(u||!u&&"fixed"===t)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l+ht(e),y:s}}(e,n)):Ae(t)?function(e,t){var n=Be(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):vt(function(e){var t,n=Ke(e),o=ft(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Ie(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Ie(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+ht(e),s=-o.scrollTop;return"rtl"===Ue(r||n).direction&&(l+=Ie(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Ke(e)))}function _t(e,t,n,o){var r="clippingParents"===t?function(e){var t=yt(Je(e)),n=["absolute","fixed"].indexOf(Ue(e).position)>=0&&Re(e)?Ze(e):e;return Ae(n)?t.filter((function(e){return Ae(e)&&We(e,n)&&"body"!==He(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce((function(t,n){var r=gt(e,n,o);return t.top=Ie(r.top,t.top),t.right=Le(r.right,t.right),t.bottom=Le(r.bottom,t.bottom),t.left=Ie(r.left,t.left),t}),gt(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function wt(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?Me(r):null,a=r?ot(r):null,l=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(i){case ye:t={x:l,y:n.y-o.height};break;case ve:t={x:l,y:n.y+n.height};break;case ge:t={x:n.x+n.width,y:s};break;case _e:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Ge(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case qe:t[u]=t[u]-(n[c]/2-o[c]/2);break;case Oe:t[u]=t[u]+(n[c]/2-o[c]/2)}}return t}function xt(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?ke:l,u=n.rootBoundary,c=void 0===u?Ce:u,d=n.elementContext,p=void 0===d?Se:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,b=void 0===m?0:m,y=et("number"!=typeof b?b:tt(b,xe)),v=p===Se?Ee:Se,g=e.rects.popper,_=e.elements[h?v:p],w=_t(Ae(_)?_:_.contextElement||Ke(e.elements.popper),s,c,a),x=Be(e.elements.reference),q=wt({reference:x,element:g,strategy:"absolute",placement:r}),O=vt(Object.assign({},g,q)),k=p===Se?O:x,C={top:w.top-k.top+y.top,bottom:k.bottom-w.bottom+y.bottom,left:w.left-k.left+y.left,right:k.right-w.right+y.right},S=e.modifiersData.offset;if(p===Se&&S){var E=S[r];Object.keys(C).forEach((function(e){var t=[ge,ve].indexOf(e)>=0?1:-1,n=[ye,ve].indexOf(e)>=0?"y":"x";C[e]+=E[n]*t}))}return C}function qt(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?Ne:s,c=ot(o),d=c?l?Te:Te.filter((function(e){return ot(e)===c})):xe,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=xt(e,{placement:n,boundary:r,rootBoundary:i,padding:a})[Me(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Ot={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,b=t.options.placement,y=Me(b),v=s||(y===b||!h?[ct(b)]:function(e){if(Me(e)===we)return[];var t=ct(e);return[pt(e),t,pt(t)]}(b)),g=[b].concat(v).reduce((function(e,n){return e.concat(Me(n)===we?qt(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,w=t.rects.popper,x=new Map,q=!0,O=g[0],k=0;k=0,N=T?"width":"height",D=xt(t,{placement:C,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),M=T?E?ge:_e:E?ve:ye;_[N]>w[N]&&(M=ct(M));var P=ct(M),A=[];if(i&&A.push(D[S]<=0),l&&A.push(D[M]<=0,D[P]<=0),A.every((function(e){return e}))){O=C,q=!1;break}x.set(C,A)}if(q)for(var R=function(e){var t=g.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},j=h?3:1;j>0;j--){if("break"===R(j))break}t.placement!==O&&(t.modifiersData[o]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function kt(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 Ct(e){return[ye,ge,ve,_e].some((function(t){return e[t]>=0}))}var St={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=xt(t,{elementContext:"reference"}),l=xt(t,{altBoundary:!0}),s=kt(a,o),u=kt(l,r,i),c=Ct(s),d=Ct(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};var Et={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,a=Ne.reduce((function(e,n){return e[n]=function(e,t,n){var o=Me(e),r=[_e,ye].indexOf(o)>=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)*r,[_e,ge].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}};var Tt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=wt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Nt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,b=xt(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),y=Me(t.placement),v=ot(t.placement),g=!v,_=Ge(y),w="x"===_?"y":"x",x=t.modifiersData.popperOffsets,q=t.rects.reference,O=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(x){if(i){var T,N="y"===_?ye:_e,D="y"===_?ve:ge,M="y"===_?"height":"width",P=x[_],A=P+b[N],R=P-b[D],j=f?-O[M]/2:0,I=v===qe?q[M]:O[M],L=v===qe?-O[M]:-q[M],V=t.elements.arrow,$=f&&V?ze(V):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[N],z=F[D],W=Xe(0,q[M],$[M]),H=g?q[M]/2-j-W-B-C.mainAxis:I-W-B-C.mainAxis,U=g?-q[M]/2+j+W+z+C.mainAxis:L+W+z+C.mainAxis,Y=t.elements.arrow&&Ze(t.elements.arrow),K=Y?"y"===_?Y.clientTop||0:Y.clientLeft||0:0,J=null!=(T=null==S?void 0:S[_])?T:0,Q=P+U-J,Z=Xe(f?Le(A,P+H-J-K):A,P,f?Ie(R,Q):R);x[_]=Z,E[_]=Z-P}if(l){var G,X="x"===_?ye:_e,ee="x"===_?ve:ge,te=x[w],ne="y"===w?"height":"width",oe=te+b[X],re=te-b[ee],ie=-1!==[ye,_e].indexOf(y),ae=null!=(G=null==S?void 0:S[w])?G:0,le=ie?oe:te-q[ne]-O[ne]-ae+C.altAxis,se=ie?te+q[ne]+O[ne]-ae-C.altAxis:re,ue=f&&ie?function(e,t,n){var o=Xe(e,t,n);return o>n?n:o}(le,te,se):Xe(f?le:oe,te,f?se:re);x[w]=ue,E[w]=ue-te}t.modifiersData[o]=E}},requiresIfExists:["offset"]};function Dt(e,t,n){void 0===n&&(n=!1);var o=Re(t),r=Re(t)&&function(e){var t=e.getBoundingClientRect(),n=Ve(t.width)/e.offsetWidth||1,o=Ve(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),i=Ke(t),a=Be(e,r,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&(("body"!==He(t)||mt(i))&&(l=function(e){return e!==Pe(e)&&Re(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:ft(e);var t}(t)),Re(t)?((s=Be(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=ht(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function Mt(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}var Pt={placement:"bottom",modifiers:[],strategy:"absolute"};function At(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0);for(var o=1;o2?o-2:0);for(var r=2;ru(e,{...r,ref:i,className:_(t,`${n}-${o?"tooltip":"feedback"}`)})));$t.displayName="Feedback",$t.propTypes=Vt;var Ft=$t;var Bt=e.createContext({});const zt=e.forwardRef((({id:e,bsPrefix:t,className:o,type:r="checkbox",isValid:i=!1,isInvalid:a=!1,as:l="input",...s},c)=>{const{controlId:d}=n(Bt);return t=C(t,"form-check-input"),u(l,{...s,ref:c,type:r,id:e||d,className:_(o,t,i&&"is-valid",a&&"is-invalid")})}));zt.displayName="FormCheckInput";var Wt=zt;const Ht=e.forwardRef((({bsPrefix:e,className:t,htmlFor:o,...r},i)=>{const{controlId:a}=n(Bt);return e=C(e,"form-check-label"),u("label",{...r,ref:i,htmlFor:o||a,className:_(t,e)})}));Ht.displayName="FormCheckLabel";var Ut=Ht;const Yt=e.forwardRef((({id:t,bsPrefix:r,bsSwitchPrefix:i,inline:a=!1,reverse:l=!1,disabled:s=!1,isValid:p=!1,isInvalid:f=!1,feedbackTooltip:h=!1,feedback:m,feedbackType:b,className:y,style:v,title:g="",type:w="checkbox",label:x,children:q,as:O="input",...k},S)=>{r=C(r,"form-check"),i=C(i,"form-switch");const{controlId:E}=n(Bt),T=o((()=>({controlId:t||E})),[E,t]),N=!q&&null!=x&&!1!==x||function(t,n){return e.Children.toArray(t).some((t=>e.isValidElement(t)&&t.type===n))}(q,Ut),D=u(Wt,{...k,type:"switch"===w?"checkbox":w,ref:S,isValid:p,isInvalid:f,disabled:s,as:O});return u(Bt.Provider,{value:T,children:u("div",{style:v,className:_(y,N&&r,a&&`${r}-inline`,l&&`${r}-reverse`,"switch"===w&&i),children:q||c(d,{children:[D,N&&u(Ut,{title:g,children:x}),m&&u(Ft,{type:b,tooltip:h,children:m})]})})})}));Yt.displayName="FormCheck";var Kt=Object.assign(Yt,{Input:Wt,Label:Ut});const Jt=e.forwardRef((({bsPrefix:e,type:t,size:o,htmlSize:r,id:i,className:a,isValid:l=!1,isInvalid:s=!1,plaintext:c,readOnly:d,as:p="input",...f},h)=>{const{controlId:m}=n(Bt);return e=C(e,"form-control"),"production"!==process.env.NODE_ENV&&Lt(null==m||!i,"`controlId` is ignored on `` when `id` is specified."),u(p,{...f,type:t,size:r,ref:h,readOnly:d,id:i||m,className:_(a,c?`${e}-plaintext`:e,o&&`${e}-${o}`,"color"===t&&`${e}-color`,l&&"is-valid",s&&"is-invalid")})}));Jt.displayName="FormControl";var Qt=Object.assign(Jt,{Feedback:Ft});const Zt=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...o},r)=>(t=C(t,"form-floating"),u(n,{ref:r,className:_(e,t),...o}))));Zt.displayName="FormFloating";var Gt=Zt;const Xt=e.forwardRef((({controlId:e,as:t="div",...n},r)=>{const i=o((()=>({controlId:e})),[e]);return u(Bt.Provider,{value:i,children:u(t,{...n,ref:r})})}));Xt.displayName="FormGroup";var en=Xt;const tn=e.forwardRef((({as:e="label",bsPrefix:t,column:o=!1,visuallyHidden:r=!1,className:i,htmlFor:a,...l},s)=>{const{controlId:c}=n(Bt);t=C(t,"form-label");let d="col-form-label";"string"==typeof o&&(d=`${d} ${d}-${o}`);const p=_(i,t,r&&"visually-hidden",o&&d);return"production"!==process.env.NODE_ENV&&Lt(null==c||!a,"`controlId` is ignored on `` when `htmlFor` is specified."),a=a||c,o?u(be,{ref:s,as:"label",className:p,htmlFor:a,...l}):u(e,{ref:s,className:p,htmlFor:a,...l})}));tn.displayName="FormLabel";var nn=tn;const on=e.forwardRef((({bsPrefix:e,className:t,id:o,...r},i)=>{const{controlId:a}=n(Bt);return e=C(e,"form-range"),u("input",{...r,type:"range",ref:i,className:_(t,e),id:o||a})}));on.displayName="FormRange";var rn=on;const an=e.forwardRef((({bsPrefix:e,size:t,htmlSize:o,className:r,isValid:i=!1,isInvalid:a=!1,id:l,...s},c)=>{const{controlId:d}=n(Bt);return e=C(e,"form-select"),u("select",{...s,size:o,ref:c,className:_(r,e,t&&`${e}-${t}`,i&&"is-valid",a&&"is-invalid"),id:l||d})}));an.displayName="FormSelect";var ln=an;const sn=e.forwardRef((({bsPrefix:e,className:t,as:n="small",muted:o,...r},i)=>(e=C(e,"form-text"),u(n,{...r,ref:i,className:_(t,e,o&&"text-muted")}))));sn.displayName="FormText";var un=sn;const cn=e.forwardRef(((e,t)=>u(Kt,{...e,ref:t,type:"switch"})));cn.displayName="Switch";var dn=Object.assign(cn,{Input:Kt.Input,Label:Kt.Label});const pn=e.forwardRef((({bsPrefix:e,className:t,children:n,controlId:o,label:r,...i},a)=>(e=C(e,"form-floating"),c(en,{ref:a,className:_(t,e),controlId:o,...i,children:[n,u("label",{htmlFor:o,children:r})]}))));pn.displayName="FloatingLabel";var fn=pn;const hn={_ref:Z.any,validated:Z.bool,as:Z.elementType},mn=e.forwardRef((({className:e,validated:t,as:n="form",...o},r)=>u(n,{...o,ref:r,className:_(e,t&&"was-validated")})));mn.displayName="Form",mn.propTypes=hn;var bn=Object.assign(mn,{Group:en,Control:Qt,Floating:Gt,Check:Kt,Switch:dn,Label:nn,Text:un,Range:rn,Select:ln,FloatingLabel:fn});function yn(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var vn,gn=e.forwardRef((({bsPrefix:e,className:t,striped:n,bordered:o,borderless:r,hover:i,size:a,variant:l,responsive:s,...c},d)=>{const p=C(e,"table"),f=_(t,p,l&&`${p}-${l}`,a&&`${p}-${a}`,n&&`${p}-${"string"==typeof n?`striped-${n}`:"striped"}`,o&&`${p}-bordered`,r&&`${p}-borderless`,i&&`${p}-hover`),h=u("table",{...c,className:f,ref:d});if(s){let e=`${p}-responsive`;return"string"==typeof s&&(e=`${e}-${s}`),u("div",{className:e,children:h})}return h})),_n=function(e){var n=e.label,o=e.className,r=e.variant,i=m(e,["label","className","variant"]);return t.createElement(fe,h({className:o,variant:r||"primary"},i),n)};!function(e){e[e.NONE=0]="NONE",e[e.HEAD=1]="HEAD",e[e.BODY=2]="BODY"}(vn||(vn={}));var wn=r(vn.NONE),xn=function(e){var n=e.className,o=e.children,r=m(e,["className","children"]);return t.createElement(gn,h({className:n},r),o)};xn.Head=function(e){var n=e.children,o=m(e,["children"]);return t.createElement(wn.Provider,{value:vn.HEAD},t.createElement("thead",h({},o),n))},xn.Row=function(e){var n=e.className,o=e.children,r=m(e,["className","children"]);return t.createElement("tr",h({className:"table-responsive + ".concat(n)},r),o)},xn.Cell=function(e){var o=e.className,r=e.children,i=m(e,["className","children"]);switch(n(wn)){case vn.HEAD:return t.createElement("th",h({scope:"col",className:o},i),r);case vn.BODY:case vn.NONE:default:return t.createElement("td",h({className:o},i),r)}},xn.Body=function(e){var n=e.children,o=m(e,["children"]);return t.createElement("tbody",h({},o),t.createElement(wn.Provider,{value:vn.BODY},n))};var qn=function(e){var n=e.label,o=e.className;return t.createElement(bn.Label,{className:o},n)};var On=function(){this.__data__=[],this.size=0};var kn=function(e,t){return e===t||e!=e&&t!=t},Cn=kn;var Sn=function(e,t){for(var n=e.length;n--;)if(Cn(e[n][0],t))return n;return-1},En=Sn,Tn=Array.prototype.splice;var Nn=Sn;var Dn=Sn;var Mn=Sn;var Pn=On,An=function(e){var t=this.__data__,n=En(t,e);return!(n<0)&&(n==t.length-1?t.pop():Tn.call(t,n,1),--this.size,!0)},Rn=function(e){var t=this.__data__,n=Nn(t,e);return n<0?void 0:t[n][1]},jn=function(e){return Dn(this.__data__,e)>-1},In=function(e,t){var n=this.__data__,o=Mn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function Ln(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tl))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new Sr:void 0;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},pi=ao,fi=di,hi=Zr,mi={};mi["[object Float32Array]"]=mi["[object Float64Array]"]=mi["[object Int8Array]"]=mi["[object Int16Array]"]=mi["[object Int32Array]"]=mi["[object Uint8Array]"]=mi["[object Uint8ClampedArray]"]=mi["[object Uint16Array]"]=mi["[object Uint32Array]"]=!0,mi["[object Arguments]"]=mi["[object Array]"]=mi["[object ArrayBuffer]"]=mi["[object Boolean]"]=mi["[object DataView]"]=mi["[object Date]"]=mi["[object Error]"]=mi["[object Function]"]=mi["[object Map]"]=mi["[object Number]"]=mi["[object Object]"]=mi["[object RegExp]"]=mi["[object Set]"]=mi["[object String]"]=mi["[object WeakMap]"]=!1;var bi=function(e){return hi(e)&&fi(e.length)&&!!mi[pi(e)]};var yi=function(e){return function(t){return e(t)}},gi={exports:{}};!function(e,t){var n=Hn,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,i=r&&r.exports===o&&n.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(gi,gi.exports);var _i=gi.exports,wi=bi,xi=yi,qi=_i&&_i.isTypedArray,Oi=qi?xi(qi):wi,ki=Qr,Ci=ii,Si=$r,Ei=si,Ti=ci,Ni=Oi,Di=Object.prototype.hasOwnProperty;var Mi=function(e,t){var n=Si(e),o=!n&&Ci(e),r=!n&&!o&&Ei(e),i=!n&&!o&&!r&&Ni(e),a=n||o||r||i,l=a?ki(e.length,String):[],s=l.length;for(var u in e)!t&&!Di.call(e,u)||a&&("length"==u||r&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ti(u,s))||l.push(u);return l},Pi=Object.prototype;var Ai=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pi)};var Ri=function(e,t){return function(n){return e(t(n))}},ji=Ri(Object.keys,Object),Ii=Ai,Li=ji,Vi=Object.prototype.hasOwnProperty;var $i=po,Fi=di;var Bi=Mi,zi=function(e){if(!Ii(e))return Li(e);var t=[];for(var n in Object(e))Vi.call(e,n)&&"constructor"!=n&&t.push(n);return t},Wi=function(e){return null!=e&&Fi(e.length)&&!$i(e)};var Hi=zr,Ui=Jr,Yi=function(e){return Wi(e)?Bi(e):zi(e)};var Ki=function(e){return Hi(e,Yi,Ui)},Ji=Object.prototype.hasOwnProperty;var Qi=function(e,t,n,o,r,i){var a=1&n,l=Ki(e),s=l.length;if(s!=Ki(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:Ji.call(t,c)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++u1)return t.map((function(t){return e(t)}));var o=t[0];if("string"!=typeof o.blotName&&"string"!=typeof o.attrName)throw new i("Invalid definition");if("abstract"===o.blotName)throw new i("Cannot register abstract class");return c[o.blotName||o.attrName]=o,"string"==typeof o.keyName?l[o.keyName]=o:(null!=o.className&&(s[o.className]=o),null!=o.tagName&&(Array.isArray(o.tagName)?o.tagName=o.tagName.map((function(e){return e.toUpperCase()})):o.tagName=o.tagName.toUpperCase(),(Array.isArray(o.tagName)?o.tagName:[o.tagName]).forEach((function(e){null!=u[e]&&null!=o.className||(u[e]=o)})))),o}},function(e,t,n){var o=n(51),r=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(r(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(o){(e(o)?t:n).push(o)})),[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=[],o=a.iterator(this.ops),r=0;r0&&n.next(i.retain-l)}for(var u=new s(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),d=t.next(c),p=n.next(c);if("number"==typeof p.retain){var f={};"number"==typeof d.retain?f.retain=c:f.insert=d.insert;var h=a.attributes.compose(d.attributes,p.attributes,"number"==typeof d.retain);if(h&&(f.attributes=h),u.push(f),!n.hasNext()&&r(u.ops[u.ops.length-1],f)){var m=new s(t.rest());return u.concat(m).chop()}}else"number"==typeof p.delete&&"number"==typeof d.retain&&u.push(p)}return u.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,u=o(n[0],n[1],t),c=a.iterator(this.ops),d=a.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(d.peekLength(),t),i.push(d.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),t);var l=c.next(n),s=d.next(n);r(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),o=new s,r=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(u<0)o.push(n.next());else if(u>0)o.push(n.next(u));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new s}}o.length()>0&&e(o,{},r)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),o=a.iterator(e.ops),r=new s;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var i=Math.min(n.peekLength(),o.peekLength()),l=n.next(i),u=o.next(i);if(l.delete)continue;u.delete?r.push(u):r.retain(i,a.attributes.transform(l.attributes,u.attributes,t))}else r.retain(a.length(n.next()));return r.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),o=0;n.hasNext()&&o<=e;){var r=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(o0&&(e1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var o=this.clone();return 0===e?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function y(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:y(e.parent,t))}b.blotName="block",b.tagName="P",b.defaultChild="break",b.allowedChildren=[u.default,l.default.Embed,c.default],t.bubbleFormats=y,t.BlockEmbed=m,t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)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=_(t,o),this.container=this.options.container,null==this.container)return v.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=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=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new p.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 o=n.selection.lastRange,r=o&&0===o.length?o.index:void 0;w.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var i=this.clipboard.convert("
"+r+"


");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||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&v.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(o){n.register(o,e[o],t)}))}else null==this.imports[e]||o||v.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.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 o=this,i=x(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],w.call(this,(function(){return o.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,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return w.call(this,(function(){var o=n.getSelection(!0),r=new a.default;if(null==o)return r;if(c.default.query(e,c.default.Scope.BLOCK))r=n.editor.formatLine(o.index,o.length,y({},e,t));else{if(0===o.length)return n.selection.format(e,t),r;r=n.editor.formatText(o.index,o.length,y({},e,t))}return n.setSelection(o,s.default.sources.SILENT),r}),o)}},{key:"formatLine",value:function(e,t,n,o,i){var a,l=this,s=x(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],w.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,o,i){var a,l=this,s=x(e,t,n,o,i),u=r(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],w.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 o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.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=x(e,t),o=r(n,2);return e=o[0],t=o[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=x(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,(function(){return r.editor.insertEmbed(t,n,o)}),i,t)}},{key:"insertText",value:function(e,t,n,o,i){var a,l=this,s=x(e,0,n,o,i),u=r(s,4);return e=u[0],a=u[2],i=u[3],w.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 o=this,i=x(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],w.call(this,(function(){return o.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 w.call(this,(function(){e=new a.default(e);var n=t.getLength(),o=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),i=r.ops[r.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),o.compose(r)}),n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=x(t,n,o),a=r(i,4);t=a[0],n=a[1],o=a[3],this.selection.setRange(new d.Range(t,n),o),o!==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 w.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function _(e,t){if((t=(0,f.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=m.default;var n=(0,f.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 o=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=g.import("modules/"+t);return null==n?v.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,f.default)(!0,{},g.DEFAULTS,{modules:o},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 w(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new a.default;var r=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=r&&(!0===n&&(n=r.index),null==o?r=q(r,l,t):0!==o&&(r=q(r,n,o,t)),this.setSelection(r,s.default.sources.SILENT)),l.length()>0){var u,c,d=[s.default.events.TEXT_CHANGE,l,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(d)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return l}function x(e,t,n,r,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"===(void 0===n?"undefined":o(n))?(a=n,i=r):"string"==typeof n&&(null!=r?a[n]=r:i=n),[e,t,a,i=i||s.default.sources.API]}function q(e,t,n,o){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,o!==s.default.sources.USER)})),c=r(u,2);i=c[0],l=c[1]}else{var p=[e.index,e.index+e.length].map((function(e){return e=0?e+n:Math.max(t,e+n)})),f=r(p,2);i=f[0],l=f[1]}return new d.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:c.default,"core/module":u.default,"core/theme":m.default},t.expandConfig=_,t.overload=x,t.default=g},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=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 o=t.order.indexOf(e),r=t.order.indexOf(n);return o>=0||r>=0?o-r:e===n?0:e1?t-1:0),o=1;o1&&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};o.DEFAULTS={},t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],r="warn";function i(e){if(o.indexOf(e)<=o.indexOf(r)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a=0;u--)if(d[u]!=p[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!a(e[c],t[c],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 o=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|r:this.scope=o.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!=o.query(e,o.Scope.BLOT&(this.scope|o.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=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n=e+n)){var a=this.newlineIndex(e,!0)+1,s=i-a+1,u=this.isolate(a,s),c=u.next;u.format(o,r),c instanceof t&&c.formatAt(0,e-a+n-s,o,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(c.default,e),i=o(r,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);b.blotName="code-block",b.tagName="PRE",b.TAB=" ",t.Code=m,t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)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&&!f.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,f);var h=t.scroll.line(e),m=r(h,2),y=m[0],v=m[1],g=(0,b.default)({},(0,d.bubbleFormats)(y));if(y instanceof p.default){var _=y.descendant(s.default.Leaf,v),w=r(_,1)[0];g=(0,b.default)(g,(0,d.bubbleFormats)(w))}c=l.default.attributes.diff(g,c)||{}}else if("object"===o(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,a.insert[x])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),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,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var l=e-t.offset(n.scroll),s=t.newlineIndex(l+a)-l+1;t.formatAt(l,s,r,o[r])}else t.format(r,o[r]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t,r,o[r])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{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=[],o=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof p.default?n.push(t):t instanceof s.default.Leaf&&o.push(t)})):(n=this.scroll.lines(e,t),o=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,o].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=_((0,d.bubbleFormats)(n),t)}return t}));return b.default.apply(b.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,o=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(o).forEach((function(r){n.scroll.formatAt(e,t.length,r,o[r])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(o)))}},{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===p.default.blotName&&!(e.children.length>1)&&e.children.head instanceof f.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),i=r(o,2),l=i[0],s=i[1],c=0,d=new a.default;null!=l&&(c=l instanceof u.default?l.newlineIndex(s)-s+1:l.length()-s,d=l.delta().slice(s,s+c-1).insert("\n"));var p=this.getContents(e,t+c).diff((new a.default).insert(n).concat(d)),f=(new a.default).retain(e).concat(p);return this.applyDelta(f)}},{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,o=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(v)&&s.default.find(t[0].target)){var r=s.default.find(t[0].target),i=(0,d.bubbleFormats)(r),l=r.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),p=(new a.default).insert(u),f=(new a.default).insert(r.value());e=(new a.default).retain(l).concat(p.diff(f,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=o.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(o.compose(e),this.delta)||(e=o.diff(this.delta,n));return e}}]),e}();function _(e,t){return Object.keys(t).reduce((function(n,o){return null==e[o]||(t[o]===e[o]?n[o]=t[o]:Array.isArray(t[o])?t[o].indexOf(e[o])<0&&(n[o]=t[o].concat([e[o]])):n[o]=[t[o],e[o]]),n}),{})}t.default=g},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var o=this;d(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 f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||setTimeout(o.update.bind(o,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&&o.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{o.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,r=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;o.setNativeRange(r,i,a,l)}})),this.update(s.default.sources.SILENT)}return r(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 o=i.default.find(n.start.node,!1);if(null==o)return;if(o instanceof i.default.Leaf){var r=o.split(n.start.offset);o.parent.insertBefore(this.cursor,r)}else o.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 r=void 0,i=this.scroll.leaf(e),a=o(i,2),l=a[0],s=a[1];if(null==l)return null;var u=l.position(s,!0),c=o(u,2);r=c[0],s=c[1];var d=document.createRange();if(t>0){d.setStart(r,s);var p=this.scroll.leaf(e+t),f=o(p,2);if(l=f[0],s=f[1],null==l)return null;var h=l.position(s,!0),m=o(h,2);return r=m[0],s=m[1],d.setEnd(r,s),d.getBoundingClientRect()}var b="left",y=void 0;return r instanceof Text?(s0&&(b="right")),{bottom:y.top+y.height,height:y.height,left:y[b],right:y[b],top:y.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 p.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 r=n.map((function(e){var n=o(e,2),r=n[0],a=n[1],l=i.default.find(r,!0),s=l.offset(t.scroll);return 0===a?s:l instanceof i.default.Container?s+l.length():s+l.index(r,a)})),a=Math.min(Math.max.apply(Math,c(r)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(c(r)));return new f(l,a-l)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(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],r=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,l=t.scroll.leaf(e),s=o(l,2),u=s[0],c=s[1],d=u.position(c,0!==n),p=o(d,2);a=p[0],c=p[1],r.push(a,c)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,r)),a=o(i,1)[0],l=a;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,r));l=o(s,1)[0]}if(null!=a&&null!=l){var u=e.getBoundingClientRect();n.topu.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(p.info("setNativeRange",e,t,n,o),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||r||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||o!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,o),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),p.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,c(o).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(),r=o(n,2),i=r[0],u=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,p=[s.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(p)),e!==s.default.sources.SILENT&&(d=this.emitter).emit.apply(d,p)}}}]),e}();function m(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=f,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=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 o=n(11),r=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=r(!0,{},t);for(var i in n||(o=Object.keys(o).reduce((function(e,t){return null!=o[t]&&(e[t]=o[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(o[i]=e[i]);return Object.keys(o).length>0?o: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,r){return o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),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 o=Object.keys(t).reduce((function(n,o){return void 0===e[o]&&(n[o]=t[o]),n}),{});return Object.keys(o).length>0?o: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,o=i.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}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(),o=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(o)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{o=Promise}catch(e){o=function(){}}function r(i,l,s,u,c){"object"==typeof l&&(s=l.depth,u=l.prototype,c=l.includeNonEnumerable,l=l.circular);var d=[],p=[],f="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 m,b;if("object"!=typeof s)return s;if(e(s,t))m=new t;else if(e(s,n))m=new n;else if(e(s,o))m=new o((function(e,t){s.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(r.__isArray(s))m=[];else if(r.__isRegExp(s))m=new RegExp(s.source,a(s)),s.lastIndex&&(m.lastIndex=s.lastIndex);else if(r.__isDate(s))m=new Date(s.getTime());else{if(f&&Buffer.isBuffer(s))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(s.length):new Buffer(s.length),s.copy(m),m;e(s,Error)?m=Object.create(s):void 0===u?(b=Object.getPrototypeOf(s),m=Object.create(b)):(m=Object.create(u),b=u)}if(l){var y=d.indexOf(s);if(-1!=y)return p[y];d.push(s),p.push(m)}for(var v in e(s,t)&&s.forEach((function(e,t){var n=i(t,h-1),o=i(e,h-1);m.set(n,o)})),e(s,n)&&s.forEach((function(e){var t=i(e,h-1);m.add(t)})),s){var g;b&&(g=Object.getOwnPropertyDescriptor(b,v)),g&&null==g.set||(m[v]=i(s[v],h-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(s);for(v=0;v<_.length;v++){var w=_[v];(!(q=Object.getOwnPropertyDescriptor(s,w))||q.enumerable||c)&&(m[w]=i(s[w],h-1),q.enumerable||Object.defineProperty(m,w,{enumerable:!1}))}}if(c){var x=Object.getOwnPropertyNames(s);for(v=0;v0){if(l instanceof s.BlockEmbed||f instanceof s.BlockEmbed)return void this.optimize();if(l instanceof d.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===f)return void this.optimize()}else if(f instanceof d.default){var m=f.newlineIndex(0);m>-1&&f.split(m+1)}var b=f.children.head instanceof c.default?null:f.children.head;l.moveChildren(f,b),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,o,r){(null==this.whitelist||this.whitelist[o])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,r),this.optimize())}},{key:"insertAt",value:function(e,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==o||null==a.default.query(n,a.default.Scope.BLOCK)){var r=a.default.create(this.statics.defaultChild);this.appendChild(r),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,o)}else{var l=a.default.create(n,o);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var o=a.default.create(this.statics.defaultChild);o.appendChild(e),e=o}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,o){var r=[],i=o;return t.children.forEachAt(n,o,(function(t,n,o){h(t)?r.push(t):t instanceof a.default.Container&&(r=r.concat(e(t,n,i))),i-=o})),r}(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);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[u.default,s.BlockEmbed,p.default],t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)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]:{},o=S(e);if(null==o||null==o.key)return y.warn("Attempted to add invalid keyboard binding",o);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),o=(0,s.default)(o,t,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{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 u=e.quill.getLine(s.index),c=r(u,2),p=c[0],f=c[1],h=e.quill.getLeaf(s.index),m=r(h,2),b=m[0],y=m[1],v=0===s.length?[b,y]:e.quill.getLeaf(s.index+s.length),g=r(v,2),_=g[0],w=g[1],x=b instanceof d.default.Text?b.value().slice(0,y):"",q=_ instanceof d.default.Text?_.value().slice(w):"",O={collapsed:0===s.length,empty:0===s.length&&p.length()<=1,format:e.quill.getFormat(s),offset:f,prefix:x,suffix:q};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==O.collapsed)return!1;if(null!=t.empty&&t.empty!==O.empty)return!1;if(null!=t.offset&&t.offset!==O.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==O.format[e]})))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=O.format[e]:!1===t.format[e]?null==O.format[e]:(0,l.default)(t.format[e],O.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(O.prefix)||null!=t.suffix&&!t.suffix.test(O.suffix)||!0===t.handler.call(e,s,O))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function _(e,t){var n,o=e===g.keys.LEFT?"prefix":"suffix";return b(n={key:e,shiftKey:t,altKey:null},o,/^$/),b(n,"handler",(function(n){var o=n.index;e===g.keys.RIGHT&&(o+=n.length+1);var i=this.quill.getLeaf(o);return!(r(i,1)[0]instanceof d.default.Embed&&(e===g.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index-1,p.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index+n.length+1,p.default.sources.USER),1))})),n}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),o=r(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=r(a,1)[0];if(null!=l&&l.length()>1){var s=o.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,p.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,p.default.sources.USER),this.quill.focus()}}function x(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},i=0,a=this.quill.getLine(e.index),l=r(a,1)[0];if(t.offset>=l.length()-1){var s=this.quill.getLine(e.index+1),u=r(s,1)[0];if(u){var d=l.formats(),f=this.quill.getFormat(e.index,1);o=c.default.attributes.diff(d,f)||{},i=u.length()}}this.quill.deleteText(e.index,n,p.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index+i-1,n,o,p.default.sources.USER)}}function q(e){var t=this.quill.getLines(e),n={};if(t.length>1){var o=t[0].formats(),r=t[t.length-1].formats();n=c.default.attributes.diff(r,o)||{}}this.quill.deleteText(e,p.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function O(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var o=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",o,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==o[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],p.default.sources.USER))}))}function k(e){return{key:g.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),o=t.index,i=t.length,a=this.quill.scroll.descendant(n,o),l=r(a,2),s=l[0],u=l[1];if(null!=s){var c=this.quill.getIndex(s),f=s.newlineIndex(u,!0)+1,h=s.newlineIndex(c+u+i),m=s.domNode.textContent.slice(f,h).split("\n");u=0,m.forEach((function(t,r){e?(s.insertAt(f+u,n.TAB),u+=n.TAB.length,0===r?o+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===r?o-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(p.default.sources.USER),this.quill.setSelection(o,i,p.default.sources.SILENT)}}}}function C(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function S(e){if("string"==typeof e||"number"==typeof e)return S({key:e});if("object"===(void 0===e?"undefined":o(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[v]=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:C("bold"),italic:C("italic"),underline:C("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",p.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",p.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",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":k(!0),"outdent code-block":k(!1),"remove tab":{key:g.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:g.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.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,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.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=r(t,2),o=n[0],i=n[1],a=(0,s.default)({},o.formats(),{list:"checked"}),l=(new u.default).retain(e.index).insert("\n",a).retain(o.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,p.default.sources.USER),this.quill.setSelection(e.index+1,p.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),o=r(n,2),i=o[0],a=o[1],l=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,p.default.sources.USER),this.quill.setSelection(e.index+1,p.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,o=this.quill.getLine(e.index),i=r(o,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," ",p.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:s});this.quill.updateContents(c,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,p.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=r(t,2),o=n[0],i=n[1],a=(new u.default).retain(e.index+o.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,p.default.sources.USER)}},"embed left":_(g.keys.LEFT,!1),"embed left shift":_(g.keys.LEFT,!0),"embed right":_(g.keys.RIGHT,!1),"embed right shift":_(g.keys.RIGHT,!0)}},t.default=g,t.SHORTKEY=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):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 o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=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":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}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=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=y(n(0)),r=y(n(5)),i=n(4),a=y(i),l=y(n(16)),s=y(n(25)),u=y(n(24)),c=y(n(35)),d=y(n(6)),p=y(n(22)),f=y(n(7)),h=y(n(55)),m=y(n(42)),b=y(n(23));function y(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":p.default,"blots/text":f.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":b.default}),o.default.register(a.default,l.default,u.default,d.default,p.default,f.default),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e){this.domNode=e,this.domNode[o.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 o.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 o.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var i=this.isolate(e,t);if(null!=o.query(n,o.Scope.BLOT)&&r)i.wrap(n,r);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var a=o.create(this.statics.scope);i.wrap(a),a.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?o.create("text",t):o.create(t,n),i=this.split(e);this.parent.insertBefore(r,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[o.DATA_KEY]&&delete this.domNode[o.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?o.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?o.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),r=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=o.default.keys(this.domNode),n=r.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 o.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var o=t.attributes[n].value(t.domNode);e.format(n,o)}))},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 o,r=this&&this.__extends||(o=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}o(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 r(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 o,r=this&&this.__extends||(o=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}o(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 r(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 o=function(){function e(e,t){for(var n=0;no&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=o;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!=r.default.query(e,r.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 o=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=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,l.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(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}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var o=n.index+n.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",l.default.sources.USER),this.quill.setSelection(o+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(f.default);function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var o=document.createElement("option");t===n?o.setAttribute("selected","selected"):o.setAttribute("value",t),e.appendChild(o)}))}t.BaseTooltip=O,t.default=q},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=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,o=this.iterator();n=o();){var r=n.length();if(ea?n(o,e-a,Math.min(t,a+s-e)):n(o,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,o=this.iterator();n=o();)t=e(t,n);return t},e}();t.default=o},function(e,t,n){var o,r=this&&this.__extends||(o=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}o(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 r(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,o,r){this.update(),e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){this.update(),e.prototype.insertAt.call(this,t,n,o)},t.prototype.optimize=function(t,n){var o=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&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))},u=t,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.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),r=(u=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var o=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!==o&&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 o,r=this&&this.__extends||(o=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}o(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 r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,o){var r=this;n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,o,r){null!=this.formats()[o]||a.query(o,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var r=this.next;r instanceof t&&r.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}(o,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=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}o(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 r(t,e),t.formats=function(n){var o=a.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,o,r){null!=a.query(o,a.Scope.BLOCK)?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){if(null==o||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var r=this.split(t),i=a.create(n,o);r.parent.insertBefore(i,r)}},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 o,r=this&&this.__extends||(o=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}o(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 r(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,o,r){0===t&&n===this.length()?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var o,r=this&&this.__extends||(o=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}o(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 r(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,o){null==o?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,o)},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 o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.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 o=n.indexOf(e,t);return-1!==o&&o===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),o=n.length>>>0,r=arguments[1],i=0;it.length?e:t,d=e.length>t.length?t:e,p=c.indexOf(d);if(-1!=p)return u=[[o,c.substring(0,p)],[r,d],[o,c.substring(p+d.length)]],e.length>t.length&&(u[0][0]=u[2][0]=n),u;if(1==d.length)return[[n,e],[o,t]];var f=function(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length=e.length?[o,r,i,a,d]:null}var i,a,u,c,d,p=r(n,o,Math.ceil(n.length/4)),f=r(n,o,Math.ceil(n.length/2));if(!p&&!f)return null;i=f?p&&p[4].length>f[4].length?p:f:p,e.length>t.length?(a=i[0],u=i[1],c=i[2],d=i[3]):(c=i[0],d=i[1],a=i[2],u=i[3]);var h=i[4];return[a,u,c,d,h]}(e,t);if(f){var h=f[0],m=f[1],b=f[2],y=f[3],v=f[4],g=i(h,b),_=i(m,y);return g.concat([[r,v]],_)}return function(e,t){for(var r=e.length,i=t.length,l=Math.ceil((r+i)/2),s=l,u=2*l,c=new Array(u),d=new Array(u),p=0;pr)b+=2;else if(x>i)m+=2;else if(h&&(k=s+f-_)>=0&&k=(O=r-d[k]))return a(e,t,S,x)}for(var q=-g+y;q<=g-v;q+=2){for(var O,k=s+q,C=(O=q==-g||q!=g&&d[k-1]r)v+=2;else if(C>i)y+=2;else if(!h){var S;if((w=s+f-q)>=0&&w=(O=r-O)))return a(e,t,S,x)}}}return[[n,e],[o,t]]}(e,t)}(e=e.substring(0,e.length-p),t=t.substring(0,t.length-p));return f&&m.unshift([r,f]),h&&m.push([r,h]),u(m),null!=c&&(m=function(e,t){var o=function(e,t){if(0===t)return[r,e];for(var o=0,i=0;i0&&i.splice(a+2,0,[s[0],u]),d(i,a,3)}return e}(m,c)),m=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}(m)}function a(e,t,n,o){var r=e.substring(0,n),a=t.substring(0,o),l=e.substring(n),s=t.substring(o),u=i(r,a),c=i(l,s);return u.concat(c)}function l(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n1?(0!==a&&0!==c&&(0!==(t=l(p,d))&&(i-a-c>0&&e[i-a-c-1][0]==r?e[i-a-c-1][1]+=p.substring(0,t):(e.splice(0,0,[r,p.substring(0,t)]),i++),p=p.substring(t),d=d.substring(t)),0!==(t=s(p,d))&&(e[i][1]=p.substring(p.length-t)+e[i][1],p=p.substring(0,p.length-t),d=d.substring(0,d.length-t))),0===a?e.splice(i-c,a+c,[o,p]):0===c?e.splice(i-a,a+c,[n,d]):e.splice(i-a-c,a+c,[n,d],[o,p]),i=i-a-c+(a?1:0)+(c?1:0)+1):0!==i&&e[i-1][0]==r?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,c=0,a=0,d="",p=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(i=1;i=0&&o>=t-1;o--)if(o+1=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=S(t,n)),parseFloat(o.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||!T(t,"\n"))return t;for(var o=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(s.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:o}))}],["b",M.bind(M,"bold")],["i",M.bind(M,"italic")],["style",function(){return new l.default}]],O=[p.AlignAttribute,b.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),k=[p.AlignStyle,f.BackgroundStyle,m.ColorStyle,b.DirectionStyle,y.FontStyle,v.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),C=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 o=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 o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],q.concat(o.options.matchers).forEach((function(e){var t=r(e,2),i=t[0],a=t[1];(n.matchVisual||a!==j)&&o.addMatcher(i,a)})),o}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,_({},h.default.blotName,t[h.default.blotName]))}var o=this.prepareMatching(),i=r(o,2),a=i[0],s=i[1],u=D(this.container,a,s);return T(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new l.default).retain(u.length()-1).delete(1))),w.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new l.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){o=o.concat(t.convert()).delete(n.length),t.quill.updateContents(o,u.default.sources.USER),t.quill.setSelection(o.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(o){var i=r(o,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[x]=e[x]||[],e[x].push(l)}))}})),[t,n]}}]),t}(d.default);function S(e,t,n){return"object"===(void 0===t?"undefined":o(t))?Object.keys(t).reduce((function(e,n){return S(e,n,t[n])}),e):e.reduce((function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,a.default)({},_({},t,n),o.attributes))}),new l.default)}function E(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function T(e,t){for(var n="",o=e.ops.length-1;o>=0&&n.length-1}function D(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(o,r){var i=D(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(r,e)}),i),i=(r[x]||[]).reduce((function(e,t){return t(r,e)}),i)),o.concat(i)}),new l.default):new l.default}function M(e,t,n){return S(n,e,!0)}function P(e,t){var n=s.default.Attributor.Attribute.keys(e),o=s.default.Attributor.Class.keys(e),r=s.default.Attributor.Style.keys(e),i={};return n.concat(o).concat(r).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=O[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=k[t])||n.attrName!==t&&n.keyName!==t||(n=k[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=S(t,i)),t}function A(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var o={},r=n.value(e);null!=r&&(o[n.blotName]=r,t=(new l.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=S(t,n.blotName,n.formats(e)));return t}function R(e,t){return T(t,"\n")||(N(e)||t.length()>0&&e.nextSibling&&N(e.nextSibling))&&t.insert("\n"),t}function j(e,t){if(N(e)&&null!=e.nextElementSibling&&!T(t,"\n\n")){var n=e.offsetHeight+parseFloat(E(e).marginTop)+parseFloat(E(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function I(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(!E(e.parentNode).whiteSpace.startsWith("pre")){var o=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,o.bind(o,!0)),(null==e.previousSibling&&N(e.parentNode)||null!=e.previousSibling&&N(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&N(e.parentNode)||null!=e.nextSibling&&N(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}C.DEFAULTS={matchers:[],matchVisual:!0},t.default=C,t.matchAttributor=P,t.matchBlot=A,t.matchNewline=R,t.matchSpacing=j,t.matchText=I},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n '},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;no.right&&(i=o.right-r.right,this.root.style.left=t+i+"px"),r.lefto.bottom){var a=r.bottom-r.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=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&l.return&&l.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=function(){function e(e,t){for(var n=0;n','','',''].join(""),t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=R(n(29)),r=n(36),i=n(38),a=n(64),l=R(n(65)),s=R(n(66)),u=n(67),c=R(u),d=n(37),p=n(26),f=n(39),h=n(40),m=R(n(56)),b=R(n(68)),y=R(n(27)),v=R(n(69)),g=R(n(70)),_=R(n(71)),w=R(n(72)),x=R(n(73)),q=n(13),O=R(q),k=R(n(74)),C=R(n(75)),S=R(n(57)),E=R(n(41)),T=R(n(28)),N=R(n(59)),D=R(n(60)),M=R(n(61)),P=R(n(108)),A=R(n(62));function R(e){return e&&e.__esModule?e:{default:e}}o.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":h.SizeStyle},!0),o.default.register({"formats/align":r.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":f.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":O.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":m.default,"formats/code":q.Code,"formats/italic":b.default,"formats/link":y.default,"formats/script":v.default,"formats/strike":g.default,"formats/underline":_.default,"formats/image":w.default,"formats/video":x.default,"formats/list/item":u.ListItem,"modules/formula":k.default,"modules/syntax":C.default,"modules/toolbar":S.default,"themes/bubble":P.default,"themes/snow":A.default,"ui/icons":E.default,"ui/picker":T.default,"ui/icon-picker":D.default,"ui/color-picker":N.default,"ui/tooltip":M.default},!0),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var o,r=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 p)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var o=null==n?this.length():n.offset(this),i=this.split(o);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){r(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)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);f.blotName="list",f.scope=i.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[p],t.ListItem=p,t.default=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=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}(((o=r)&&o.__esModule?o:{default:o}).default);i.blotName="italic",i.tagName=["EM","I"],t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=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 u.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);c.blotName="image",c.tagName="IMG",t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=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 u.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);c.blotName="video",c.className="ql-video",c.tagName="IFRAME",t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var o=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);p.className="ql-syntax";var f=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return o.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){o.highlight(),r=null}),o.options.interval)})),o.highlight(),o}return d(t,e),o(t,null,[{key:"register",value:function(){a.default.register(f,!0),a.default.register(p,!0)}}]),o(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(p).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=p,t.CodeToken=f,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 o=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},r=function(){function e(e,t){for(var n=0;n0&&r===a.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var i=o.quill.getLines(t.index,t.length);if(1===i.length)o.position(o.quill.getBounds(t));else{var l=i[i.length-1],s=o.quill.getIndex(l),c=Math.min(l.length()-1,t.index+t.length-s),d=o.quill.getBounds(new u.Range(s,c));o.position(d)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return h(t,e),r(t,[{key:"listen",value:function(){var e=this;o(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=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);y.TEMPLATE=['','
','','',"
"].join(""),t.BubbleTooltip=y,t.default=b},function(e,t,n){e.exports=n(63)}]).default};var Aa,Ra=Pa.exports=Da(),ja=b&&b.__extends||(Aa=function(e,t){return Aa=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])},Aa(e,t)},function(e,t){function n(){this.constructor=e}Aa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ia=b&&b.__assign||function(){return Ia=Object.assign||function(e){for(var t,n=1,o=arguments.length;n1)throw new Error("The Quill editing area can only be composed of a single React element.");if($a.default.Children.count(e.children)&&"textarea"===(null===(t=$a.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a